If you have a field containing addresses or latitude-longitude coordinates, the map block allows you to plot your records on one of three different kinds of maps. Please note that you need a working Google Maps API key to use this block.
Watch this video to learn more about how to set up and use a map block, or read on for further information.
To get started with the map block, there are a few configuration steps (don’t worry, it should only take a minute or two):
- Pick a table whose records you want to display on the map.
- Pick the field that contains the addresses or coordinates you want to plot.
- Pick a cache field. This block needs to save some additional information for each address in order to display markers on the map. We recommend creating a new “Single line text” field and hiding it. If you install multiple map blocks onto the same base, you can share the cache field between them.
- Enter a Google Maps API key.
To get a Google Maps API key:
- Go here, click "Get a key" and follow the instructions to create a new project.
- Once you’re on this screen, copy the API key. Then click "API Console":
- From there, click "Dashboard" in the left sidebar and then click "Enable API"
When you've finished these steps, your API key will be enabled, and you can paste it into your map block. Once you've finished configuring your block, your records will start appearing on the map.
Once your map block is set up and configured, if you update an address in your table, it will automatically move the marker on the map.
You can toggle between three different map themes: Light, Map, and Satellite.
Clicking on a marker will bring up some information about that record, and you can click "Expand record" to view the entire record.
If you want to check out a ground-level view of where a record is, zoom into the marker for that record and drag the pegman to it: