import ExtentAndRotationGeoreference from "@arcgis/core/layers/support/ExtentAndRotationGeoreference.js";const ExtentAndRotationGeoreference = await $arcgis.import("@arcgis/core/layers/support/ExtentAndRotationGeoreference.js");- Inheritance:
- ExtentAndRotationGeoreference→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.24
ExtentAndRotationGeoreference is used to set the geographic location of the image or element referenced in the MediaLayer using the extent and rotation parameters.
// create a new ExtentAndRotationGeoreferenceconst geoReference = new ExtentAndRotationGeoreference({ extent: new Extent({ spatialReference: { wkid: 102100 }, xmin: -10047456.27662979, ymin: 3486722.2723874687, xmax: -10006982.870152846, ymax: 3514468.91365495 })});const imageElement = new ImageElement({ type: "image", image: "https://arcgis.github.io/arcgis-samples-javascript/sample-data/media-layer/neworleans1891.png", georeference: geoReference});Constructors
Constructor
Constructor
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.
extent
autocast
Property
An extent of the image or video element representing its geographic location when added to the MediaLayer.
rotation
Property
- Type
- number
A rotation of the image or video element when added to the MediaLayer. The rotation is clockwise angle of due north in relation to the top of the view in degrees.
- Default value
- 0
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.