Has anyone implemented a rectangle zoom?

This question probably isn't clear -- some maps allow users to drag a rectangle on the surface of the map and then onmouseup the map zooms to the area within the rectangle. Has anyone implemented this If so are you wiling to share a code sample Thanks.



Answer this question

Has anyone implemented a rectangle zoom?

  • Rykin Poe

    Ah...didn't know about the alt+left trick. The only reason I found out about the 3rd mouse button is I was putting together Release Notes for an app that uses VE and copy and pasted some usage instructions from local.live.com into the page.

  • Imad.Ozone

    ..and for those of you without a middle mouse button (or hate using it as much as I do): ALT-left click does the same thing. :)


  • Karthikeyan Mahadevan

    Or you can hold down the alt key and you the left mouse button.

    Didn't know about the 3rd mouse button....

    John.



  • SiddCF

    Thanks for the answer -- and I'm sorry for the 'duh' question (the programs I've seen use the left mouse button)


  • smartpi

    I think that is built in functionality. Use your middle mouse button to draw the rectangle though.

  • Has anyone implemented a rectangle zoom?