UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

19 lines (18 loc) • 713 B
import GirafeSingleton from '../../base/GirafeSingleton.js'; export declare const LayerTreeStartOrder = 1000; export default class OrderingManager extends GirafeSingleton { private timeoutId?; private isReordering; private get state(); initializeSingleton(): Promise<void>; private registerEvents; private onLayerListChanged; /** * This method do a reorder of all layers present in the treeview * in order to keep a order attribut corresponding to what the use wants. * This order will be used by the map component to calculate the list of layers in the right order */ private reorderLayers; private reorderLayersRecursively; private getSortedLayers; }