Handling large number of nodes

2 posts, 0 answers
  1. Ian
    Ian avatar
    23 posts
    Member since:
    Jun 2011

    Posted 20 Dec 2011 Link to this post

    Hi everyone, this is more of a general question regarding bingmaps performance
    I have roughyl 11000 seperate nodes i want to display on the map, this obviously slows down performance to a crawl so i am looking at ways i can perhaps group nodes or drill down nodes to display them all.

    Does anyone have any experience with rendering large amounts of nodes on a map and any tips/tricks i can use to improve performance.

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 23 Dec 2011 Link to this post

    Hello Ian,

    The rendering performance can be insufficient when you add a lot points on a map. I would recommend using the dynamic layer for loading shapes according to zoom level and region. Please take a look the Using Dynamic Layer topic of our documentation and the Items Virtualization example.

    I have attached two sample solutions which use 100000 random generated points. One of them uses the Dynamic Layer to show points. Second solution uses the information layer. It uses a  separate thread to select visible items from item collection. Also it selects visible items when the panning and zooming complete. It prevents hanging of UI thread during user's action.
    I hope you can choose the approach which is more preffered for your application.

    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top