SymbolPlacement
public struct SymbolPlacement : RawRepresentable, Codable, Hashable
Label placement relative to its geometry.
-
Declaration
Swift
public let rawValue: String
-
Declaration
Swift
public init(rawValue: String)
-
The label is placed at the point where the geometry is located.
Declaration
Swift
public static let point: SymbolPlacement
-
The label is placed along the line of the geometry. Can only be used on LineString and Polygon geometries.
Declaration
Swift
public static let line: SymbolPlacement
-
The label is placed at the center of the line of the geometry. Can only be used on LineString and Polygon geometries. Note that a single feature in a vector tile may contain multiple line geometries.
Declaration
Swift
public static let lineCenter: SymbolPlacement