startWithGeometry method

void startWithGeometry(
  1. Geometry initialGeometry
)

Starts a geometry editing session based on the specified geometry.

Use this method for data editing workflows, where you have an existing Geometry to be updated. After calling this method, the geometry is drawn in the map view, and interactions with the map view will select and edit the geometry, depending on the current GeometryEditor.tool and its InteractionConfiguration.

When the SpatialReference of the initial geometry differs from that of the map view, the display will project the geometry to the SpatialReference of the map view, using the default DatumTransformation, for display and user interactions. Editing feature data that is reprojected on the fly can introduce spatial errors into data. When accuracy is important, best practice is to use a spatial reference for the map view which matches the feature layer geometry you are editing. The ArcGIS Pro editing help topic Introduction to projection on the fly contains further advice.

Parameters:

Implementation

void startWithGeometry(
  Geometry initialGeometry,
) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_GeometryEditor_startWithGeometry(
      _handle,
      initialGeometry._handle,
      errorHandler,
    );
  });
}