Skip to main content

Interface: SecondaryTileResolution

Defined in: packages/deck.gl-raster/src/multi-raster-tileset/secondary-tile-resolver.ts:43

Result of resolving secondary tiles for a primary tile.

See

resolveSecondaryTiles

Properties

minCol

minCol: number

Defined in: packages/deck.gl-raster/src/multi-raster-tileset/secondary-tile-resolver.ts:93

The minimum column index of the secondary tile range.

Used when stitching: tells you where each fetched tile goes in the stitched buffer (tile at column col starts at pixel (col - minCol) * tileWidth).


minRow

minRow: number

Defined in: packages/deck.gl-raster/src/multi-raster-tileset/secondary-tile-resolver.ts:102

The minimum row index of the secondary tile range.

Used when stitching: tells you where each fetched tile goes in the stitched buffer (tile at row row starts at pixel (row - minRow) * tileHeight).


stitchedHeight

stitchedHeight: number

Defined in: packages/deck.gl-raster/src/multi-raster-tileset/secondary-tile-resolver.ts:84

The total stitched texture height in pixels.

Equals the number of tile rows in the covering range times the secondary tile height. For example, if 2 tiles of 256px tall are fetched, stitchedHeight is 512.


stitchedWidth

stitchedWidth: number

Defined in: packages/deck.gl-raster/src/multi-raster-tileset/secondary-tile-resolver.ts:75

The total stitched texture width in pixels.

Equals the number of tile columns in the covering range times the secondary tile width. For example, if 2 tiles of 256px wide are fetched, stitchedWidth is 512.


tileIndices

tileIndices: SecondaryTileIndex[]

Defined in: packages/deck.gl-raster/src/multi-raster-tileset/secondary-tile-resolver.ts:51

The secondary tile indices that cover the primary tile's extent.

When the primary tile falls within a single secondary tile, this array has one element. When the primary tile straddles a boundary, it may contain multiple entries that must be stitched together.


uvTransform

uvTransform: UvTransform

Defined in: packages/deck.gl-raster/src/multi-raster-tileset/secondary-tile-resolver.ts:66

UV transform: [offsetX, offsetY, scaleX, scaleY].

Maps from the primary tile's UV space [0,1]^2 to the correct sub-region of the stitched secondary texture.

Usage in shader: sampledUV = uv * scale + offset

  • offsetX, offsetY: top-left corner of the primary tile's footprint within the stitched texture, in UV units.
  • scaleX, scaleY: fraction of the stitched texture covered by the primary tile.

z

z: number

Defined in: packages/deck.gl-raster/src/multi-raster-tileset/secondary-tile-resolver.ts:110

Zoom level index into TilesetDescriptor.levels.

All tiles in tileIndices come from this same level. Tells the consumer which COG overview to fetch from.