Results 1 to 2 of 2

Thread: Zooming the map image

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    28
    Vote Rating
    0
      0  

    Default Unanswered: Zooming the map image

    I am trying to implement Zoom feature on the map. I need to use 'crosshair' cursor. When I drag the cursor over the image, it should draw the rectangle on the mousedown event. When I release the mouse button, it will complete the rectangle and fire server side event to rebuild the map image. Is there any such example available? Or any suggestions?

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,154
    Answers
    501
    Vote Rating
    249
      0  

    Default

    You might take a look at the DragTracker class that will track the mousedown/move/up actions on an element.

    Here's an example where the DragTracker is used to great effect:
    http://docs.sencha.com/ext-js/4-2/ex...data-view.html
    *drag from the white space in the view

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •