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

描述

Easily create Travel Baidu Maps to add to any WordPress site. You can create one or multiple travel map
, then insert the map with a shortcode.

With Travel Baidu Maps you can generate a map with multiple locations, a route, hyper links and pictures.

The motive is that China mainland user cannot access Google map, so they could not use these map plugins
based on Google API, but the map plugins based on Baidu API is a little limited.

This plugin comes from “Custom baidu maps” plugin, but the usage is totally different and lots of enhancement.

Basic Usage with shortcodes :

You just need to save the map as draft, then you can find a short code in the maps list page,
or you can find it in the current page after clicking “Publish” button.

[btmap id=”id”]
Options :
– id : unique id for a travel map, such as 333

Advanced Usage Travl Map post-type :

  1. Enter your Baidu Developer API Key (if you have not already).
  2. Select the “Travel Map” post type from the wordpess menu.
  3. Click on “Add New”.
  4. Enter the map settings (height, width, zoom and coordinates).
  5. Upon publishing, add the new generated shortcode to the page content.

Adding a Marker on the map (optional) :

  1. Click on the map to add a new marker to this map.
  2. Right click on the map to set the center point, the setting data will change too.
  3. Scroll up or down to scale the map, or click the button within the map, the setting data will change too.
  4. Click on “Show Marker Details” if you wish to see the details visible at start.
  5. Change the “Back Color” if you wanna the color of that marker and the route ending into it.
  6. The content of name and description for a marker supports HTML, so you could imbed some small image and or hyper link.

Adding a Marker on the map (optional) :

  1. Click on “Add in travel route” if you wish to find it in the travel route.

Set Travel Map general setting:
1. Baidu Developers API key, used to access Baidu map API.
1. Default route color, you can specify it to make your first marker looks with this default color.
1. Default time to show detail after clicking marker, if a marker is set to show no detail at default, you can click
it to show detail, then you can click the detial area to hide it and show the marker again. But as my test result shows,
user cannot hide the detail in iPhone, so I added this option, to let the detail automatically hide after clicking.

屏幕截图

  • Setting in the travel map settings menu.
  • Snapshot for a travel map in editing with number marked markers.
  • Result of a travel map.

安装

Follow the steps below for the plugin installation :

  1. Upload travel-maps.zip to the /wp-content/plugins/ directory or add the plugin via wordpress plugin repository.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Enter your Baidu Developer API key in the settings page.

常见问题

Installation Instructions

Follow the steps below for the plugin installation :

  1. Upload travel-maps.zip to the /wp-content/plugins/ directory or add the plugin via wordpress plugin repository.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Enter your Baidu Developer API key in the settings page.
Why is the plugin showing an error “You have not entered your Baidu Developer API Key”

To use Baidu Maps, you need to have a Baidu Developer API Key.
To obtain the API Key please visit : http://lbsyun.baidu.com/apiconsole/key

评价

此插件暂无评价。

贡献者及开发者

“Travel Map” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Travel Map”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志