The Advanced Google Map is a collection of new settings added to the ACF Google Map Field that allow developers to have more control over the field behavior. This new settings also include a live preview of the field to show how it will be rendered in the post edit screen.
Setting name | Description |
Map Preview | Live preview of the current map settings |
Center | Center of the initial map, with latitude and longitude coords |
Height | The map height |
Zoom | Initial zoom level, minimum & maximum allowed zoom |
Maker Image | Custom image upload for the map marker |
Map Type | Define default map type: Map, Terrain, or both |
Hide UI | Hide all UI settings (Zoom control, Map Type, Fullscreen & Streetview) |
Hide Zoom Control | Hide zoom control UI |
Hide Map Type | Hide map type selection |
Hide Fullscreen | Hide fullscreen UI button |
Hide Streetview | Hide streetview UI button |
Map Style | Apply custom map style in json format. Compatible with Snazzy Maps. |
API Key | Define Google Maps API key for this map |
It is possible to retrieve the field settings such as Height, Marker Image, Map Style etc… to use them on the front-end with the get_field_object()
helper function. See documentation.