labelPointOperator

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

Calculates a label point for the given 2D geometries.

Method Overview

Name Return Type Summary Object

Performs the label point operation on the geometry.

labelPointOperator

Performs the label point operation on the geometry set.

labelPointOperator

Method Details

execute

Method
execute(geometry){Point}

Performs the label point operation on the geometry.

Parameter
geometry Geometry

The input geometry.

Returns
Type Description
Point Returns the label point.
Example
// Perform the label point operation
const labelPoint = labelPointOperator.execute(polygon);

executeMany

Method
executeMany(geometries){Point[]}

Performs the label point operation on the geometry set.

Parameter
geometries Geometry[]

The set of input geometries.

Returns
Type Description
Point[] Returns the label points for each geometry.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.