Move Options to ol/format/IGC

This commit is contained in:
Tim Schaub
2018-03-11 22:09:55 -06:00
parent 95e1c6f69a
commit 2ce44e8fc8
3 changed files with 10 additions and 23 deletions

View File

@@ -5,21 +5,6 @@
let olx;
/**
* @typedef {{altitudeMode: (IGCZ|string|undefined)}}
*/
olx.format.IGCOptions;
/**
* Altitude mode. Possible values are `barometric`, `gps`, and `none`. Default
* is `none`.
* @type {IGCZ|string|undefined}
* @api
*/
olx.format.IGCOptions.prototype.altitudeMode;
/**
* @typedef {{extractStyles: (boolean|undefined),
* defaultStyle: (Array.<ol.style.Style>|undefined),

View File

@@ -1,11 +1,4 @@
/**
* @typedef {Object} format_IGCOptions
* @property {IGCZ|string|undefined} altitudeMode Altitude mode. Possible values are `barometric`, `gps`, and `none`. Default
* is `none`.
*/
/**
* @typedef {Object} format_KMLOptions
* @property {boolean|undefined} extractStyles Extract styles from the KML. Default is `true`.

View File

@@ -19,13 +19,22 @@ const IGCZ = {
NONE: 'none'
};
/**
* @typedef {Object} Options
* @property {IGCZ|string|undefined} altitudeMode Altitude mode. Possible
* values are `'barometric'`, `'gps'`, and `'none'`. Default
* is `'none'`.
*/
/**
* @classdesc
* Feature format for `*.igc` flight recording files.
*
* @constructor
* @extends {ol.format.TextFeature}
* @param {olx.format.IGCOptions=} opt_options Options.
* @param {module:ol/format/IGC~Options=} opt_options Options.
* @api
*/
const IGC = function(opt_options) {