import MapImageGraphicOrigin from "@arcgis/core/graphic/MapImageGraphicOrigin.js";const MapImageGraphicOrigin = await $arcgis.import("@arcgis/core/graphic/MapImageGraphicOrigin.js");- Inheritance:
- MapImageGraphicOrigin→
GraphicOrigin
- 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
| Parameter | Type | Description | Required |
|---|---|---|---|
| layer | The MapImageLayer from which a graphic originates. | | |
| sublayer | The Sublayer from which a graphic originates. | |
Properties
| Property | Type | Class |
|---|---|---|
layer readonly | | |
sublayer readonly | | |
type readonly | MapImageLayer["type"] | |
type
readonly Property
- Type
- MapImageLayer["type"]
Indicates the type of layer the graphic originated from.
- Default value
- "map-image"