跳到内容

Advanced Custom Fields: Leaflet Field

v1.2.1

jensnilsson · 2013年4月10日 上架

Addon for Advanced Custom Fields that adds a Leaflet field to the available field types.

正在使用
80+
评分
3.1 / 5
累计下载
9,049
最近更新
2014年11月5日
7 条评价需要 WordPress 3.4+已测试到 4.0.38

贡献者

截图

Leaflet field with markers, a popup, a polyline and a polygon.
Leaflet field with markers, a popup, a polyline and a polygon.
Settings for the Leaflet field.
Settings for the Leaflet field.

This plugin adds a Leaflet map field to the Advanced Custom Fields plugin. Use it to display maps with markers, lines and shapes along with your posts and pages.

  • Add multiple markers with popups to the map.
  • Draw polylines, polygons and rectangles.
  • The field stores both your zoom-level and viewport location.
  • Function to render the map in your theme is included in the plugin: <?php the_leaflet_field( 'my_leaflet_field' ); ?>, just plug and play!
  • Supports ACF4 and ACF5 (Pro)

Instructions

A rendering function is provided in the plugin. If you want to use it all you have to do is use the_leaflet_field( 'my_leaflet_field' ); where you want to render the map.

To do

Things I plan to add to the plugin:

  1. Adding images to popups.
  2. Provide a tool for importing GeoJSON-structured data into the field.

GitHub

If you want the latest development version of this plugin it is available over at my github repository. The github repository will always have the latest code and may occasionally be broken and not work at all.

Plums

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

导航

说明

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

© 2026 Plums