The first tab “General” of the Settings Page contains Google Maps settings. These settings are global, so all maps of the plugin will use them.
To use the Google Maps you must have an API key. The API key is a unique identifier that is used to authenticate requests associated with your project for usage and billing purposes. To get an API key:
- Go to the Google Cloud Platform Console.
- Click the project drop-down and select or create the project for which you want to add an API key.
- Click the menu button and select APIs & Services > Credentials.
- On the Credentials page, click Create credentials > API key.
- The API key created dialog displays your newly created API key.
- Click Close. The new API key is listed on the Credentials page under API keys. (Remember to restrict the API key before using it in production.)
This tab contains the following options:
- Google Maps Browser API Key – Set the key for Google Maps API and Google Places API.
- Google Maps Server API Key – Set the key for Google Geocoding API.
- Type Address – Here you can specify how accurately the project location is displayed.
- Exact. The project details will display the exact address and real coordinates of the project.
- Approximate. The exact address and real coordinates of the project will be hidden. The project details will show the city or district of the project. The marker on the map will be randomly displayed within one mile of the real address, so your users will only see approximate coordinates.
- The map zoom (0-20) – At low zoom levels, a small set of map tiles covers a wide area; at higher zoom levels, the tiles are of higher resolution and cover a smaller area. Specify zoom level as an integer. The following list shows the approximate level of detail you can expect to see at each zoom level:
- 1: World
- 5: Landmass/continent
- 10: City
- 15: Streets
- 20: Buildings