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