import MapImageGraphicOrigin from "@arcgis/core/graphic/MapImageGraphicOrigin.js";
Inheritance
MapImageGraphicOriginGraphicOrigin
Since
ArcGIS Maps SDK for JavaScript 5.0

Provides information about the MapImageLayer from which a graphic originates. Also provides access to the Sublayer that contains the graphic. You can access the graphic's origin through the graphic's origin property.

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
layer

The MapImageLayer from which a graphic originates.

sublayer

The Sublayer from which a graphic originates.

Properties

PropertyTypeClass
readonly
readonly
readonly
MapImageLayer["type"]

layer

readonly Property
Type
MapImageLayer

A layer from which a graphic originates.

sublayer

readonly Property
Type
Sublayer

The Sublayer from which a graphic originates.

type

readonly Property
Type
MapImageLayer["type"]

Indicates the type of layer the graphic originated from.

Default value
"map-image"