Skip to content

VectorTileGraphicOrigin

ESM: import VectorTileGraphicOrigin from "@arcgis/core/graphic/VectorTileGraphicOrigin.js";
CDN: const VectorTileGraphicOrigin = await $arcgis.import("@arcgis/core/graphic/VectorTileGraphicOrigin.js");
Class: @arcgis/core/graphic/VectorTileGraphicOrigin
Inheritance: VectorTileGraphicOriginGraphicOrigin
Since: ArcGIS Maps SDK for JavaScript 4.34

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

VectorTileGraphicOrigin

Constructor
new VectorTileGraphicOrigin(layer, layerId, layerIndex)
Parameters

The layer of the origin.

layerId String

The id of the style layer of the origin.

layerIndex Number

The 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

Property
layer VectorTileLayerreadonly

The VectorTileLayer from which a graphic originates.

layerId

Property
layerId Stringreadonly

The unique identifier of the style layer in the vector tile style.

layerIndex

Property
layerIndex Numberreadonly

The layer index of the style layer in the vector tile style.

type

Property
type Stringreadonly

The type of the graphic origin.

For VectorTileGraphicOrigin the type is always "vector-tile".

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.