The ACF Google Map Field shortcode is capable of displaying a map with one or more markers.
Google Map fields assigned to a post within or without a repeater field are automatically detected and displayed as on or more markers on a single map.
Multiple markers for a given post are only displayed when viewed within a singular template. Only the first marker is displayed for a given post when displayed on a map appearing within an archive template.
[rps-framework-acf-google-map ids="" post-type="" taxonomy="" terms="" operator="AND" fields="" zoom="16" gesture-handling="auto"]
Parameters
- ids – A comma separated list of post ids.
- post-type – Any registered post type.
- taxonomy – Any registered taxonomy.
- terms – A comma separated list of taxonomy terms.
- operator – Either AND or IN depending how the query on multiple terms should be handled.
- fields – A comma separated list of ACF Google Map field ids that should be used.
- zoom – The default zoom factor for the map. This number is automatically reduced by 1 when multiple markers are displayed on a single map.
- gesture-handling – Either cooperative, greedy, none, or auto.