new Modify(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Fires:
-
ModifyEvent
-
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
-
Get the overlay layer that this interaction renders sketch features to.
Returns:
Overlay layer.
-
Handles the
map browser event
and may call into other functions, if event sequences like e.g. 'drag' or 'down-up' etc. are detected. -
removePoint(){boolean}
interaction/Modify.js, line 1015 -
Removes the vertex currently being pointed.
Returns:
True when a vertex was removed.
-
setActive(active)
interaction/Modify.js, line 402 -
Activate or deactivate the interaction.
Name Type Description active
boolean Active.