Add option to process GPX extensions nodes

Fixes #1791.
This commit is contained in:
Erik Timmers
2014-07-19 23:58:48 +02:00
parent 8e106a2c98
commit 0309a620ea
2 changed files with 68 additions and 2 deletions

View File

@@ -1244,6 +1244,25 @@ olx.format.GMLOptions.prototype.multiSurface;
olx.format.GMLOptions.prototype.schemaLocation;
/**
* @typedef {{readExtensions: (function(ol.Feature, Node)|undefined)}}
* @api
*/
olx.format.GPXOptions;
/**
* Callback function to process `extensions` nodes.
* To prevent memory leaks, this callback function must
* not store any references to the node. Note that the `extensions`
* node is not allowed in GPX 1.0. Moreover, only `extensions`
* nodes from `wpt`, `rte` and `trk` can be processed, as those are
* directly mapped to a feature.
* @type {function(ol.Feature, Node)}
*/
olx.format.GPXOptions.prototype.readExtensions;
/**
* @typedef {{featureNS: string,
* featureType: string,