
內容簡介
使用gmaps.js輕鬆嵌入 Google 地圖的外掛程式。
這個外掛程式允許您將地址轉換成類似下面的 Google 地圖:
[map]加州舊金山[/map]
另一種方法是只用 URL 嵌入 Google 地圖,就像 oEmbed 一樣。
您還可以使用經緯度,設置寬度、高度和縮放級別:
[map lat="37.77493" lng="-122.41942"]
您想要的文字
在這裡出現
作為工具提示
的內容
[/map]
在這種情況下,地圖上將有一個標記,單擊該標記會出現工具提示。
您可以將簡單的 HTML 用作工具提示內容。
這個外掛程式在 GitHub 上維護。
一些功能:
允許您基於簡碼嵌入 Google 地圖。
可以使用地址或經緯度添加標記。
自動顯示 iPhone 用的靜態地圖。
支援 oEmbed。
參數
width:地圖的寬度。默認值為「100%」。
height:地圖的高度。默認值為「200px」。
zoom:地圖的縮放級別。默認值為「16」。
breakpoint:如果顯示窄於此值,則此外掛程式將顯示靜態地圖。默認值為「480」。
addr:要放置地圖的地址。
lat:要放置地圖的緯度。
lng:要放置地圖的經度。
infowindow:如果您想要預設開啟 infoWindow,請設置「open」。
map_type_control:「True」或「Flase」。
map_type_id:「ROADMAP」或「SATELLITE」或「HYBRID」或「TERRAIN」。
如果您設置了經緯度和地址,此外掛程式將優先使用經緯度。
過濾器
此外掛程式具有一些用於自定義的過濾器。
simplemap_default_width
simplemap_default_height
simplemap_default_zoom
simplemap_default_breakpoint
simplemap_default_infowindow
add_filter( 'simplemap_default_zoom', function(){
return 10; // 默認縮放級別為10
} );
翻譯
日語(ja) - Takayuki Miyauchi
請聯繫我。
https://github.com/miya0001/simple-map/issues
貢獻者
Takayuki Miyauchi
Zoltán Balogh
Takanobu Watanabe
Shinichi Nishikawa
nissuk
學分
這個外掛程式沒有保證,不過 WordPress 的使用者可以自由免費使用這個外掛程式,而不受任何用途的限制。
作者必須了解,操作保證和支援並未預先進行。
聯繫方式
Twitter @miya0001
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Easy way to embed google map(s) using gmaps.js.
This plugin allows you to convert address into google maps like below:
[map]San Francisco, California[/map]
Another way, you can embed Google Map with url only like oEmbed.
You can also use coordinates, set width, height and zoom:
[map lat="37.77493" lng="-122.41942"]
Text you would
like to appear
as a tooltip
goes here
[/map]
In this case there will be a marker on the map with a tooltip appearing on click on the said marker.
You can use simple html as the tooltip content.
This plugin is maintained on GitHub.
Some features:
Allows you to embed google map based on shortcode.
Markers can be added using address or lat/long.
Displays static map for iPhone automatically.
oEmbed Support.
Arguments
width: Width of the map. Default value is “100%”.
height: Height of the map. Default value is “200px”.
zoom: Zoom of the map. Default value is “16”.
breakpoint: If display is narrower than this value, this plugin will display static map. Default value is “480”.
addr: Address of the map you want to place.
lat: Lat of the map you want to place.
lng: Lng of the map you want to place.
infowindow: If you want to open infoWindow by Default, please set “open”.
map_type_control: True or Flase.
map_type_id: ‘ROADMAP’ or ‘SATELLITE’ or ‘HYBRID’ or ‘TERRAIN’.
If you will set lat/lng and address, this plugin gives priority to lat/lng.
Filter Hooks
This plugin has some filter hooks for customize default.
simplemap_default_width
simplemap_default_height
simplemap_default_zoom
simplemap_default_breakpoint
simplemap_default_infowindow
add_filter( ‘simplemap_default_zoom’, function(){
return 10; // Default zoom is 10
} );
Translators
Japanese(ja) – Takayuki Miyauchi
Please contact me.
https://github.com/miya0001/simple-map/issues
Contributors
Takayuki Miyauchi
Zoltán Balogh
Takanobu Watanabe
Shinichi Nishikawa
nissuk
Credits
This plugin is not guaranteed though the user of WordPress can freely use this plugin free of charge regardless of the purpose.
The author must acknowledge the thing that the operation guarantee and the support in this plugin use are not done at all beforehand.
Contact
twitter @miya0001
