Webflow sync, pageviews & more.
NEW

How can I change the map location or coordinates in the code using Webflow map clone?

TL;DR
  • Locate the embedded map code in the Page settings or Embed element.
  • Update the latitude and longitude in the JavaScript or iframe URL with your desired coordinates.
  • Save changes and publish the site to apply the new map location.

If you're using a Webflow map clone (like a Google Maps embed with custom code), you can change the map location or coordinates by editing the embedded custom code in the Webflow project.

1. Locate the Embedded Map Code

  • Go to Pages in the Webflow Designer.
  • Select the Page Settings (gear icon) of the page containing the map.
  • Scroll to the Before tag custom code section (or check the Embed element on the canvas if the map was added via an Embed block).

2. Identify Latitude and Longitude Coordinates

  • Look for a line like:
    center: { lat: 40.7128, lng: -74.0060 } — this is typical for Google Maps JavaScript.
  • Alternatively, in a URL embed (e.g., using an <iframe>), it might look like:
    https://www.google.com/maps/embed?...&center=40.7128,-74.0060

3. Update the Location

  • For JavaScript-based embeds (via Google Maps API):
  • Replace the lat and lng values with your desired coordinates.
  • Example:
    center: { lat: 51.5074, lng: -0.1278 } for London.
  • For iframe-based embeds:
  • Update the center, q, or coordinate parameter in the URL.
  • Example for Google Maps iframe:
    ...src="https://www.google.com/maps/embed?...&q=51.5074,-0.1278"

4. Save and Publish

  • Click Save in the page settings or exit the Embed element.
  • Publish your site to see the updated map live.

Summary

To change the map location in a Webflow map clone, locate the embedded code (either in an Embed block or page settings), find the existing coordinates or location URL, replace them with new latitude and longitude values, then publish your site to see the update.

Rate this answer

Other Webflow Questions