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

Dynamically adjust position of informationLayer items

3 Answers 60 Views
Map
This is a migrated thread and some comments may be shown as answers.
Art Kedzierski
Top achievements
Rank 2
Art Kedzierski asked on 04 Dec 2012, 04:08 PM
I have a time zone map I've built that generates data 'bubbles' with a city name and local time from a datasource. Works great BUT the bubbles frequently overlap. I'd like to hittest each one as it is rendered and float it away from any underlying bubble.

What event is fired/should I be looking for as the informationLayer items are created? 

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 06 Dec 2012, 07:45 AM
Hi Art,

Unfortunately the InformationLayer does not provide an event which is raised when the items are created and are rendered. The change you requested is not in our plans for Q1 2012 and it does not seem to be a trivial one. I will make sure it is reconsidered when discussing our future plans, but I am afraid no certain time frame can be given at the moment.

Regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
SHREYA
Top achievements
Rank 1
answered on 07 Feb 2017, 04:04 AM
I have similar question I have mouse double click event of information layer and when a balloon is clicked this event get fired but contains all balloon info ,how to get the index for particular item clicked ..Please help ......
0
Martin Ivanov
Telerik team
answered on 09 Feb 2017, 10:56 AM
Hello Shreya,

A possible solution is to subscribe for the MapMouseDoubleClick event of the map. And then iterate trough all items in the layer and check if the location under the mouse is contained in the bounds of the balloon shape.

Regards,
Martin
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Map
Asked by
Art Kedzierski
Top achievements
Rank 2
Answers by
Andrey
Telerik team
SHREYA
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or