Dynamically adjust position of informationLayer items

4 posts, 0 answers
  1. Art Kedzierski
    Art Kedzierski avatar
    107 posts
    Member since:
    Nov 2009

    Posted 04 Dec 2012 Link to this post

    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? 
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 06 Dec 2012 Link to this post

    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.

  3. SHREYA
    SHREYA avatar
    1 posts
    Member since:
    Dec 2016

    Posted 06 Feb Link to this post

    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 ......
  4. Martin
    Admin
    Martin avatar
    1199 posts

    Posted 09 Feb Link to this post

    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.
Back to Top