That makes sense - you mean like this
http://labs.unxposed.net/democraticvoiceburma/elections/media/js/maps.js
?

I have done that but I still have the same problem - only one icon is
appearing. I'm at a bit of a loss - does my json file look okay?
http://labs.unxposed.net/democraticvoiceburma/elections/media/json/incidents.json

In fact I think the json file is fine as I can alert the titles in the
each loop.

Thank you.

On Oct 29, 1:08 pm, Rossko <[email protected]> wrote:
> 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