[WordPress] 外掛分享: ACF OpenStreetMap Field

首頁外掛目錄 › ACF OpenStreetMap Field
WordPress 外掛 ACF OpenStreetMap Field 的封面圖片
9,000+
安裝啟用
★★★★
4.6/5 分(24 則評價)
450 天前
最後更新
0%
問題解決
WordPress 4.8+ PHP 5.6+ v1.6.1 上架:2019-07-04

內容簡介

使用 ACF 輕鬆使用 OpenStreetMap。

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

回傳格式:

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

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

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
眾多提供優質地圖相關服務的個人和組織免費提供。 (我希望你們可以在地圖中紀錄你們的貢獻)

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.6.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「ACF OpenStreetMap Field」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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)

文章
Filter
Apply Filters
Mastodon