Larry, Thank you very much. That solved it. Wow. The GXml.value was key to cross browser compatibility. Simply tring parseFloat() fixed it Firefox but broke it in IE!
Once again thank you, especially for the quick turn around. Beast Regards. On Jul 14, 10:05 am, "[email protected]" <[email protected]> wrote: > On Jul 14, 5:28 am, wfanning <[email protected]> wrote: > > > Hi, > > > MS Internet Explorer displays this map with polyline overlay but > > Firefox and other browsers won't. Very simple (and brief!) html and > > javascript. Any suggestions? > > Did you check the javascript errors in the browsers that fail? > I see some issues that might cause problems with cross-browser > compatibility: > 1. your latitude and longitude are strings, not numbers: > var lats = xmlDoc.getElementsByTagName("Lat"); > var lons = xmlDoc.getElementsByTagName("Lon"); > ... > pts[i] = new GLatLng(lats[i].text,lons[i].text); > Use parseFloat() to change the string into a number. > > Fixing that seems to make the map work in Firefox. > I would suggest using GXml.value as a cross-browser way to get the > text content of an XML element. > > http://www.geocodezip.com/endeavorGMapD.html > > -- Larry > > > > > > >http://techserv.gso.uri.edu/gmap/endeavorGMap.html > > > The application is the cruise track of an oceanographic vessel. > > > Thank you and regards, > > Bill- Hide quoted text - > > - Show quoted text - -- 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.
