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