I am using the RadMap with the BingMapProvider.
I have an InformationLayer that is bound to a large collection of objects that have a Location property. This setup is working well with fewer than 1,000 data points, but if I have more than that, it becomes very slow and almost unusable. The goal is to try to plot 15,000 - 20,000 points on a map.
Do you have any recommendations for improving performance in these situations?
Some code snippets:
Thanks,
Josh
I have an InformationLayer that is bound to a large collection of objects that have a Location property. This setup is working well with fewer than 1,000 data points, but if I have more than that, it becomes very slow and almost unusable. The goal is to try to plot 15,000 - 20,000 points on a map.
Do you have any recommendations for improving performance in these situations?
Some code snippets:
<
DataTemplate
x:Key
=
"mapPinTemplate"
>
<
Grid
x:Name
=
"HotSpotGrid"
telerik:MapLayer.Location
=
"{Binding Location}"
>
<
telerik:MapLayer.HotSpot
>
<
telerik:HotSpot
X
=
"0.5"
Y
=
"0.5"
ElementName
=
"PART_HotSpot"
/>
</
telerik:MapLayer.HotSpot
>
<
Border
x:Name
=
"PART_HotSpot"
Grid.Row
=
"1"
Grid.Column
=
"0"
Width
=
"10"
Height
=
"10"
>
<
Ellipse
Fill
=
"{Binding FlagColor}"
StrokeThickness
=
"1"
Stroke
=
"Black"
/>
</
Border
>
</
Grid
>
</
DataTemplate
>
<
telerik:RadMap
x:Name
=
"rmMap"
MinHeight
=
"200"
MinWidth
=
"200"
InitializeCompleted
=
"rmMap_InitializeCompleted"
telerik:StyleManager.Theme
=
"Metro"
AllowedCommands
=
"Road,Aerial"
MouseClickMode
=
"None"
Margin
=
"0,0,0,2"
UseDefaultLayout
=
"False"
>
<
telerik:InformationLayer
x:Name
=
"informationLayer"
Visibility
=
"Collapsed"
ItemsSource
=
"{Binding GeoDataCVS.View}"
ItemTemplate
=
"{StaticResource mapPinTemplate}"
>
</
telerik:InformationLayer
>
</
telerik:RadMap
>
Thanks,
Josh