import { LolOpenLayersSourceDef } from "../sourceDefinition/LolOpenLayersSourceDef"; export declare enum LayerType { TILE = 0, VECTOR_TILE = 1, VECTOR = 2, IMAGE = 3 } /** * Base definition of a map layer, extended for each type */ export interface LolOpenLayersLayerDef { /** The type of layer **/ type: LayerType; /** The (program) name of the layer **/ name: string; /** The source to load layer data from **/ source: LolOpenLayersSourceDef; /** The minimum resolution (inclusive) in pixels per metre at which this layer will be visible. Defaults to 0 if no minZoom **/ minResolution?: number; /** The maximum resolution (inclusive) in pixels per metre at which this layer will be visible. Defaults to no limit if no maxZoom **/ maxResolution?: number; /** * The minimum zoom level (inclusive) at which this layer will be visible. * Zoom is defined as a log scale such that resolution = maxResolutionEpsg3857 / 2^zoom (in pixels per metre). * (For our EPSG:3857 maps) * Defaults to zero if no minResolution. */ minZoom?: number; /** * The maximum zoom level (inclusive) at which this layer will be visible. * Zoom is defined as a log scale such that resolution = maxResolutionEpsg3857 / 2^zoom (in pixels per metre). * (For our EPSG:3857 maps) * Defaults to no limit if no maxResolution. */ maxZoom?: number; /** * The z-index for layer rendering. At rendering time, the layers will be ordered, first by Z-index and then by the order of creation. * Defaults to zero. */ zIndex?: number; /** * Set true to start layer visible, false to start hidden. Will initialize state and be overridden by state changes. * Defaults to true */ visible?: boolean; /** * The opacity of the layer * Opacity (0, 1) * Defaults to 1 */ opacity?: number; /** * If this is defined then click detection for features will be done using geometry instead of rendered feature. * This value is the distance from the geometry for click detection to detect a click, * e.g. radius of a mark, or width of a vector */ geometrySizeForClickDetection?: number; /** * Set this to disable clicks in this layer * (Defaults to enabled) */ disableClicks?: boolean; } export interface LolOpenLayersLayerGroupDef { className: string; layers: LolOpenLayersLayerDef[]; }