Skip to content
import KnowledgeGraphGraphicOrigin from "@arcgis/core/graphic/KnowledgeGraphGraphicOrigin.js";
Inheritance:
KnowledgeGraphGraphicOriginGraphicOrigin
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
ParameterTypeDescriptionRequired
layer

The KnowledgeGraphLayer from which a graphic originates.

sublayer

KnowledgeGraphSublayer from which a graphic originates.

Properties

PropertyTypeClass
layer
readonly
sublayer
readonly
type
readonly

layer

readonly Property
Type
KnowledgeGraphLayer

A layer from which a graphic originates.

sublayer

readonly Property
Type
KnowledgeGraphSublayer

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"