RadMap - DynamicLayer performance problem

2 posts, 0 answers
  1. Dan M
    Dan M avatar
    4 posts
    Member since:
    Sep 2009

    Posted 23 Sep 2010 Link to this post

      I was trying to use the dynamic layer and my goal was to only get items within the viewport. My data is stored with a quadkey up to lever 2^14 and because of that  I need to set the ZoomGrid to 2^level * 2^level cells.
        Looking with reflector in the the DynamicLayer code I've realized that the call back for getting the items for a particular cell is iterating through the entire cell set rather than being restirected to the one in the view.
      This is obviously causing the application to freeze on high levels(9+). Am I missing something in my implementation? 
       Are there any plans to introduce a DynamicLayer class that is similar with the Bing Tile system? I would take any beta version into consideration as where I am standing now I have to implement my own. Please advise!
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 28 Sep 2010 Link to this post

    Hello Dan M,

    I'm not sure what version you use. Since the Q2 2010 release of map control the Dynamic layer iterates through the squares which are in the view only.
    I have tried to initialize the zoom grid using the following code on 2010.2 812 version:

    this.dynamicLayer.ZoomGridList.Add(new ZoomGrid(2, 2, 3));
    this.dynamicLayer.ZoomGridList.Add(new ZoomGrid((int)Math.Pow(2, 9), (int)Math.Pow(2, 9), 9));
    this.dynamicLayer.ZoomGridList.Add(new ZoomGrid((int)Math.Pow(2, 14), (int)Math.Pow(2, 14), 14));

    The Dynamic layer has worked properly.

    We are also planning to increase the performance of rendering items in Dynamic layer.
    Currently it does not remove items which are requested and go away from the view after the panning.
    This behavior will be implemented in the Q3 2010 release.

    All the best,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top