25-10-11/1
This commit is contained in:
@@ -224,15 +224,15 @@ class LocationController extends GetxController {
|
||||
}
|
||||
_lastPosForDistance = pos;
|
||||
// ✅ تحديث الكاميرا
|
||||
_homeCtrl.mapHomeCaptainController?.animateCamera(
|
||||
CameraUpdate.newCameraPosition(
|
||||
CameraPosition(
|
||||
bearing: Get.find<LocationController>().heading,
|
||||
target: myLocation,
|
||||
zoom: 17, // Adjust zoom level as needed
|
||||
),
|
||||
),
|
||||
);
|
||||
// _homeCtrl.mapHomeCaptainController?.animateCamera(
|
||||
// CameraUpdate.newCameraPosition(
|
||||
// CameraPosition(
|
||||
// bearing: Get.find<LocationController>().heading,
|
||||
// target: myLocation,
|
||||
// zoom: 17, // Adjust zoom level as needed
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
update(); // تحديث الواجهة الرسومية بالبيانات الجديدة
|
||||
|
||||
await _smartSend(pos, loc);
|
||||
@@ -354,7 +354,7 @@ class LocationController extends GetxController {
|
||||
final payload = _buildPayload(pos, status, loc);
|
||||
try {
|
||||
await CRUD().post(
|
||||
link: '${AppLink.server}/ride/location/update.php',
|
||||
link: '${AppLink.locationServer}/update.php',
|
||||
payload: payload,
|
||||
);
|
||||
_lastSentLoc = pos;
|
||||
@@ -403,7 +403,7 @@ class LocationController extends GetxController {
|
||||
try {
|
||||
print('⏱️ Adding a single point to car_track... $payload');
|
||||
await CRUD().post(
|
||||
link: '${AppLink.server}/ride/location/add.php',
|
||||
link: '${AppLink.locationServer}/add.php',
|
||||
payload: payload, // ← الآن Map<String,String>
|
||||
);
|
||||
} catch (e) {
|
||||
@@ -438,7 +438,7 @@ class LocationController extends GetxController {
|
||||
|
||||
try {
|
||||
await CRUD().post(
|
||||
link: '${AppLink.server}/ride/location/update.php',
|
||||
link: '${AppLink.locationServer}/update.php',
|
||||
payload: payload,
|
||||
);
|
||||
_lastSentAt = DateTime.now();
|
||||
|
||||
Reference in New Issue
Block a user