Skip to main content

Configure Google Maps

This page provides instructions to integrate Google Maps for using the Map Widget in your applications on a self-hosted instance.

Prerequisites

Generate Google Maps API key (optional)

If you already have an API key, skip to the Set up Maps API key section. Otherwise, follow these steps to generate an API key:

  1. Log into the Google Cloud console.
  2. Generate a Google Maps API key by following the Create API keys guide.
  3. Restrict the Google Maps API key using the Restrict API keys guide.
  4. Ensure that Maps Embed API, Maps JavaScript API, Places API, and Geolocation API are enabled during the API key restriction process.

Configure Maps API key

To configure the API key via Admin Settings, follow these steps:

Attention

If an API key is configured using an environment variable, it takes precedence over the value set via Admin Settings. To configure using environment variables, see the Google Maps API key environment variable reference.

  1. Log into your Appsmith instance.

  2. Go to Admin Settings by clicking the gear (⚙️) icon in the top right corner of your Appsmith Dashboard.

  3. Click the Developer settings from the sidebar.

    Google Maps API Key.
    Add your Google Maps API Key
  4. Enter your API key in the Google Maps API Key field.

  5. Click Save to apply the changes.

You're all set to use the Map Widget in your Appsmith applications.

Troubleshooting

If you face issues, contact the support team using the chat widget at the bottom right of this page.

See also