MouseModeAPI.setZoomByRectMode

 

void setZoomByRectMode()

This method sets the state of the SDM such that the user can click and drag a rectangle in any view. Upon release of the mouse button, the view is zoomed such that the portion of the map originally displayed within the rectangle fills the view. The SDM stays in this state until the client calls setNeutralMode, or the user clicks the right mouse button.