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

Overlapping Pins, how to group ?

1 Answer 77 Views
Map
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ian
Top achievements
Rank 1
Ian asked on 16 Jan 2012, 05:41 AM
Hi there, i have a problem whereby within a very small map area i might have 10-20 nodes and in most cases they overlap. Is there a way to group nodes so that overlapping nodes can be encapsulated into a single node and expanded out

I found an expandedlocations example posted here http://www.telerik.com/community/forums/silverlight/map/maps-pins-overlapping.aspx which seems to do exactly what i want however

- I am unsure how this works. It seems to use hotspots but how does it know which node is the central grouped node
- Is there a way once expanded to then hover over/click the expanded nodes as if they are a normal node

Anyone familiar with how this works ? I want to be able to click on any node or hover over there node for details but i also want to encapsulate a group of nodes to a single area (lets say all nodes in a lat/long + 100 are grouped to a single node ). Is there a way for telerik map controls todo this already ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 19 Jan 2012, 08:27 AM
Hello,

The sample does not calculate a central grouped node. It shows all nodes which are overlapped. I have updated the sample solution. It shows the group of overlapped nodes if they exist using MouseLeftButtonDown event. If the node is single or the node is already expanded, then it shows details. The group is closed by mouse click on the circle at the center of the group.
I have attached the sample solution.

I hope it helps.

Kind regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

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