experimental new ol.interaction.DragZoom(opt_options)
Allows the user to zoom the map by clicking and dragging on the map,
normally combined with an ol.events.condition that limits
it to when the shift key is held down.
| Name | Type | Argument | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
optional
Options.
|
|||||||||||
Fires:
-
experimental
boxstart(ol.DragBoxEvent) - Triggered upon drag box start. -
change
Extends
Methods
-
experimental inherited dispatchChangeEvent()
-
Dispatches a
changeevent. Register a listener for this event to get notified of changes.Fires:
-
change
-
-
experimental inherited getGeometry(){ol.geom.Geometry}
-
Returns geometry of last drawn box.
-
experimental inherited on(type, listener, opt_this){goog.events.Key}
-
Listen for a certain type of event.
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
optional The object to use as
thisinlistener.Returns:
key for the listener.
-
experimental inherited once(type, listener, opt_this){goog.events.Key}
-
Listen once for a certain type of event.
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
optional The object to use as
thisinlistener.Returns:
key for the listener.
-
experimental inherited un(type, listener, opt_this)
-
Unlisten for a certain type of event.
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
optional The object to use as
thisinlistener. -
experimental inherited unByKey(key)
-
Removes an event listener using the key returned by
on()oronce().Name Type Description keygoog.events.Key Key.
OpenLayers 3