
內容簡介
這是一個能夠透過輸入前幾個字元來定位任何地點的 WordPress 外掛。它會使用 Nominatim API 在 operstreetmaps 數據中搜尋名稱。
http://nominatim.openstreetmap.org
它會使用 leaflet.js 函式庫來顯示地圖。
http://leafletjs.com
您可以指定從現在地圖中心開始,要在哪個距離範圍內進行地點搜尋。為了指定距離,它提供了一個滑桿。
最小距離為 100 公里,最大距離為 1000 公里,間隔為 100 公里。要進行搜尋,只需要在資源的文本框中輸入名稱 (例如:倫敦、巴黎、孟買等等)。在輸入三個或以上字元之後,會有一個提示框在下方彈出,顯示在 openstreetmap 資料中所有的名稱。
當您點擊任何建議時,該地點會在地圖上放大。
要使用此外掛,您必須在文章或頁面內的任意位置輸入縮碼 "[TakeMeThere]"。
外掛標籤
開發者團隊
原文外掛簡介
This is a plugin for locating any place by typing first few letters. The names are searched in operstreetmaps data using nominatim api
http://nominatim.openstreetmap.org
It uses leaflet.js library for displaying the map.
http://leafletjs.com
You can specify the distance from current map centre within which the place is to be searched. For specifing the distance, a slider is provided
The minimum distance is 100 KM and maximum is 1000 KM, which can be incremented in the steps of 100 KM. For searching, start typing the name (London, Paris, Mumbai etc.)
In the text box at the bottom of the widget. As soon as three or more characters are entered, a suggestion box pops beneth, displaying all the names in openstreetmap data.
When you click on any suggestion, that place is zoomed in the map.
For using the plugin, you have to use shortcode, “[TakeMeThere]” , ie type [TakeMeThere] anywhere in the post or page content.
