MTExpression
public enum MTExpression
Helper to construct common style expressions without raw strings.
-
[“get”, key]
Declaration
Swift
public static func get(_ key: String) -> MTPropertyValue -
[“get”, key]
Declaration
Swift
public static func get(_ key: MTFeatureKey) -> MTPropertyValue -
[“to-string”, expr]
Declaration
Swift
public static func toString(_ value: MTPropertyValue) -> MTPropertyValue -
step expression builder: [“step”, input, default, t1, v1, t2, v2, …]
Declaration
Swift
public static func step( input: MTPropertyValue, default defaultValue: MTPropertyValue, stops: [(Double, MTPropertyValue)] ) -> MTPropertyValue