On Jun 1, 5:25 am, Old learner <[email protected]> wrote:
> This works on IE - though not always on the first attempt. Click
> refresh and it then works.

I got the gmarkers[i] is undefined error in IE6 also the first time I
loaded the page.

GDownloadUrl is asynchronous.

When you call your setcentre function from here:
     if (zoom > 0 ){mapcentre(mrker,zoom)}

The markers haven't been created yet. (It works in IE after the first
time because GDownloadUrl pulls the data from the cache)

Call the mapcentre function in the GDownloadUrl callback function,
after the  gmarkers array has been populated.

  -- Larry


>
> However, Firefox says that gmarkers[i] is undefined. I'm getting upset
> because this is vital to my concept.
>
> http://www.paphosinfo.com/AreaMap.htm?mark=8&zoom=18 is the url with
> the extra request which should center the map on my marker.
>
> Can someone tell me what I've done wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to