Move Options to ol/format/Polyline
This commit is contained in:
@@ -5,31 +5,6 @@
|
|||||||
let olx;
|
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 {{
|
* @typedef {{
|
||||||
* defaultDataProjection: ol.ProjectionLike,
|
* defaultDataProjection: ol.ProjectionLike,
|
||||||
|
|||||||
@@ -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
|
* @typedef {Object} format_TopoJSONOptions
|
||||||
* @property {ol.ProjectionLike} defaultDataProjection Default data projection. Default is `EPSG:4326`.
|
* @property {ol.ProjectionLike} defaultDataProjection Default data projection. Default is `EPSG:4326`.
|
||||||
|
|||||||
@@ -13,6 +13,16 @@ import {flipXY} from '../geom/flat/flip.js';
|
|||||||
import {inflateCoordinates} from '../geom/flat/inflate.js';
|
import {inflateCoordinates} from '../geom/flat/inflate.js';
|
||||||
import {get as getProjection} from '../proj.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
|
* @classdesc
|
||||||
* Feature format for reading and writing data in the Encoded
|
* Feature format for reading and writing data in the Encoded
|
||||||
@@ -20,8 +30,7 @@ import {get as getProjection} from '../proj.js';
|
|||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.format.TextFeature}
|
* @extends {ol.format.TextFeature}
|
||||||
* @param {olx.format.PolylineOptions=} opt_options
|
* @param {module:ol/format/Polyline~Options=} opt_options Optional configuration object.
|
||||||
* Optional configuration object.
|
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const Polyline = function(opt_options) {
|
const Polyline = function(opt_options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user