Well... i got it to work by placing the call to the markerclusterer
after the line that placed the "map loaded in " x " seconds" call...
it's working now.
Thanks a bunch for your help. I'm afraid i may still be a bit of a
"newbie" in javascript execution order... i thought a function had to
be returned before the next line would be executed, but apparently
not.
for example, if i place this:
geo();
alert("done");
i get an alert even before the map gets initialized on my screen, yet
it should wait until all the markers are loaded before giving me that
alert, but it doesn`t.
Thanks again for the help!
Cheers!
On Dec 17, 12:28 pm, MaxOvrdrv <[email protected]> wrote:
> Hey,
>
> Thank you for the help! Much appreciated.
>
> Well, i run the function to place all the markers / push them into the
> array, before calling the MarkerClusterer, in my initialize function:
>
> geo();
> cluster = new MarkerClusterer(map,mymarkers);
>
> is it possible that JScript runs the next line of code without having
> the function run through?
>
> Cheers!
>
> On Dec 17, 11:54 am, Rossko <[email protected]> wrote:
>
>
>
> > > Here's the function anyway, in case someone might be able to help.
>
> > I did scan through it quickly ; I can't see where you add your array
> > of markers to the clusterer. This is crucially important, I'd bet you
> > do it before the array has been populated asynchronously.- Hide quoted text
> > -
>
> - Show quoted text -
--
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.