zoom rectangle / box with shift

6 posts, 0 answers
  1. M L
    M L avatar
    16 posts
    Member since:
    May 2010

    Posted 02 May 2013 Link to this post

    Hello,
    RadMap (or perhaps one of its elements) has this built in functionality that allows the user to press and hold the shift key in order to use a zoom rectangle.
    Simple question: how to disable this?
    I can't seem to find it. Other default behaviours such as how the map reacts to clicks, drags etc. is easy, but for this, im missing something.
    Thanks.
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 06 May 2013 Link to this post

    Hello,

    RadMap contains the "Box Zoom" feature (Rectangular zoom). It is enabled automatically when the user holds down the SHIFT key. Unfortunately, the control does not expose public API to disable this feature and the only thing that I can suggest, provided you want to disable any user interaction, is to set IsHitTestVisible to false. For example:

    <telerik:RadMap x:Name="RadMap1" IsHitTestVisible="False" />

    Greetings,
    Tsvetie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. M L
    M L avatar
    16 posts
    Member since:
    May 2010

    Posted 06 May 2013 Link to this post

    Thank you for your response.
    Is there any chance we could see this API functionality added in the near future?
    We're building a set of tools to work with the radMap, similar in fashion to simple drawing tools. One thing we need is to allow the user to have different functionality of the currently selected tool depending on whether he is holding shift key or not (such as scaling tool if he is holding shift vs moving tool if he is not).
    The bottom line is, we need to turn the zooming rectangle off, while still being able to use other of radMap's functionality.
  5. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 09 May 2013 Link to this post

    Hello,

    I forwarded your request to our developers. I updated your Telerik points for the feature request.

    Kind regards,
    Tsvetie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Flaviu
    Flaviu avatar
    2 posts
    Member since:
    May 2013

    Posted 09 May 2013 Link to this post

    Hello Tsvetie ,

    I need this functionality too.
    Shift + Mouse Button down has a special functionality within our application, if used on certain items of the map, but it enables Box Zoom also, and this is very confusing.
    We still need the ZoomBox functionality in other areas of the map, so basically we need a way to disable it in certain cases.

    IsHitTestVisible is obviously not a good workaround as it disables completely the interaction.

    Any help from your development team to add this option would be greatly appreciated.

    Regards,
    Flaviu Zapca
  7. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 13 May 2013 Link to this post

    Hi Flaviu,

    We will add this functionality in the future releases of the RadMap. You can check when this feature will be available using our PITS:

    http://www.telerik.com/support/pits.aspx#/public/silverlight/14996

    Greetings,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner