update to routing
This commit is contained in:
@ -46,7 +46,7 @@ class DestinationController extends GetxController {
|
||||
void getRoutePoints() {
|
||||
indexController.routePoints = [];
|
||||
indexController.routePointLenght.value = 0;
|
||||
DestinationService.getDestinationLine(destinations)?.then((value){
|
||||
DestinationService.getDestinationLine(destinations, matrix)?.then((value){
|
||||
indexController.routePoints = value;
|
||||
indexController.routePointLenght.value = indexController.routePoints.length;
|
||||
});
|
||||
@ -272,8 +272,8 @@ class DestinationController extends GetxController {
|
||||
print("--------- destination controller populsting destinations ----------- ::::::");
|
||||
|
||||
DatabaseHelper db = DatabaseHelper.instance;
|
||||
destinations.clear();
|
||||
db.getDestinations().then((value){
|
||||
destinations.clear();
|
||||
destinationCount.value = 0;
|
||||
for(Destination d in value){
|
||||
for(Destination s in currentSelectedDestinations){
|
||||
|
||||
Reference in New Issue
Block a user