Webflow sync, pageviews & more.
NEW

What should I do if I use the map component in Webflow and want maps to continue loading properly after July 1st?

TL;DR
  • Create a Google Cloud project, enable the Maps JavaScript API, generate an API key, and add billing information.
  • Replace Webflow’s native map component with a custom Embed element using iframe code from Google Maps and secure your API key with restrictions.

If you're using Webflow's native map component with Google Maps, you'll need to take action before July 1st, 2024, due to Google requiring billing information and API keys for all map usage.

1. Understand What’s Changing

  • Google is ending support for free, unauthenticated access to Maps (i.e., usage without an API key).
  • Webflow’s native map component relies on this unauthenticated method.
  • After July 1st, embedded maps using the default component will break or not load unless configured with a valid API key.

2. Create a Google Cloud Account

3. Enable the Maps JavaScript API

  • Within your project dashboard, click APIs & Services > Library.
  • Search for Maps JavaScript API and enable it.

4. Generate an API Key

  • Navigate to APIs & Services > Credentials.
  • Click Create Credentials > API key.
  • Copy the generated API key for use in Webflow.

5. Add Billing Information

  • Google now requires billing details to use Maps, even if you stay under the free tier.
  • Go to Billing > Link a billing account and follow the steps to set it up.
  • Google provides $200 in free usage per month per account, which covers many small-use cases.
  • Under APIs & Services > Credentials, click your API key.
  • Set Application restrictions (e.g., HTTP referrers) to prevent misuse.
  • Under API restrictions, choose Maps JavaScript API.

7. Switch to a Custom Embed in Webflow

  • As Webflow’s map component doesn’t currently support API keys, you must manually embed the map using an Embed element.
  • Go to Google Maps, search your location, click Share > Embed a map, then copy the iframe.
  • Paste it into a Webflow Embed element inside your layout.

Summary

To ensure your Google Maps continue working in Webflow after July 1st, you must create a Google Maps API key, enable billing, and switch from Webflow’s default map component to a custom Embed element with your own iframe. This change is necessary due to Google’s enforcement of authenticated API usage.

Rate this answer

Other Webflow Questions