Advanced Custom Fields: 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:
- Adding images to popups.
- 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.
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
- Give a name to your project
- Download the Installer Package
- Install & activate the plugin locally
- Install the suggested dependencies
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.



