maplibre-gl
Version:
BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
20 lines (14 loc) • 888 B
text/typescript
import {StyleLayer} from '../style_layer';
import properties, {type BackgroundPaintPropsPossiblyEvaluated} from './background_style_layer_properties.g';
import {type Transitionable, type Transitioning, type PossiblyEvaluated} from '../properties';
import type {BackgroundPaintProps} from './background_style_layer_properties.g';
import type {LayerSpecification} from '@maplibre/maplibre-gl-style-spec';
export const isBackgroundStyleLayer = (layer: StyleLayer): layer is BackgroundStyleLayer => layer.type === 'background';
export class BackgroundStyleLayer extends StyleLayer {
_transitionablePaint: Transitionable<BackgroundPaintProps>;
_transitioningPaint: Transitioning<BackgroundPaintProps>;
paint: PossiblyEvaluated<BackgroundPaintProps, BackgroundPaintPropsPossiblyEvaluated>;
constructor(layer: LayerSpecification) {
super(layer, properties);
}
}