Embed google maps in IE

I am trying to make a simple Google map, but it does not work in Internet Explorer. I went to Google maps, clicked the link button, and then copied and pasted the paste code. It works in all other browsers. Does anyone know how to make it work in IE? I find it hard to believe that Google will just make the embed code incompatible.

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=2220+Haine+Drive,+Suite+45+78550&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=44.744674,107.138672&amp;ie=UTF8&amp;hq=&amp;hnear=2220+Haine+Dr,+Harlingen,+Cameron,+Texas+78550&amp;view=map&amp;z=14&amp;ll=26.176442,-97.667951&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=2220+Haine+Drive,+Suite+45+78550&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=44.744674,107.138672&amp;ie=UTF8&amp;hq=&amp;hnear=2220+Haine+Dr,+Harlingen,+Cameron,+Texas+78550&amp;view=map&amp;z=14&amp;ll=26.176442,-97.667951" style="color:#0000FF;text-align:left">View Larger Map</a></small> 

this is in IE8. The card works when I switch to compatibility mode. I don’t think that users of the site even knew which compatibility mode, so I want to find out how this can work.

+4
source share
2 answers

This is more of a hack, but I think you can use

 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> 

to say IE8 to emulate IE7.

0
source

simple: just find the ll parameter in iframe src ... ll is the center position of the map. Therefore, find another coordinate on the Google map that is slightly larger or lower than your main marker. copy the new coordinates and change ll to src ... So, when you show / hide the map, you see that your marker is centered, or at least somewhere on the map

0
source

Source: https://habr.com/ru/post/1342892/


All Articles