內容簡介
此外掛可以使用短碼 [map]
(語法)
將轉換為基於 Leaflet 的地圖。
欲了解更多資訊,請參閱MapBBCode.org。
用法
將短碼加入您的網頁:
[map]用於顯示預設地圖
[map=縮放級別,緯度,經度]用於顯示以 (緯度,經度) 為中心的地圖
[map]緯度,經度(文字)[/map]用於顯示帶有標籤的地圖
[map]緯度1,經度1; 緯度2,經度2[/map]用於顯示帶有多個標記的地圖
[map]緯度1,經度1 緯度2,經度2 緯度3,經度3(顏色|文字)[/map]用於顯示帶有折線或多邊形的地圖
請參考範例。
注意事項
所有地圖的寬度均為604個像素,這對 Twenty Thirteen 主題來說是好的,但對於其他主題還沒有測試過,可能會顯示不美觀。
外掛標籤
開發者團隊
原文外掛簡介
This plugin allows to use shortcode [map]
(syntax)
which transforms to Leaflet based map.
For more information, check out MapBBCode.org.
Usage
Add shortcode into you pages:
[map][/map] for default map
[map=Zoom,Latitude,Longitude][/map] for map centered at (Latitude, Longitude)
[map]Latitude,Longitude(Text)[/map] for map with balloon
[map]Lat1,Lon1; Lat2,Lon2[/map] for map with multiple markers
[map]Lat1,Lon1 Lat2,Lon2 Lat3,Lon3(color|Text)[/map] for map with polyline or polygon
See examples.
Caveats
Width of all maps are 604 pixels, it is good for Twenty Thirteen theme but
still not tested with other themes and may appear ugly.
