Skip to main content

Type Alias: CutlineBboxProps

CutlineBboxProps = object

Defined in: cutline-bbox.ts:4

Props for the CutlineBbox shader module.

Properties

bbox

bbox: [number, number, number, number]

Defined in: cutline-bbox.ts:18

Axis-aligned clip region in deck.gl common space (world units), packed as [minX, minY, maxX, maxY]. This must be in the same coordinate space as the layer's mesh positions attribute — for COGLayer / RasterLayer's Web Mercator rendering path, that is deck.gl common space.

Project a WGS84 lng/lat bbox to common space once at bbox definition time with deck.gl's WebMercatorViewport.projectPosition (or @math.gl/web-mercator's lngLatToWorld). Do not convert per frame: getUniforms here is a pass-through, but luma.gl calls it on every setProps (i.e. every draw), so any projection placed in it would run each animation frame.