UNPKG

@vertigis/viewer-spec

Version:

VertiGIS Viewer Specification

33 lines (32 loc) 1.15 kB
import type { Action } from "@vertigis/arcgis-extensions/support/Action.js"; import type { ItemRef } from "../common/ItemRef.js"; import type { LayerListModelProperties as CommonLayerListModelProperties } from "../common/LayerListModelProperties.js"; import type { ComponentModelProperties } from "./ComponentModelProperties.js"; /** * @inheritdoc */ export interface LayerListModelProperties extends CommonLayerListModelProperties, ComponentModelProperties { /** * Whether or not the layer list will allow the drawing order of layers to * be changed. Defaults to true. */ canReorder?: boolean; /** * A reference to a Menu containing layer actions (menu items that take a * layer as context). */ layerActions?: ItemRef; /** * A command or set of commands to execute when a layer item is moused-over. */ onHover?: Action; /** * A command or set of commands to execute when a layer item has finished * the moused-over event. */ onHoverEnd?: Action; /** * A command or set of commands to execute when a layer item is clicked. */ onClick?: Action; }