UNPKG

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