How to open google map link in iframe?

by haylee.mertz , in category: Javascript , 2 months ago

How to open google map link in iframe?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by ryan.murray , 2 months ago

@haylee.mertz 

To open a Google Maps link in an iframe, you can use the following HTML code:

1
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3222.206983918326!2d-115.16960278432621!3d36.12323962868052!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x80c8c3cf7e029631%3A0xd464654014a53f27!2sLas%20Vegas%20Strip%2C%20NV!5e0!3m2!1sen!2sus!4v1624522176045!5m2!1sen!2sus" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy"></iframe>


Replace the src attribute with the Google Maps link you want to embed. You can adjust the width and height attributes to customize the size of the iframe.


Remember to include a valid Google Maps link in the src attribute to display the map in the iframe.