On Sep 17, 3:35 pm, "[email protected]" <[email protected]> wrote: > On Sep 17, 3:31 pm, "[email protected]" <[email protected]> > wrote: > > > On Sep 17, 10:05 am, cfmarr <[email protected]> wrote: > > > > Trying to make a simple map that creates a polyline from my XML data > > > and I can't seem to make it work in v3. I am sure it is a simple > > > solution, any help is appreciated. > > > >http://www.hairymedia.com/hdtrails/fttm/html/html5.html > > > Have you tried fixing the javascript errors? > > > There is no GDownloadUrl in v3. > > Also: Your code is looking for: > xmlDoc.documentElement.getElementsByTagName("Trackpoint"); > points[i].getElementsByTagName("LatitudeDegrees")), > points[i].getElementsByTagName("LongitudeDegrees")) > > None of which occur in your xml. That has elements named "trkpt" with > _attributes_ lat and lon (you need to get them with getAttribute, not > getElementByTagName.
This example may help you: http://www.geocodezip.com/v3_GenericMapBrowser.asp?filename=SteveFossett.xml It parses xml with polylines with elements named "point" with attributes lat and lng. -- Larry > > -- Larry -- 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.
