require(["esri/geometry/operators/clipOperator"], (clipOperator) => { /* code goes here */ });
import * as clipOperator from "@arcgis/core/geometry/operators/clipOperator.js";
esri/geometry/operators/clipOperator
Clips geometries with a 2D extent.
Method Overview
Name | Return Type | Summary | Object |
---|---|---|---|
Perform the clip operation on the input geometry. | clipOperator | ||
Perform the clip operation on the input geometries. | clipOperator |
Method Details
-
Perform the clip operation on the input geometry.
ParametersReturnsExample// return a new geometry of a polygon clipped by the view's extent const clippedGeometry = clipOperator.execute(polygon, view.extent);
-
Perform the clip operation on the input geometries.
ParametersReturns