這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Map Locator

描述

Map locator is easy to use plugin, which uses map API of google, to show users any location in your website page or widget. The most common use of this plugin would be to show website visitors where in map your company, hotel, hospital, school, college, university locate. All you need to know are coordinates of your position, you fill them out and there you are with google map locating your position.

安裝

This section describes how to install the plugin and get it working.

e.g.

  1. Upload map_locator.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
    OR you can directly make a zip and upload the plugin through upload option in plugin section in WordPress admin panel.

常見問題

Q-How to Use?

Map locator comes with two in one, “widget and short code”, uses.

Map Locator Widget:

To display map in your sidebar you need to activate the plugin. After activating the plugin you will be able to see our plugin by the name “Map Locator” in wordpress widget section. You will have to drag that to sidebar to active. By default if you don’t fill in the form the plugin will display our location (Don’t worry you can easily change them, see modify plugin section in this document). The widget form has four fields namely, title, latitude, longitude, and zoom. Zoom tell the zoom of google map you want to display and it ranges from value 1 to 20. The latitude value can lie between -90 to +90 and longitude value can lie between -180 to +180. In case if you don’t give it right values we will still show our location on your map as default.

Map Locator short code:

You can use short code in your pages and posts, all you will need to write.

[Map_Locator]
Since this doesn’t tell proper coordinates the map will show the default location which is ours. [Map_Locator] takes five difference values.

Q- What are default settings?

Zoom: Tells zoom of google map. (Default is 14)
Width: Tells width of google map which will appear on your website. (Default is 725)
Height: Tells height of google map which will appear on your website. (Default is 350)
Latitude: Tells latitude position of your location in google map. (Default is 24.878489)
Longitude: Tells Longitude position of your location in google map. (Default is 67.064235)

Q- I need an example to use the shortcode.

Example:

[Map_Locator width=”850” height=”470” zoom=”14” latitude=”24.678” longitude=”67.852”]
Changing Default Value:

If you exact our plugin to some folder and open up our file that is map_locator.php, replace all occurrences of 24.878489 with your latitude value and 67.064235 with your longitude value.

Better Use Now:

You can now just drag and drop the widget without entering any value to the form, and still you will see your location in map, it is because you have replaced the default coordinates. If you fill form your default values will override by new ones.

Similarly writing short code [Map_Locator] will display your location. Guess what? You still have access to those features to override default with new values at any time.

In most cases the plugin not only shows the desired location but also the nearest location listed in google maps. Hence makes your appearance and business grow more quickly.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Map Locator” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Map Locator 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • No change, first version.