Update codebase
This commit is contained in:
@@ -34,8 +34,7 @@ class NearbyDriversController extends GetxController {
|
||||
carsLocationByPassenger = [];
|
||||
final locSearch = Get.find<LocationSearchController>();
|
||||
|
||||
if (locSearch.passengerLocation.latitude == 0 &&
|
||||
locSearch.passengerLocation.longitude == 0) {
|
||||
if (locSearch.passengerLocation.latitude == 0 && locSearch.passengerLocation.longitude == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -86,8 +85,7 @@ class NearbyDriversController extends GetxController {
|
||||
|
||||
if (lat == 0.0 || lng == 0.0) continue;
|
||||
|
||||
String driverId =
|
||||
(carData['driver_id'] ?? carData['id'] ?? '').toString();
|
||||
String driverId = (carData['driver_id'] ?? carData['id'] ?? '').toString();
|
||||
if (driverId.isEmpty || driverId == 'null') continue;
|
||||
|
||||
_updateOrCreateMarker(
|
||||
@@ -336,8 +334,7 @@ class NearbyDriversController extends GetxController {
|
||||
String markerId, LatLng newPosition, double newHeading, String icon) {
|
||||
final mapEngine = Get.find<MapEngineController>();
|
||||
if (!mapEngine.isIconsLoaded) {
|
||||
Log.print(
|
||||
"⚠️ Skipping drawing marker $markerId because map icons are not fully loaded yet.");
|
||||
Log.print("⚠️ Skipping drawing marker $markerId because map icons are not fully loaded yet.");
|
||||
return;
|
||||
}
|
||||
final mId = MarkerId(markerId);
|
||||
@@ -410,8 +407,7 @@ class NearbyDriversController extends GetxController {
|
||||
};
|
||||
|
||||
if (mapEngine.mapController != null) {
|
||||
mapEngine.mapController!
|
||||
.animateCamera(CameraUpdate.newLatLng(currentPos));
|
||||
mapEngine.mapController!.animateCamera(CameraUpdate.newLatLng(currentPos));
|
||||
}
|
||||
|
||||
mapEngine.update();
|
||||
|
||||
Reference in New Issue
Block a user