In my App, I defined myFeatureLayer.popupTemplate;
When I clear the loaded FeatureLayer, the popup still remains on the map. I have tried the 3 methods below but not effective:
myFeatureLayer.popupTemplate = null; // Not working
myFeatureLayer.popupTemplate.hide(); // error No such a method
myFeatureLayer.popupTemplate.close(); // error No such a method
How can it be dynamically close the popup? Thanks.
Solved! Go to Solution.
Hi there,
You should use MapView.popup.close or MapView.popup.visible properties to hide visible popups on the map.
Hope this helps,
-Undral
Hi there,
You should use MapView.popup.close or MapView.popup.visible properties to hide visible popups on the map.
Hope this helps,
-Undral