Implement GPX parser (read/write).

Implement a parser for GPX which supports read and write.
This commit is contained in:
Bart van den Eijnden
2013-05-17 15:59:12 +02:00
parent 02ba8a86e6
commit dc922b4ffa
8 changed files with 1643 additions and 0 deletions

View File

@@ -340,6 +340,31 @@
* geometries. Default is `false´. This only applies to GML version 3.
*/
/**
* @typedef {Object} ol.parser.GPXOptions
* @property {string|undefined} creator The creator attribute to be added to
* the written GPX files. Defaults to `OpenLayers´.
* @property {string|undefined} defaultDesc Default description for the
* waypoints/tracks in the case where the feature has no 'description'
* attribute. Default is 'No description available'.
* @property {boolean|undefined} extractAttributes Should we extract attributes
* from the GPX? Default is `true´.
* @property {boolean|undefined} extractWaypoints Extract waypoints from GPX.
* Default is `true´.
* @property {boolean|undefined} extractTracks Extract tracks from GPX.
* Default is `true´.
* @property {boolean|undefined} extractRoutes Extract routes from GPX.
* Default is `true´.
*/
/**
* @typedef {Object} ol.parser.GPXWriteOptions
* @property {Array.<ol.Feature>|ol.Feature} features The features to write
* out.
* @property {Object|undefined} metadata Metadata key/value pair with keys:
* name, desc and author.
*/
/**
* @typedef {Object} ol.source.BingMapsOptions
* @property {string|undefined} culture Culture.