export default GPX; export type Options = { /** * 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. */ readExtensions?: ((arg0: Feature, arg1: Node) => void) | undefined; }; export type LayoutOptions = { /** * HasZ. */ hasZ?: boolean | undefined; /** * HasM. */ hasM?: boolean | undefined; }; /** * @typedef {Object} Options * @property {function(Feature, Node):void} [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} LayoutOptions * @property {boolean} [hasZ] HasZ. * @property {boolean} [hasM] HasM. */ /** * @classdesc * Feature format for reading and writing data in the GPX format. * * Note that {@link module:ol/format/GPX~GPX#readFeature} only reads the first * feature of the source. * * When reading, routes (``) are converted into LineString geometries, and * tracks (``) into MultiLineString. Any properties on route and track * waypoints are ignored. * * When writing, LineString geometries are output as routes (``), and * MultiLineString as tracks (``). * * @api */ declare class GPX extends XMLFeature { /** * @param {Options} [options] Options. */ constructor(options?: Options | undefined); /** * @type {function(Feature, Node): void|undefined} * @private */ private readExtensions_; /** * @param {Array} features List of features. * @private */ private handleReadExtensions_; } import Feature from '../Feature.js'; import XMLFeature from './XMLFeature.js'; //# sourceMappingURL=GPX.d.ts.map