title | page_title | description | slug | tags | published | position |
---|---|---|---|---|---|---|
Performance Tips |
Performance Tips |
This article lists several settings that can be applied in order to improve the RadMap's performance. |
radmap-performance-tips |
performance,tips,many,items,huge,shapes |
true |
8 |
This article lists several settings that can be applied in order to improve the RadMap's performance.
-
Use [VisualizationLayer]({%slug radmap-visualization-layer-introduction%}), instead of InformationLayer. VisualizationLayer brings improvements compared to the other layers and it loads the shapes asynchronous.
-
Disable the automation peers. All Telerik controls support extended [UI automation]({%slug common-ui-automation%}) that can be disabled in order to improve the performance. To do so, set the AutomationManager.AutomationMode to Disabled.
{{region radmap-performance-tips-0}} public MainWindow() { AutomationManager.AutomationMode = AutomationMode.Disabled; InitializeComponent();
} {{endregion}} -
Use the [items virtualization]({%slug radmap-features-visualization-layer-shapes-virtualization%}) feature and restrict the viewport, so that a smaller number of shapes is displayed.
-
Use the [clustering]({%slug radmap-heatures-visualization-layer-clustering%}) feature. This will allow you to combine several shapes into a single one when they start overlapping.
-
If using a [provider]({%slug radmap-features-providers%}), disable the tiles caching by setting the IsTileCachingEnabled property of the provider to False.
{{region radmap-performance-tips-1}} telerik:RadMap.Provider <telerik:OpenStreetMapProvider IsTileCachingEnabled="False" /> </telerik:RadMap.Provider> {{endregion}}
-
Disable the zooming animations by setting the UseSpringAnimations property of RadMap to False.
{{region radmap-performance-tips-2}} <telerik:RadMap UseSpringAnimations="False" /> {{endregion}}
-
Disable the bitmap cache of the VisualizationLayer by setting its UseBitmapCache property to False. This caching is used to accelerate the panning operation. Note when this is enabled the memory increases significantly when there are many map shapes on the layer.
{{region radmap-performance-tips-3}} <telerik:VisualizationLayer UseBitmapCache="False" /> {{endregion}}
-
Avoid using MapShapeBindableWrapper elements, like MapEllipseView, MapRectangleView, MapPolylineView, etc. The wrappers implement additional logic that syncs the business objects with the automatically created map shape data objects which takes processing time. Instead, use [map shape data]({%slug radmap-visualization-layer-map-shape-data%}) objects directly.
-
If the loaded shape file contains many and complex geometries, try to simplify the geometries in the shape file.
- [Getting Started]({%slug radmap-getting-started%})
- [Events]({%slug radmap-events%})