This commit is contained in:
Mohamed Nouffer
2022-07-26 19:18:15 +05:30
parent ff018a56fe
commit 3e001cc485

View File

@ -121,7 +121,9 @@ class _DestinationMapPageState extends State<DestinationMapPage> {
DestinationService.getDestinationLine(destinationController.destinations)?.then((value){
//print("---- loading destination points ------ ${value}");
indexController.routePoints.clear();
indexController.routePoints = value;
setState(() {
indexController.routePoints = value;
});
});
super.initState();
}
@ -193,7 +195,7 @@ class _DestinationMapPageState extends State<DestinationMapPage> {
subdomains: ['a', 'b', 'c'],
),
),
Obx(() =>
//Obx(() =>
indexController.routePoints.length > 0 ?
PolylineLayerWidget(
options: PolylineLayerOptions(
@ -207,7 +209,7 @@ class _DestinationMapPageState extends State<DestinationMapPage> {
)
:
Container(),
),
//),
// PopupMarkerLayerWidget(
// options: PopupMarkerLayerOptions(
// popupController: _popupLayerController,