Move Options to ol/format/Polyline

This commit is contained in:
Tim Schaub
2018-03-11 22:05:19 -06:00
parent 7f6c4ef6cf
commit 5d5aa6c96d
3 changed files with 11 additions and 36 deletions

View File

@@ -5,31 +5,6 @@
let olx;
/**
* @typedef {{factor: (number|undefined),
* geometryLayout: (ol.geom.GeometryLayout|undefined)}}
*/
olx.format.PolylineOptions;
/**
* The factor by which the coordinates values will be scaled.
* Default is `1e5`.
* @type {number|undefined}
* @api
*/
olx.format.PolylineOptions.prototype.factor;
/**
* Layout of the feature geometries created by the format reader.
* Default is `ol.geom.GeometryLayout.XY`.
* @type {ol.geom.GeometryLayout|undefined}
* @api
*/
olx.format.PolylineOptions.prototype.geometryLayout;
/**
* @typedef {{
* defaultDataProjection: ol.ProjectionLike,

View File

@@ -1,13 +1,4 @@
/**
* @typedef {Object} format_PolylineOptions
* @property {number|undefined} factor The factor by which the coordinates values will be scaled.
* Default is `1e5`.
* @property {ol.geom.GeometryLayout|undefined} geometryLayout Layout of the feature geometries created by the format reader.
* Default is `ol.geom.GeometryLayout.XY`.
*/
/**
* @typedef {Object} format_TopoJSONOptions
* @property {ol.ProjectionLike} defaultDataProjection Default data projection. Default is `EPSG:4326`.

View File

@@ -13,6 +13,16 @@ import {flipXY} from '../geom/flat/flip.js';
import {inflateCoordinates} from '../geom/flat/inflate.js';
import {get as getProjection} from '../proj.js';
/**
* @typedef {Object} Options
* @property {number|undefined} factor The factor by which the coordinates
* values will be scaled. Default is `1e5`.
* @property {ol.geom.GeometryLayout|undefined} geometryLayout Layout of the
* feature geometries created by the format reader. Default is `ol.geom.GeometryLayout.XY`.
*/
/**
* @classdesc
* Feature format for reading and writing data in the Encoded
@@ -20,8 +30,7 @@ import {get as getProjection} from '../proj.js';
*
* @constructor
* @extends {ol.format.TextFeature}
* @param {olx.format.PolylineOptions=} opt_options
* Optional configuration object.
* @param {module:ol/format/Polyline~Options=} opt_options Optional configuration object.
* @api
*/
const Polyline = function(opt_options) {