CurrentLocationButtonViewModel

public class CurrentLocationButtonViewModel

Provides control over current location button, use it to manage visibility and the icon of it.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Defines visibility behavior of the current location button.

    See more

    Declaration

    Swift

    public enum VisibilityPolicy
  • Defines the visibility policy of the current location button.

    Declaration

    Swift

    public var visibilityPolicy: VisibilityPolicy { get set }
  • Defines the custom icon that is displayed when the map is not centered on the user location. If this property is not set, default icons are used.

    Declaration

    Swift

    public var icon: UIImage? { get set }
  • Reports whether the view is currently visible on the screen.

    Declaration

    Swift

    public var isVisible: Bool { get }
  • 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 }