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

Jiggling usercontrols on InformationLayer

1 Answer 70 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.
Clint Singer
Top achievements
Rank 1
Clint Singer asked on 15 Feb 2012, 07:54 PM
Hi,

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.

Cheers,
Clint

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 20 Feb 2012, 08:38 AM
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 >>
Tags
Map
Asked by
Clint Singer
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or