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

RadMap - DynamicLayer performance problem

1 Answer 126 Views
Map
This is a migrated thread and some comments may be shown as answers.
Dan M
Top achievements
Rank 1
Dan M asked on 23 Sep 2010, 10:25 PM
Hi,
  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!
Regards,
Dan

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 28 Sep 2010, 09:54 AM
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
Tags
Map
Asked by
Dan M
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or