Jiggling usercontrols on InformationLayer

2 posts, 0 answers
  1. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 15 Feb 2012 Link to this post


    I have an InformationLayer on my map where the datatemplate for the layer contains a UserControl.  When the UI pans and zooms, the UserControls jiggle until the spring animation comes to a stop.  When I put an ellipse in its place the ellipses don't jiggle which makes me wonder if there is a specific problem with having UserControls on the map. 

    The HotSpot is centered on the UserControl and I have tried to using odd and even widths for the controls because it almost seems like the control can't decide what pixel it should sit on.

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 20 Feb 2012 Link to this post

    Hello Clint,

    This effect does not relate to the use of UserControl. The effect can occur on high zoom levels when the information layer has a large size, because calculations made to calculate position of object for zooming and panning on high zoom levels are close to the precision of doubles.

    The information layer is always geographically limited. If you don't restrict it using the InformationLayer.RegionMode and InformationLayer.Region properties, then it calculates its size dynamically according to location and size of its objects.

    I would recommend that you use a few information layers which have its items in smaller regions to avoid this effect.

    Kind regards,
    Andrey Murzov
    the Telerik team

    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft R3 2016 release webinar banner
Back to Top