Add a Google Maps key

Google Maps is free to use with your own API key (Google’s generous free tier covers most sites). Here’s how to create one and add it.

Create the key

  1. Open the Google Cloud Console and create (or select) a project.
  2. Enable the Maps JavaScript API.
  3. Under Credentials, create an API key.
  4. Restrict the key to your site’s domain (HTTP referrers) for safety.
Create the key

Add it to WP Map Block

  1. Go to Maps → Settings.
  2. Paste the key into the Google Maps API key field.
  3. Save — Google is now selectable in any map’s Provider panel.
Google Maps API key 

Seeing a grey map or “For development purposes only”? The key is missing, unrestricted incorrectly, or billing isn’t enabled on the Google project. See Troubleshooting.