Google Maps is enforcing stricter API key requirements starting July 1st, 2024, which may prevent Webflow’s Map component from loading unless properly configured. Follow these steps to ensure your maps continue to function.
1. Enable Billing on Your Google Cloud Project
- Go to the Google Cloud Console (console.cloud.google.com).
- Navigate to Billing and ensure a valid billing account is linked to your project.
- Google provides a $200 free monthly credit, covering most low-traffic use cases.
2. Generate or Update Your Google Maps API Key
- Open the Google Cloud Console and go to APIs & Services > Credentials.
- Select an existing API key or click Create Credentials > API Key.
- Copy the key for later use.
3. Restrict Your API Key for Security
- In the API Restrictions section, select Restrict Key and choose:
- "Maps JavaScript API" (for Webflow’s Map component).
- Under Website Restrictions, add allowed domains:
- Example:
yourdomain.com
and *.yourdomain.com
- Click Save to apply changes.
4. Add the API Key to Webflow
- In Webflow, go to Project Settings > Integrations > Google Maps API Key.
- Paste your API Key in the field and Save Settings.
5. Test Your Map Component
- Publish your site and check that your map loads correctly.
- Open the browser console (F12 > Console) for any API errors.
- If errors appear, verify billing, API restrictions, and domain whitelisting.
Summary
To keep the Webflow Map component working after July 1, 2024, you need a Google Maps API key with billing enabled, domain restrictions set, and proper integration in Webflow. Updating your setup now will prevent your maps from breaking.