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

-- 
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.

Reply via email to