requireSelectionBeforeMove property

bool requireSelectionBeforeMove

True to require a GeometryEditorElement to first be selected before it can be moved by interactively dragging, false otherwise. Default is false.

By default, you can select and immediately move an element in one gesture. Some users may find this can lead to an increase in accidental element moves when editing. By setting this to true, this can reduce the possibility of accidental moves. Alternatively, you may wish to provide access to GeometryEditor.undo and GeometryEditor.redo to provide easy correction of accidental edits.

If false, the behavior of a drag gesture depends on the current GeometryEditor.tool. For a VertexTool, a drag gesture on the map over a geometry editor element that is not already selected pans the map, whereas a FreehandTool will create a new part (depending on InteractionConfiguration.allowPartCreation).

This property applies if and only if InteractionConfiguration.allowMovingSelectedElement is true.

Implementation

bool get requireSelectionBeforeMove {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_InteractionConfiguration_getRequireSelectionBeforeMove(
      _handle,
      errorHandler,
    );
  });
}
void requireSelectionBeforeMove=(bool value)

Implementation

set requireSelectionBeforeMove(bool value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_InteractionConfiguration_setRequireSelectionBeforeMove(
      _handle,
      value,
      errorHandler,
    );
  });
}