diff --git a/externs/olx.js b/externs/olx.js index ee4025f22b..15afe4bd68 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -3521,36 +3521,3 @@ olx.tilegrid.XYZOptions.prototype.minZoom; * @api */ olx.tilegrid.XYZOptions.prototype.tileSize; - - -/** - * @typedef {{initialSize: (number|undefined), - * maxSize: (number|undefined), - * space: (number|undefined)}} - */ -olx.style.AtlasManagerOptions; - - -/** - * The size in pixels of the first atlas image. Default is `256`. - * @type {number|undefined} - * @api - */ -olx.style.AtlasManagerOptions.prototype.initialSize; - - -/** - * The maximum size in pixels of atlas images. Default is - * `WEBGL_MAX_TEXTURE_SIZE` or 2048 if WebGL is not supported. - * @type {number|undefined} - * @api - */ -olx.style.AtlasManagerOptions.prototype.maxSize; - - -/** - * The space in pixels between images (default: 1). - * @type {number|undefined} - * @api - */ -olx.style.AtlasManagerOptions.prototype.space; diff --git a/src/ol/style/AtlasManager.js b/src/ol/style/AtlasManager.js index e61f2b1da4..bd4297acdc 100644 --- a/src/ol/style/AtlasManager.js +++ b/src/ol/style/AtlasManager.js @@ -6,6 +6,15 @@ import {UNDEFINED} from '../functions.js'; import Atlas from '../style/Atlas.js'; +/** + * @typedef {Object} Options + * @property {number} [initialSize=256] The size in pixels of the first atlas image. + * @property {number} [maxSize] The maximum size in pixels of atlas images. Default is + * `WEBGL_MAX_TEXTURE_SIZE` or 2048 if WebGL is not supported. + * @property {number} [space=1] The space in pixels between images. + */ + + /** * Provides information for an image inside an atlas manager. * `offsetX` and `offsetY` is the position of the image inside @@ -47,7 +56,7 @@ const MAX_ATLAS_SIZE = -1; * @constructor * @struct * @api - * @param {olx.style.AtlasManagerOptions=} opt_options Options. + * @param {module:ol/style/AtlasManager~Options=} opt_options Options. */ const AtlasManager = function(opt_options) {