Slow performance of Radmap in case of large collection

3 posts, 0 answers
  1. Waqas
    Waqas avatar
    9 posts
    Member since:
    Oct 2011

    Posted 02 Dec 2013 Link to this post

    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. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 03 Dec 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Waqas
    Waqas avatar
    9 posts
    Member since:
    Oct 2011

    Posted 03 Dec 2013 Link to this post

    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
Back to Top