FlatLabel

public struct FlatLabel : Codable

FlatLabel holds the properties of flat labels to be set when setting flat labels to polygons

  • Text to display for the legacy label

    Declaration

    Swift

    public var text: String
  • Flat Label customization options

    Declaration

    Swift

    public var appearance: FlatLabelAppearance?
  • Construct a MPIOptions.FlatLabel object with the given properties

    Declaration

    Swift

    public init(
        text: String,
        appearance: MPIOptions.FlatLabelAppearance? = nil)

    Parameters

    text

    set text of the legacy label

    appearance

    customize appearance of flat label