I'm trying to create a button using VB.NET and ArcGIS 10 to clear the layers of my data frame.
I know how to add layers, but I don't have any idea on how to delete/clear them.
The easiest way is to cast the Map to IMapLayers and call the IMapLayers.ClearLayers method.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago