Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 3.12 KB

performance-tips.md

File metadata and controls

61 lines (45 loc) · 3.12 KB
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

Performance Tips

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.

    [C#] Example 1: Disabling automation peers

    {{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.

    [XAML] Example 2: Disabling the tiles caching

    {{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.

    [XAML] Example 3: Disabling zoom animations

    {{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.

    [XAML] Example 4: Disabling the bitmap cache

    {{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.

See Also

  • [Getting Started]({%slug radmap-getting-started%})
  • [Events]({%slug radmap-events%})