Read/write GPX parser. Create a new instance with the OpenLayers.Format.GPX constructor.
OpenLayers. | Read/write GPX parser. |
Properties | |
extractWaypoints | {Boolean} Extract waypoints from GPX. |
extractTracks | {Boolean} Extract tracks from GPX. |
extractRoutes | {Boolean} Extract routes from GPX. |
extractAttributes | {Boolean} Extract feature attributes from GPX. |
Constructor | |
OpenLayers. | Create a new parser for GPX. |
Functions | |
read | Return a list of features from a GPX doc |
extractSegment | |
parseAttributes |
read: function( doc )
Return a list of features from a GPX doc
doc | {Element} |
An Array of OpenLayers.Feature.Vectors
extractSegment: function( segment, segmentType )
segment | {DOMElement} a trkseg or rte node to parse |
segmentType | {String} nodeName of waypoints that form the line |
{OpenLayers.Geometry.LineString} A linestring geometry
Return a list of features from a GPX doc
read: function( doc )
extractSegment: function( segment, segmentType )
parseAttributes: function( node )