UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

20 lines (19 loc) 900 B
import GirafeSingleton from '../../base/GirafeSingleton.js'; /** * Handles the feature selection, independently from the map (2D or 3D) the selection was triggered from. * The selection is done in two steps: * 1. `select()` asks every layer manager to add its own <code>SelectionParam</code> to the state. * 2. The change of <code>selection.selectionParameters</code> triggers the effective query * (WMS GetFeatureInfo and WFS GetFeature) and writes the resulting features into the state. */ export default class SelectionManager extends GirafeSingleton { private get state(); initializeSingleton(): void; /** * Selects all the features of the queryable layers that are inside the given extent. * Layers selectable today are WMS, WMTS (with wms layer) and Local files. */ select(extent: number[]): void; selectNone(): void; private onSelectFeatures; }