Skip to main content

Function: tilesetLevelsEqual()

tilesetLevelsEqual(a, b): boolean

Defined in: packages/deck.gl-raster/src/multi-raster-tileset/multi-tileset-descriptor.ts:143

Check if two RasterTilesetLevels have the same grid parameters.

Used to detect when sources share a tile grid and can skip UV transform computation (e.g., all 10m Sentinel-2 bands share the same grid).

Compares RasterTilesetLevel.matrixWidth, RasterTilesetLevel.matrixHeight, RasterTilesetLevel.tileWidth, RasterTilesetLevel.tileHeight, and RasterTilesetLevel.metersPerPixel.

Parameters​

a​

RasterTilesetLevel

b​

RasterTilesetLevel

Returns​

boolean