UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

26 lines (25 loc) 1.7 kB
import type GraphicOrigin from "./GraphicOrigin.js"; import type StreamLayer from "../layers/StreamLayer.js"; /** * Provides information about the [StreamLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/StreamLayer/) from which a graphic originates. * The [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin) information may be available when a graphic is returned from methods such as * [hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest) or [queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/StreamLayerView/#queryFeatures). * * @since 5.0 * @see [MapView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest) * @see [SceneView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#hitTest) * @see [Map component hitTest()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#hitTest) * @see [Scene component hitTest()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#hitTest) * @see [StreamLayerView.queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/StreamLayerView/#queryFeatures) */ export default class StreamGraphicOrigin extends GraphicOrigin { constructor(layer: StreamLayer); /** A layer from which a graphic originates. */ readonly layer: StreamLayer; /** * Indicates the type of layer the graphic originated from. * * @default "stream" */ readonly type: StreamLayer["type"]; }