@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
38 lines (37 loc) • 1.2 kB
TypeScript
import BaseLayer from './baselayer.js';
import ILayerWithTime from './ilayerwithtime.js';
import ITimeOptions from '../../tools/time/itimeoptions.js';
export type GroupLayerOptions = {
isDefaultChecked?: boolean;
disclaimer?: string;
metadataUrl?: string;
isDefaultExpanded?: boolean;
isExclusiveGroup?: boolean;
isMixed?: boolean;
time?: ITimeOptions;
timeAttribute?: string;
};
declare class GroupLayer extends BaseLayer implements ILayerWithTime {
isExclusiveGroup: boolean;
isExpanded: boolean;
_isMixed?: boolean;
activeState: 'on' | 'off' | 'semi';
timeOptions?: ITimeOptions;
timeAttribute?: string;
timeRestriction?: string;
children: BaseLayer[];
constructor(id: number, name: string, order: number, options?: GroupLayerOptions);
clone(): GroupLayer;
get active(): boolean;
get inactive(): boolean;
get semiActive(): boolean;
get hasTimeRestriction(): boolean;
get hasGrandChildren(): boolean;
setDefaultTimeRestriction(): void;
/**
* Checks if all the children are LayerWms with the same ogcServer, opacity
* time
*/
get isMixed(): boolean;
}
export default GroupLayer;