open class PassiveLocationManager : NSObject, MGLLocationManager
extension PassiveLocationManager: PassiveLocationDataSourceDelegate
An object that notifies a map view when the user’s location changes, minimizing the noise that normally accompanies location updates from a
Router classes such as
LegacyRouteController, this class operates without a predefined route, matching the user’s location to the road network at large. If your application displays an
MGLMapView before starting turn-by-turn navigation, set
MGLMapView.locationManager to an instance of this class so that the map view always shows the location snapped to the road network. For example, use this class to show the user’s current location as they wander around town.
This class depends on
PassiveLocationDataSource to detect the user’s location as it changes. If you want location updates but do not need to display them on a map and do not want a dependency on the MapboxNavigation module, you can use
PassiveLocationDataSource instead of this class.
The location manager’s delegate.
public weak var delegate: MGLLocationManagerDelegate?