Is it possible to have rectangular zoom

4 posts, 2 answers
  1. Vivek
    Vivek avatar
    50 posts
    Member since:
    Jul 2011

    Posted 19 Jul 2011 Link to this post

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

    Posted 21 Jul 2011 Link to this post

    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!

  3. DevCraft banner
  4. Vivek
    Vivek avatar
    50 posts
    Member since:
    Jul 2011

    Posted 21 Jul 2011 Link to this post

    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,
  5. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 26 Jul 2011 Link to this post

    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!

Back to Top