I can easily add KML layers either at startup or through a radio button/check box, but does anyone have any pointers on how to remove/delete/hide said KML layer when you are finished with it?? I have looked at the sample code and do not gat the same options for removing non KML layers
how to remove/delete/hide said KML layer when you are finished with it??
Kml layer should behave as others layers. You can hide a kml layer by changing its visibility : kmlLayer.Visible = false; You can remove a kml layer by removing it from the map layers collection : myMap.Layers.Remove[kmlLayer];
how to remove/delete/hide said KML layer when you are finished with it??
Kml layer should behave as others layers. You can hide a kml layer by changing its visibility : kmlLayer.Visible = false; You can remove a kml layer by removing it from the map layers collection : myMap.Layers.Remove[kmlLayer];