import ControlPoint from "@arcgis/core/layers/support/ControlPoint.js";const ControlPoint = await $arcgis.import("@arcgis/core/layers/support/ControlPoint.js");- Inheritance:
- ControlPoint→
Accessor
- 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
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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.
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
| | ||
ScreenPoint | null | undefined | |
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
| Method | Signature | Class |
|---|---|---|
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.