MarkerStyle

public struct MarkerStyle

Represents the style used to display the better route bubble.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Default values for the better route marker style.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum Defaults
  • Initializes MarkerStyle with the given values.

    Declaration

    Swift

    public init(
        pinImage: MapImage? = Defaults.pinImage,
        textFontURI: String = Defaults.textFontURI,
        textSize: Double = Defaults.textSize,
        textColor: UIColor = Defaults.textColor,
        textAnchoring: TextAnchoring = Defaults.textAnchoring,
        textOffset: MarkerLabelOptions.TextOffset = Defaults.textOffset
    )

    Parameters

    pinImage

    The image of the marker that represents a better route. By default, pinImage is used.

    textFontURI

    The font of the better route marker text. By default, textFontURI is used.

    textSize

    The size of the text (in point units). By default, textSize is used.

    textColor

    The color of the text shown for better route. By default, textColor is used.

    textAnchoring

    TextAnchoring determining how the label is positioned in the marker. By default, textAnchoring is used.

    textOffset

    MarkerLabelOptions.TextOffset describing the offset that will be used to position the label in the marker. By default, textOffset is used.

  • The image of the marker that represents a better route.

    Declaration

    Swift

    public let pinImage: MapImage?
  • TextAnchoring determining how the label is positioned in the marker.

    Declaration

    Swift

    public let textAnchoring: TextAnchoring
  • The color of the text shown for better route.

    Declaration

    Swift

    public let textColor: UIColor
  • The font of the better route marker text. The default font is NotoSans-CondensedMedium.

    Declaration

    Swift

    public let textFontURI: String
  • MarkerLabelOptions.TextOffset describing the offset that will be used to position the label in the marker.

    Declaration

    Swift

    public let textOffset: MarkerLabelOptions.TextOffset
  • The size of the text (in point units).

    Declaration

    Swift

    public let textSize: Double