4/2/6
This commit is contained in:
@@ -104,14 +104,14 @@ class MapDriverController extends GetxController {
|
||||
myLocation = myLocation;
|
||||
mapController = controller;
|
||||
controller.getVisibleRegion();
|
||||
controller.animateCamera(
|
||||
CameraUpdate.newLatLng(myLocation),
|
||||
);
|
||||
update();
|
||||
|
||||
// Set up a timer or interval to trigger the marker update every 3 seconds.
|
||||
timer = Timer.periodic(const Duration(seconds: 1), (_) {
|
||||
updateMarker();
|
||||
controller.animateCamera(
|
||||
CameraUpdate.newLatLng(myLocation),
|
||||
);
|
||||
update();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -534,7 +534,7 @@ class MapDriverController extends GetxController {
|
||||
// Get.back();
|
||||
}
|
||||
|
||||
void cancelCheckRidefromPassenger() async {
|
||||
void cancelCheckRideFromPassenger() async {
|
||||
var res = await CRUD().get(link: AppLink.getOrderCancelStatus, payload: {
|
||||
'order_id': rideId,
|
||||
}); //.then((value) {
|
||||
@@ -626,7 +626,7 @@ class MapDriverController extends GetxController {
|
||||
markers.add(
|
||||
Marker(
|
||||
markerId: MarkerId('MyLocation'.tr),
|
||||
position: locationController.myLocation,
|
||||
position: myLocation,
|
||||
draggable: true,
|
||||
icon: carIcon,
|
||||
rotation: locationController.heading,
|
||||
@@ -637,7 +637,7 @@ class MapDriverController extends GetxController {
|
||||
);
|
||||
|
||||
mapController!.animateCamera(
|
||||
CameraUpdate.newLatLng(locationController.myLocation),
|
||||
CameraUpdate.newLatLng(myLocation),
|
||||
);
|
||||
update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user