ScaleViewModel

public class ScaleViewModel

Defines the properties for scale view. Whenever the map is zoomed in or out, the scale appears and is visible until there are no interactions with the map for at least 5 seconds. The scale view also disappears when the map is tilted or when the scale is out of range. Range for metric measurement system: 10m-1000km Range for imperial measurement system: 30ft-600mi

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Defines if the scale should be visible and should react to map scale changes. If set to false, the scale will never appear on the map.

    Declaration

    Swift

    public var isVisible: Bool { get set }
  • Defines the offset of the view. You can specify horizontal and vertical offset to shift view from an original position.

    Declaration

    Swift

    public var offset: UIOffset { get set }
  • Defines the scale units. Default value is based on device locale.

    Declaration

    Swift

    public var units: UnitsSystem { get set }