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

RadMap Performance

3 Answers 108 Views
Map
This is a migrated thread and some comments may be shown as answers.
Nick Mckenzie
Top achievements
Rank 1
Nick Mckenzie asked on 24 Nov 2010, 06:25 PM
Hi, 

We have a RadMap that is used to display support incidents on a nationwide level. Currently we need to display all the map pins over the country and there are lots of them. I cannot use a DynamicLayer because my customer wants to see all support incidents, color coded, on the map at once at the highest zoom level.

My  current problem is that once we have more than 50 items in the InformationLayer the performance drops off rapidly. We currently have a collection of objects in our ViewModel that the InformationLayer is bound to. We are dynamically loading the support incidents based on filters set in the application.

Is there a limit to the number of items that can be displayed on the RadMap? Is there a recommended approach for dealing with this?

Regards

Nick 

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 29 Nov 2010, 11:33 AM
Hi Nick Mckenzie,

It seems you have a problem with performance of information layer rendering that was in versions of map control up to 2010.Q2 SP2 (including).

The Q3 2010 release has new engine of information layer with higher performance of panning and zooming. For example it works with about of 200-300 pushpin objects without any problem. Also when the shapes are simple like to a rectangle then it can work with 1000 and more objects.

Could you please check the version of DLLs you are using? If you use version of map control earlier than 2010.Q3, please download latest internal build.


Sincerely yours,
Andrey Murzov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Øyvind Øyen
Top achievements
Rank 1
answered on 27 Jan 2011, 01:04 PM
Hi!
I just upgradede to the latest version of the Silverlight controls.
Til now we have had every pin in a separat layer. This result in a few 100 layers at least, sometimes showing at the same time. Til now this has workt just fine, but with the latest version it does not work. So we are using a previous version of Telerik.Windows.Controls.DataVisualization.
Maybe we shlukd put ore pins into the same layer, but several layers should not be a problem. It is easier when turning on and of, Adding and removing.

/Øyvind
0
Andrey
Telerik team
answered on 01 Feb 2011, 11:59 AM
Hi Øyvind Øyen,

I'm sorry, but it is not clear for me what do you mean when say that multiple layers doesn't work in the latest version. Could you, please clarify? New version still supports using of the multiple information layers. I’ve tested latest version with 100 information layers with 1 pushpin in every layer. All things seems work fine. Here it is my code:

LocationRect rect = new LocationRect(
     new Location(42, -122),
     new Location(36, -90));
  
for (int i = 0; i < 100; i++)
{
    InformationLayer layer = new InformationLayer();
    this.radMap.Items.Add(layer);
  
    Location location = new Location(
        rect.South + (rect.North - rect.South) * rnd.NextDouble(),
        rect.West + (rect.East - rect.West) * rnd.NextDouble());
  
    layer.Items.Add(location);
}


By the way, using the 100s information layers to show 1 pin point in each isn’t a good approach. It has less productivity than using 1 layer which shows 100s pins. Could you, please, explain reasons to do your things this way? There is no problems to turn on, off, add or remove item in the single information layer.

All the best,
Andrey Murzov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Map
Asked by
Nick Mckenzie
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Øyvind Øyen
Top achievements
Rank 1
Share this question
or