Eq

class Eq(val key: String, val value: Any?) : MvtFilter

True when properties[key] == value (Mapbox loose-equality: number-vs-number by primitive).

Constructors

Link copied to clipboard
constructor(key: String, value: Any?)

Properties

Link copied to clipboard
val key: String
Link copied to clipboard
val value: Any?

Functions

Link copied to clipboard
open override fun matches(properties: Map<String, Any?>, geomType: MvtGeometryType? = null): Boolean

Evaluate this filter against a feature's inflated property map. geomType surfaces the feature's geometry kind so GeometryTypeEq can compare against it; other filters ignore it.