FloatingLabelAppearance
public struct FloatingLabelAppearance : Codable
FloatingLabelAppearance
holds the appearance properties of floating 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.FloatingLabelAppearance.Text? = nil, marker: MPIOptions.FloatingLabelAppearance.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.FloatingLabelAppearance
-
dark on light label theme
Declaration
Swift
public static let darkOnLight: MPIOptions.FloatingLabelAppearance