import CornersGeoreference from "@arcgis/core/layers/support/CornersGeoreference.js";const CornersGeoreference = await $arcgis.import("@arcgis/core/layers/support/CornersGeoreference.js");- Inheritance:
- CornersGeoreference→
Accessor
- 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 boxconst 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 } }) })});Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
bottomLeft
The bottom left Point of the bounding box representing the geographic location of the image or video element being added to the MediaLayer.
bottomRight
The bottom right Point of the bounding box representing the geographic location of the image or video element being added to the MediaLayer.
topLeft
The top left Point of the bounding box representing the geographic location of the image or video element being added to the MediaLayer.
topRight
The top right Point of the bounding box representing the geographic location of the image or video element being added to the MediaLayer.
Methods
| Method | Signature | Class |
|---|---|---|
clone inherited | clone(): this |
clone
- Signature
-
clone (): this
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.