Skip to content
import ExtentAndRotationGeoreference from "@arcgis/core/layers/support/ExtentAndRotationGeoreference.js";
Inheritance:
ExtentAndRotationGeoreferenceAccessor
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 ExtentAndRotationGeoreference
const 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
});
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
"extent-and-rotation"

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

extent

autocast Property
Type
Extent | null | undefined

An extent of the image or video element representing its geographic location when added to the MediaLayer.

See also

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.

See also
Default value
0

type

readonly Property
Type
"extent-and-rotation"

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.