diff --git a/lib/controller/functions/location_controller.dart b/lib/controller/functions/location_controller.dart index b4efe5f..25ce06d 100644 --- a/lib/controller/functions/location_controller.dart +++ b/lib/controller/functions/location_controller.dart @@ -56,14 +56,14 @@ class LocationController extends GetxController { await getLocation(); // Animate camera to user location (optional) - if (Get.find().rideId == 'rideId') { - Get.find() - .mapController! - .animateCamera(CameraUpdate.newLatLng(LatLng( - Get.find().myLocation.latitude, - Get.find().myLocation.longitude, - ))); - } + // if (Get.find().rideId == 'rideId') { + // Get.find() + // .mapController! + // .animateCamera(CameraUpdate.newLatLng(LatLng( + // Get.find().myLocation.latitude, + // Get.find().myLocation.longitude, + // ))); + // } Get.find() .mapHomeCaptainController .animateCamera(CameraUpdate.newLatLng(LatLng( diff --git a/lib/controller/home/captin/map_driver_controller.dart b/lib/controller/home/captin/map_driver_controller.dart index dec3f39..dd84b65 100644 --- a/lib/controller/home/captin/map_driver_controller.dart +++ b/lib/controller/home/captin/map_driver_controller.dart @@ -105,9 +105,9 @@ class MapDriverController extends GetxController { myLocation = myLocation; mapController = controller; controller.getVisibleRegion(); - controller.animateCamera( - CameraUpdate.newLatLng(Get.find().myLocation), - ); + // controller.animateCamera( + // CameraUpdate.newLatLng(Get.find().myLocation), + // ); // Set up a timer or interval to trigger the marker update every 3 seconds. // timer = Timer.periodic(const Duration(seconds: 1), (_) { // updateMarker(); @@ -895,7 +895,7 @@ class MapDriverController extends GetxController { addCustomStartIcon(); addCustomEndIcon(); // updateMarker(); - updateLocation(); + // updateLocation(); startTimerToShowPassengerInfoWindowFromDriver(); durationToAdd = Duration(seconds: int.parse(duration)); hours = durationToAdd.inHours; diff --git a/lib/views/home/Captin/driver_map_page.dart b/lib/views/home/Captin/driver_map_page.dart index 872026a..1e97e78 100644 --- a/lib/views/home/Captin/driver_map_page.dart +++ b/lib/views/home/Captin/driver_map_page.dart @@ -23,7 +23,7 @@ class PassengerLocationMapPage extends StatelessWidget { // Get.put(MapDriverController()); return MyScafolld( - title: 'Map Passenger'.tr + mapDriverController.carType, + title: 'Map Passenger'.tr, body: [ GoogleDriverMap(locationController: locationController), const PassengerInfoWindow(),