Title: Travelmap
Author: mediascreen
Published: <strong>2010 年 10 月 16 日</strong>
Last modified: 2011 年 11 月 24 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/travelmap.svg)

# Travelmap

 作者：[mediascreen](https://profiles.wordpress.org/mediascreen/)

[下载](https://downloads.wordpress.org/plugin/travelmap.1.5.zip)

 * [详情](https://cn.wordpress.org/plugins/travelmap/#description)
 * [评价](https://cn.wordpress.org/plugins/travelmap/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/travelmap/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/travelmap/#developers)

 [支持](https://wordpress.org/support/plugin/travelmap/)

## 描述

Travelmap helps you show your travels on a Google map in any post or page. Add places
you have visited or plan to visit to show them connected on a world map.

Add arrival dates to automatically show your current position and where you have
been so far. Map markers and city names can be linked to a custom url – for example
a blog post, wikipedia entry or Flickr album. Geocoding is done automatically based
on city and country – but if you need to you can override with your own coordinates.

The maps and lists can be customized using shortcode attributes. There is a full
list of available options under the installation tab.

[See Travelmap in use](http://travelingswede.com/my-travel-map/)
 [The plugin homepage](http://travelingswede.com/travelmap/)
[Travelmap forum at Uservoice](http://travelmap.uservoice.com)

## 屏幕截图

 * [[
 * The map with lines and markers active
 * [[
 * The plugin admin page

## 安装

 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place shortcodes in the posts or pages where you want to show the map or list:
    
    For the map: [travelmap-map] For the list: [travelmap-list]
 4. Add places you want to show. You will find the plugin options page under settings
    > Travelmap

#### Setting the map size

The map width is 100% of the containing element. If you want another width you simply
style its parent with css. Use the shortcode attribute height to set the height 
of the map. Default is 300px.
 [travelmap-map height=500]

#### Setting the map mode

Choose between roadmap, satellite, hybrid or terrain. Default is roadmap.
 [travelmap-
map mapmode=”hybrid”] [More on Google maps mapmodes](http://code.google.com/apis/maps/documentation/javascript/tutorial.html#MapOptions)

#### Showing partial maps/lists

Your can show only some of your places by using shortcode attributes first and/or
last. This is handy if you have done several trips and want to show them in separate
posts or pages.
 [travelmap-map first=5 last=15] This works for the list as well:[
travelmap-list first=5 last=15]

The numbers are the row numbers from the plugin options page. Different maps can
have overlapping numbers. If you add places before the row you have used as first
attribute somewhere you obviously need to change that attribute.

You can also use negative numbers for both start and end to count backwards from
the last entry.
 [travelmap-map first=-15] will show a map with the last 15 entries

You can also use dates to show partial maps. Use first and last with dates instead:
[
travelmap-map first=2010-01-01 last=2010-12-31]

The ‘last’ parameter is optional in both cases.

#### Hiding lines or markers

It is possible to turn of either markers or lines in the map by setting them to 
false in the options:
 [travelmap-map lines=false] [travelmap-map markers=false]

#### Turning off marker numbering

You can remove all numbers from markers:
 [travelmap-map numbers=false]

#### Reversing order

The attribute reverse can be used to reverse the order of the map or the list. Note
that the reversal is the last thing that’s done – so other options are applied before
the order is changed.
 [travelmap-map reverse=true] [travelmap-list reverse=true]

#### Setting custom date format

Arrival dates in the list is shown in the format the blog uses as default. To change
the date format you can use the attribute “dateformat”
 [travelmap-list dateformat
=”F j, Y”] [More on date formats](https://codex.wordpress.org/Formatting_Date_and_Time)

#### Questions or suggestions?

Please use the [Travelmap forum at Uservoice](http://travelmap.uservoice.com)

## 评价

此插件暂无评价。

## 贡献者及开发者

「Travelmap」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ mediascreen ](https://profiles.wordpress.org/mediascreen/)

[帮助将「Travelmap」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/travelmap)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/travelmap/)，查看[SVN仓库](https://plugins.svn.wordpress.org/travelmap/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/travelmap/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/travelmap/)。

## 更新日志

#### 1.5

 * Added clickable markers – all markers with urls are now clickable
 * Added option to choose mapmode (roadmap/satellite/hybrid etc)
 * Added check for dates before showing arriving column
 * Added option to set custom date format for lists (blog setting format is default)
 * Added negative numbers to first/last to make it easier to show the N:th latest
   destinations
 * Added option to reverse order for list and map
 * Added option to turn off numbers on the markers
 * Added ssl setting for map pages
 * Added editable versions of marker files for people who whant to change them
 * Refactored to static class structure and added better documentation
 * Fixed “disappearing map controls”-bug
 * Fixed datepicker bug on new rows
 * Fixed uninstall error
 * Fixed lat/lng rounding
 * Updated included libraries

#### 1.4

 * Fixed a bug that affected the deletion of rows in IE
 * Fixed a major geocoding bug that could cause some pretty random geocoding results
 * Fixed a bug that could cause extra slashes to appear in city and coutry fields
 * Fixed a minor bug that could cause the datepicker widget to disappear
 * Added custom markers for 1-99 in tree different colors to replace the standard
   lettered marker
 * Added possibility to split maps/lists based on dates as well as row order
 * Added shortcode options for hiding markers or lines
 * Added autofocus on first input field when editing or adding row
 * Added save on enter/return when editing fields
 * Adjusted z-index to ensure that the (black) current marker always never is hidden
   by other markers

#### 1.3.1

 * Fixed geocoding bug. Changed to using LatLng functions instead of private variables.

#### 1.3

 * Added shortcode options for showing subset of places in maps and lists
 * Added row numbering to list in options page
 * Improved security checks before saving data

#### 1.2

 * Added jQuery-ui datepicker to date field
 * Improved layout stability of admin table
 * Changed standard colors for markers and lines

#### 1.1

 * Fixed race condition that sometimes saved before geocoding
 * Improved first use, hides public maps/lists if there is no data
 * Updated text on options page

#### 1.0

 * Added drag and drop for locations
 * Changed server response code to 401 for nonce missmatch

## 额外信息

 *  版本 **1.5**
 *  最后更新：**15 年前**
 *  活跃安装数量 **90+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **3.2.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/travelmap/)
 * 标签
 * [map](https://cn.wordpress.org/plugins/tags/map/)[maps](https://cn.wordpress.org/plugins/tags/maps/)
   [travel](https://cn.wordpress.org/plugins/tags/travel/)[travel blog](https://cn.wordpress.org/plugins/tags/travel-blog/)
   [Trip](https://cn.wordpress.org/plugins/tags/trip/)
 *  [高级视图](https://cn.wordpress.org/plugins/travelmap/advanced/)

## 评级

 3.3 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/travelmap/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/travelmap/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/travelmap/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/travelmap/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/travelmap/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/travelmap/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/travelmap/reviews/)

## 贡献者

 *   [ mediascreen ](https://profiles.wordpress.org/mediascreen/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/travelmap/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=marcus%40mediascreen%2ese&item_name=Travelmap)