Thanks for the info.
Just noticed that i managed to omit a link to the actual map page in
my previous post so i'll include a link to the latest page where i am
trying to parse the GML file here:
http://googlemapsapi.martinpearman.co.uk/user_maps/bellamallorca.dk/kort.bellamallorca.dk.20091001a/kort/gml.htm
I see Lance has tried a workaround with code such as:
var linestring=mark.getElementsByTagName("LineString");
if(linestring.length <1){
linestring=mark.getElementsByTagName("gml:LineString");
// etc
}
I've been experimenting and added a GLog to the loop that creates the
polylines.
Outputting the 'lines' array of points from which the polylines should
be created.
The output of the GLog statement doesn't look very promising, with
what looks to be a value of 90 for all latitude values:
(90, 141.1708000000217),(90, 134.0680000000284),(90,
133.75599999999395),(90, 137.5),(90, 142.49200000002747)
Give the map sidebar (underneath the map) a click, sidebar links that
do anything seem to pan the map off to 90 degrees north so i wonder if
GeoXml is not converting the GML coords properly...
Loading the map in IE7 i get an alert that says: 'SRSname =EPSG:25831;
attempting to create transform'.
I don't get that alert in any other browser; i've tried FF3, Opera 10,
latest Chrome and Safari 4.
So i'm no further forward.
Can GeoXml handle the coordinate format used in the GML file i wish to
render?
Martin.
PS My aim is only to extract the polyline routes from the GML so if
anyone has any idea how to do so without using GeoXml i'd be very
interested to hear!
On 2 Oct, 10:48, Andrew Leach <[email protected]> wrote:
> On Oct 1, 4:00 am, Martin <[email protected]> wrote:
>
>
>
> > I can see in Firebug's console that both functions processing() and
> > processGML() are passing an undefined value in their arguments for
> > what should be a GLatLng value.
>
> > Has anyone got any ideas to help me get GeoXml working and extract the
> > polyline data from the GML file?
>
> This is probably one for Lance, but geoxml.js contains lines like
> this:
> coordset=mark.getElementsByTagName("gml:coordinates");
> which won't work in Firefox. Firefox doesn't understand namespaces in
> the same way as IE, and would need something like
> coordset=mark.getElementsByTagNameNS("http://www.opengis.net/
> gml","coordinates");
>
> KML doesn't use a namespace in the same way [with the exception of
> Google's gx: extension], so Firefox is happy with getElementsByTagName
> ().
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---