disabled gps zoom to current location when popup

This commit is contained in:
2024-03-05 15:43:13 +05:30
parent cd258744fc
commit 773650be82
2 changed files with 9 additions and 4 deletions

View File

@ -904,6 +904,11 @@ class DestinationController extends GetxController {
indexController.loadLocationsBound(); indexController.loadLocationsBound();
} }
}); });
centerMapToCurrentLocation();
}
void centerMapToCurrentLocation() {
indexController.mapController.move(LatLng(currentLat, currentLon), 17.0);
} }
void connectionChanged(String val) { void connectionChanged(String val) {

View File

@ -176,10 +176,10 @@ class _MapWidgetState extends State<MapWidget> {
} }
void _centerMapOnUser() { void _centerMapOnUser() {
indexController.mapController.move( print("showBottomSheet ${destinationController.shouldShowBottomSheet}");
LatLng( if (destinationController.shouldShowBottomSheet) {
destinationController.currentLat, destinationController.currentLon), destinationController.centerMapToCurrentLocation();
17.0); }
} }
@override @override