I am new to openlayers (and java script for that matter) and am trying to display a trace on a map. When I try and load the page I get an error dialog which says "ErrorLoadingGML" with no other information and the trace is not displayed. My markers file loads okay and both the markers and the trace file appear on the layers list. I have checked the grx file using SAXCount from the xerces distribution and it thinks that the grx file is okay.
I have opened the file from the file system and using IIS7, using IE8,IE9 and Chrome as the browers and in all cases I get the same error. Sorry if this is a silly question but I am new to this and have spent 3 weeks trying to get this to work. My code is / / and my grx file contains <i<raw>><?xml version='1.0' encoding='UTF-8'?> <gpx version="1.1" creator="JOSM" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> <trk><name>Bristol Track</name><number>1</number><trkseg> <trkpt lat="51.477347" lon="-2.586134"><time>2009-05-17T10:01:00Z</time></trkpt> <trkpt lat="51.477801" lon="-2.586410"><time>2009-05-17T10:02:00Z</time></trkpt> <trkpt lat="51.480128" lon="-2.581647"><time>2009-05-17T10:03:00Z</time></trkpt> <trkpt lat="51.478352" lon="-2.579621"><time>2009-05-17T10:04:00Z</time></trkpt> <trkpt lat="51.473864" lon="-2.581343"><time>2009-05-17T10:05:00Z</time></trkpt> </trkseg></trk> </gpx>/ -- View this message in context: http://osgeo-org.1560.n6.nabble.com/ErrorLoadingGML-tp4376555p4376555.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
