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.

The developer dashboard has moved

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close