MyLocationControlModel | iOS SDK | 2GIS Documentation
iOS SDK

MyLocationControlModel

The model of the control for flying to the user's location. The control consists of a button that, when clicked, flies the camera to the user's location. If no location is defined, nothing happens. The object's methods must be called on the same thread.

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

Returns a Boolean value indicating whether two values are equal.

public convenience init(
    map: Map,
    transitionType: TransitionType = TransitionType.smooth
)
Parameters
map
transitionType
Methods
Properties
StatefulChannel<Bool>
StatefulChannel<CameraFollowState>