跳到内容

ACF OpenStreetMap Field

v1.6.1

podpirate · 2019年7月5日 上架

A configurable OpenStreetMap Field for ACF.

正在使用
1 万+
评分
4.6 / 5
累计下载
14 万
最近更新
2024年12月22日
24 条评价需要 WordPress 4.8+已测试到 6.7.12PHP 5.6+

贡献者

截图

ACF Field Group Editor
ACF Field Group Editor
Editing the Field Value
Editing the Field Value
Display in the Frontend
Display in the Frontend
Settings page. Configure API access keys and disable specific tile layers.
Settings page. Configure API access keys and disable specific tile layers.

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 <?php the_field('my_field_name'); ?> 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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums