LabelAppearance
public struct LabelAppearance : Codable
LabelAppearance
holds the appearance properties of smart labels to be set when labeling polygons
-
Declaration
Swift
public struct Text : Codable
-
Declaration
Swift
public struct Marker : Codable
-
Declaration
Swift
public struct Color : Codable
-
Margin around the label text and marker. This will affect label density
Declaration
Swift
public var margin: Double?
-
Text appearance
Declaration
Swift
public var text: Text?
-
Marker appearance
Declaration
Swift
public var marker: Marker?
-
Construct a
MPIOptions.LabelAppearance
object with the given propertiesDeclaration
Swift
public init( margin: Double? = nil, text: MPIOptions.LabelAppearance.Text? = nil, marker: MPIOptions.LabelAppearance.Marker? = nil )
Parameters
margin
set the margins around the label text and marker
text
set the text appearance
marker
set the marker appearance
-
light on dark label theme
Declaration
Swift
public static let lightOnDark: MPIOptions.LabelAppearance
-
dark on light label theme
Declaration
Swift
public static let darkOnLight: MPIOptions.LabelAppearance