[WordPress] 外掛分享: Advanced Custom Fields: Multiple Coordinates

前言介紹

  • 這款 WordPress 外掛「Advanced Custom Fields: Multiple Coordinates」是 2013-10-23 上架。
  • 目前有 20 個安裝啟用數。
  • 上一次更新是 2014-06-09,距離現在已有 3981 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.4.0 以上版本才可以安裝。
  • 有 4 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

web111se |

外掛標籤

acf | admin | Google Maps | custom field | advanced-custom-field |

內容簡介

這個外掛是由Stupid Studio修改延伸出來的「進階自訂欄位:座標」版本,可於此處找到:
https://wordpress.org/plugins/advanced-custom-fields-coordinates/

本軟體採用GNU通用公共授權條款第3版進行授權。有關詳細內容,請參見附帶於本軟體中的gpl.txt檔案。

此外掛程式相依於Google Maps API,不使用API金鑰,因此在符合免費Google Maps API限制下操作,對於大部分的後端使用需求應該是足夠的。

使用方法

當您使用ACF(進階自訂欄位)建立新的自訂欄位時,將欄位類型設定為多重座標地圖。現在當您編輯帶有自訂欄位的文章時,座標選擇工具應該會顯示出來。

此工具在每次點擊地圖時新增一個點,若要移除該點,請選擇「移除座標」按鈕並點擊點。您也可以使用「在地圖上顯示範圍」按鈕以多邊形的方式在地圖上顯示點,並且使用「顯示座標」按鈕以分號分隔的清單形式來顯示實際座標。搜尋欄位僅提供快速尋找地圖上不同的地方,並不用於新增實際座標點。

為了在前端獲取座標資料,只需請求欄位值,並將座標以緯度、經度的陣列形式加以回傳,同時也可取得所在的縮放大小,如以下範例。

$values = get_field('*****FIELD_NAME*****');
print_r($values);
/* 您將會獲得像以下範例一樣的陣列
Array
(
[coords] => Array
(
[0] => Array
(
[lat] => 57.156363766336
[lng] => 16.364327427978
)
[1] => Array
(
[lat] => 57.159612809986
[lng] => 16.370315551758
)
)
[zoom] => 13
)
*/
?>

原文外掛簡介

The plugin is a modified extended version of the Advanced Custom Fields: Coordinates made by Stupid Studio and is found here:
https://wordpress.org/plugins/advanced-custom-fields-coordinates/
This software is licensed under the GNU General Public License version 3. See
gpl.txt included with this software for more detail.
The plugin relies on the Google Maps API. It does not use an API-key and is
therefore operating under the restrictions of the free Google Maps API,
which should be plenty for most backend usage.
Usage
When you create a new custom field with ACF, set the field type to
Multiple Coordinates map. Now the coordinates chooser should show up when you edit
a post with your custom fields.
The tool add a point on each click on the map. To remove the point you select the “Remove Coordinate” button and click a point.
You can also show the points as a Polygon on the map with the “Show area on map” button and show the actual coordinates in a semi-colon
separated list with the “Show coordinates” button. The search field is only there to quickly take you to different places on the map. Not
to add the actual points.
To get the coordinates data in your frontend, simply request the field value
and in return you get the coordinates in a latitude, longitude array and the zoom as in the sample below.
Array
(
[0] => Array
(
[lat] => 57.156363766336
[lng] => 16.364327427978
)
[1] => Array
(
[lat] => 57.159612809986
[lng] => 16.370315551758
)
)
[zoom] => 13
)
*/
?>

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Advanced Custom Fields: Multiple Coordinates」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • WP Go Maps (formerly WP Google Maps) 》這是一款易於使用的 Google 地圖和 Open Layers 地圖外掛程式(包括地圖區塊)!, 使用提供的短代碼,快速輕鬆地向 WordPress 文章和/或頁面添加自定義 Googl...。
  • Widgets for Google Reviews 》iews plugins:, , Facebook Reviews Bundle - display Facebook business reviews on your website using official Facebook API, Yelp Reviews Bundle - dis...。
  • iframe 》, 高級 iFrame Pro, iframe, 捐贈, GitHub, , [iframe src=”http://www.youtube.com/embed/oDlbBy9vfgI” width=”100%” height=̶...。
  • WP Maps – Display Google Maps Perfectly with Ease 》這是一款專為WordPress設計的最先進但簡單易用的Google地圖外掛程式。使用它可以輕鬆創建多個美觀、現代化且可響應式的Google地圖,支持多個位置、自定義標記...。
  • WP Store Locator 》WP Store Locator 是一款功能強大且易於使用的位置管理系統。, 您可以自定義地圖外觀,並為輸入項目提供自定義標籤。, 使用者可以透過半徑範圍進行結果篩選,...。
  • API KEY for Google Maps 》該外掛可以將 Google Maps API KEY 添加到任何佈景主題或外掛中。, 只需啟用外掛,轉到設定 > Google API KEY 並輸入您的 KEY 即可。, 然後,外掛將嘗試在您...。
  • Snazzy Maps 》Snazzy Maps可以輕鬆地為您現有的 Google 地圖添加風格。, 功能特色, , 瀏覽數百種免費風格。, 快速應用風格到您的 WordPress 網站上所有的 Google 地圖。, ...。
  • MapPress Maps for WordPress 》MapPress 是將互動式 Google 和 Leaflet 地圖添加到 WordPress 網站的最簡單方法。, 使用 Gutenberg 區塊或傳統編輯器創建無限的地圖和標記。彈出式地圖編輯...。
  • Maps Widget for Google Maps 》厭倦了有漏洞和速度緩慢的 Google 地圖外掛需要花費數小時才能設置完成嗎?使用 Maps Widget for Google Maps,您只需幾分鐘即可擁有完美的地圖縮略圖和燈箱...。
  • WP Map Block – Gutenberg Map Block for Google Map and OpenStreet Map by aBlocks 》最方便的方式使用 Gutenberg 地圖區塊來導入 Google 地圖和 OpenStreetMap 地圖。, WP Map Block 提供簡單易用的使用者介面,讓您能在 WordPress 網站中加入 ...。
  • Map Block for Google Maps 》你正在使用 Gutenberg 編輯器,需要一個地圖嗎?這款地圖區塊插件就是為你而設!安裝、啟用、加入內容,這些就是全部步驟!沒有繁瑣的設置,功能清晰易用 - ...。
  • Easy Google Maps 》WordPress Easy Google Maps, , WordPress 簡易 Google 地圖, 如何使用簡易 Google 地圖, 簡易 Google 地圖演示, , 使用 WordPress 繪製易於 Google 地圖,只...。
  • TCD Google Maps 》TCD Google Maps 提供簡單的短代碼以顯示 Google 地圖。您可以將短代碼放置於文章、頁面或文字小工具中,以顯示各種風格的 Google 地圖。, 多樣的設計, 方便...。
  • Simple Map 》使用gmaps.js輕鬆嵌入 Google 地圖的外掛程式。, 這個外掛程式允許您將地址轉換成類似下面的 Google 地圖:, [map]加州舊金山[/map], , 另一種方法是只用 URL...。
  • Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps) 》到 2020 年 1 月,Maps Marker 外掛的免費版本已經退役。雖然仍然可用,但只會加入偶爾的安全更新,不再增加新功能和修正錯誤。我們建議升級到 Maps Marker P...。

文章
Filter
Apply Filters
Mastodon