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

MapTip

描述

MapTip is a jquery tooltip plugin. It is used to display map of a city or place, when mouse is hovered over the city name. It very easy to use.
The basic tooltip facility is borrowed from tooltipster wordpress plugin.
Link to the Tooltipster Jquery Library: http://iamceege.github.io/tooltipster/
URL for Tooltipster plugin: https://wordpress.org/plugins/tooltipster/

it has 10+ features in the base tooltipster plugin.
example animation, position, title, text, image, speed, delay,icon ,theme, trigger etc.

After installing the plugin, you have to enclose the city name within opening and closing shortcodes like below:
[MapTip]Mumbai[/MapTip]
[MapTip]Jakarta[/MapTip] is capital of indonesia.
We were travelling from [MapTip]New Delhi[/MapTip] to [MapTip]Kolkata[/MapTip]

The plugin refers to Overpass api for finding latitude and longitude from the place name.(http://overpass-api.de/)
You can find more about Overpass API (formerly known as OSM Server Side Scripting) at : http://wiki.openstreetmap.org/wiki/Overpass_API
If the place name is misspelled or it doesn’t exist in openstreetmap database, the tooltip shows
the message “Map Not Found”.
You can use animation values ‘fade’, ‘grow’, ‘swing’, ‘slide’, ‘fall’
You can override default theme (i.e colors, borders and general appearance).
There are four themes available “tooltipster-light” , “tooltipster-noir” , “tooltipster-punk” and “tooltipster-shadow”
There are other options available like delay, animationduration etc.
For using them, you have to pass them as arguments to the shortcode like:
[MapTip animation=”swing”]Mumbai[/MapTip] is capital of Maharashtra

[MapTip theme=”tooltipster-noir”]Pune[/MapTip] is the second most big city of Maharashtra

[MapTip animation=”grow”]new delhi[/MapTip] is capital of India

[MapTip]Chiplun[/MapTip] is a place in konkan region.

The map shown in the tooltip has some default zoom factor. You can override the zoom factor by specifying
it in the shortcode.

[MapTip zoom=”10″]Chiplun[/MapTip] is a place in konkan region.

My friend stays in[MapTip]London[/MapTip].

For getting the map images, Mapquest staticmap api is used.
For more information about staticmap refer: http://www.mapquestapi.com/staticmap/
Both openstreetmap and MapQuest have “Fair Usage Policy” in place , so if
there are too many requests from a single IP, that IP is temporarily blocked.

Known issues:
If there are multiple places with the same name, all the records are returned by the API and
the first one is selected for displaying the map tip. So, you may not see the map of the place you intend to see.

屏幕截图

  • Tooltip with Image
  • Tooltip with Headline

安装

  • From WP admin > Plugins > Add New
  • Search \”Tooltipster\” under search and hit Enter
  • Click \”Install Now\”
  • Click the Activate Plugin link

常见问题

MapTip can be added any where .

评价

此插件暂无评价。

贡献者及开发者

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

贡献者

将“MapTip”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.0
First Release