allowPartCreation property

bool allowPartCreation

True if you can interactively create a new part in a polyline or polygon, false otherwise. Default is true.

If true and the GeometryType of the GeometryEditor.geometry is a polygon or polyline, you can you can add new parts to the Multipart geometry - the GeometryEditor.tool determines the interaction required to add the new part. If the GeometryType of the GeometryEditor.geometry is a point or multipoint, this property is ignored. For new geometry creation (using GeometryEditor.startWithGeometryType, or calling GeometryEditor.startWithGeometry with an empty geometry), this property is always ignored when adding the first part, and respected thereafter.

Users less experienced with GIS data may not understand how visually separate parts of polygons and polylines form a single geometry. You may wish to prevent such users from inadvertently creating geometries with multiple parts in order to keep their workflows straightforward and understandable. Alternatively, your app may be editing data which does not support multipart geometries.

InteractionConfiguration.setAllowCreation sets this property.

Implementation

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

Implementation

set allowPartCreation(bool value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_InteractionConfiguration_setAllowPartCreation(
      _handle,
      value,
      errorHandler,
    );
  });
}