update
This commit is contained in:
@ -121,8 +121,10 @@ class _DestinationMapPageState extends State<DestinationMapPage> {
|
||||
DestinationService.getDestinationLine(destinationController.destinations)?.then((value){
|
||||
//print("---- loading destination points ------ ${value}");
|
||||
indexController.routePoints.clear();
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user