I see that this type of question has been asked and answers have been attempted multiple times all over the internet, but none of them satisfy my needs.
Is there not a way to clear a mapview of everything but the basemap with one simple command?
Please and thank you!
Solved! Go to Solution.
Maybe iterate over the Map.allLayers and set layer.visible = false
What about Map.removeAll()
It would be helpful to mention your specific needs and what solutions you've already tried.
Blake
My apologies .... I meant to ask as to a way to render all feature and queryresult layers invisible, not actually remove them from the map.
My fault, and thanks!
Maybe iterate over the Map.allLayers and set layer.visible = false