labelPoint static method

ArcGISPoint labelPoint(
  1. Polygon polygon
)

Calculates an interior point for the given polygon. This point can be used by clients to place a label for the polygon.

Supports true curves.

Parameters:

  • polygon — A polygon object.

Return Value: A geometry object that represents the intersection of the given geometries.

Implementation

static ArcGISPoint labelPoint(
  Polygon polygon,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeometryEngine_labelPoint(
      polygon._handle,
      errorHandler,
    );
  });
  return ArcGISPoint._fromHandle(
    objectHandle,
  )!;
}