Aha!! Such a silly mistake. Thanks so much guys - all working great now. Really appreciate the help!
On Oct 29, 6:32 pm, Chris Broadfoot <[email protected]> wrote: > Hi Colin, > > Best way to run a debugger or insert a lot of console.log calls to debug > problems like these. I did just this, and found that you're passing in your > lat & long the wrong way around when you construct a LatLng inside > setMarkers. > > Swap these around and your app works great. > > Cheers > Chris > > > > > > > > On Fri, Oct 29, 2010 at 5:25 AM, unxposed <[email protected]> wrote: > > 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/in... > > > 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]<google-maps-js-api-v3%2B > > [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- 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.
