AMD:
require(["esri/geometry/operators/geodeticAreaOperator"], (geodeticAreaOperator) => { /* code goes here */ });
ESM:
import * as geodeticAreaOperator from "@arcgis/core/geometry/operators/geodeticAreaOperator.js";
Object:
esri/geometry/operators/geodeticAreaOperator
Since: ArcGIS Maps SDK for JavaScript 4.31
beta
Returns the geodetic area of a 2D geometry.
Method Overview
Name | Return Type | Summary | Object |
---|---|---|---|
Calculates the geodetic area of the input Geometry. | geodeticAreaOperator | ||
Indicates if all dependencies of this module have been loaded. | geodeticAreaOperator | ||
Promise | Loads this module's dependencies. | geodeticAreaOperator |
Method Details
-
execute
execute(geometry, options){Number}
-
Calculates the geodetic area of the input Geometry. Unless the
unit
option is set, the default is square-meters.ParametersSpecificationReturnsType Description Number Returns the geodetic area of the input geometry. Example// Calculate the geodetic area of a polygon. if (geodeticAreaOperator.isLoaded()) { const area = geodeticAreaOperator.execute(polygon); }
-
Loads this module's dependencies. This method must be called first if
isLoaded
returnsfalse
.ReturnsType Description Promise Resolves when the dependencies have been loaded. - See also