New to Telerik UI for WinUI? Download free 30-day trial

Disposing RadMap

The RadMap control usually needs to be disposed when you no longer use it. This will release all resources used by the map. To do this you can manually call the Dispose method of the RadMap control.

The map is not disposed by default. You need to do this manually.

Example 1: Disposing RadMap

this.radMap.Dispose(); 
The providers and the VisualizationLayer also expose a Dispose method. This is useful if you want to change the layer or provider instances at run-time and release their resources.

See Also

In this article
Not finding the help you need?