Creates a new GeoBufferEditor.
This constructor does not initialize any state.
The editor for the geobuffer's base shape. See GeoBuffer.isSupportedBaseShape for a list of supported geobuffer base shape types.
The editor used for the base shape of the geobuffer. See GeoBuffer.isSupportedBaseShape for a list of supported geobuffer base shape types.
Creates handles to edit the base shape of the geobuffer.
The default implementation delegates to Editor.getEditHandles, if it base shape. Base shape translation handles are removed from this list.
See GeoBuffer.isSupportedBaseShape for a list of supported geobuffer base shape types.
Creates an edit handle that paints helper lines for the geobuffer.
Creates a handle to translate the geobuffer.
Creates a handle to edit the GeoBuffer.width of the geobuffer.
Returns a handle that's used for geobuffer creation.
The default implementation delegates to Editor.getCreateHandle. For performance reasons, freehand creation is always disabled for geobuffer creation.
When creation starts, the GeoBuffer.width is changed to a default size.
Returns a set of handles for editing a GeoBuffer.
By default, this delegates to the following methods:
Restores the feature of the given context to a previously saved state.
This applies the saved state that was created by saveState to the context's EditContext.feature. It is used to revert back to the initial state when editing is cancelled (ie. the controller deactivates without finishing) or restarted. When editing is cancelled, restoreState is called to revert the edited feature back to its initial state.
The default implementation updates the feature's shape to the shape that was returned by the saveState method If your editor / handles change other feature properties, you can override saveState and restoreState to save and restore these additional properties as well.
The state that was saved, as returned by saveState.
The editing context.
Returns a save state of the feature in the given context being edited.
This save state is used to revert back to the initial state when editing is cancelled (ie. the controller deactivates without finishing) or restarted. When editing is cancelled, restoreState is called to revert the edited feature back to its initial state.
The default implementation saves a copy of the feature's shape. If your editor / handles change other feature properties, you can override saveState and restoreState to save and restore these additional properties as well.
The editing context.
The save state. By default, this is a copy of the feature's shape.
An editor that allows editing and creation of features with a geobuffer shape.
Handles
The geobuffer editor defines the following edit handles:Creation
The Editor.getCreateHandle of the width is changed to a default size.
Since
2022.1