Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps Embed into Site without Popup window

I'm using the following code to embed a Google map into my page:

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Chicago+IL&z=15&iwloc=A&output=embed

This works fine, but when it loads this it automatically opens up a box with the address and get directions etc. Is there anyway to load this without having the popup window load as well?

like image 775
user1048676 Avatar asked Mar 21 '12 17:03

user1048676


People also ask

How do I get rid of popups on Google Maps?

Long-press on the Google Maps app icon, then tap the “i” (information) button. This will take you directly to the “App info” page. Here, all of those notifications are divided into separate categories, so you can scroll through the categories and deactivate whole sections of unessential notifications.

Can I embed a Google Map in my website?

Open Google Maps. Go to the directions, map, or Street View image you'd like to embed. Click Share or embed map. Click Embed map.


1 Answers

I just had to change the value of iwloc to be near. So now the embed URL looks like this:

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Chicago+IL&z=15&iwloc=near&output=embed
                                                                            ^^^^^^^^^^

This allows the pop up window to not appear.

like image 157
user1048676 Avatar answered Nov 14 '22 20:11

user1048676