moveTo method

Future<void> moveTo(
  1. GeoPoint position, {
  2. bool animate = false,
})

moveTo

move the camera of the map to specific position with animation or without using animate parameter (default: false)

position : (GeoPoint) position that will be go to map

Implementation

Future<void> moveTo(GeoPoint position, {bool animate = false}) async {
  await osmBaseController.goToPosition(position, animate: animate);
}