This commit is contained in:
Hamza-Ayed
2024-04-03 13:03:45 +03:00
parent 2ee9a8cf8d
commit 342a922832
2 changed files with 9 additions and 7 deletions

View File

@@ -105,13 +105,14 @@ class MapDriverController extends GetxController {
myLocation = myLocation;
mapController = controller;
controller.getVisibleRegion();
// controller.animateCamera(
// CameraUpdate.newLatLng(Get.find<LocationController>().myLocation),
// );
controller.animateCamera(
CameraUpdate.newLatLng(Get.find<LocationController>().myLocation),
);
update();
// Set up a timer or interval to trigger the marker update every 3 seconds.
// timer = Timer.periodic(const Duration(seconds: 1), (_) {
// updateMarker();
// });
timer = Timer.periodic(const Duration(seconds: 1), (_) {
updateMarker();
});
}
void changeStatusDriver() {