Skip to content
import ControlPoint from "@arcgis/core/layers/support/ControlPoint.js";
Inheritance:
ControlPointAccessor
Since
ArcGIS Maps SDK for JavaScript 4.25

A control point object in the ControlPointsGeoreference.controlPoints array. A control point is composed of a ScreenPoint representing a point on the element and of a mapPoint to map the location of the ScreenPoint in the map space.

Example
const controlPoint = {
sourcePoint: { x: 0, y: 0 },
mapPoint: new Point({ x: -180, y: 85 })
};

Constructors

Constructor

Constructor
Since
ArcGIS Maps SDK for JavaScript 5.0
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

mapPoint

autocast Property
Type
Point | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The coordinate of the the control point in the map coordinate space.

sourcePoint

Property
Type
ScreenPoint | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The coordinate of the control point in the image coordinate space in pixels.

Methods

MethodSignatureClass
clone
inherited
clone(): this

clone

inherited Method
Signature
clone (): this
Inherited from: ClonableMixin

Creates a deep clone of this object. Any properties that store values by reference will be assigned copies of the referenced values on the cloned instance.

Returns
this

A deep clone of the class instance that invoked this method.