FloatingLabel
public struct FloatingLabel : Codable
FloatingLabel
holds the properties of smart labels to be set when setting labels to polygons
-
text to display for the label
Declaration
Swift
public var text: String
-
short text to display for the label
Declaration
Swift
public var shortText: String?
-
state text to display for the label
Declaration
Swift
public var stateText: String?
-
rank of the label
Declaration
Swift
public var rank: Double?
-
Construct a
MPIOptions.FloatingLabel
object with the given propertiesDeclaration
Swift
public init( text: String, shortText: String? = nil, stateText: String? = nil, rank: Double? = nil, appearance: FloatingLabelAppearance? = nil )
Parameters
text
set text of the label
shortText
set state text of the label
shortText
set state text of the label
rank
set the rank of the label
appearance
set the apppearance of the label