|
1 | 1 | /* |
2 | 2 | * Mapbox Style Specification types |
3 | 3 | */ |
4 | | -// Layers |
5 | | -import type { |
6 | | - BackgroundLayer, |
7 | | - SkyLayer, |
8 | | - CircleLayer, |
9 | | - FillLayer, |
10 | | - FillExtrusionLayer, |
11 | | - HeatmapLayer, |
12 | | - HillshadeLayer, |
13 | | - LineLayer, |
14 | | - RasterLayer, |
15 | | - SymbolLayer |
16 | | -} from 'mapbox-gl'; |
17 | | - |
18 | | -export type AnyLayer = |
19 | | - | BackgroundLayer |
20 | | - | CircleLayer |
21 | | - | FillExtrusionLayer |
22 | | - | FillLayer |
23 | | - | HeatmapLayer |
24 | | - | HillshadeLayer |
25 | | - | LineLayer |
26 | | - | RasterLayer |
27 | | - | SymbolLayer |
28 | | - | SkyLayer; |
29 | | - |
30 | 4 | export type { |
31 | | - BackgroundLayer, |
32 | | - SkyLayer, |
33 | | - CircleLayer, |
34 | | - FillLayer, |
35 | | - FillExtrusionLayer, |
36 | | - HeatmapLayer, |
37 | | - HillshadeLayer, |
38 | | - LineLayer, |
39 | | - RasterLayer, |
40 | | - SymbolLayer |
41 | | -}; |
42 | | - |
43 | | -// Sources |
44 | | -import type { |
45 | | - Projection as ProjectionSpecification, |
46 | | - GeoJSONSourceRaw as GeoJSONSource, |
47 | | - VideoSourceRaw as VideoSource, |
48 | | - ImageSourceRaw as ImageSource, |
49 | | - VectorSource, |
50 | | - RasterSource, |
51 | | - CanvasSourceRaw as CanvasSource, |
52 | | - RasterDemSource |
53 | | -} from 'mapbox-gl'; |
| 5 | + // Layers |
| 6 | + AnyLayer as LayerSpecification, |
| 7 | + BackgroundLayer as BackgroundLayerSpecification, |
| 8 | + SkyLayer as SkyLayerSpecification, |
| 9 | + CircleLayer as CircleLayerSpecification, |
| 10 | + FillLayer as FillLayerSpecification, |
| 11 | + FillExtrusionLayer as FillExtrusionLayerSpecification, |
| 12 | + HeatmapLayer as HeatmapLayerSpecification, |
| 13 | + HillshadeLayer as HillshadeLayerSpecification, |
| 14 | + LineLayer as LineLayerSpecification, |
| 15 | + RasterLayer as RasterLayerSpecification, |
| 16 | + SymbolLayer as SymbolLayerSpecification, |
54 | 17 |
|
55 | | -export type AnySource = |
56 | | - | GeoJSONSource |
57 | | - | VideoSource |
58 | | - | ImageSource |
59 | | - | CanvasSource |
60 | | - | VectorSource |
61 | | - | RasterSource |
62 | | - | RasterDemSource; |
| 18 | + // Sources |
| 19 | + AnySourceData as SourceSpecification, |
| 20 | + CanvasSourceRaw as CanvasSourceSpecification, |
| 21 | + GeoJSONSourceRaw as GeoJSONSourceSpecification, |
| 22 | + VideoSourceRaw as VideoSourceSpecification, |
| 23 | + ImageSourceRaw as ImageSourceSpecification, |
| 24 | + VectorSource as VectorSourceSpecification, |
| 25 | + RasterSource as RasterSourceSpecification, |
| 26 | + RasterDemSource as RasterDemSourceSpecification, |
63 | 27 |
|
64 | | -export type { |
65 | | - GeoJSONSource, |
66 | | - VideoSource, |
67 | | - ImageSource, |
68 | | - CanvasSource, |
69 | | - VectorSource, |
70 | | - RasterSource, |
71 | | - RasterDemSource |
72 | | -}; |
73 | | - |
74 | | -// Other |
75 | | -export type {Style as MapStyle, Light, Fog, TerrainSpecification as Terrain} from 'mapbox-gl'; |
76 | | - |
77 | | -export type Projection = ProjectionSpecification | ProjectionSpecification['name']; |
| 28 | + // Style |
| 29 | + Style as StyleSpecification, |
| 30 | + Light as LightSpecification, |
| 31 | + Fog as FogSpecification, |
| 32 | + TerrainSpecification, |
| 33 | + Projection as ProjectionSpecification |
| 34 | +} from 'mapbox-gl'; |
0 commit comments