Getting started with the Maps Layout
With the Maps Layout, a View shows its entries as markers on a Google map, placed by each entry’s address.
Note: The Maps Layout is included with GravityView Pro and the GravityKit All Access Pass.
On a GravityView + Extensions (Legacy) license, Maps is a separate plugin. About the “GravityView + Extensions (Legacy)” license shows how to install it.
If the separate Maps plugin is still installed on your site, Moving from separate extensions to GravityView Pro explains how to remove it.
Video walkthrough #
Turning Maps on or off #
Maps is built into GravityView Pro, so there is nothing to install. To turn it off or back on:
- Go to Plugins and click Features in the GravityView Pro row.
- Click Turn off or Turn on in the Maps row.

While the separate Maps plugin is active, it runs instead of the built-in copy.
Adding your Google Maps API keys #
The map needs a Google Maps Maps Key, which shows the map to visitors, and a Geocoding Key, which turns addresses into map positions. Setting up Google Maps API keys for GravityView Maps explains how to create both in Google Cloud.
- Go to GravityKit, then Settings.
- Click GravityView Maps in the list on the left.
- Enter your keys in Maps Key and Geocoding Key, then click Save Settings.

Adding an Address field to your form #
The map places each entry using an Address field from your form. Add the Address field outside any Repeater field, since the map can’t use an Address field that holds a separate address for each row of a Repeater.
- Go to Forms, and click the title of your form.
- Under Advanced Fields, click Address.
- Click Save Form.

If your form keeps the address in another field type, such as Single Line Text, a code snippet can point the map to that field. How can I pull the address from a field type that is not Address? has the snippet.
Creating a View with the Maps Layout #
- Go to GravityKit, then New View.
- Enter a name for the View, and choose your form under Data Source.
- Under Choose a View Type, hover over Map and click Select.

- Add the fields to show for each entry, such as the business name under Listing Title and the city under Details.
- In the Settings box, click the Maps tab. Address Fields already shows your form’s Address field. It lists every Address field of the form except one inside a Repeater field.

- Under Geocoding, select Enable automatic geocoding, so the View can place each entry on the map by its address. Without it, the map doesn’t show.
- Click Publish.
The Maps tab also holds these settings:
- Default Pin Icon: the icon of the markers. Select Icon opens a list of icons to choose from.
- Map Position: whether the map appears above, below, or beside the entries.
- Map Type: Street, Satellite, Hybrid, or Terrain.
- Info Box Settings: with Enable info boxes on, clicking a marker opens a box with a View Details link to the entry’s page. It is off for a new View.
Adding a map to another layout #
A View on another layout, such as Table or DataTables, can show a map too. Click Add Widget in the View editor and choose Multiple Entries Map.

Showing the map on your site #
Add the View to a page with the GravityView View block, as Embedding a View on a page or post shows. Each entry appears as a marker on the map.

A new View has Show only approved entries turned on in its View Settings tab. If entries are missing, Why View entries may not be showing up explains how to approve them.
Troubleshooting #
If the map doesn’t look right, start with these: