Probably best to be patient for more than a few hours for a response... There are plenty of developers here willing to help you.
Simply construct a google.maps.Marker and add it to the map inside the loop in your AJAX callback. On Thu, Oct 28, 2010 at 11:14 AM, unxposed <[email protected]>wrote: > Any ideas? Thanks. > > On Oct 28, 3:16 pm, unxposed <[email protected]> wrote: > > Hi, > > > > Link:http://labs.unxposed.net/democraticvoiceburma/elections/! > > > > I'm trying to pass markers from a json file so instead of: > > > > var incidents = [ > > [19.766704, 96.097412, "Something happened", "violence", > "<p>html > > goes here</p>", "Location", "Datetime", "Name", 1], > > [19.766704, 95.097412, "Something else", "violence", > "<p>html goes > > here</p>", "Location", "Datetime", "Name", 2], > > [19.766704, 94.097412, "Revered white elephant caught in > Burma", > > "violence", "<p>Only the third white elephant,....</p>", "Sandway, > > Arakan State", "10/10/10", "Name", 3] > > ]; > > > > I want something like: > > > > var incidents = new Array(); > > $.getJSON('../json/incidents.json', function(data) { > > $.each(data.incident, function(i, incident){ > > incidents.push([incident.Lat, incident.Lng, > incident.Title, > > incident.Type, incident.Content, incident.Location, incident.Datetime, > > incident.Author, incident.Zindex]); > > }); > > }); > > > > But this isn't working. > > > > Thanks > > -- > 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%[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.
