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

TL;DR
  • Sign up for a Mapbox account, log in, and obtain an access token.
  • Remove the Google Maps embed from Webflow, add the Mapbox Embed component, and insert the modified Mapbox GL JS code with your access token.
  • Customize the map using Mapbox Studio, then publish and test in Webflow.

If you want your map component in Webflow to continue working after July 1st, you'll need to switch to Mapbox due to upcoming changes in map provider policies. Here’s how to implement this change:

1. Set Up a Mapbox Account

  • Sign up for a Mapbox account at Mapbox’s website if you don't already have one.
  • Log in to your account and navigate to the dashboard.

2. Obtain Mapbox Access Token

  • Go to the “Access Tokens” section in your Mapbox account.
  • Create a new token if one isn’t generated automatically. This token will be used to authorize requests from your Webflow site.

3. Replace Google Maps with Mapbox

  • Remove the existing Google Maps embed from your Webflow project.
  • Add an Embed component in Webflow where you want the Mapbox map to appear.

4. Embed Mapbox Map in Webflow

  • Copy the Mapbox GL JS code snippet from the Mapbox documentation.
  • Replace existing API links in the snippet with your Mapbox access token.
  • Paste the modified code into the Webflow Embed component.

5. Customize Mapbox Appearance 

  • Use Mapbox Studio to customize the map style, markers, and other elements to match your website’s design.
  • Publish and test your Webflow project to ensure the map displays and functions as expected.

Summary

To maintain map functionality after July 1st, switch to Mapbox as your map provider. Set up a Mapbox account, obtain an access token, and replace the existing map component with a Mapbox embed in Webflow. Customize the map using Mapbox Studio, ensuring it aligns with your website design.

Rate this answer

Other Webflow Questions