moveCamera method
Moves the camera to location, keeping the current zoom when zoom is
null.
Attribution applies as it does to fitBounds.
Implementation
@override
void moveCamera(LatLng location, double? zoom) {
final yAxis = (((padding?.top ?? 0) - (padding?.bottom ?? 0)) / 2);
final xAxis = (((padding?.left ?? 0) - (padding?.right ?? 0)) / 2);
final offsetFromPadding = Offset(xAxis, yAxis);
final currentZoom = mapController.mapController.camera.zoom;
mapController.animateTo(
customId: 'moveCamera',
dest: location,
zoom: zoom ?? currentZoom,
offset: offsetFromPadding,
);
//mapController.centerOnPoint(location);
// mapController.animateTo(dest: location, zoom: zoom);
}