Class: AtlasManager

ol/style/AtlasManager~AtlasManager


import AtlasManager from 'ol/style/AtlasManager';

Manages the creation of image atlases.

Images added to this manager will be inserted into an atlas, which will be used for rendering. The size given in the constructor is the size for the first atlas. After that, when new atlases are created, they will have twice the size as the latest atlas (until maxSize is reached).

If an application uses many images or very large images, it is recommended to set a higher size value to avoid the creation of too many atlases.

new AtlasManager(opt_options)

style/AtlasManager.js, line 58
Name Type Description
options

Options.

Name Type Default Description
initialSize number 256

The size in pixels of the first atlas image.

maxSize number

The maximum size in pixels of atlas images. Default is webgl/MAX_TEXTURE_SIZE or 2048 if WebGL is not supported.

space number 1

The space in pixels between images.