div#map
).data-lat
and data-lng
attributes.Yes, you can create a dynamic map in Webflow that displays pins based on CMS collection items (e.g., showing multiple store locations for a selected company). However, it requires custom JavaScript and an external map service like Google Maps or Mapbox, as Webflow does not support native dynamic maps with CMS integration.
div
with the ID “map”.before </body>
custom code area in Project Settings or inside a page Embed block).data-
attributes on a simple element like a div
.Example:
div
with class="store-location"
and custom attributes like:data-lat="47.6205"
data-lng="-122.3493"
, write JavaScript to:
.store-location
elements.data-lat
and data-lng
values.data-
attributes.While Webflow doesn’t natively support dynamic maps linked to CMS data, you can integrate Google Maps or Mapbox and use custom JavaScript to dynamically read store data from CMS Collection Lists. This allows you to display pins for multiple stores tied to a selected company on its detail page.