Move olx.style.AtlasManagerOptions to src/ol/style/AtlasManager
This commit is contained in:
@@ -3521,36 +3521,3 @@ olx.tilegrid.XYZOptions.prototype.minZoom;
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
olx.tilegrid.XYZOptions.prototype.tileSize;
|
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;
|
|
||||||
|
|||||||
@@ -6,6 +6,15 @@ import {UNDEFINED} from '../functions.js';
|
|||||||
import Atlas from '../style/Atlas.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.
|
* Provides information for an image inside an atlas manager.
|
||||||
* `offsetX` and `offsetY` is the position of the image inside
|
* `offsetX` and `offsetY` is the position of the image inside
|
||||||
@@ -47,7 +56,7 @@ const MAX_ATLAS_SIZE = -1;
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @struct
|
* @struct
|
||||||
* @api
|
* @api
|
||||||
* @param {olx.style.AtlasManagerOptions=} opt_options Options.
|
* @param {module:ol/style/AtlasManager~Options=} opt_options Options.
|
||||||
*/
|
*/
|
||||||
const AtlasManager = function(opt_options) {
|
const AtlasManager = function(opt_options) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user