
內容簡介
這是一個方便使用 shortcode 插入 Yandex 和 Google 地圖的外掛程式。
新增只有一個點的 Yandex 或 Google 地圖
[MapOnePoint id=”” type=”” lon=”” lat=”” zoom=”” h=”” img=”” thover=”” tclick=””]
“id” (必填) – 獨特的 id
“type” (非必填) – 地圖層級 (路線圖、衛星圖、混合圖、地形圖)
“lon” (必填) – 地圖中心的經度
“lat” (必填) – 地圖中心的緯度
“mstyle” (非必填) – 地圖風格(預設、黑白、黑色、反色)
“h” (非必填) – 地圖高度(像素)
“img” (非必填) – URL 圖片標記
“thover” (非必填) – 指向一個點時的文字
“tclick” (非必填) – 點擊一個點時的文字
範例:
[MapOnePoint id="m1" type="hybrid" lon="55.75197479670444" lat="37.617726067459024" zoom="5" h="200" img="http://site.ru/1.png" thover="指向一個點時的文字" tclick="點擊一個點時的文字。一些文字"]
新增有多個點的 Yandex 或 Google 地圖
[MapManyPoints id=”” type=”” lat=”” lon=”” zoom=”” h=”” img=”” points=””]
“id” (必填) – 獨特的 id
“type” (非必填) – 地圖層級 (路線圖、衛星圖、混合圖、地形圖)
“lon” (必填) – 地圖中心的經度
“lat” (必填) – 地圖中心的緯度
“mstyle” (非必填) – 地圖風格(預設、黑白、黑色、反色)
“h” (非必填) – 地圖高度(像素)
“img” (非必填) – URL 圖片標記
“points” – [lat point 1],[lon point 1],[指向這一點時的文字1],[點擊這一點時的文字1];[lat point 2],[lon point 2],[指向這一點時的文字2],[點擊這一點時的文字2],以此類推 …
範例:
[[MapManyPoints id="m2" type="roadmap" lat="25" lon="30" zoom="2" h="250" points="25,-1,指向這一點時的文字,點擊這一點時的文字;-5,13,指向這一點時的文字,點擊這一點時的文字"]
外掛標籤
開發者團隊
原文外掛簡介
A handy plugin for inserting Yandex and Google maps using shortcode.
Adds Yandex or Google Map with one point
[MapOnePoint id=”” type=”” lon=”” lat=”” zoom=”” h=”” img=”” thover=”” tclick=””]
“id” (required) – unique id
“type” (not required) – map layer (roadmap, satellite, hybrid, terrain)
“lon” (required) – longitude of the center of the map
“lat” (required) – latitude of the center of the map
“mstyle” (not required) – style of maps (default, blackwhite, blackout, сolorinversion)
“h” (not required) – Map height in pixels
“img” (not required) – URL image markers
“thover” (not required) – Text when pointing to a point
“tclick” (not required) – Text when clicking on a point
Example:
[MapOnePoint id="m1" type="hybrid" lon="55.75197479670444" lat="37.617726067459024" zoom="5" h="200" img="http://site.ru/1.png" thover="Text when pointing to a point" tclick="Text when clicking on a poin. Some text"]
Adds Yandex or Google map with many points
[MapManyPoints id=”” type=”” lat=”” lon=”” zoom=”” h=”” img=”” points=””]
“id” (required) – unique id
“type” (not required) – map layer (roadmap, satellite, hybrid, terrain)
“lon” (required) – longitude of the center of the map
“lat” (required) – latitude of the center of the map
“mstyle” (not required) – style of maps (default, blackwhite, blackout, сolorinversion)
“h” (not required) – Map height in pixels
“img” (not required) – URL image markers
“points” – [lat point 1],[lon point 1],[text on hover 1],[text on click 1];[lat point 2],[lon point 2],[text on hover 2],[text on click 2] and so on…
Example:
[[MapManyPoints id="m2" type="roadmap" lat="25" lon="30" zoom="2" h="250" points="25,-1,Text on hover this point, Text on click this point;-5,13,Text on hover this point, Text on click this point"]
