Excuse me, I kinda had similar problem and well:

Do the markers have an InfoWindow attached to them?

If that's the case, you could use the domReady event from InfoWindows.

...
from google.maps.InfoWindow class

Event / Returns / Description
domready        None    This event is fired when the <div> containing the
InfoWindow's content is attached to the DOM. You may wish to monitor
this event if you are building out your info window content
dynamically.
...

On 2 dic, 01:30, "[email protected]" <[email protected]> wrote:
> On Dec 1, 2:12 pm, mike osterhout <[email protected]> wrote:
>
> > Unfortunately it still needs a timeout... In my actual code I have the
> > setTimeout within the ajax callback function.
>
> > to be more specific I could place
>
> > markerManager.addMarker(marker, marker.minZoom, marker.maxZoom);
>
> > directly in my callback function and I will get the following error, or
> > something similar from markermanager...
> > Uncaught TypeError: Cannot call method 'fromLatLngToDivPixel' of
> > undefined
>
> > Would be better if I could only add the markers when I know
> > makermanager is ready.
>
> Sounds like you need to wait for the projection to be loaded.  I think
> I saw a post discussing this problem, but I wasn't able to find it
> with a quick search.
>
> I can't do more than speculate without a link to the patient.
>
>   -- Larry
>
>
>
>
>
>
>
>
>
> > Thanks tho.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to