MvtStyleRule

constructor(sourceLayer: String, filter: MvtFilter = MvtFilter.Always, minZoom: Int = 0, maxZoom: Int = Int.MAX_VALUE, zOrder: Int = 0, geometryType: MvtGeometryType? = null, paint: MvtStyleRule.PaintSpec)

Parameters

sourceLayer

MVT layer name to match (e.g. "streets", "water_polygons"). Use MvtStyle.zOrderFor canonicals where they apply.

filter

predicate over the feature's property map; defaults to MvtFilter.Always.

minZoom

smallest tile zoom that activates this rule (inclusive); below = skipped.

maxZoom

largest tile zoom that activates this rule (inclusive); above = skipped. Int.MAX_VALUE = no upper bound.

zOrder

paint order against rules in other tiles. Use MvtStyle.Z_* constants.

geometryType

when non-null, only matches features of that geometry type. Useful for splitting a layer that carries both polygon and line variants (e.g. Shortbread's street_polygons vs streets).

paint

resolves zoom-interpolated paint properties into a ShapeAttributes.