BatchFeature

class BatchFeature(var outer: DoubleArray, var holes: List<DoubleArray>, val attributes: ShapeAttributes, val zOrder: Int = 0, val pickPayload: MvtPickedFeature? = null)

One polygon feature pre-resolved into rings + style attributes. MvtVectorLayer builds this list off-thread during the tile fetch; MvtBatchedPolygonTile.assembleGeometry then turns it into GPU-friendly geometry on the render thread.

zOrder from MvtStyle.zOrderFor controls per-feature paint order within the tile. Features sort ascending; ties keep encounter order. Same-color features at different z's get separate triangle buckets, so an interleaving feature can paint between them.

Constructors

Link copied to clipboard
constructor(outer: DoubleArray, holes: List<DoubleArray>, attributes: ShapeAttributes, zOrder: Int = 0, pickPayload: MvtPickedFeature? = null)

Properties

Link copied to clipboard
Link copied to clipboard

Hole rings, each flat interleaved [lon°, lat°, …]. Emptied after assembly.

Link copied to clipboard

Outer ring as flat interleaved [lon°, lat°, …] (degrees) — fed straight to earcut and the VBO. Emptied after assembly (the VBO holds it; pick path needs only pickPayload).

Link copied to clipboard

If non-null and the layer is pick-enabled, this feature draws separately with a unique pick color in pick mode and exposes pickPayload via PickedObject.userObject.

Link copied to clipboard
val zOrder: Int