MyLocationController | iOS SDK | 2GIS Documentation
iOS SDK

MyLocationController

Controls the display of the current position marker.

Extends: Hashable
public static func == (lhs: MyLocationController, rhs: MyLocationController) -> Bool

Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .

public convenience init(
    bearingSource: BearingSource?,
    animationDuration: TimeInterval = 1,
    coordinatesThreshold: Meter = Meter(value: 0.10000000149011612),
    bearingThreshold: Bearing = Bearing(value: 1)
)

Returns a Boolean value indicating whether two values are equal.

Parameters
bearingSource
BearingSource?

Source of bearing. If not set, a marker without direction is displayed.

animationDuration
TimeInterval

Non-negative duration of changing the actual bearing.

coordinatesThreshold
Meter

Non-negative threshold of the actual position change and its accuracy taken into account.

bearingThreshold
Bearing

Non-negative threshold of the actual bearing change taken into account.

Methods