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

Is it possible to have rectangular zoom

3 Answers 76 Views
Map
This is a migrated thread and some comments may be shown as answers.
Vivek
Top achievements
Rank 1
Vivek asked on 19 Jul 2011, 08:51 AM
Hi Team,

I am looking for one functionality in Telerik map, Please let me know if this is possible or not?

1) Rectangular zoom --> means you will choose some location, suppose you choose Finland and then you will create a Rectangular area by pressing mouse and on release of the mouse the Finland area should zoom in.

if you have some code example please let me know.

Please respond, We are evaluating the teleirk silver light product to purchase.

Thanks for the help.

Thanks,
Vivek

3 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 21 Jul 2011, 12:50 PM
Hi Vivek,

The map control contains the "Box Zoom" feature (Rectangular zoom). By default it is enabled automatically when the user holds down the SHIFT key.
- press and hold down the SHIFT key
- press left mouse button
- drag the mouse cursor
You will see the area which will be used for rectangular zoom when you release a mouse button.

Also the RadMap contains the MouseDragMode property.
The property allows using the following values:
- "None"
- "Drag"
- "Select"

When its value is "Select" then the "Box Zoom" feature is enabled for mouse dragging. You can use it to toggle mouse mode between dragging the map and the "Box Zoom" mode.

Greetings,
Andrey Murzov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Vivek
Top achievements
Rank 1
answered on 21 Jul 2011, 04:46 PM
Hi Andrey Murzov,

Thanks for the reply. It's working now.

One final question I have right now, Please respond.

Can we measure the openstreemap means you click on some points and it draws a poly line and during that time it shows the length of that polyline in meters / feet.

Please let me know if it possible or not?

If you have some sort of sample code please pass over it.

Thanks for your help.
Vivek,
0
Accepted
Andrey
Telerik team
answered on 26 Jul 2011, 01:06 PM
Hello Vivek,

I have attached a sample project which draws a polyline using the MapMouseClick event. The solution calculates the length of the polyline and shows the distance in tooltip.

All the best,
Andrey Murzov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

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