import * as polygonOverlayOperator from "@arcgis/core/geometry/operators/polygonOverlayOperator.js";
            const polygonOverlayOperator = await $arcgis.import("@arcgis/core/geometry/operators/polygonOverlayOperator.js");
            @arcgis/core/geometry/operators/polygonOverlayOperator
        Performs an overlay operation on a set of 2D polygons in the XY plane. This operation produces similar results to the Union tool in Geoprocessing.
Property Overview
| Name | Type | Summary | Object | 
|---|---|---|---|
Indicates if the operator supports input polygons that contain curves.  | polygonOverlayOperator | 
Property Details
- 
  
  
supportsCurves
PropertysupportsCurves Booleanreadonly - 
  
    
Indicates if the operator supports input polygons that contain curves. The value will always be
true. 
Method Overview
| Name | Return Type | Summary | Object | 
|---|---|---|---|
Performs the topological overlay of the geometry set in the XY plane.  | polygonOverlayOperator | 
Method Details
- 
  
  
executeMany
MethodexecuteMany(polygons, options){ExecuteManyResult} - 
  
  
    
Performs the topological overlay of the geometry set in the XY plane.
ParametersSpecificationThe set of polygons to overlay. All the polygons must have the same spatial reference.
options ObjectoptionalAdditional options.
Specificationgaps BooleanoptionalCreate polygons to fill gaps. Gaps are empty areas between different polygons, that have a closed boundary.
holes BooleanoptionalCreate polygons to fill holes. Holes are empty areas completely enclosed by a single polygon. In addition to regular holes formed by the interior rings, the operator considers any empty area that has a closed boundary formed by the segments of same polygon to be a hole. For example, a gap between two or more exterior rings of same polygon is also considered a hole.
noOverlaps BooleanoptionalDefault Value: trueOutput non-overlapping areas of polygons.
overlaps BooleanoptionalDefault Value: trueOutput overlapping areas of polygons.
multiPart BooleanoptionalOutput multipart polygons. Multipart output requires more processing. If the option is not set, the output will contain single part polygons (one exterior ring and zero or more holes).
ReturnsType Description ExecuteManyResult Returns the result polygons and ids. Overlaps have two or more ids, no-overlaps have one id, and gaps have no ids. Example// Overlay a set of polygons const result = polygonOverlayOperator.executeMany(polygons); 
Type Definitions
- 
  
    
Object returned by the executeMany() method.