Advanced Custom Fields: Leaflet Field

Advanced Custom Fields: Leaflet Field Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 5,967 downloads
Advanced Custom Fields: Leaflet Field Icon

Try plugin: Advanced Custom Fields: Leaflet Field

We'll create fresh WordPress site with Advanced Custom Fields: Leaflet Field installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Advanced Custom Fields: Leaflet Field

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

3


1


0


0


3

updated: 10 years ago
since: 11 years ago
author: Jens Nilsson

Description

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.