I guess I need to create a MapVirtualizationSource to provide the data to the VisualizationLayer. However when I try and create a MapPolyline object in BackgroundItemsRequest I get an "The calling thread must be STA, because many UI components require this." error.
I can see you example code works but they only create one or two objects. I have several hundred thousand objects I need to display so the virtualisation is clearly critical.
Help! What am I doing wrong?
answered on 01 Aug 2014, 07:35 AM
There are 2 visualization engines in the RadMap package.
The old implementation of the map objects' (points and shapes) visualization consists of 3 layers: InformationLayer, DynamicLayer and VirtualizationLayer.
The new visualization engine replaces all 3 layers with the new VisualizationLayer.
The MapPolyline object (like any other object inherited from the MapShape class) is designed to be used with old engine (i.e. InformationLayer) and it can't be used with new engine (i.e. VisualizationLayer).
I would recommend you to use the Virtualization feature. It allows displaying only items which are in the viewport for better rendering performance. For more details you can take a look at the Map Shapes Virtualization article.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.