Skip to content
import CornersGeoreference from "@arcgis/core/layers/support/CornersGeoreference.js";
Inheritance:
CornersGeoreferenceAccessor
Since
ArcGIS Maps SDK for JavaScript 4.24

CornersGeoreference is used to set the geographic location of the image or element referenced in the MediaLayer using corner points of a bounding box.

// create a canvas image element by setting its corner points of the bounding box
const canvasElement = new ImageElement({
image: canvas,
georeference: new CornersGeoreference({
bottomRight: new Point({
x: -121.369,
y: 45.061,
spatialReference: {
wkid: 4326
}
}),
bottomLeft: new Point({
x: -122.363,
y: 45.061,
spatialReference: {
wkid: 4326
}
}),
topRight: new Point({
x: -121.369,
y: 45.678,
spatialReference: {
wkid: 4326
}
}),
topLeft: new Point({
x: -122.363,
y: 45.678,
spatialReference: {
wkid: 4326
}
})
})
});
See also

Constructors

Constructor

Constructor
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.
PropertyTypeClass
declaredClass
readonly inherited
type
readonly
"corners"

bottomLeft

autocast Property
Type
Point | null | undefined

The bottom left Point of the bounding box representing the geographic location of the image or video element being added to the MediaLayer.

See also

bottomRight

autocast Property
Type
Point | null | undefined

The bottom right Point of the bounding box representing the geographic location of the image or video element being added to the MediaLayer.

See also

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

topLeft

autocast Property
Type
Point | null | undefined

The top left Point of the bounding box representing the geographic location of the image or video element being added to the MediaLayer.

See also

topRight

autocast Property
Type
Point | null | undefined

The top right Point of the bounding box representing the geographic location of the image or video element being added to the MediaLayer.

See also

type

readonly Property
Type
"corners"

The georeference type.

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.