import MapNotesGraphicOrigin from "@arcgis/core/graphic/MapNotesGraphicOrigin.js";const MapNotesGraphicOrigin = await $arcgis.import("@arcgis/core/graphic/MapNotesGraphicOrigin.js");- Inheritance:
- MapNotesGraphicOrigin→
GraphicOrigin
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Provides information about the MapNotesLayer from which a graphic originates. Also provides access to the sub GraphicsLayer that contains the graphic. The origin information may be available when a graphic is returned from methods such as hitTest().
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| layer | The MapNotesLayer from which a graphic originates. | | |
| sublayer | The GraphicsLayer from which a graphic originates. | |
Properties
| Property | Type | Class |
|---|---|---|
layer readonly | | |
sublayer readonly | | |
type readonly | MapNotesLayer["type"] | |
type
readonly Property
- Type
- MapNotesLayer["type"]
Indicates the type of layer the graphic originated from.
- Default value
- "map-notes"