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

@@ -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) {