src, and add loading="lazy" for better performance.To dynamically embed Google Maps for each collection item in Webflow, you can now use Webflow’s improved embed capabilities within Collection Lists to inject data like an address or coordinates into an iframe embed.
https://www.google.com/maps/embed?....
src attribute of the iframe with a Dynamic Embed.
Example:
src="https://www.google.com/maps/embed?...q=STATIC_ADDRESS"src="https://www.google.com/maps/embed/v1/place?key=YOURKEY&q=TEXTFIELD" TEXT_FIELD, click "Add Field" and insert the CMS field you created (e.g., "Map Location").
Important: Use the Google Maps Embed API (not just a directions URL). You'll need an API Key:
src like so: https://www.google.com/maps/embed/v1/place?key=YOURAPIKEY&q=dynamic_location.
loading="lazy" for Performance loading="lazy" attribute within your iframe to improve performance when dealing with hundreds of entries.
To embed Google Maps dynamically in Webflow, create a Map Location field in your CMS, use the Embed component inside a Collection List, and dynamically inject the location using the new binding features. Use the Google Maps Embed API with your own API Key and lazy-load maps to keep performance high across hundreds of directory entries.