import VectorTileGraphicOrigin from "@arcgis/core/graphic/VectorTileGraphicOrigin.js";
const VectorTileGraphicOrigin = await $arcgis.import("@arcgis/core/graphic/VectorTileGraphicOrigin.js");
@arcgis/core/graphic/VectorTileGraphicOrigin
Provides information about the VectorTileLayer from which a graphic originates.
Origin information maybe available when a graphic is returned from methods such as hitTest()
method.
You can access the graphic's origin through the graphic's origin property.
The origin information contains the style layer's id and layer index
within the vector tile style.
Spatial information about the actual feature represented in the style layer is returned only
if the style layer is a symbol layer. Otherwise, the graphic's geometry is null
.
- See also
Constructors
-
Parameterslayer VectorTileLayer
The layer of the origin.
layerId StringThe id of the style layer of the origin.
layerIndex NumberThe index of the style layer of the origin.
Property Overview
Name | Type | Summary | Class |
---|---|---|---|
The VectorTileLayer from which a graphic originates. | VectorTileGraphicOrigin | ||
The unique identifier of the style layer in the vector tile style. | VectorTileGraphicOrigin | ||
The layer index of the style layer in the vector tile style. | VectorTileGraphicOrigin | ||
The type of the graphic origin. | VectorTileGraphicOrigin |
Property Details
-
layer
layer VectorTileLayerreadonly
-
The VectorTileLayer from which a graphic originates.
-
layerId
layerId Stringreadonly
-
The unique identifier of the style layer in the vector tile style.
-
layerIndex
layerIndex Numberreadonly
-
The layer index of the style layer in the vector tile style.
-
type
type Stringreadonly
-
The type of the graphic origin.
For VectorTileGraphicOrigin the type is always "vector-tile".