UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

33 lines (32 loc) 924 B
import GroupLayer from './grouplayer.js'; import ThemeLayer from './themelayer.js'; type BaseLayerOptions = { isDefaultChecked?: boolean; disclaimer?: string; metadataUrl?: string; }; declare abstract class BaseLayer { id: number; treeItemId: string; name: string; order: number; isDefaultChecked: boolean; disclaimer?: string; metadataUrl?: string; isVisible: boolean; isPinned: boolean; isRemovable: boolean; isSwipeable: boolean; isDraggable: boolean; hasError: boolean; errorMessage: string | null; get hasMetadata(): boolean; isHighlighted: boolean; abstract activeState: string; abstract get active(): boolean; abstract get inactive(): boolean; abstract clone(): BaseLayer; parent?: ThemeLayer | GroupLayer; constructor(id: number, name: string, order: number, options?: BaseLayerOptions); } export default BaseLayer;