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

Clustered data source and dynamic layer

4 Answers 91 Views
Map
This is a migrated thread and some comments may be shown as answers.
Alberto
Top achievements
Rank 1
Alberto asked on 02 Oct 2013, 07:30 AM
Hi there, I would ask if there is a way to use both the clustering system offered by the clustered datas source and the dynamic layer / virtualization layer.

I need to show a lot of symbols in the map and I need also the clustering. There is any way to achieve this?

Thank you.

4 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 04 Oct 2013, 12:32 PM
Hello Alberto,

I would recommend you to take a look into the new visualization engine introduced in 2013.Q2 release. This engine is based on the VisualizationLayer class and have integrated support for clustering and virtualization. You can find example here:

http://demos.telerik.com/silverlight/#Map/ClusterVirtualization

Regards,
Andrey Murzov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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
Alberto
Top achievements
Rank 1
answered on 04 Oct 2013, 01:10 PM
Thank you very much, it is just what I was looking for.
0
Alberto
Top achievements
Rank 1
answered on 07 Oct 2013, 02:43 PM
I'm encountering another little problem.

I'm using the VisualizationLayer with a custom VirtualizationSource (I inherited from IMapItemsVirtualizationSource and I fetch my objects asynchronously from a web service).

Everything works as expected, but I need to know when the objects shown on map change.
For now I use this dirty workaround:

this.VisualizationLayer.LayoutUpdated += (s, e) =>
{
var visibleElements = this.VisualizationLayer.GetItemsInRectangle(this.Map.LocationRect);
};
There is any event or another approach that I can use?

Thanks.
0
Andrey
Telerik team
answered on 10 Oct 2013, 09:46 AM
Hello Alberto,

The GetItemsInRectangle is a single way to get objects within viewport. I think you should handle the RadMap.PanningFinished and RadMap.ZoomingFinished events. Also you should update the list of visible objects after you add items asynchronously from a web service using the CompleteItemsRequest method.

Regards,
Andrey Murzov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
Tags
Map
Asked by
Alberto
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Alberto
Top achievements
Rank 1
Share this question
or