Dynamic Layer loses center while zooming

6 posts, 0 answers
  1. Was
    Was avatar
    16 posts
    Member since:
    Dec 2012

    Posted 03 Jun 2013 Link to this post

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

    Posted 04 Jun 2013 Link to this post

    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.

  3. DevCraft banner
  4. Was
    Was avatar
    16 posts
    Member since:
    Dec 2012

    Posted 04 Jun 2013 Link to this post

    I've uploaded zip file with a screen record, which shows the problem. MouseWheelMode is ZoomToCenter.

    http://zalil.ru/upload/34555259
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 04 Jun 2013 Link to this post

    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.

  6. Was
    Was avatar
    16 posts
    Member since:
    Dec 2012

    Posted 04 Jun 2013 Link to this post

    http://www.youtube.com/watch?v=TjXjNgYzDME&feature=youtu.be

    Here you are
  7. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 05 Jun 2013 Link to this post

    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.

Back to Top
DevCraft banner