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

How to get items from ClusterItem

1 Answer 127 Views
Map
This is a migrated thread and some comments may be shown as answers.
Nikola
Top achievements
Rank 1
Nikola asked on 18 Sep 2012, 11:45 AM
Hello,
I am displaying some items on the map. Some of them can have the same location and cluster is shown. I can zoom in but I will not see them because they are on the same location and cluster is still shown. I would like to show information about them when mouse over the cluster. It would be something like tooltip. While debugging I can see child items from ClusterItem object but on coding there is no Items property for ClusterItem class. How can I take items from Cluster to show information about them ?

Thanks anyway.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 21 Sep 2012, 08:53 AM
Hello Nikola,

You can use ClusterItem.ClusterState with the ClusterItem.HideExpanded property. When the ClusterState is Expanded then the ClusterItem shows its items. Also when at the same moment you set the HideExpanded to 'true' then the Cluster will be hidden.
And you can use the ClusteredDataSource.Collapse method to hide the cluster's items.
For more information please take a look at the following documentation topic:
http://www.telerik.com/help/silverlight/radmap-features-information-layer-clustereddatasource.html

I have attached a sample solution which shows cluster's items by right mouse button click and it shows cluster again by left mouse button click on any item of cluster. I hope it helps.

Greetings,
Andrey Murzov
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
Map
Asked by
Nikola
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or