This is a migrated thread and some comments may be shown as answers.

Slow performance of Radmap in case of large collection

2 Answers 183 Views
Map
This is a migrated thread and some comments may be shown as answers.
Waqas
Top achievements
Rank 1
Waqas asked on 02 Dec 2013, 07:31 AM
Hi All,

I have a collection of 1 million records and i am using radMap.ItemSource = myCollection; to bind my collection with map. It works but takes too much time in binding and also hangs the UI. Is there any optimized way of binding or processing of these huge collections on map. In some scenarios, I have to show all of these at once on map when we zoom out fully, in that case it also slow downs the UI. I am using Empty provider.

Thanks in advance.

Waqas Habib

2 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 03 Dec 2013, 02:02 PM
Hi Waqas,

First of all, it looks like you're creating a separate information (or visualization) layer for every item in your collection (you wrote that you use radMap.ItemSource = myCollection). You definitely shouldn't use this approach as you don't need a separate layer for every item. You need just 1 layer for all your items.

Unfortunately from your description I cannot tell for sure what kind of items you display (simple framework elements or map shapes) but in any case please note that 1 million items is too much for the WPF rendering engine. Therefore I would recommend using the items virtualization and items clustering features available with the VisualizationLayer object (it is replacement for the old InformationLayer object). You can find such examples here:

Regards,

Andrey Murzov

Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.

Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.

Sign up for Free application insights >>
0
Waqas
Top achievements
Rank 1
answered on 04 Dec 2013, 05:39 AM
Hi Andrey Murzov,

Thanks for your kind reply, Actually it was informationLayer.ItemSource = myCollection, it was a mistake while posting my question.

I have a collection of PolygonsData, with custom shapes, I will look through the examples you provided and will let you know in case of any issue.

Thanks
Waqas Habib
Tags
Map
Asked by
Waqas
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Waqas
Top achievements
Rank 1
Share this question
or