[WordPress] 外掛分享: ACF OpenStreetMap Field

WordPress 外掛 ACF OpenStreetMap Field 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「ACF OpenStreetMap Field」是 2019-07-04 上架。
  • 目前有 8000 個安裝啟用數。
  • 上一次更新是 2024-12-22,距離現在已有 133 天。
  • 外掛最低要求 WordPress 4.8 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 23 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

podpirate |

外掛標籤

map acf openstreetmap leaflet |

內容簡介

使用 ACF 輕鬆使用 OpenStreetMap。

使用方法
在欄位群組編輯器中:

回傳格式:

原始資料將返回一個包含欄位配置的陣列。

Leaflet JS 將返回一個完全功能的 Leaflet 地圖。只需在你的主題中包含 即可。
您可以從長列表中選擇地圖樣式,並支持多個標記。

iFrame(OpenStreetMap.org)將返回一個 iFrame HTML。只支援四種地圖樣式
- 你可以在OpenStreetMap上找到它們 - 同時僅支援不超過一個標記。

地圖外觀:在編輯器中對地圖進行平移和縮放,從地圖圖層中選擇初始地圖位置和樣式。

地圖位置:如果您更喜歡數字,這裡您可以輸入地圖位置的數值。

允許圖層選擇:允許編輯器在前端選擇要顯示的地圖圖層。

高度:前端和編輯器中的地圖高度。

最大標記數量
- 沒有值:無限制的標記數量
- 0:沒有標記
- 其他任何值:最大標記數量。如果回傳格式是 iFrame,則只能有一個標記。

開發

請前往 GitHub 上的原始碼 Github。

聲明

當然是 Eliott Condon 的 ACF!
OpenStreetMap 計畫
Leaflet Project
Leaflet providers 的 維護人員和貢獻者
同樣的,Leaflet Control Geocode 的 維護人員和貢獻者
Dominik Moritz 為我們帶來了 Leaflet locate control
眾多提供優質地圖相關服務的個人和組織免費提供。 (我希望你們可以在地圖中紀錄你們的貢獻)

原文外掛簡介

Hazzle free OpenStreetMap with ACF.
Usage
In the Fieldgroup editor:
Return Format:

Raw data will return an array holding the field configuration.

Leaflet JS will return a fully functional leaflet map. Just include in your Theme.
You can choose from a long list of map styles and it supports multiple markers.

iFrame (OpenStreetMap.org) Will return an iFrame HTML. Only four map styles are supported
– the ones you find on OpenStreetMap – and not more than one marker.

Map Appearance: Pan and zoom on the map and select from the Map layers to set the initial map position and style in the editor.
Map Position: If you’re more like a numbers person here you can enter numeric values for the map position.
Allow layer selection: Allow the editors to select which map layers to show up in the frontend.
Height: Map height in the frontend and editor.
Max. number of Markers
– No value: infinite markers
– 0: No markers
– Any other value: Maximum number of markers. If the return format is iFrame there can ony be one marker.
Map Proxy
The plugin comes with a proxy mechanism for map tiles. If enabled the Browser will load the tiles from your server rather than directly from the tile provider.
Use the proxy to hide sensitive credentials from the users out there or if you have to comply with local privacy regulations. the European GDPR.
Development
Please head over to the source code on Github.
Credits

ACF for sure!
The OpenStreetMap project
The Leaflet Project
The maintainers and contributors of Leaflet providers
The very same for Leaflet Control Geocode
Dominik Moritz who delighted us with Leaflet locate control
Numerous individuals and organizations who provide wonderful Map related services free of charge. (You are credited in the map, I hope)
The proxy feature was inspired by an article by Klaus Meffert, Dr. DSGVO Blog, Link (German)

各版本下載點

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

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


1.0.0 | 1.0.1 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.1.7 | 1.1.8 | 1.1.9 | 1.2.0 | 1.2.1 | 1.2.2 | 1.3.0 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.5 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | 1.5.0 | 1.5.1 | 1.5.2 | 1.5.3 | 1.5.4 | 1.5.5 | 1.5.6 | 1.5.7 | 1.6.0 | 1.6.1 | trunk |

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

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon