@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
24 lines (23 loc) • 1.22 kB
TypeScript
import type GraphicOrigin from "./GraphicOrigin.js";
import type MapImageLayer from "../layers/MapImageLayer.js";
import type Sublayer from "../layers/support/Sublayer.js";
/**
* Provides information about the [MapImageLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/) from which a graphic originates.
* Also provides access to the [Sublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/) that contains the graphic.
* You can access the graphic's origin through the graphic's [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin) property.
*
* @since 5.0
*/
export default class MapImageGraphicOrigin extends GraphicOrigin {
constructor(layer: MapImageLayer, sublayer: Sublayer);
/** A layer from which a graphic originates. */
readonly layer: MapImageLayer;
/** The [Sublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/) from which a graphic originates. */
readonly sublayer: Sublayer;
/**
* Indicates the type of layer the graphic originated from.
*
* @default "map-image"
*/
readonly type: MapImageLayer["type"];
}