Move Options to ol/format/EsriJSON
This commit is contained in:
@@ -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>,
|
||||
|
||||
@@ -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>,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user