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.