[WordPress] 外掛分享: Posts in Map

首頁外掛目錄 › Posts in Map
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
4781 天前
最後更新
問題解決
WordPress 3.0+ v0.3 上架:2012-12-02

內容簡介

新增簡碼 [gmap],以便在文章中插入帶有進階功能(疊加、群集、回呼、事件等)的 Google 地圖,並將帶有自訂欄位的地理定位的文章放置在地圖上。

為了在地圖上檢視文章,您可以使用以下自訂欄位:
* geolocation:將文章的 GPS 座標設置在這裡。
* marker:在此處設置標記圖示的 URL。 (選擇性)

為了在文章中查看地圖,您可以使用以下簡碼:
[gmap width=w height=h border=b posttype=p taxonomy=t term=r maxpost=m centermap=c animate=a]

其中
* w,h 是地圖的大小(默認為 500px 和 300px)
* b 是地圖邊框的 CSS 樣式(默認為棕色實線)
* p 是發布類型(默認為文章)
* r 是分類法 t 的分類詞,用於篩選文章(默認為所有文章,沒有分類法篩選)
* m 是在地圖中顯示的文章的最大數量
* c 是地圖中心的 GPS 坐標
* a 為 0 不顯示動畫標記,1 為顯示下落標記,2 為顯示跳動標記

有關更多信息,請訪問http://gmap3.net/

Javascript 由Jean-Baptiste DEMONTE提供。

即將推出

文章自訂欄位,以使用面積替代標記
文章中使用地址而非坐標的自定義欄位
簡碼,以在自訂欄位中查看地圖底部的地理定位

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Posts in Map」→ 直接安裝(推薦)

原文外掛簡介

Add short code [gmap] to insert in post a google map with advanced features (overlays, clusters, callbacks, events…) and place geolocalized post (with custom fields) in this map
To view post in map, you use this custom field :
* geolocation : set here GPS coordinates for post
* marker : set here url for marker icon. (optional)
To view map in a post, you use this short code ;
[gmap width=w height=h border=b posttype=p taxonomy=t term=r maxpost=m centermap=c animate=a]
where
* w,h are size of map (default is 500px and 300px)
* b is css-like style for map border (default is brown solid line)
* p is post-type (default is post)
* r is a term for taxonomy t to filter post (default is all post, without taxonomy filter)
* m is max number of post view in map
* c il gps coordinates of centre of map
* a is 0 for not animated marker, 1 for drop marker, 2 for bouncing marker
For more information visit http://gmap3.net/
Javascript by Jean-Baptiste DEMONTE.
Coming soon

custom field for post to use area instead marker
custom field to use address in geolocalized post instead coordinates
short code to view map bottom custom field geolocation

延伸相關外掛

文章
Filter
Apply Filters
Mastodon