MTFilter
public enum MTFilter
Helper to construct common filter expressions without raw strings.
-
[“has”, key]
Declaration
Swift
public static func has(_ key: String) -> MTPropertyValue -
[“has”, key]
Declaration
Swift
public static func has(_ key: MTFeatureKey) -> MTPropertyValue -
[“!”, filter]
Declaration
Swift
public static func not(_ filter: MTPropertyValue) -> MTPropertyValue -
[“==”, [“get”, key], value]
Declaration
Swift
public static func eq(_ key: String, _ value: MTPropertyValue) -> MTPropertyValue -
[“==”, [“get”, key], value]
Declaration
Swift
public static func eq(_ key: MTFeatureKey, _ value: MTPropertyValue) -> MTPropertyValue -
[“all”, …filters]
Declaration
Swift
public static func all(_ filters: [MTPropertyValue]) -> MTPropertyValue -
[“any”, …filters]
Declaration
Swift
public static func any(_ filters: [MTPropertyValue]) -> MTPropertyValue -
Convenience: filter for clusters (features having point_count)
Declaration
Swift
static func clusters() -> MTPropertyValue -
Convenience: filter for non-clustered points (![has point_count])
Declaration
Swift
static func unclustered() -> MTPropertyValue