Webflow sync, pageviews & more.
NEW

How can I fix the issues with implementing a custom Google Maps system on my Webflow contact page? The map is not loading correctly, and I am having trouble specifying the correct location coordinates.

TL;DR
  • Ensure your Google Maps API key is valid, has Maps JavaScript API enabled, is correctly restricted to your Webflow domain, and billing is active.
  • Use correct decimal coordinates and embed the map via Webflow’s Embed Element; troubleshoot using browser console errors if the map doesn’t load.

When a custom Google Maps integration fails on your Webflow contact page, it's usually due to missing API settings, incorrect coordinates, or improper embed integration. Here’s how to fix it step by step.

1. Verify Your Google Maps API Key

  • Ensure you have a valid API key from the Google Cloud Console.
  • Your API key must have Maps JavaScript API enabled in the API restrictions.
  • Make sure HTTP referrers (websites) are correctly set under Application Restrictions—this should include your published Webflow domain (e.g., https://yourdomain.webflow.io/*).

2. Check API Billing & Quotas

  • Google Maps requires active billing on your Google Cloud project.
  • Go to Billing > Account Settings and make sure payments are enabled.
  • Also, ensure your API quota has not been exceeded in the Quotas section of the Cloud Console.

3. Correct Map Embed or Script Setup

  • If you're embedding using an iframe from Google Maps:
  • Go to Google Maps, search your location, click Share > Embed a map, and paste that into an Embed element in Webflow.
  • Make sure the iframe src URL includes proper coordinates (e.g., https://www.google.com/maps/embed?... with the !3dLAT!4dLNG parameters).
  • If you’re using the Google Maps JavaScript API:
  • Implement your JavaScript inside a Before tag embed in Webflow’s Page Settings.
  • Make sure the script tag references your API key as ...maps.googleapis.com/maps/api/js?key=YOUR_API_KEY.

4. Use Correct Coordinates Format

  • Latitude and longitude must be in decimal format, not DMS (Degrees, Minutes, Seconds).
  • Example: Correct format is 37.7749, -122.4194 (San Francisco).
  • You can get coordinates in decimal format by right-clicking on the location in Google Maps and selecting “What’s here?” — the coordinates appear at the bottom.

5. Check for JavaScript Console Errors

  • Open your live site in Chrome, right-click > Inspect > Console.
  • Look for errors like:
  • “Google Maps JavaScript API error: InvalidKeyMapError” — means your API key is wrong or not authorized.
  • “RefererNotAllowedMapError” — means your HTTP restrictions don’t include your domain.

6. Use Webflow-Compatible Embed

  • Only use Embed elements in Webflow’s Designer to insert map iframes or script-based maps.
  • Avoid placing full HTML structures directly in a CMS rich text field, as Webflow may strip necessary tags.

Summary

To fix map loading issues: ensure your Google Maps API key is valid, billing is enabled, coordinates are correct in decimal format, and embed the map properly using Webflow’s Embed Element or JavaScript integration in Page Settings. Check your browser console for live error messages to diagnose further.

Rate this answer

Other Webflow Questions