enableTracking method
this method will enable tracking the user location,
enableStopFollow
is false ,the map will return follow the user location when it change
enableStopFollow
is true ,the map will not follow the user location when it change if user change the location of the map
To disable the rotation of user marker,
change disableUserMarkerRotation
to true (default : false)
Implementation
Future<void> enableTracking({
bool enableStopFollow = false,
bool disableUserMarkerRotation = false,
Anchor anchor = Anchor.center,
bool useDirectionMarker = false,
}) async {
await osmBaseController.enableTracking(
enableStopFollow: enableStopFollow,
disableMarkerRotation: disableUserMarkerRotation,
anchor: anchor,
useDirectionMarker: useDirectionMarker);
}