On Feb 20, 2:58 pm, Andrew Leach <[email protected]> wrote: > On Feb 20, 9:03 pm, opiv209 <[email protected]> wrote: > > > Thanks so much, Andrew. It mostly makes sense to me conceptually now-- > > I think I'm really close to getting it. > > var xml = GXml.parse(data); > var events = xml.documentElement.getElementsByTagName("event"); > > OK so far. Then you need to look at each event: > > for (var i=0;i<events.length;i++) { > > and get the params for each event: > var params = events[i].getElementsByTagName("param");
> > and then loop through the params collection to get the attributes you > need. Except that some of the parameter collections include multiple (and different) latitude and longitude parameters. Processing them will not be simple: - Do you want the first latitude/longitude pair in the data? - What do you want to do with the param tags inside the <duplicate> elements (they are not duplicates, at least position-wise) I would suggest you make the map work with a smaller subset of the data to start with, in IE the map is pretty unusable with the full dataset (1076 markers, even removing the duplicates, will require a clusterer or a markermanager). -- Larry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
