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