diff --git a/externs/olx.js b/externs/olx.js index b65465bfc2..ca39637278 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -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.)=)| * function(ol.geom.GeometryType,Array., diff --git a/externs/xol.js b/externs/xol.js index b37b8c250f..d1441918fc 100644 --- a/externs/xol.js +++ b/externs/xol.js @@ -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.)=)| function(ol.geom.GeometryType,Array., diff --git a/src/ol/format/EsriJSON.js b/src/ol/format/EsriJSON.js index 004c471f7f..5ad0bab99e 100644 --- a/src/ol/format/EsriJSON.js +++ b/src/ol/format/EsriJSON.js @@ -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) {