[OpenLayers-Dev] [OSM-dev] Basic GPX parser in OpenLayers

Christopher Schmidt crschmidt at metacarta.com
Thu Oct 18 09:53:57 EDT 2007


Wrote this for the OSM crowd, but might be of interest here too. (Only
took me 14 minutes total! Not that much code though, so it's not that
impressive ;))

----- Forwarded message from Christopher Schmidt <crschmidt at metacarta.com> -----

From: Christopher Schmidt <crschmidt at metacarta.com>
To: dev at openstreetmap.org
Date: Thu, 18 Oct 2007 09:36:33 -0400
Subject: [OSM-dev] Basic GPX parser in OpenLayers

I just put together a basic GPX Parser for OpenLayers: it does track
segments only, and is very limited. 

You can try it at:

http://dev.openlayers.org/sandbox/crschmidt/osm/examples/vector-formats.html

Select GPX from the dropdown, paste in a GPX doc, and hit the submit
button.

I have tried and confirmed it works with the following traces (at least
minimally):

http://www.openstreetmap.org/user/crschmidt/traces/45460
http://www.openstreetmap.org/user/roses/traces/45478

I don't know if this will make it into OpenLayers 2.6 -- if you have an
interest in seeing this in OpenLayers, expressing that interest now
would be a good way to encourage me :)

Regards,
-- 
Christopher Schmidt
MetaCarta

_______________________________________________
dev mailing list
dev at openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


----- End forwarded message -----

-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list