Creates a new CompositeEditHandle.
The list of handles to compose in this CompositeEditHandle
Optional
options: CompositeEditHandleConstructorOptionsOptions for the CompositeEditHandle
Protected
activeThe index of the active handle.
Only relevant when cascading is false
.
-1 if no handle should be active.
Protected
eventedThe EventedSupport used to emit events.
Typically, handles use emitEditShapeEvent to emit "EditShape" events. This is only used in advanced cases, for example when compositing multiple handles.
Protected
handlesThe list of handles that this CompositeEditHandle delegates to.
Note that the setter has side effects. Do not modify the list of handles in-place (e.g. push()
new
handles to the array after the setter has been called).
Protected
emitEmits an "EditShape"
event.
Typically, a handle emits this right after changing the shape.
The shape to emit an edit event for
The status of the edit. Typically, this is IN_PROGRESS while the handle is being dragged / changed, and EditShapeStatus.FINISHED when the drag ends.
Finds the handles to interact with, based on a given input event.
Note that this is only used if cascading is false
.
The event to find handles for
The edit context
handles that are close to the mouse cursor / finger.
Returns the mouse cursor to show.
In cascading mode, this returns the cursor of the active cascading handle.
If there is an active handle, its cursor is returned. Otherwise, the first interaction handle's cursor is used.
Called when a ContextMenu is populated.
EditHandle in the list of handles.
Draws handle shapes on the map.
Draws handle labels on the map.
EditHandle in the list of handles.
Handles the given context.
In cascading mode, it forwards the event to the active cascading handle.
In non-cascading mode, it forwards the event to all interaction handles. If one the interaction handles then handles the event, that handle becomes the active handle until it deactivates (returns HandleEventResult.REQUEST_DEACTIVATION or ignores an event).
Called when (another) handle changes the feature or shape, as indicated by the "EditShape" event.
EditHandle in the list of handles.
An event that is emitted whenever this handle changes the shape of a feature.
EditShape
Composes a list of edit handles.
It can compose them in 2 different ways:
Since
2022.1