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.