enableTracking method

Future<void> enableTracking({
  1. bool enableStopFollow = false,
  2. bool disableUserMarkerRotation = false,
  3. Anchor anchor = Anchor.center,
  4. bool useDirectionMarker = false,
})

enableTracking

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);
}