AW: [OpenLayers-Users] Re: ErrorLoadingGML

Arnd Wippermann arnd.wippermann at web.de
Sun Feb 12 12:56:29 EST 2012


Hi,

There is nothing wrong with your code, but you zoom to the wrong location.

If you zoom out, you should see your track at Ashley Down.


By the way, do you used nabble.com to deliver the post. 
Because the most interesting part of your post between </title> and </head>
I have to search there.

Arnd





-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von GrahamWade
Gesendet: Sonntag, 12. Februar 2012 16:26
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] Re: ErrorLoadingGML

Sorry, I noticed that unless my post is viewed "in context" you cannot see
the code so here it is again. I posted it in "raw" as the list seems to
reformat the code so that it is unreadable. 

Please help someone.

My code is 


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link rel="icon" href="./favicon.ico" type="image/x-icon"> <link
rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
    <title>Bristol Map</title>
    
        

    
    
</head>

<body onload="init();">
    
    <div style="width:100%; height:95%" id="map"></div> </body> </html>


and my grx file contains 

<?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-tp4376555p4462143.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list