Marker

public struct Marker : Codable
  • Size of the marker in pixels

    Declaration

    Swift

    public var size: Double?
  • Foreground color of the marker

    Declaration

    Swift

    public var foregroundColor: Color?
  • Background color of the marker

    Declaration

    Swift

    public var backgroundColor: Color?
  • SVG of icon to place inside Floating Label

    Declaration

    Swift

    public var icon: String?
  • Defines when the icon becomes visible relative to the current zoom level anything below 0 will result in icons never showing up 0 ensures icons show up at maxZoom (fully zoomed in) 1 ensures they always show up

    Declaration

    Swift

    public var iconVisibilityThreshold: Double?
  • Construct a MPIOptions.LabelAppearance.Marker object with the given properties

    Declaration

    Swift

    public init(
        size: Double? = nil,
        foregroundColor: MPIOptions.FloatingLabelAppearance.Color? = nil,
        backgroundColor: MPIOptions.FloatingLabelAppearance.Color? = nil,
        icon: String? = nil,
        iconVisibilityThreshold: Double? = nil
    )

    Parameters

    size

    set the size of the marker in pixels

    foregroundColor

    set the foreground color of the marker

    backgroundColor

    set the background color of the marker

    icon

    set the background color of the marker

    iconVisibilityThreshold

    define when the icon becomes visible relative to the current zoom level. Anything below 0 will result in icons never showing up