Move Options to ol/format/GPX
This commit is contained in:
@@ -5,25 +5,6 @@
|
|||||||
let olx;
|
let olx;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef {{readExtensions: (function(ol.Feature, Node)|undefined)}}
|
|
||||||
*/
|
|
||||||
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)|undefined}
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
olx.format.GPXOptions.prototype.readExtensions;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{featureNS: (Object.<string, string>|string|undefined),
|
* @typedef {{featureNS: (Object.<string, string>|string|undefined),
|
||||||
* featureType: (Array.<string>|string|undefined),
|
* featureType: (Array.<string>|string|undefined),
|
||||||
|
|||||||
@@ -1,15 +1,4 @@
|
|||||||
|
|
||||||
/**
|
|
||||||
* @typedef {Object} format_GPXOptions
|
|
||||||
* @property {function(ol.Feature, Node)|undefined} readExtensions 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {Object} format_WFSOptions
|
* @typedef {Object} format_WFSOptions
|
||||||
* @property {Object.<string, string>|string|undefined} featureNS The namespace URI used for features.
|
* @property {Object.<string, string>|string|undefined} featureNS The namespace URI used for features.
|
||||||
|
|||||||
@@ -17,13 +17,25 @@ import {createElementNS, makeArrayPusher, makeArraySerializer, makeChildAppender
|
|||||||
OBJECT_PROPERTY_NODE_FACTORY, parseNode, pushParseAndPop, pushSerializeAndPop,
|
OBJECT_PROPERTY_NODE_FACTORY, parseNode, pushParseAndPop, pushSerializeAndPop,
|
||||||
setAttributeNS} from '../xml.js';
|
setAttributeNS} from '../xml.js';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} Options
|
||||||
|
* @property {function(ol.Feature, Node)|undefined} readExtensions 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @classdesc
|
* @classdesc
|
||||||
* Feature format for reading and writing data in the GPX format.
|
* Feature format for reading and writing data in the GPX format.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.format.XMLFeature}
|
* @extends {ol.format.XMLFeature}
|
||||||
* @param {olx.format.GPXOptions=} opt_options Options.
|
* @param {module:ol/format/GPX~Options=} opt_options Options.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const GPX = function(opt_options) {
|
const GPX = function(opt_options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user