1 | import {
|
2 | VectorSource,
|
3 | RasterSource,
|
4 | GeoJSONSource,
|
5 | GeoJSONSourceRaw,
|
6 | RasterDemSource,
|
7 | ImageSource,
|
8 | VideoSource,
|
9 | CanvasSource,
|
10 | Point
|
11 | } from 'mapbox-gl';
|
12 |
|
13 | export interface AnchorOffsetLimits {
|
14 | 'top-left': Point;
|
15 | 'top-right': Point;
|
16 | 'bottom-left': Point;
|
17 | 'bottom-right': Point;
|
18 | }
|
19 |
|
20 | export interface AnchorsOffset extends AnchorOffsetLimits {
|
21 | center: Point;
|
22 | top: Point;
|
23 | bottom: Point;
|
24 | left: Point;
|
25 | right: Point;
|
26 | }
|
27 |
|
28 | export type Anchor = keyof AnchorsOffset;
|
29 | export type AnchorLimits = keyof AnchorOffsetLimits;
|
30 |
|
31 | export type Sources =
|
32 | | VectorSource
|
33 | | RasterSource
|
34 | | GeoJSONSource
|
35 | | GeoJSONSourceRaw
|
36 | | ImageSource
|
37 | | VideoSource
|
38 | | CanvasSource
|
39 | | RasterDemSource;
|
40 |
|
41 | export type TilesJson = VectorSource | RasterSource;
|
42 |
|
43 | export type LayerType =
|
44 | | 'fill'
|
45 | | 'line'
|
46 | | 'symbol'
|
47 | | 'circle'
|
48 | | 'fill-extrusion'
|
49 | | 'raster'
|
50 | | 'background';
|
51 |
|
52 | export type AnyShapeCoordinates =
|
53 | | number[]
|
54 | | number[][]
|
55 | | number[][][]
|
56 | | number[][][][];
|