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