react-bkoi-gl 1.0.7 → 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.
- package/README.md +163 -18
- package/dist/components/attribution-control.d.ts +4 -6
- package/dist/components/attribution-control.js +6 -5
- package/dist/components/attribution-control.js.map +1 -1
- package/dist/components/fullscreen-control.d.ts +4 -6
- package/dist/components/fullscreen-control.js +4 -4
- package/dist/components/fullscreen-control.js.map +1 -1
- package/dist/components/geolocate-control.d.ts +10 -26
- package/dist/components/geolocate-control.js +11 -11
- package/dist/components/geolocate-control.js.map +1 -1
- package/dist/components/layer.d.ts +7 -6
- package/dist/components/layer.js +8 -9
- package/dist/components/layer.js.map +1 -1
- package/dist/components/logo-control.d.ts +9 -0
- package/dist/components/logo-control.js +28 -0
- package/dist/components/logo-control.js.map +1 -0
- package/dist/components/map.d.ts +20 -16
- package/dist/components/map.js +38 -32
- package/dist/components/map.js.map +1 -1
- package/dist/components/marker.d.ts +10 -33
- package/dist/components/marker.js +22 -15
- package/dist/components/marker.js.map +1 -1
- package/dist/components/navigation-control.d.ts +4 -6
- package/dist/components/navigation-control.js +4 -4
- package/dist/components/navigation-control.js.map +1 -1
- package/dist/components/popup.d.ts +7 -25
- package/dist/components/popup.js +17 -28
- package/dist/components/popup.js.map +1 -1
- package/dist/components/scale-control.d.ts +4 -6
- package/dist/components/scale-control.js +4 -4
- package/dist/components/scale-control.js.map +1 -1
- package/dist/components/source.d.ts +3 -4
- package/dist/components/source.js +20 -22
- package/dist/components/source.js.map +1 -1
- package/dist/components/terrain-control.d.ts +10 -0
- package/dist/components/terrain-control.js +19 -0
- package/dist/components/terrain-control.js.map +1 -0
- package/dist/components/use-control.d.ts +6 -6
- package/dist/components/use-control.js +4 -5
- package/dist/components/use-control.js.map +1 -1
- package/dist/components/use-map.d.ts +8 -9
- package/dist/components/use-map.js +5 -5
- package/dist/components/use-map.js.map +1 -1
- package/dist/exports-maplibre-gl.d.ts +33 -0
- package/dist/exports-maplibre-gl.js +21 -0
- package/dist/exports-maplibre-gl.js.map +1 -0
- package/dist/index.cjs +590 -681
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{mapbox → maplibre}/create-ref.d.ts +6 -6
- package/dist/maplibre/create-ref.js +30 -0
- package/dist/maplibre/create-ref.js.map +1 -0
- package/dist/maplibre/maplibre.d.ts +81 -0
- package/dist/maplibre/maplibre.js +387 -0
- package/dist/maplibre/maplibre.js.map +1 -0
- package/dist/styles/index.d.ts +4 -0
- package/dist/styles/react-bkoi-gl.css +1 -1
- package/dist/styles.d.js +2 -0
- package/dist/styles.d.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/common.d.ts +2 -60
- package/dist/types/common.js.map +1 -1
- package/dist/types/events.d.ts +64 -23
- package/dist/types/events.js.map +1 -1
- package/dist/types/internal.d.ts +14 -0
- package/dist/types/internal.js +2 -0
- package/dist/types/internal.js.map +1 -0
- package/dist/types/lib.d.ts +16 -200
- package/dist/types/lib.js.map +1 -1
- package/dist/types/style-spec.d.ts +1 -0
- package/dist/types/style-spec.js +2 -0
- package/dist/types/style-spec.js.map +1 -0
- package/dist/utils/apply-react-style.d.ts +1 -1
- package/dist/utils/apply-react-style.js.map +1 -1
- package/dist/utils/compare-class-names.d.ts +2 -0
- package/dist/utils/compare-class-names.js +23 -0
- package/dist/utils/compare-class-names.js.map +1 -0
- package/dist/utils/deep-equal.d.ts +1 -1
- package/dist/utils/deep-equal.js +1 -1
- package/dist/utils/deep-equal.js.map +1 -1
- package/dist/utils/set-globals.d.ts +6 -8
- package/dist/utils/set-globals.js +22 -10
- package/dist/utils/set-globals.js.map +1 -1
- package/dist/utils/style-utils.d.ts +3 -2
- package/dist/utils/style-utils.js +4 -4
- package/dist/utils/style-utils.js.map +1 -1
- package/dist/utils/transform.d.ts +11 -19
- package/dist/utils/transform.js +13 -36
- package/dist/utils/transform.js.map +1 -1
- package/dist/utils/use-isomorphic-layout-effect.d.ts +1 -1
- package/dist/utils/use-isomorphic-layout-effect.js +2 -2
- package/dist/utils/use-isomorphic-layout-effect.js.map +1 -1
- package/package.json +42 -26
- package/src/components/attribution-control.ts +40 -16
- package/src/components/fullscreen-control.ts +40 -0
- package/src/components/geolocate-control.ts +45 -39
- package/src/components/layer.ts +37 -29
- package/src/components/logo-control.ts +44 -0
- package/src/components/map.tsx +86 -75
- package/src/components/marker.ts +141 -123
- package/src/components/navigation-control.ts +11 -12
- package/src/components/popup.ts +94 -97
- package/src/components/scale-control.ts +12 -14
- package/src/components/source.ts +58 -57
- package/src/components/terrain-control.ts +29 -0
- package/src/components/use-control.ts +21 -17
- package/src/components/use-map.tsx +26 -24
- package/src/exports-maplibre-gl.ts +37 -0
- package/src/index.ts +3 -2
- package/src/maplibre/create-ref.ts +70 -0
- package/src/maplibre/maplibre.ts +624 -0
- package/src/styles.d.ts +4 -0
- package/src/types/common.ts +12 -72
- package/src/types/events.ts +102 -42
- package/src/types/internal.ts +26 -0
- package/src/types/lib.ts +65 -260
- package/src/types/style-spec.ts +34 -0
- package/src/utils/apply-react-style.ts +7 -3
- package/src/utils/compare-class-names.ts +29 -0
- package/src/utils/deep-equal.ts +2 -2
- package/src/utils/set-globals.ts +22 -28
- package/src/utils/style-utils.ts +18 -9
- package/src/utils/transform.ts +32 -60
- package/src/utils/use-isomorphic-layout-effect.ts +3 -2
- package/bkoi-gl/package.json +0 -6
- package/dist/exports-bkoi-gl.cjs +0 -1512
- package/dist/exports-bkoi-gl.d.ts +0 -89
- package/dist/exports-bkoi-gl.js +0 -36
- package/dist/exports-bkoi-gl.js.map +0 -1
- package/dist/exports-mapbox.d.ts +0 -139
- package/dist/exports-mapbox.js +0 -36
- package/dist/exports-mapbox.js.map +0 -1
- package/dist/mapbox/create-ref.js +0 -64
- package/dist/mapbox/create-ref.js.map +0 -1
- package/dist/mapbox/mapbox.d.ts +0 -81
- package/dist/mapbox/mapbox.js +0 -476
- package/dist/mapbox/mapbox.js.map +0 -1
- package/dist/types/events-bkoi-gl.d.ts +0 -49
- package/dist/types/events-bkoi-gl.js +0 -2
- package/dist/types/events-bkoi-gl.js.map +0 -1
- package/dist/types/events-mapbox.d.ts +0 -49
- package/dist/types/events-mapbox.js +0 -2
- package/dist/types/events-mapbox.js.map +0 -1
- package/dist/types/index.d.ts +0 -70
- package/dist/types/index.js +0 -5
- package/dist/types/index.js.map +0 -1
- package/dist/types/public.d.ts +0 -2
- package/dist/types/public.js +0 -2
- package/dist/types/public.js.map +0 -1
- package/dist/types/style-spec-bkoi-gl.d.ts +0 -9
- package/dist/types/style-spec-bkoi-gl.js +0 -2
- package/dist/types/style-spec-bkoi-gl.js.map +0 -1
- package/dist/types/style-spec-mapbox.d.ts +0 -7
- package/dist/types/style-spec-mapbox.js +0 -2
- package/dist/types/style-spec-mapbox.js.map +0 -1
- package/src/components/fullscreen-control.tsx +0 -37
- package/src/exports-bkoi-gl.ts +0 -156
- package/src/exports-mapbox.ts +0 -159
- package/src/mapbox/create-ref.ts +0 -118
- package/src/mapbox/mapbox.ts +0 -742
- package/src/types/events-bkoi-gl.ts +0 -78
- package/src/types/events-mapbox.ts +0 -76
- package/src/types/index.ts +0 -93
- package/src/types/public.ts +0 -9
- package/src/types/style-spec-bkoi-gl.ts +0 -81
- 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
|
-
};
|
package/src/types/index.ts
DELETED
|
@@ -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>;
|
package/src/types/public.ts
DELETED
|
@@ -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';
|