@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
18 lines (17 loc) • 678 B
TypeScript
import GirafeSingleton from '../../base/GirafeSingleton.js';
export declare const LayerTreeStartOrder = 1000;
export default class OrderingManager extends GirafeSingleton {
private timeoutId?;
private get state();
initializeSingleton(): 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;
}