How can I create an interactive map in Webflow with a marker as the logo, the ability to change map colors, zoom in, and have multiple markers on one map?

TL;DR
  • Choose Mapbox or Google Maps, create an account, and get an API key.  
  • Design a custom marker using your logo and upload it.  
  • Add an Embed element in Webflow with the map script, inserting coordinates, zoom level, styles, and custom markers.  
  • Style the map using Mapbox Studio or Google Maps JSON styles.  
  • Make the map responsive using a fixed aspect ratio or Webflow’s Aspect Ratio feature.

To create an interactive map in Webflow with custom markers, color styles, zoom functionality, and multiple location pins, you'll need to integrate a third-party map tool like Mapbox or Google Maps using Webflow's Embed element.

​

1. Choose a Map Provider (Mapbox or Google Maps)

​

  • Mapbox is highly customizable, with drag-and-drop map styling and easy marker customization.
  • Google Maps has broader global coverage but requires API billing setup and is more limited in terms of styling unless done in code.

​

2. Set Up a Map Account & Get an API Key

​

  • Mapbox: Go to mapbox.com, create an account, and generate a public access token from your dashboard.
  • Google Maps: Go to console.cloud.google.com, create a project, enable the Maps JavaScript API, and generate an API key.

​

3. Design Your Custom Marker (Using a Logo)

​

  • Use your company logo or icon in PNG or SVG format.
  • Upload the image to your Webflow Assets panel or use a direct link from a CDN.

​

4. Add Embed Code to Webflow

​

  • Go to your Webflow project > Open the Page > Drag in an Embed element where you want the map to appear.
  • Paste the required map embed code (from Mapbox or Google Maps), replacing default marker icons with your logo URL, add zoom controls, and define coordinates for multiple markers.

​

5. Customize Map Colors and Styles

​

  • Mapbox: Use the Mapbox Studio to create a custom style with your color choices. Copy the style URL and use it in your map embed code.
  • Google Maps: Use a JSON style object from Snazzy Maps and include it in your map script.

​

6. Set Zoom Level and Add Multiple Markers

​

  • Within the embed code:
  • Zoom is set using a numerical value (lower means zoomed out, higher means zoomed in).
  • Multiple markers can be added by defining an array of coordinates and looping to create markers.

​

7. Responsiveness and Mobile

​

  • Place your map inside a div block with a fixed aspect ratio (e.g., 16:9) using padding trick (padding-top: 56.25%) or use Webflow’s Aspect Ratio feature to make it responsive.
  • Ensure the map canvas has width: 100% and height: 100%, and the container has a defined height.

​

Summary

​

To build an interactive map in Webflow with custom logo markers, zoom, multiple pins, and color customization:

​

  • Use Mapbox for easier styling and full customization.
  • Add markers with your logo image.
  • Customize map colors via Mapbox Studio or Google Maps JSON styles.
  • Use Webflow’s Embed element to integrate the map script and display it responsively.

​

Let me know if you want an example embed code using Mapbox or Google Maps.

Rate this answer

Other Webflow Questions