Move Options to ol/format/EsriJSON

This commit is contained in:
Tim Schaub
2018-03-11 16:03:30 -06:00
parent a926332113
commit a7c5ae1ca3
3 changed files with 7 additions and 22 deletions

View File

@@ -5,20 +5,6 @@
let olx;
/**
* @typedef {{geometryName: (string|undefined)}}
*/
olx.format.EsriJSONOptions;
/**
* Geometry name to use when creating features.
* @type {string|undefined}
* @api
*/
olx.format.EsriJSONOptions.prototype.geometryName;
/**
* @typedef {{featureClass: (function((ol.geom.Geometry|Object.<string, *>)=)|
* function(ol.geom.GeometryType,Array.<number>,

View File

@@ -1,11 +1,4 @@
/**
* @typedef {Object} format_EsriJSONOptions
* @property {string|undefined} geometryName Geometry name to use when creating features.
*/
/**
* @typedef {Object} format_MVTOptions
* @property {undefined|function((ol.geom.Geometry|Object.<string,*>)=)| function(ol.geom.GeometryType,Array.<number>,

View File

@@ -48,13 +48,19 @@ GEOMETRY_WRITERS[GeometryType.MULTI_LINE_STRING] = writeMultiLineStringGeometry;
GEOMETRY_WRITERS[GeometryType.MULTI_POLYGON] = writeMultiPolygonGeometry;
/**
* @typedef {Object} Options
* @property {string|undefined} geometryName Geometry name to use when creating features.
*/
/**
* @classdesc
* Feature format for reading and writing data in the EsriJSON format.
*
* @constructor
* @extends {ol.format.JSONFeature}
* @param {olx.format.EsriJSONOptions=} opt_options Options.
* @param {module:ol/format/EsriJSON~Options=} opt_options Options.
* @api
*/
const EsriJSON = function(opt_options) {