On Aug 5, 11:31 am, GP Sietzema <[email protected]> wrote:
>
> I'm not sure what I'm doing wrong here. It does show all the markers,
> but the error is rather annoying ;)
IE6 doesn't show any markers. The problem is this line
for(id in markers) {
which doesn't loop through the markers array. That syntax enumerates
properties of an object in Javascript -- which brings its own problems
because you are using prototype.js.
Even if it did loop through array elements, the loop attempts to use
markers[id].latitude
which means that id needs to be numeric, not a marker.
Use the more standard form
for (id=0;id<markers.length-1;id++) {
instead. That will give you a numeric index to your array.
Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---