react-bkoi-gl 1.0.6 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +163 -18
  2. package/dist/components/attribution-control.d.ts +4 -6
  3. package/dist/components/attribution-control.js +6 -5
  4. package/dist/components/attribution-control.js.map +1 -1
  5. package/dist/components/fullscreen-control.d.ts +4 -6
  6. package/dist/components/fullscreen-control.js +4 -4
  7. package/dist/components/fullscreen-control.js.map +1 -1
  8. package/dist/components/geolocate-control.d.ts +10 -26
  9. package/dist/components/geolocate-control.js +11 -11
  10. package/dist/components/geolocate-control.js.map +1 -1
  11. package/dist/components/layer.d.ts +7 -6
  12. package/dist/components/layer.js +8 -9
  13. package/dist/components/layer.js.map +1 -1
  14. package/dist/components/logo-control.d.ts +9 -0
  15. package/dist/components/logo-control.js +28 -0
  16. package/dist/components/logo-control.js.map +1 -0
  17. package/dist/components/map.d.ts +20 -16
  18. package/dist/components/map.js +38 -32
  19. package/dist/components/map.js.map +1 -1
  20. package/dist/components/marker.d.ts +10 -33
  21. package/dist/components/marker.js +22 -15
  22. package/dist/components/marker.js.map +1 -1
  23. package/dist/components/navigation-control.d.ts +4 -6
  24. package/dist/components/navigation-control.js +4 -4
  25. package/dist/components/navigation-control.js.map +1 -1
  26. package/dist/components/popup.d.ts +7 -25
  27. package/dist/components/popup.js +17 -28
  28. package/dist/components/popup.js.map +1 -1
  29. package/dist/components/scale-control.d.ts +4 -6
  30. package/dist/components/scale-control.js +4 -4
  31. package/dist/components/scale-control.js.map +1 -1
  32. package/dist/components/source.d.ts +3 -4
  33. package/dist/components/source.js +20 -22
  34. package/dist/components/source.js.map +1 -1
  35. package/dist/components/terrain-control.d.ts +10 -0
  36. package/dist/components/terrain-control.js +19 -0
  37. package/dist/components/terrain-control.js.map +1 -0
  38. package/dist/components/use-control.d.ts +6 -6
  39. package/dist/components/use-control.js +4 -5
  40. package/dist/components/use-control.js.map +1 -1
  41. package/dist/components/use-map.d.ts +8 -9
  42. package/dist/components/use-map.js +5 -5
  43. package/dist/components/use-map.js.map +1 -1
  44. package/dist/exports-maplibre-gl.d.ts +33 -0
  45. package/dist/exports-maplibre-gl.js +21 -0
  46. package/dist/exports-maplibre-gl.js.map +1 -0
  47. package/dist/index.cjs +590 -681
  48. package/dist/index.d.ts +2 -2
  49. package/dist/index.js +2 -2
  50. package/dist/index.js.map +1 -1
  51. package/dist/{mapbox → maplibre}/create-ref.d.ts +6 -6
  52. package/dist/maplibre/create-ref.js +30 -0
  53. package/dist/maplibre/create-ref.js.map +1 -0
  54. package/dist/maplibre/maplibre.d.ts +81 -0
  55. package/dist/maplibre/maplibre.js +387 -0
  56. package/dist/maplibre/maplibre.js.map +1 -0
  57. package/dist/styles/index.d.ts +4 -0
  58. package/dist/styles/react-bkoi-gl.css +1 -1
  59. package/dist/styles.d.js +2 -0
  60. package/dist/styles.d.js.map +1 -0
  61. package/dist/tsconfig.build.tsbuildinfo +1 -0
  62. package/dist/types/common.d.ts +2 -60
  63. package/dist/types/common.js.map +1 -1
  64. package/dist/types/events.d.ts +64 -23
  65. package/dist/types/events.js.map +1 -1
  66. package/dist/types/internal.d.ts +14 -0
  67. package/dist/types/internal.js +2 -0
  68. package/dist/types/internal.js.map +1 -0
  69. package/dist/types/lib.d.ts +16 -200
  70. package/dist/types/lib.js.map +1 -1
  71. package/dist/types/style-spec.d.ts +1 -0
  72. package/dist/types/style-spec.js +2 -0
  73. package/dist/types/style-spec.js.map +1 -0
  74. package/dist/utils/apply-react-style.d.ts +1 -1
  75. package/dist/utils/apply-react-style.js.map +1 -1
  76. package/dist/utils/compare-class-names.d.ts +2 -0
  77. package/dist/utils/compare-class-names.js +23 -0
  78. package/dist/utils/compare-class-names.js.map +1 -0
  79. package/dist/utils/deep-equal.d.ts +1 -1
  80. package/dist/utils/deep-equal.js +1 -1
  81. package/dist/utils/deep-equal.js.map +1 -1
  82. package/dist/utils/set-globals.d.ts +6 -8
  83. package/dist/utils/set-globals.js +22 -10
  84. package/dist/utils/set-globals.js.map +1 -1
  85. package/dist/utils/style-utils.d.ts +3 -2
  86. package/dist/utils/style-utils.js +4 -4
  87. package/dist/utils/style-utils.js.map +1 -1
  88. package/dist/utils/transform.d.ts +11 -19
  89. package/dist/utils/transform.js +13 -36
  90. package/dist/utils/transform.js.map +1 -1
  91. package/dist/utils/use-isomorphic-layout-effect.d.ts +1 -1
  92. package/dist/utils/use-isomorphic-layout-effect.js +2 -2
  93. package/dist/utils/use-isomorphic-layout-effect.js.map +1 -1
  94. package/package.json +42 -26
  95. package/src/components/attribution-control.ts +40 -16
  96. package/src/components/fullscreen-control.ts +40 -0
  97. package/src/components/geolocate-control.ts +45 -39
  98. package/src/components/layer.ts +37 -29
  99. package/src/components/logo-control.ts +44 -0
  100. package/src/components/map.tsx +86 -75
  101. package/src/components/marker.ts +141 -123
  102. package/src/components/navigation-control.ts +11 -12
  103. package/src/components/popup.ts +94 -97
  104. package/src/components/scale-control.ts +12 -14
  105. package/src/components/source.ts +58 -57
  106. package/src/components/terrain-control.ts +29 -0
  107. package/src/components/use-control.ts +21 -17
  108. package/src/components/use-map.tsx +26 -24
  109. package/src/exports-maplibre-gl.ts +37 -0
  110. package/src/index.ts +3 -2
  111. package/src/maplibre/create-ref.ts +70 -0
  112. package/src/maplibre/maplibre.ts +624 -0
  113. package/src/styles.d.ts +4 -0
  114. package/src/types/common.ts +12 -72
  115. package/src/types/events.ts +102 -42
  116. package/src/types/internal.ts +26 -0
  117. package/src/types/lib.ts +65 -260
  118. package/src/types/style-spec.ts +34 -0
  119. package/src/utils/apply-react-style.ts +7 -3
  120. package/src/utils/compare-class-names.ts +29 -0
  121. package/src/utils/deep-equal.ts +2 -2
  122. package/src/utils/set-globals.ts +22 -28
  123. package/src/utils/style-utils.ts +18 -9
  124. package/src/utils/transform.ts +32 -60
  125. package/src/utils/use-isomorphic-layout-effect.ts +3 -2
  126. package/bkoi-gl/package.json +0 -6
  127. package/dist/exports-bkoi-gl.cjs +0 -1512
  128. package/dist/exports-bkoi-gl.d.ts +0 -89
  129. package/dist/exports-bkoi-gl.js +0 -36
  130. package/dist/exports-bkoi-gl.js.map +0 -1
  131. package/dist/exports-mapbox.d.ts +0 -139
  132. package/dist/exports-mapbox.js +0 -36
  133. package/dist/exports-mapbox.js.map +0 -1
  134. package/dist/mapbox/create-ref.js +0 -64
  135. package/dist/mapbox/create-ref.js.map +0 -1
  136. package/dist/mapbox/mapbox.d.ts +0 -81
  137. package/dist/mapbox/mapbox.js +0 -476
  138. package/dist/mapbox/mapbox.js.map +0 -1
  139. package/dist/types/events-bkoi-gl.d.ts +0 -49
  140. package/dist/types/events-bkoi-gl.js +0 -2
  141. package/dist/types/events-bkoi-gl.js.map +0 -1
  142. package/dist/types/events-mapbox.d.ts +0 -49
  143. package/dist/types/events-mapbox.js +0 -2
  144. package/dist/types/events-mapbox.js.map +0 -1
  145. package/dist/types/index.d.ts +0 -70
  146. package/dist/types/index.js +0 -5
  147. package/dist/types/index.js.map +0 -1
  148. package/dist/types/public.d.ts +0 -2
  149. package/dist/types/public.js +0 -2
  150. package/dist/types/public.js.map +0 -1
  151. package/dist/types/style-spec-bkoi-gl.d.ts +0 -9
  152. package/dist/types/style-spec-bkoi-gl.js +0 -2
  153. package/dist/types/style-spec-bkoi-gl.js.map +0 -1
  154. package/dist/types/style-spec-mapbox.d.ts +0 -7
  155. package/dist/types/style-spec-mapbox.js +0 -2
  156. package/dist/types/style-spec-mapbox.js.map +0 -1
  157. package/src/components/fullscreen-control.tsx +0 -37
  158. package/src/exports-bkoi-gl.ts +0 -156
  159. package/src/exports-mapbox.ts +0 -159
  160. package/src/mapbox/create-ref.ts +0 -118
  161. package/src/mapbox/mapbox.ts +0 -742
  162. package/src/types/events-bkoi-gl.ts +0 -78
  163. package/src/types/events-mapbox.ts +0 -76
  164. package/src/types/index.ts +0 -93
  165. package/src/types/public.ts +0 -9
  166. package/src/types/style-spec-bkoi-gl.ts +0 -81
  167. package/src/types/style-spec-mapbox.ts +0 -80
@@ -1,78 +0,0 @@
1
- import {
2
- Map,
3
- MapLibreEvent as MapEvent,
4
- MapMouseEvent,
5
- MapLayerMouseEvent,
6
- MapTouchEvent,
7
- MapLayerTouchEvent,
8
- MapStyleDataEvent,
9
- MapSourceDataEvent,
10
- MapWheelEvent,
11
- MapLibreZoomEvent as MapBoxZoomEvent
12
- // @ts-ignore
13
- // eslint-disable-next-line import/no-unresolved
14
- } from 'bkoi-gl';
15
- import {ErrorEvent as _ErrorEvent, ViewStateChangeEvent as _ViewStateChangeEvent} from './events';
16
-
17
- export type {
18
- MapEvent,
19
- MapMouseEvent,
20
- MapLayerMouseEvent,
21
- MapTouchEvent,
22
- MapLayerTouchEvent,
23
- MapStyleDataEvent,
24
- MapSourceDataEvent,
25
- MapWheelEvent,
26
- MapBoxZoomEvent
27
- };
28
-
29
- export type ErrorEvent = _ErrorEvent<Map>;
30
- export type ViewStateChangeEvent = _ViewStateChangeEvent<Map>;
31
-
32
- export type MapCallbacks = {
33
- onMouseDown?: (e: MapLayerMouseEvent) => void;
34
- onMouseUp?: (e: MapLayerMouseEvent) => void;
35
- onMouseOver?: (e: MapLayerMouseEvent) => void;
36
- onMouseMove?: (e: MapLayerMouseEvent) => void;
37
- onClick?: (e: MapLayerMouseEvent) => void;
38
- onDblClick?: (e: MapLayerMouseEvent) => void;
39
- onMouseEnter?: (e: MapLayerMouseEvent) => void;
40
- onMouseLeave?: (e: MapLayerMouseEvent) => void;
41
- onMouseOut?: (e: MapLayerMouseEvent) => void;
42
- onContextMenu?: (e: MapLayerMouseEvent) => void;
43
- onTouchStart?: (e: MapLayerTouchEvent) => void;
44
- onTouchEnd?: (e: MapLayerTouchEvent) => void;
45
- onTouchMove?: (e: MapLayerTouchEvent) => void;
46
- onTouchCancel?: (e: MapLayerTouchEvent) => void;
47
-
48
- onMoveStart?: (e: ViewStateChangeEvent) => void;
49
- onMove?: (e: ViewStateChangeEvent) => void;
50
- onMoveEnd?: (e: ViewStateChangeEvent) => void;
51
- onDragStart?: (e: ViewStateChangeEvent) => void;
52
- onDrag?: (e: ViewStateChangeEvent) => void;
53
- onDragEnd?: (e: ViewStateChangeEvent) => void;
54
- onZoomStart?: (e: ViewStateChangeEvent) => void;
55
- onZoom?: (e: ViewStateChangeEvent) => void;
56
- onZoomEnd?: (e: ViewStateChangeEvent) => void;
57
- onRotateStart?: (e: ViewStateChangeEvent) => void;
58
- onRotate?: (e: ViewStateChangeEvent) => void;
59
- onRotateEnd?: (e: ViewStateChangeEvent) => void;
60
- onPitchStart?: (e: ViewStateChangeEvent) => void;
61
- onPitch?: (e: ViewStateChangeEvent) => void;
62
- onPitchEnd?: (e: ViewStateChangeEvent) => void;
63
-
64
- onWheel?: (e: MapWheelEvent) => void;
65
- onBoxZoomStart?: (e: MapBoxZoomEvent) => void;
66
- onBoxZoomEnd?: (e: MapBoxZoomEvent) => void;
67
- onBoxZoomCancel?: (e: MapBoxZoomEvent) => void;
68
-
69
- onResize?: (e: MapEvent) => void;
70
- onLoad?: (e: MapEvent) => void;
71
- onRender?: (e: MapEvent) => void;
72
- onIdle?: (e: MapEvent) => void;
73
- onError?: (e: ErrorEvent) => void;
74
- onRemove?: (e: MapEvent) => void;
75
- onData?: (e: MapStyleDataEvent | MapSourceDataEvent) => void;
76
- onStyleData?: (e: MapStyleDataEvent) => void;
77
- onSourceData?: (e: MapSourceDataEvent) => void;
78
- };
@@ -1,76 +0,0 @@
1
- import {
2
- Map,
3
- MapboxEvent as MapEvent,
4
- MapMouseEvent,
5
- MapLayerMouseEvent,
6
- MapTouchEvent,
7
- MapLayerTouchEvent,
8
- MapStyleDataEvent,
9
- MapSourceDataEvent,
10
- MapWheelEvent,
11
- MapBoxZoomEvent
12
- } from 'mapbox-gl';
13
- import {ErrorEvent as _ErrorEvent, ViewStateChangeEvent as _ViewStateChangeEvent} from './events';
14
-
15
- export type {
16
- MapEvent,
17
- MapMouseEvent,
18
- MapLayerMouseEvent,
19
- MapTouchEvent,
20
- MapLayerTouchEvent,
21
- MapStyleDataEvent,
22
- MapSourceDataEvent,
23
- MapWheelEvent,
24
- MapBoxZoomEvent
25
- };
26
-
27
- export type ErrorEvent = _ErrorEvent<Map>;
28
- export type ViewStateChangeEvent = _ViewStateChangeEvent<Map>;
29
-
30
- export type MapCallbacks = {
31
- onMouseDown?: (e: MapLayerMouseEvent) => void;
32
- onMouseUp?: (e: MapLayerMouseEvent) => void;
33
- onMouseOver?: (e: MapLayerMouseEvent) => void;
34
- onMouseMove?: (e: MapLayerMouseEvent) => void;
35
- onClick?: (e: MapLayerMouseEvent) => void;
36
- onDblClick?: (e: MapLayerMouseEvent) => void;
37
- onMouseEnter?: (e: MapLayerMouseEvent) => void;
38
- onMouseLeave?: (e: MapLayerMouseEvent) => void;
39
- onMouseOut?: (e: MapLayerMouseEvent) => void;
40
- onContextMenu?: (e: MapLayerMouseEvent) => void;
41
- onTouchStart?: (e: MapLayerTouchEvent) => void;
42
- onTouchEnd?: (e: MapLayerTouchEvent) => void;
43
- onTouchMove?: (e: MapLayerTouchEvent) => void;
44
- onTouchCancel?: (e: MapLayerTouchEvent) => void;
45
-
46
- onMoveStart?: (e: ViewStateChangeEvent) => void;
47
- onMove?: (e: ViewStateChangeEvent) => void;
48
- onMoveEnd?: (e: ViewStateChangeEvent) => void;
49
- onDragStart?: (e: ViewStateChangeEvent) => void;
50
- onDrag?: (e: ViewStateChangeEvent) => void;
51
- onDragEnd?: (e: ViewStateChangeEvent) => void;
52
- onZoomStart?: (e: ViewStateChangeEvent) => void;
53
- onZoom?: (e: ViewStateChangeEvent) => void;
54
- onZoomEnd?: (e: ViewStateChangeEvent) => void;
55
- onRotateStart?: (e: ViewStateChangeEvent) => void;
56
- onRotate?: (e: ViewStateChangeEvent) => void;
57
- onRotateEnd?: (e: ViewStateChangeEvent) => void;
58
- onPitchStart?: (e: ViewStateChangeEvent) => void;
59
- onPitch?: (e: ViewStateChangeEvent) => void;
60
- onPitchEnd?: (e: ViewStateChangeEvent) => void;
61
-
62
- onWheel?: (e: MapWheelEvent) => void;
63
- onBoxZoomStart?: (e: MapBoxZoomEvent) => void;
64
- onBoxZoomEnd?: (e: MapBoxZoomEvent) => void;
65
- onBoxZoomCancel?: (e: MapBoxZoomEvent) => void;
66
-
67
- onResize?: (e: MapEvent) => void;
68
- onLoad?: (e: MapEvent) => void;
69
- onRender?: (e: MapEvent) => void;
70
- onIdle?: (e: MapEvent) => void;
71
- onError?: (e: ErrorEvent) => void;
72
- onRemove?: (e: MapEvent) => void;
73
- onData?: (e: MapStyleDataEvent | MapSourceDataEvent) => void;
74
- onStyleData?: (e: MapStyleDataEvent) => void;
75
- onSourceData?: (e: MapSourceDataEvent) => void;
76
- };
@@ -1,93 +0,0 @@
1
- export * from './common';
2
- export * from './lib';
3
- export * from './events';
4
-
5
- import type GeoJSON from 'geojson';
6
- import type {CustomSourceImplementation} from './lib';
7
-
8
- // Internal: source implementations
9
-
10
- export interface ISource {
11
- type: string;
12
- }
13
-
14
- export interface ILayer {
15
- id: string;
16
- type: string;
17
-
18
- metadata?: any;
19
- source?: unknown;
20
-
21
- minzoom?: number;
22
- maxzoom?: number;
23
-
24
- filter?: any;
25
- layout?: {
26
- [property: string]: any;
27
- };
28
- paint?: {
29
- [property: string]: any;
30
- };
31
- }
32
-
33
- export interface MapStyle {
34
- name?: string;
35
- metadata?: unknown;
36
- version: number;
37
- layers: ILayer[];
38
- sources: {
39
- [sourceName: string]: object;
40
- };
41
-
42
- fog?: any;
43
- terrain?: any;
44
- light?: any;
45
- }
46
-
47
- export interface GeoJSONSourceImplementation {
48
- type: 'geojson';
49
- setData(
50
- data: GeoJSON.Feature<GeoJSON.Geometry> | GeoJSON.FeatureCollection<GeoJSON.Geometry> | String
51
- ): this;
52
- }
53
-
54
- export interface ImageSourceImplemtation {
55
- type: 'image';
56
- updateImage(options: {url?: string; coordinates?: number[][]}): this;
57
- setCoordinates(coordinates: number[][]): this;
58
- }
59
-
60
- export interface CanvasSourceImplemtation {
61
- type: 'canvas';
62
- play(): void;
63
- pause(): void;
64
- getCanvas(): HTMLCanvasElement;
65
- setCoordinates(coordinates: number[][]): this;
66
- }
67
-
68
- export interface VectorSourceImplementation {
69
- type: 'vector';
70
- setTiles(tiles: ReadonlyArray<string>): this;
71
- setUrl(url: string): this;
72
- }
73
-
74
- export interface RasterSourceImplementation {
75
- type: 'raster' | 'raster-dem';
76
- setTiles(tiles: ReadonlyArray<string>): this;
77
- setUrl(url: string): this;
78
- }
79
-
80
- export interface VideoSourceImplementation {
81
- type: 'video';
82
- getVideo(): HTMLVideoElement;
83
- setCoordinates(coordinates: number[][]): this;
84
- }
85
-
86
- export type AnySourceImplementation =
87
- | GeoJSONSourceImplementation
88
- | VideoSourceImplementation
89
- | ImageSourceImplemtation
90
- | CanvasSourceImplemtation
91
- | VectorSourceImplementation
92
- | RasterSourceImplementation
93
- | CustomSourceImplementation<HTMLImageElement | ImageData | ImageBitmap>;
@@ -1,9 +0,0 @@
1
- export type {ViewState, ControlPosition} from './common';
2
- export type {
3
- IControl,
4
- MapInstance,
5
- MapLib,
6
- CustomLayerInterface,
7
- CustomSource,
8
- CustomSourceImplementation
9
- } from './lib';
@@ -1,81 +0,0 @@
1
- /*
2
- * Maplibre Style Specification types
3
- * Type names are aligned with mapbox
4
- */
5
- import type {
6
- BackgroundLayerSpecification as BackgroundLayer,
7
- CircleLayerSpecification as CircleLayer,
8
- FillLayerSpecification as FillLayer,
9
- FillExtrusionLayerSpecification as FillExtrusionLayer,
10
- HeatmapLayerSpecification as HeatmapLayer,
11
- HillshadeLayerSpecification as HillshadeLayer,
12
- LineLayerSpecification as LineLayer,
13
- RasterLayerSpecification as RasterLayer,
14
- SymbolLayerSpecification as SymbolLayer,
15
- GeoJSONSourceSpecification as GeoJSONSourceRaw,
16
- VideoSourceSpecification as VideoSourceRaw,
17
- ImageSourceSpecification as ImageSourceRaw,
18
- VectorSourceSpecification as VectorSourceRaw,
19
- RasterSourceSpecification as RasterSource,
20
- RasterDEMSourceSpecification as RasterDemSource
21
- } from '@maplibre/maplibre-gl-style-spec';
22
-
23
- // @ts-ignore
24
- // eslint-disable-next-line import/no-unresolved
25
- import {CanvasSourceSpecification as CanvasSourceRaw} from 'bkoi-gl';
26
-
27
- // Layers
28
- export type {
29
- BackgroundLayer,
30
- CircleLayer,
31
- FillLayer,
32
- FillExtrusionLayer,
33
- HeatmapLayer,
34
- HillshadeLayer,
35
- LineLayer,
36
- RasterLayer,
37
- SymbolLayer
38
- };
39
-
40
- export type AnyLayer =
41
- | BackgroundLayer
42
- | CircleLayer
43
- | FillLayer
44
- | FillExtrusionLayer
45
- | HeatmapLayer
46
- | HillshadeLayer
47
- | LineLayer
48
- | RasterLayer
49
- | SymbolLayer;
50
-
51
- // Sources
52
- export type {
53
- GeoJSONSourceRaw,
54
- VideoSourceRaw,
55
- ImageSourceRaw,
56
- CanvasSourceRaw,
57
- VectorSourceRaw,
58
- RasterSource,
59
- RasterDemSource
60
- };
61
-
62
- export type AnySource =
63
- | GeoJSONSourceRaw
64
- | VideoSourceRaw
65
- | ImageSourceRaw
66
- | CanvasSourceRaw
67
- | VectorSourceRaw
68
- | RasterSource
69
- | RasterDemSource;
70
-
71
- // Other style types
72
-
73
- export type {
74
- StyleSpecification as MapStyle,
75
- LightSpecification as Light,
76
- TerrainSpecification as Terrain
77
- } from '@maplibre/maplibre-gl-style-spec';
78
-
79
- // The following types are not yet supported by maplibre
80
- export type Fog = never;
81
- export type Projection = never;
@@ -1,80 +0,0 @@
1
- /*
2
- * Mapbox Style Specification types
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
- 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
- GeoJSONSourceRaw,
46
- VideoSourceRaw,
47
- ImageSourceRaw,
48
- VectorSource as VectorSourceRaw,
49
- RasterSource,
50
- CanvasSourceRaw,
51
- RasterDemSource
52
- } from 'mapbox-gl';
53
-
54
- export type AnySource =
55
- | GeoJSONSourceRaw
56
- | VideoSourceRaw
57
- | ImageSourceRaw
58
- | CanvasSourceRaw
59
- | VectorSourceRaw
60
- | RasterSource
61
- | RasterDemSource;
62
-
63
- export type {
64
- GeoJSONSourceRaw,
65
- VideoSourceRaw,
66
- ImageSourceRaw,
67
- CanvasSourceRaw,
68
- VectorSourceRaw,
69
- RasterSource,
70
- RasterDemSource
71
- };
72
-
73
- // Other
74
- export type {
75
- Style as MapStyle,
76
- Light,
77
- Fog,
78
- TerrainSpecification as Terrain,
79
- Projection
80
- } from 'mapbox-gl';