3/31/3
This commit is contained in:
@@ -1912,6 +1912,23 @@ class MapPassengerController extends GetxController {
|
|||||||
startNameAddress = data[0]['start_address'];
|
startNameAddress = data[0]['start_address'];
|
||||||
endNameAddress = data[0]['end_address'];
|
endNameAddress = data[0]['end_address'];
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
|
newStartPointLocation = LatLng(
|
||||||
|
data[0]["start_location"]['lat'], data[0]["start_location"]['lng']);
|
||||||
|
markers.add(
|
||||||
|
Marker(
|
||||||
|
markerId: MarkerId(startNameAddress),
|
||||||
|
position: newStartPointLocation,
|
||||||
|
icon: startIcon,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
markers.add(
|
||||||
|
Marker(
|
||||||
|
markerId: MarkerId(endNameAddress),
|
||||||
|
position: LatLng(
|
||||||
|
data[0]["end_location"]['lat'], data[0]["end_location"]['lng']),
|
||||||
|
icon: endIcon,
|
||||||
|
),
|
||||||
|
);
|
||||||
update();
|
update();
|
||||||
durationToRide = data[0]['duration']['value'];
|
durationToRide = data[0]['duration']['value'];
|
||||||
final points =
|
final points =
|
||||||
@@ -1922,8 +1939,7 @@ class MapPassengerController extends GetxController {
|
|||||||
polylineCoordinates.add(LatLng(lat, lng));
|
polylineCoordinates.add(LatLng(lat, lng));
|
||||||
}
|
}
|
||||||
// Define the northeast and southwest coordinates
|
// Define the northeast and southwest coordinates
|
||||||
newStartPointLocation = LatLng(
|
|
||||||
data[0]["start_location"]['lat'], data[0]["start_location"]['lng']);
|
|
||||||
// Define the northeast and southwest coordinates
|
// Define the northeast and southwest coordinates
|
||||||
final bounds = response["routes"][0]["bounds"];
|
final bounds = response["routes"][0]["bounds"];
|
||||||
LatLng northeast =
|
LatLng northeast =
|
||||||
|
|||||||
Reference in New Issue
Block a user