Stencil Layer Mask Spec
data class StencilLayerMaskSpec(val layers: List<StencilMaskLayerRef> = emptyList(), val mode: StencilMaskCombineMode = StencilMaskCombineMode.ALL, val invert: Boolean = false, val clipBounds: LatLonBounds? = null)
GLES stencil mask built from one triangle mesh per referenced vector layer, combined per mode. Up to MAX_STENCIL_MASK_LAYERS entries are supported (one stencil bit per slot in the non-sequential combine path; typical GLES stencil buffers expose 8 bits — see MAX_STENCIL_MASK_LAYERS).
Alternatively (or additionally), clipBounds fills a stencil slot from an axis-aligned lat/lon rectangle intersected with each tile — no vector tiles required (e.g. mask to the continental US).
Constructors
Link copied to clipboard
constructor(layers: List<StencilMaskLayerRef> = emptyList(), mode: StencilMaskCombineMode = StencilMaskCombineMode.ALL, invert: Boolean = false, clipBounds: LatLonBounds? = null)