ACF: Google Map Field (Multiple Markers)

plugin banner

A Google Map field that allows you to add multiple markers to it.

Author:Rajiv Lodhia (profile at wordpress.org)
WordPress version required:4.7
WordPress version tested:6.0
Plugin version:1.0.5
Added to WordPress repository:28-07-2021
Last updated:08-06-2022
Rating, %:100
Rated by:2
Plugin URI:https://wordpress.org/plugins/acf-google-map-...
Total downloads:2 551
Active installs:300+
plugin download
Click to start download

A new field type for Advanced Custom Fields (ACF) that allows you to place multiple markers and choose multiple locations all on a single map field, resulting in a cleaner admin UI, better user experience for the CMS user and fewer Google Map API loads. The field will display the address for each map marker below the map so it’s even more manageable.

This field type solves the problem of only being able to select one location with the standard ACF Google Map field.
To choose multiple locations, you’d normally be required to use a repeater field with a Google Map field in it. This can quickly become chaotic and difficult to keep track of/manage.

Compatibility

This ACF field type is compatible with:
* ACF 5

Usage Instructions

On the new Google Maps (Multiple Markers) field, you can:
– LEFT CLICK on the map to place a new marker
– RIGHT CLICK on a marker to remove it
– CLICK AND DRAG a marker around on the map
– SEARCH for a place or address in the search box
– HOVER over an address in the address list below the map to see which pin it corresponds to
– LEFT CLICK on the trash icon on a row in the address list to remove it’s corresponding marker.

Google Maps API

Your Google Maps API key will need the following APIs enabled:
– Geocoding API
– Places API
– Maps JavaScript API

Credits

This is a modified/enhanced version of the standard ACF Google Map plugin, so some of the Javascript code derives from the original field. Credit for the original of this ACF field goes to the developers of Advanced Custom Fields.


Screenshots
ChangeLog