[Solved] problem with google map in IE6
Posted: Mon Jul 28, 2008 3:51 pm
Hi,
I have painfully discovered that IE6 (yes...) dont displays my page with a custom google map:
http://www.mayorbeusch.ch/cms/contact
In the others browsers its perfect, but in IE6 I get an alert saying that IE is unable to display the page and dont load anything...
I put this code in the template:
Any idea what is wrong or how to make this f*** browser to display a google map correctly?
Thanks in advance for your help and your time
I have painfully discovered that IE6 (yes...) dont displays my page with a custom google map:
http://www.mayorbeusch.ch/cms/contact
In the others browsers its perfect, but in IE6 I get an alert saying that IE is unable to display the page and dont load anything...
I put this code in the template:
Code: Select all
(...)
<!-- start javascript googlemap -->
{literal}
<__script__ src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAlVoxoBw9ShhDChSJb6fu6xQmvOxX-acnWRRSaaaRlZi5KCjkwBQ3bEkpdn5_Art0PrA65cPpocXE_A"
type="text/javascript"></__script>
<__script__ type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(46.195436, 6.144619), 16);
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
var baseIcon = new GIcon();
baseIcon.image = "http://www.mayorbeusch.ch/cms/uploads/images/template/mb_GM_icone.png";
baseIcon.iconSize = new GSize(76, 60);
baseIcon.iconAnchor = new GPoint(21, 47);
markerOptions = { icon:baseIcon };
var point =new GLatLng(46.195436, 6.144619);
map.addOverlay(new GMarker(point, markerOptions));
}
}
//]]>
</__script>
{/literal}
<!-- end javascript googlemap -->
</head>
</__body onload="load()" onunload="GUnload()">
(...)Thanks in advance for your help and your time