diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 930aca200a..86ba8617c4 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -82,7 +82,7 @@ * Object literal with config options for the projection. * @typedef {Object} olx.ProjectionOptions * @property {string} code The SRS identifier code, e.g. `EPSG:4326`. - * @property {ol.proj.Units} units Units. + * @property {ol.proj.Units|string} units Units. * @property {ol.Extent|undefined} extent The validity extent for the SRS. * @property {string|undefined} axisOrientation The axis orientation as * specified in Proj4. The default is `enu`. diff --git a/src/ol/proj/proj.js b/src/ol/proj/proj.js index f65a77e90f..bf3ddc3882 100644 --- a/src/ol/proj/proj.js +++ b/src/ol/proj/proj.js @@ -77,7 +77,7 @@ ol.proj.Projection = function(options) { * @private * @type {ol.proj.Units} */ - this.units_ = options.units; + this.units_ = /** @type {ol.proj.Units} */ (options.units); /** * @private