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

Information layer vs Visualization layer

4 Answers 113 Views
Map
This is a migrated thread and some comments may be shown as answers.
Abder Rezak
Top achievements
Rank 1
Abder Rezak asked on 17 Jan 2014, 04:43 PM
Hi,

I would like to know when Information Layer is preferred over Visualization Layer and vice versa.

Thank you !

4 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 20 Jan 2014, 04:20 PM
Hello Abder,

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. This visualization engine, however, lacks certain features and has a few performance issues.

In the Q2 2013 release we've introduced a new visualization engine in the RadMap. It has been designed from scratch to have better performance. The new visualization engine replaces all 3 layers with the new VisualizationLayer. The major goals of the new engine are:

1. Improve the performance of the data visualization.
2. Allow reading map shapes from different sources (KML, ESRI, and SQL Geospatial) in the background thread.
3. Integrating clustering and items virtualization into the core. This simplifies the usage of both features.
4. Ability to attach/detach almost any input event available for the FrameworkElement to the map shape visualization.
5. Support of items selection in the engine core.

Having this information in mind, I would recommend using the new engine (and its VisualizationLayer) instead of old one (or the InformationLayer).

Regards,
Andrey Murzov
Telerik

TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.

Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.

Sign up for Free application insights >>
0
Abder Rezak
Top achievements
Rank 1
answered on 22 Jan 2014, 06:51 PM
Hi Andrey,

Thanks for your answer, that's exactly what I wanted to know.

I have another question, is this possible to bind a ViewModel with the shape's view or the associated MapShapeData.
I have behavior that occurs on mouse click event that needs to interact with the associated ViewModel.
The only solution I found is to create a new custom MapshapeData that inherits from MapShpeData and that contains a new property that references to the viewModel.

Is there any better solution?

Thank you!
0
Andrey
Telerik team
answered on 24 Jan 2014, 03:04 PM

Hello Abder,

Creation of the custom MapShapeData could have unpredictable effect. I would recommend following this approach:

Every map shape data can have set of the extended properties. They can be accessed through the ExtendedData property. If you read your shapes from external source (like ESRI shape file, KML file or WKT/WKB source) then your shapes most probably already contains set of the extended properties. Check it, whether you can use some for shape identification or not. If it is not then you can add your own property and use it for shape identification. Then you can use value of this property to find data in your view model.

You can find more details about extended data here. This help topic is for the old engine, but extended data works the same way in both old and new engine.

Regards,
Andrey Murzov
Telerik

TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.

Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.

Sign up for Free application insights >>
0
Abder Rezak
Top achievements
Rank 1
answered on 31 Jan 2014, 04:00 PM
Hi Andrey,

Thank you for your answer, it was very helpful!
Tags
Map
Asked by
Abder Rezak
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Abder Rezak
Top achievements
Rank 1
Share this question
or