import { execute, supportsCurves } from "@arcgis/core/geometry/operators/areaOperator.js";const { execute, supportsCurves } = await $arcgis.import("@arcgis/core/geometry/operators/areaOperator.js");- Since
- ArcGIS Maps SDK for JavaScript 4.31
Returns the planar area of a 2D geometry.

Type definitions
Functions
| Name | Return Type | Object |
|---|---|---|
| | |
| | ||
| |
execute
Function
Calculates the planar area of the input geometry.
- Signature
-
execute (geometry: GeometryUnion, options?: Options): number
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| geometry | The geometry to calculate the area from. | | |
| options | Additional options. | |
- Returns
- number
Returns the planar area of the geometry.
Example
// Calculate the area of a polygonconst area = areaOperator.execute(polygon);Variables
supportsCurves
Variable
Indicates if the operator supports input geometries that contain curves.
The value will always be true.
- Type
- boolean
- Default value
- true