AMD:
require(["esri/geometry/operators/clipOperator"], (clipOperator) => { /* code goes here */ });
ESM:
import * as clipOperator from "@arcgis/core/geometry/operators/clipOperator.js";
Object:
esri/geometry/operators/clipOperator
Since: ArcGIS Maps SDK for JavaScript 4.31
beta
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