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 Email and Password
3 years ago
Get the weekly newsletter! In it, you'll get:
see an example newsletter