Delay in map panning

5 posts, 0 answers
  1. Wenrong
    Wenrong avatar
    14 posts
    Member since:
    Sep 2011

    Posted 12 Oct 2011 Link to this post

    During our evaluation of the RadMap control, we noticed that there is a significant delay (almost 1 second) between the mouse dragging and the starting of map panning.

    I am using a local single image provider, so loading time shouldn't be the issue.

    Is there any parameter I need to set to reduce this delay.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 14 Oct 2011 Link to this post

    Hi Wenrong,

    There is a difference between the Silverlight and the WPF version of RadMap. The Silverlight version is based on the standard Silverlight MultiScaleImage control. Unfortunately, there is no such control in WPF, so we have created our own implementation of the MultiScaleImage. All panning and zooming features which are available in Silverlight's MultiScaleImage control are simulated in WPF using the available animation features. So, the Silverlight and the WPF version have a difference for panning and zooming using mouse when the spring animation feature is enabled (RadMap.UseSpringAnimations="True"). By default the feature is enabled. You can disable this feature to make the panning faster.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Wenrong
    Wenrong avatar
    14 posts
    Member since:
    Sep 2011

    Posted 14 Oct 2011 Link to this post

    Great! I like this panning without the animation.

    However this seems to have effect on both zooming and panning. Is it possible to have animation on zooming only?
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 19 Oct 2011 Link to this post

    Hello Wenrong,

    Currently the RadMap can use the animation on both zooming and panning only. We already have the PITS issue for this feature. You can check when it will be available using the following link:
    http://www.telerik.com/support/pits.aspx#/public/silverlight/1311

    One of the major criteria for prioritizing feature development is the number of customers' votes in our PITS and you can cast your vote for this feature.

    All the best,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Ian
    Ian avatar
    1 posts
    Member since:
    Nov 2014

    Posted 13 Nov 2014 in reply to Wenrong Link to this post

    This seems to do the trick:

            private void map_PreviewMouseDown(object sender, MouseButtonEventArgs e) {
                if (e.ChangedButton != MouseButton.Left) return;
                map.UseSpringAnimations = false;
            }
            private void map_PreviewMouseUp(object sender, MouseButtonEventArgs e) {
                if (e.ChangedButton != MouseButton.Left) return;
                map.UseSpringAnimations = true;
            }
Back to Top
UI for WPF is Visual Studio 2017 Ready