The getJSON runs inline.
If you are lucky, the data will take long enough to fetch that the map
initialize() will have been run before it does arrive, but it's
entirely possible for the map to get initialised in the middle of your
JSON processing or even afterwards.

You ought to put your getJSON code at the end of initialize() , so
that the map is sure to have been built before you try adding things
to it.
(I thought it was already like that last time I looked, but maybe
misread)

-- 
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