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

zoom rectangle / box with shift

5 Answers 37 Views
Map
This is a migrated thread and some comments may be shown as answers.
M L
Top achievements
Rank 1
M L asked on 02 May 2013, 12:18 PM
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.

5 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 06 May 2013, 11:37 AM
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.

0
M L
Top achievements
Rank 1
answered on 06 May 2013, 12:06 PM
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.
0
Tsvetie
Telerik team
answered on 09 May 2013, 08:48 AM
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.

0
Flaviu
Top achievements
Rank 1
answered on 09 May 2013, 09:40 AM
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
0
Andrey
Telerik team
answered on 13 May 2013, 08:50 AM
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.

Tags
Map
Asked by
M L
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
M L
Top achievements
Rank 1
Flaviu
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or