Creates an edit handle that allows the user to translate the given arc by translating its center point.
Creates an edit handle that allows the user to change the arc's sweepAngle.
Creates an edit handle that paints helper lines for the Arc.
Creates an edit handle that allows the user to change the length of the major axis for the ellipse defining the arc and the rotation of the ellipse defining the arc.
Creates an edit handle that allows the user to change the length of the major axis for the ellipse defining the arc and the rotation of the ellipse defining the arc.
Creates an edit handle that allows the user to change the length of the minor axis for the ellipse defining the arc and the rotation of the ellipse defining the arc.
Creates an edit handle that allows the user to change the length of the minor axis for the ellipse defining the arc and the rotation of the ellipse defining the arc.
Creates an edit handle that allows the user to change the arc's startAzimuth.
Creates the shape translation handle.
This is a handle that allows translation (moving) of an entire shape / feature.
The context to retrieve the shape translate handle for
Returns an edit handle that's used for Arc creation.
a CreateByTemplateHandle. The length of the major axis for the ellipse defining the arc of the template is determined by getDefaultSize. The length of the minor axis is half the length of the major axis. The Arc.sweepAngle are kept as-is, as it was set in CreateController.onCreateNewObject.
Returns a set of handles for editing an Arc.
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 an arc shape.
Handles
The arc editor defines the following edit handles:Creation
The ArcEditor uses the "Create-by-template" strategy. After creation is started, the user clicks (or taps) once on the map. The Arc is moved to that location and resized to a size appropriate for the current zoom level. Then, the edit handles become active. When the user is done editing the shape (by double clicking outside the shape, or a single click if finishOnSingleClick), the creation finishes.
Since
2022.1