update
This commit is contained in:
@ -121,8 +121,10 @@ 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();
|
||||||
|
setState(() {
|
||||||
indexController.routePoints = value;
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user