views:

1174

answers:

1

I'm using the new Google Maps API v3.

It works great with Firefox/Chromo/Safari but the map doesn't load in IE6.

My map can be found here: http://tinyurl.com/ykzwb2

Any ideas why the page loads my map in all browsers except IE6?

+1  A: 

Just replace this code

var marker = new google.maps.Marker({
    position: point,
    map:      map,
    icon:     image,
});

to this

var marker = new google.maps.Marker({
    position: point,
    map:      map,
    icon:     image
});

(line 509)

antyrat
Many, many thanks! Do you mind explain how you found that bug?
mp_
@mp_: it's a known issue in JScript, Microsoft's implementation of ECMAScript.
NickFitz
I had to read through it 3 times to find the difference! Drop the last comma.
Robert
Running the code through an IDE like Intellij IDEA will give you big highlights showing this kind of typo.
Gary Rowe