ScaleBarViewOptions

public struct ScaleBarViewOptions : OrnamentOptionsProtocol, Equatable

Used to configure position, margin, and visibility for the map’s scale bar view.

  • The default value for this property is .topLeft.

    Declaration

    Swift

    public var position: OrnamentPosition
  • The default value for this property is CGPoint(x: 8.0, y: 8.0).

    Declaration

    Swift

    public var margins: CGPoint
  • The default value for this property is .adaptive.

    Declaration

    Swift

    public var visibility: OrnamentVisibility
  • Specifies the whether the scale bar uses the metric system. True if the scale bar is using metric units, false if the scale bar is using imperial units.

    Declaration

    Swift

    public var useMetricUnits: Bool