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

Dynamic Layer loses center while zooming

5 Answers 63 Views
Map
This is a migrated thread and some comments may be shown as answers.
Was
Top achievements
Rank 1
Was asked on 03 Jun 2013, 08:30 PM
Hi, i use Dynamic Layer with about 150 items on it
When i zoom in or out (i've set ZoomGrid for each zoomstep) the Map "jumps aside" for a while, then redraws and gets it previous center. I've disabled SpringAnimations, my ZoomGrid is defined like said in this thread: http://www.telerik.com/community/forums/silverlight/map/performance-with-radmap.aspx

5 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 04 Jun 2013, 07:10 AM
Hi Was,

Are you zooming using mouse wheel? If yes then you just see the default behavior of the RadMap control. When you change a zoom level using the mouse wheel, then the zooming is performed according to the current position of the mouse pointer (zoom to point). You can use the following settings for disabling the centering without disabling of zooming using the mouse:

<telerik:RadMap x:Name="radMap"            
    Center="40,-100"               
    MouseWheelMode="ZoomToCenter"              
    MouseClickMode="None"              
    MouseDoubleClickMode="ZoomToCenter"            
    MouseDragMode="None"               
    NavigationVisibility="Collapsed"               
    MiniMapExpanderVisibility="Collapsed"              
    ZoomLevel="3">
</telerik:RadMap>


Regards,
Andrey Murzov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Was
Top achievements
Rank 1
answered on 04 Jun 2013, 08:39 AM
I've uploaded zip file with a screen record, which shows the problem. MouseWheelMode is ZoomToCenter.

http://zalil.ru/upload/34555259
0
Andrey
Telerik team
answered on 04 Jun 2013, 11:13 AM
Hi Was,

Unfortunately I wasn't able to play the file you've referenced. I've tried Windows Media Player and KMPlayer, but without success. Seems like it is encoded using codec which is not supported on our systems. Could you, please, encode it using something common?

It would be much better if you provide us with small solution which we could use to reproduce your problem and step-by-step instructions what we should do and what we should see.

Regards,
Andrey Murzov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Was
Top achievements
Rank 1
answered on 04 Jun 2013, 01:33 PM
http://www.youtube.com/watch?v=TjXjNgYzDME&feature=youtu.be

Here you are
0
Andrey
Telerik team
answered on 05 Jun 2013, 07:11 AM
Hello Was,

It is very complicated and it is hard to reproduce the problem without your solution, but using just a video you sent. Could you, please, provide us with your solution or with a small sample solution which reproduces it?

Regards,
Andrey Murzov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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