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

Map slow for zoom in/out

1 Answer 65 Views
Map
This is a migrated thread and some comments may be shown as answers.
Datafyer
Top achievements
Rank 1
Veteran
Datafyer asked on 27 Apr 2012, 09:47 PM
I am plotting about 500 items on the map and everything works fine until I zoom in or out. When this happens the CPU goes to 100% for 10 or so seconds and then things work again until the next zoom.

I used ANTS and found that all the slowness is from the method Telerik.Windows.Controls.Map.FileCacheBase.SaveFilesThread().

I also noticed this xaml error which is not from me:

System.Windows.Data Error: 25 : Both 'ContentTemplate' and 'ContentTemplateSelector' are set; 'ContentTemplateSelector' will be ignored. ContentPresenter:'ContentPresenter' (Name='')


1 Answer, 1 is accepted

Sort by
0
Datafyer
Top achievements
Rank 1
Veteran
answered on 28 Apr 2012, 04:49 PM
It seems that the property AllowDataTemplateForZoomLevel, which was set, was causing everything to be re-evaluated. I removed this and the performance jumped quite a bit.
Tags
Map
Asked by
Datafyer
Top achievements
Rank 1
Veteran
Answers by
Datafyer
Top achievements
Rank 1
Veteran
Share this question
or