A results map displays the locations supplied by a directory form. Enable its placement in Page Load Results and Form Submission, then use Map Settings to configure its appearance.
Enable the map in the intended state
Initial results and submitted results have separate Results Map choices. Select the supported automatic placement, disable it, or choose shortcode placement. For a separately positioned map, use the saved form ID:
[gmw map="123"]
A map shortcode still depends on that form's data, component and map-display settings. It does not independently query every location on the site.
Width and height
Map width and Map height accept CSS dimensions, such as 100% and 400px. A percentage width works well inside a responsive container. A percentage height needs a parent with a defined height; an explicit pixel height is easier to verify.
Check that the map has room on a phone and does not overwhelm the search/results controls. A map inside a hidden tab, modal or collapsed container may need the integration's resize handling when revealed.
Map type and zoom
Choose a provider-supported map type. Auto Zoom fits the displayed markers. A numeric zoom uses a fixed view around the search-origin marker when available. Higher zoom values show a smaller area in more detail.
Auto Zoom changes the view, not the radius or query. To find a wider set of results, change the search distance or filters. A global directory with many locations can be better served by the Global Maps extension than a very large standard result page.
Extended map settings
Premium Settings adds supported controls such as maximum zoom, southwest/northeast view boundaries and map controls. Google-only options and custom map styles depend on Google Maps; the Snazzy Maps selector additionally requires its integration.
Map boundaries restrict the view; do not use them as an access-control or content-filtering rule. A maximum zoom also does not remove coordinates from page data or make a precise location private. Decide what location data to publish before adding it to a public directory.
Verify the map
- Check initial and submitted searches separately.
- Compare markers with the expected result items.
- Open a marker and confirm its details and destination.
- Test zoom, scrolling and touch interaction.
- Check empty results and provider/network errors.
If the list works but the map is blank, check its dimensions, enabled state, provider credentials and browser errors. If both are empty, verify the query and saved locations first.
