PageSourceSearch

https://satcar.dk/templates/satcar/js/mapbox-gl/src/style/create_style_layer

js satcar.dk collected 2026-10-02 01:55:22 UTC 1,137 bytes, 36 lines download raw bytes

vendor: 1,137 bytes, lines 1-36
1// @flow
2
3import circle from './style_layer/circle_style_layer';
4import heatmap from './style_layer/heatmap_style_layer';
5import hillshade from './style_layer/hillshade_style_layer';
6import fill from './style_layer/fill_style_layer';
7import fillExtrusion from './style_layer/fill_extrusion_style_layer';
8import line from './style_layer/line_style_layer';
9import symbol from './style_layer/symbol_style_layer';
10import background from './style_layer/background_style_layer';
11import raster from './style_layer/raster_style_layer';
12import CustomStyleLayer from './style_layer/custom_style_layer';
13import type {CustomLayerInterface} from './style_layer/custom_style_layer';
14
15import type {LayerSpecification} from '../style-spec/types';
16
17const subclasses = {
18    circle,
19    heatmap,
20    hillshade,
21    fill,
22    'fill-extrusion': fillExtrusion,
23    line,
24    symbol,
25    background,
26    raster
27};
28
29export default function createStyleLayer(layer: LayerSpecification | CustomLayerInterface) {
30    if (layer.type === 'custom') {
31        return new CustomStyleLayer(layer);
32    } else {
33        return new subclasses[layer.type](layer);
34    }
35}
36

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.