new ExtentInteraction(opt_options)
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Fires:
-
change
(module:ol/events/Event~Event) - Generic change event. Triggered when the revision counter is increased. -
change:active
(module:ol/Object.ObjectEvent) -
propertychange
(module:ol/Object.ObjectEvent) - Triggered when a property is changed.
Extends
Observable Properties
Name | Type | Settable | ol/Object.ObjectEvent type | Description |
---|---|---|---|---|
active |
boolean | yes | change:active |
|
Methods
-
Returns the current drawn extent in the view projection
Returns:
Drawn extent in the view projection.
-
Handles the
map browser event
and may call into other functions, if event sequences like e.g. 'drag' or 'down-up' etc. are detected. -
setExtent(extent)
interaction/Extent.js, line 398 -
Manually sets the drawn extent, using the view projection.
Name Type Description extent
module:ol/extent~Extent Extent