Expression
public struct Expression : Codable, CustomStringConvertible, Equatable
An Expression defines a formula for computing the value of any layout property, paint property,
or filter within a map style. Expressions allow you to style data with multiple feature
properties at once, apply conditional logic, and manipulate data with mathematical, logical, and
string operators. This allows for sophisticated runtime styling.
-
The operator of this expression
Declaration
Swift
public var `operator`: Operator { get } -
The arguments contained in this expression
Declaration
Swift
public var arguments: [Argument] { get } -
Create an operator-only expression.
Declaration
Swift
public init(_ op: Operator) -
Declaration
Swift
public func encode(to encoder: Encoder) throws -
Declaration
Swift
public var description: String { get } -
Declaration
Swift
public init(from decoder: Decoder) throws -
An
See moreExpressionElementcan be either aop(associated with aString) OR anargument(associated with anExpressionArgument)Declaration
Swift
public indirect enum Element : Codable, CustomStringConvertible, Equatable -
An
See moreExpressionArgumentis either a literal (associated with a double, string, boolean, or null value) or anotherExpressionDeclaration
Swift
public indirect enum Argument : Codable, CustomStringConvertible, Equatable -
Undocumented
See moreDeclaration
Swift
enum Operator : String, Codable, CaseIterable -
Undocumented
See moreDeclaration
Swift
public enum Option : Codable, Equatable
Expression Structure Reference