The
IlvContinuousZoomInteractor allows the user to continuously zoom into or out
from a map by pressing and holding a mouse button. The zoom center,
that is, the point in a map that will be zoomed on, is the point in
the map where the mouse is clicked. By default, pressing the left
button zooms into the zoom center, pressing the right mouse button
zooms out from the zoom center. When you drag the mouse the current
zoom activity is paused and the map is panned to follow mouse displacement.
This interactor also redirects mouse wheel actions. After
this interactor is activated, the user scrolls the mouse wheel backwards
to zoom in, and forwards to zoom out.
The delay and zoom factor can be configured for each
interactor instance.
IlvContinuousZoomInteractor interactor = new IlvContinuousZoomInteractor();
interactor.setContinuousZoomFactor(factor);
interactor.setPeriod(period);
view.setInteractor(interactor);
To activate this interactor, use the following code: