內容簡介
此外掛為 WordPress 提供一個介面,讓您可以輕鬆嵌入自 ScribbleMaps.com 的 Scribble 地圖或指定 URL 的 KML 到您的 WordPress 網站中。
基本使用方式
安裝並啟用此外掛後,您可以在文章內使用類似以下標籤的方式添加您的 Scribble 地圖:
[ScribbleMap mapID="MyMapID" height="150" width="300" /]
使用視覺編輯器或 HTML 編輯器,您可以在上傳/插入列的右端看到 Scribble 地圖的 Logo,或在 HTML 模式下看到一個名為「Scribble Maps Embed」的按鈕。點擊它,便可以進入 Scribble 地圖小工具的嵌入產生器,設定您需要的選項並點擊「產生」按鈕,這將在編輯器中插入一個 SM 標籤。
在 SM 標籤中,必要的屬性只有地圖的 ID(mapID 或 kmlUrl)、高度和寬度。請參見以下各段落,以瞭解所有可用屬性和進階用法。
可用屬性
mapID(必填)
您所欲嵌入地圖的 ID。
或
kmlUrl(必填)
欲載入於小工具中的 KML 檔案 URL。
drag
(true|false)啟用拖曳以使用滑鼠拖曳地圖。
position
(true|false)啟用位置控制,允許使用者移動地圖。
mapType
(true|false)啟用地圖類型控制,允許使用者切換到地圖、衛星影像或混合影像檢視。
zoom
(true|false)啟用縮放控制。
legend
(true|false)啟用圖例控制(若有)。
外掛標籤
開發者團隊
原文外掛簡介
Provides a WordPress interface for embedding Scribble Maps from ScribbleMaps.com or KML from a specified url.
Basic Usage
Once the plugin is installed and activated, you can add your Scribble Maps to your pages using a tag like this in your articles:
[ScribbleMap mapID="MyMapID" height="150" width="300" /]
When you use the Rich Text Editor in either Visual or HTML modes, you should see a button on the right end of the upload/insert bar with the Scribble Maps logo in the visual mode or a button that reads “Scribble Maps Embed” in HTML mode. Click it, and you will be presented with the Scribble Maps Widget Embed generator which presents you with all possible embedding options. Set the options according to your needs and click the “Generate” button to drop an SM tag in your editor.
The only required attributes in an SM tag are mapID or kmlUrl, height, and width. See the the following sections all available attributes and advanced usage.
Available Attributes
mapID (required)
The Map ID of the map you wish to embed.
OR
kmlUrl (required)
The url to the kml file you wish to load into the widget.
drag
(true|false) Enables dragging of the map around using the mouse
position
(true|false) Toggles visibility of the position controls which allow the user to move the map around.
mapType
(true|false) Toggles visibility of the map type controls which allow the user to change the type to map, satellite view, or hybrid view.
zoom
(true|false) Toggles visibility of the zoom control.
legend
(true|false) Toggles visibility of the legend if the map has one.
