updateCameraPosition method
- CameraPosition position
updateCameraPosition method updates the camera position of the map.
It takes a CameraPosition object representing the new camera position and updates the camera position of the map.
The method is asynchronous and returns a Future of void
.
Implementation
void updateCameraPosition(CameraPosition position) {
_center = position.target;
_zoom = position.zoom;
_zoomvalue = 591657550.500000 / pow(2, position.zoom);
_tilt = position.tilt;
_bearing = position.bearing;
notifyListeners();
}