To use Google Maps with Webflow while preventing Google Webfonts from being loaded, follow these steps:
1. Embed Google Maps Without Webfonts
- Ensure you are embedding the Google Map in a way that does not automatically load Google Webfonts.
- Use the Google Maps Embed API or an iframe for embedding your map on your Webflow site.
2. Utilize the Embed API
- Go to Google Cloud Console and create a new project if you don't have one.
- Enable the Maps Embed API for your project.
- Generate an API key for accessing Google Maps services.
- Use the API key with an URL pattern like:
https://www.google.com/maps/embed/v1/place?key=YOURAPIKEY&q=Place+Name&avoid=tolls.
3. Custom Embed Code
- Embed custom code in your Webflow project using the embed widget.
- Write your iframe code or use the Maps Embed API URL without external loading elements that invoke Google Webfonts.
4. Verify and Test
- Make sure to publish your Webflow site and test to ensure the map loads without any errors.
- Inspect the page elements to ensure no unexpected Google Webfonts are being fetched.
Summary
Embed Google Maps on your Webflow site using the Maps Embed API or custom iframe code that directly links the map content. This approach prevents loading additional elements like Google Webfonts.