MarkerLabelOptions
public struct MarkerLabelOptions : AnnotationOptions, Equatable
Options that define label inside marker. Can be used with MarkerOptions
.
-
Label text to be displayed.
Declaration
Swift
public let text: String
-
Font used to display text of the label.
Declaration
Swift
public let fontURI: String
-
The color of the text. Default value is white.
Declaration
Swift
public var textColor: UIColor
-
The color of the outline of the text. Default value is clear.
Declaration
Swift
public var outlineColor: UIColor
-
Height of the text. Default value is 0.
Declaration
Swift
public var textSize: Double
-
The width of the outline of the text. Default value is 0.
Declaration
Swift
public var outlineWidth: Double
-
The offset that will be used to position the label in the marker. Default value is x=0, y=0. Depending on the anchoring, the point of the label that will be anchored will vary:
- If anchoring is left, the anchor point will be the baseline-leftmost pixel of the label
- If anchoring is center, the anchor point will be the baseline-center pixel of the label
- If anchoring is right, the anchor point will be the baseline-rightmost pixel of the label
Declaration
Swift
public var textOffset: TextOffset
-
The anchoring that will be used to position the text. Default value is center.
Declaration
Swift
public var textAnchorinhg: TextAnchoring