@orioro/react-maplibre-util 0.0.1
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 +1 -0
- package/dist/GeocoderCtrl_MapLibre/GeocoderCtrl.d.ts +16 -0
- package/dist/GeocoderCtrl_MapLibre/GeocoderCtrl.stories_.d.ts +11 -0
- package/dist/GeocoderCtrl_MapLibre/GeocoderCtrl_ref.d.ts +21 -0
- package/dist/GeocoderCtrl_MapLibre/mapboxGeocoderApi.d.ts +10 -0
- package/dist/GeocoderCtrl_MapLibre/nominatimGeocoderApi.d.ts +2 -0
- package/dist/HoverTooltip/HoverTooltip.d.ts +14 -0
- package/dist/HoverTooltip/index.d.ts +1 -0
- package/dist/LayeredMap/LayeredMap.d.ts +10 -0
- package/dist/LayeredMap/index.d.ts +2 -0
- package/dist/MapWindow/MapWindow.d.ts +72 -0
- package/dist/MapWindow/index.d.ts +1 -0
- package/dist/MapWindow/syncMaps.d.ts +8 -0
- package/dist/MapWindow/useSyncedMaps.d.ts +3 -0
- package/dist/MapWindow/util.d.ts +4 -0
- package/dist/MapboxGeocoder/MapboxGeocoder.d.ts +2 -0
- package/dist/MapboxGeocoder/MapboxGeocoder.stories_.d.ts +11 -0
- package/dist/MapboxGeocoder/mapboxGeocoderApi.d.ts +9 -0
- package/dist/SyncedMaps/GhostCursor.d.ts +2 -0
- package/dist/SyncedMaps/SyncedMaps.d.ts +309 -0
- package/dist/SyncedMaps/index.d.ts +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.mjs +825 -0
- package/dist/scales/index.d.ts +1 -0
- package/dist/scales/naturalBreaks/autoK.d.ts +5 -0
- package/dist/scales/naturalBreaks/index.d.ts +17 -0
- package/dist/tmpMapView/MapView.d.ts +3 -0
- package/dist/types.d.ts +27 -0
- package/dist/useHover/index.d.ts +2 -0
- package/dist/useHover/useHover.d.ts +21 -0
- package/dist/useHover/withHover.d.ts +2 -0
- package/dist/util/fitGeometry.d.ts +2 -0
- package/dist/util/index.d.ts +1 -0
- package/package.json +54 -0
package/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Template react lib
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { MarkerProps, ControlPosition } from 'react-map-gl/maplibre';
|
3
|
+
import { MaplibreGeocoderApi, MaplibreGeocoderOptions } from '@maplibre/maplibre-gl-geocoder';
|
4
|
+
type GeocoderCtrlProps = Omit<MaplibreGeocoderOptions, 'maplibregl' | 'marker'> & {
|
5
|
+
api?: MaplibreGeocoderApi;
|
6
|
+
marker?: boolean | Omit<MarkerProps, 'longitude' | 'latitude'>;
|
7
|
+
position: ControlPosition;
|
8
|
+
onClear?: (e: object) => void;
|
9
|
+
onLoading?: (e: object) => void;
|
10
|
+
onResults?: (e: object) => void;
|
11
|
+
onResult?: (e: object) => void;
|
12
|
+
onError?: (e: object) => void;
|
13
|
+
[key: string]: any;
|
14
|
+
};
|
15
|
+
export declare function GeocoderCtrl({ api, position, types, onClear, onLoading, onResults, onResult, onError, ...props }: GeocoderCtrlProps): React.JSX.Element;
|
16
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import 'maplibre-gl/dist/maplibre-gl.css';
|
3
|
+
import '@maplibre/maplibre-gl-geocoder/dist/maplibre-gl-geocoder.css';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export default _default;
|
11
|
+
export declare const Basic: () => React.JSX.Element;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { MarkerProps, ControlPosition } from 'react-map-gl/maplibre';
|
2
|
+
import { MaplibreGeocoderOptions } from '@maplibre/maplibre-gl-geocoder';
|
3
|
+
type GeocoderCtrlProps = Omit<MaplibreGeocoderOptions, 'maplibregl' | 'marker'> & {
|
4
|
+
marker?: boolean | Omit<MarkerProps, 'longitude' | 'latitude'>;
|
5
|
+
position: ControlPosition;
|
6
|
+
onLoading?: (e: object) => void;
|
7
|
+
onResults?: (e: object) => void;
|
8
|
+
onResult?: (e: object) => void;
|
9
|
+
onError?: (e: object) => void;
|
10
|
+
};
|
11
|
+
export declare function GeocoderCtrl(props: GeocoderCtrlProps): null;
|
12
|
+
export declare namespace GeocoderCtrl {
|
13
|
+
var defaultProps: {
|
14
|
+
marker: boolean;
|
15
|
+
onLoading: () => void;
|
16
|
+
onResults: () => void;
|
17
|
+
onResult: () => void;
|
18
|
+
onError: () => void;
|
19
|
+
};
|
20
|
+
}
|
21
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { MaplibreGeocoderPlaceResults, MaplibreGeocoderSuggestionResults } from '@maplibre/maplibre-gl-geocoder';
|
2
|
+
export type MapboxGeocoderApiProps = {
|
3
|
+
accessToken: string;
|
4
|
+
};
|
5
|
+
export declare function mapboxGeocoderApi({ accessToken }: MapboxGeocoderApiProps): {
|
6
|
+
forwardGeocode: (input: any) => Promise<void>;
|
7
|
+
reverseGeocode: (input: any) => Promise<void>;
|
8
|
+
getSuggestions: (config: MaplibreGeocoderApiConfig) => Promise<MaplibreGeocoderSuggestionResults>;
|
9
|
+
searchByPlaceId: ({ query, language, }: MaplibreGeocoderApiConfig) => Promise<MaplibreGeocoderPlaceResults>;
|
10
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { FlexProps } from '@orioro/react-ui-core';
|
3
|
+
type DataSectionProps = FlexProps & {
|
4
|
+
title: string;
|
5
|
+
entries: [React.ReactNode, React.ReactNode][];
|
6
|
+
};
|
7
|
+
type HoverTooltipProps = {
|
8
|
+
position: [number, number];
|
9
|
+
children?: React.ReactNode;
|
10
|
+
dataSections?: DataSectionProps[];
|
11
|
+
style?: React.CSSProperties;
|
12
|
+
};
|
13
|
+
export declare function HoverTooltip({ position, children, dataSections, style, }: HoverTooltipProps): React.JSX.Element;
|
14
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './HoverTooltip';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { MapInstance } from 'react-map-gl/maplibre';
|
3
|
+
import { LayeredMapProps } from '../types';
|
4
|
+
import { augmentFeature, getSrcLayer, getSrcViewByLayerId } from './parseMapViews';
|
5
|
+
export declare const LayeredMap: React.ForwardRefExoticComponent<Omit<LayeredMapProps, "ref"> & React.RefAttributes<{
|
6
|
+
map: MapInstance;
|
7
|
+
augmentFeature: (feature: Parameters<typeof augmentFeature>[1]) => ReturnType<typeof augmentFeature>;
|
8
|
+
getSrcViewByLayerId: (layerId: string) => ReturnType<typeof getSrcViewByLayerId>;
|
9
|
+
getSrcLayer: (layerId: string) => ReturnType<typeof getSrcLayer>;
|
10
|
+
}>>;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const MapWindow: React.ForwardRefExoticComponent<Omit<{
|
3
|
+
zoom?: number | undefined;
|
4
|
+
bearing?: number | undefined;
|
5
|
+
pitch?: number | undefined;
|
6
|
+
maxZoom?: number | undefined;
|
7
|
+
minZoom?: number | undefined;
|
8
|
+
interactive?: boolean | undefined;
|
9
|
+
minPitch?: number | undefined;
|
10
|
+
maxPitch?: number | undefined;
|
11
|
+
maxBounds?: import("maplibre-gl").LngLatBoundsLike | undefined;
|
12
|
+
renderWorldCopies?: boolean | undefined;
|
13
|
+
scrollZoom?: boolean | undefined;
|
14
|
+
boxZoom?: boolean | undefined;
|
15
|
+
dragRotate?: boolean | undefined;
|
16
|
+
dragPan?: boolean | import("maplibre-gl").DragPanOptions | undefined;
|
17
|
+
keyboard?: boolean | undefined;
|
18
|
+
doubleClickZoom?: boolean | undefined;
|
19
|
+
touchZoomRotate?: boolean | undefined;
|
20
|
+
touchPitch?: boolean | undefined;
|
21
|
+
localIdeographFontFamily?: string | undefined;
|
22
|
+
pixelRatio?: number | undefined;
|
23
|
+
antialias?: boolean | undefined;
|
24
|
+
attributionControl?: boolean | undefined;
|
25
|
+
bearingSnap?: number | undefined;
|
26
|
+
clickTolerance?: number | undefined;
|
27
|
+
collectResourceTiming?: boolean | undefined;
|
28
|
+
crossSourceCollisions?: boolean | undefined;
|
29
|
+
cooperativeGestures?: boolean | undefined;
|
30
|
+
customAttribution?: string | string[] | undefined;
|
31
|
+
hash?: string | boolean | undefined;
|
32
|
+
fadeDuration?: number | undefined;
|
33
|
+
failIfMajorPerformanceCaveat?: boolean | undefined;
|
34
|
+
locale?: any;
|
35
|
+
logoPosition?: import("maplibre-gl").ControlPosition | undefined;
|
36
|
+
preserveDrawingBuffer?: boolean | undefined;
|
37
|
+
pitchWithRotate?: boolean | undefined;
|
38
|
+
refreshExpiredTiles?: boolean | undefined;
|
39
|
+
trackResize?: boolean | undefined;
|
40
|
+
transformRequest?: import("maplibre-gl").RequestTransformFunction | undefined;
|
41
|
+
maxTileCacheSize?: number | undefined;
|
42
|
+
maplibreLogo?: boolean | undefined;
|
43
|
+
} & Partial<import("react-map-gl/maplibre").ViewState> & import("react-map-gl/dist/esm/types/events-maplibre").MapCallbacks & {
|
44
|
+
mapboxAccessToken?: string | undefined;
|
45
|
+
initialViewState?: (Partial<import("react-map-gl/maplibre").ViewState> & {
|
46
|
+
bounds?: import("react-map-gl/dist/esm/types").LngLatBoundsLike | undefined;
|
47
|
+
fitBoundsOptions?: {
|
48
|
+
offset?: import("react-map-gl/dist/esm/types").PointLike | undefined;
|
49
|
+
minZoom?: number | undefined;
|
50
|
+
maxZoom?: number | undefined;
|
51
|
+
padding?: number | import("react-map-gl/dist/esm/types").PaddingOptions | undefined;
|
52
|
+
} | undefined;
|
53
|
+
}) | undefined;
|
54
|
+
gl?: WebGLRenderingContext | undefined;
|
55
|
+
viewState?: (import("react-map-gl/maplibre").ViewState & {
|
56
|
+
width: number;
|
57
|
+
height: number;
|
58
|
+
}) | undefined;
|
59
|
+
mapStyle?: string | import("@maplibre/maplibre-gl-style-spec").StyleSpecification | import("react-map-gl/dist/esm/types").ImmutableLike<import("@maplibre/maplibre-gl-style-spec").StyleSpecification> | undefined;
|
60
|
+
styleDiffing?: boolean | undefined;
|
61
|
+
fog?: unknown;
|
62
|
+
light?: import("@maplibre/maplibre-gl-style-spec").LightSpecification | undefined;
|
63
|
+
terrain?: import("@maplibre/maplibre-gl-style-spec").TerrainSpecification | undefined;
|
64
|
+
interactiveLayerIds?: string[] | undefined;
|
65
|
+
cursor?: string | undefined;
|
66
|
+
} & import("react-map-gl/dist/esm/utils/set-globals").GlobalSettings & {
|
67
|
+
mapLib?: import("react-map-gl/maplibre").MapLib<import("maplibre-gl").Map> | Promise<import("react-map-gl/maplibre").MapLib<import("maplibre-gl").Map>> | undefined;
|
68
|
+
reuseMaps?: boolean | undefined;
|
69
|
+
id?: string | undefined;
|
70
|
+
style?: React.CSSProperties | undefined;
|
71
|
+
children?: any;
|
72
|
+
} & React.RefAttributes<import("react-map-gl/maplibre").MapRef>, "ref"> & React.RefAttributes<unknown>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './MapWindow';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type MapInstance } from 'react-map-gl/maplibre';
|
2
|
+
export type SyncMapsOptions = {
|
3
|
+
centerOffsetPixels: {
|
4
|
+
x: number;
|
5
|
+
y: number;
|
6
|
+
};
|
7
|
+
};
|
8
|
+
export declare function syncMaps(mainMap: MapInstance, targetMap: MapInstance, { centerOffsetPixels }: SyncMapsOptions): void;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import 'maplibre-gl/dist/maplibre-gl.css';
|
3
|
+
import '@maplibre/maplibre-gl-geocoder/dist/maplibre-gl-geocoder.css';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export default _default;
|
11
|
+
export declare const Basic: () => React.JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export type MapboxGeocoderApiProps = {
|
2
|
+
accessToken: string;
|
3
|
+
};
|
4
|
+
export declare function mapboxGeocoderApi({ accessToken }: MapboxGeocoderApiProps): {
|
5
|
+
forwardGeocode: (input: any) => Promise<void>;
|
6
|
+
reverseGeocode: (input: any) => Promise<void>;
|
7
|
+
getSuggestions: (config: any) => any;
|
8
|
+
searchByPlaceId: ({ query, language, }: MaplibreGeocoderApiConfig) => Promise<MaplibreGeocoderPlaceResults>;
|
9
|
+
};
|
@@ -0,0 +1,309 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Map, MapInstance, MapMouseEvent } from 'react-map-gl/maplibre';
|
3
|
+
type HoverInfo = {
|
4
|
+
index: number;
|
5
|
+
point: [number, number];
|
6
|
+
coordinates: [number, number];
|
7
|
+
event: MapMouseEvent;
|
8
|
+
};
|
9
|
+
export declare function makeSyncedMaps({ components, }: {
|
10
|
+
components: {
|
11
|
+
Map: typeof Map;
|
12
|
+
};
|
13
|
+
}): React.ForwardRefExoticComponent<Omit<Omit<{
|
14
|
+
zoom?: number | undefined;
|
15
|
+
bearing?: number | undefined;
|
16
|
+
pitch?: number | undefined;
|
17
|
+
maxZoom?: number | undefined;
|
18
|
+
minZoom?: number | undefined;
|
19
|
+
interactive?: boolean | undefined;
|
20
|
+
minPitch?: number | undefined;
|
21
|
+
maxPitch?: number | undefined;
|
22
|
+
maxBounds?: import("maplibre-gl").LngLatBoundsLike | undefined;
|
23
|
+
renderWorldCopies?: boolean | undefined;
|
24
|
+
scrollZoom?: boolean | undefined;
|
25
|
+
boxZoom?: boolean | undefined;
|
26
|
+
dragRotate?: boolean | undefined;
|
27
|
+
dragPan?: boolean | import("maplibre-gl").DragPanOptions | undefined;
|
28
|
+
keyboard?: boolean | undefined;
|
29
|
+
doubleClickZoom?: boolean | undefined;
|
30
|
+
touchZoomRotate?: boolean | undefined;
|
31
|
+
touchPitch?: boolean | undefined;
|
32
|
+
localIdeographFontFamily?: string | undefined;
|
33
|
+
pixelRatio?: number | undefined;
|
34
|
+
antialias?: boolean | undefined;
|
35
|
+
attributionControl?: boolean | undefined;
|
36
|
+
bearingSnap?: number | undefined;
|
37
|
+
clickTolerance?: number | undefined;
|
38
|
+
collectResourceTiming?: boolean | undefined;
|
39
|
+
crossSourceCollisions?: boolean | undefined;
|
40
|
+
cooperativeGestures?: boolean | undefined;
|
41
|
+
customAttribution?: string | string[] | undefined;
|
42
|
+
hash?: string | boolean | undefined;
|
43
|
+
fadeDuration?: number | undefined;
|
44
|
+
failIfMajorPerformanceCaveat?: boolean | undefined;
|
45
|
+
locale?: any;
|
46
|
+
logoPosition?: import("maplibre-gl").ControlPosition | undefined;
|
47
|
+
preserveDrawingBuffer?: boolean | undefined;
|
48
|
+
pitchWithRotate?: boolean | undefined;
|
49
|
+
refreshExpiredTiles?: boolean | undefined;
|
50
|
+
trackResize?: boolean | undefined;
|
51
|
+
transformRequest?: import("maplibre-gl").RequestTransformFunction | undefined;
|
52
|
+
maxTileCacheSize?: number | undefined;
|
53
|
+
maplibreLogo?: boolean | undefined;
|
54
|
+
} & Partial<import("react-map-gl/maplibre").ViewState> & import("react-map-gl/dist/esm/types/events-maplibre").MapCallbacks & {
|
55
|
+
mapboxAccessToken?: string | undefined;
|
56
|
+
initialViewState?: (Partial<import("react-map-gl/maplibre").ViewState> & {
|
57
|
+
bounds?: import("react-map-gl/dist/esm/types").LngLatBoundsLike | undefined;
|
58
|
+
fitBoundsOptions?: {
|
59
|
+
offset?: import("react-map-gl/dist/esm/types").PointLike | undefined;
|
60
|
+
minZoom?: number | undefined;
|
61
|
+
maxZoom?: number | undefined;
|
62
|
+
padding?: number | import("react-map-gl/dist/esm/types").PaddingOptions | undefined;
|
63
|
+
} | undefined;
|
64
|
+
}) | undefined;
|
65
|
+
gl?: WebGLRenderingContext | undefined;
|
66
|
+
viewState?: (import("react-map-gl/maplibre").ViewState & {
|
67
|
+
width: number;
|
68
|
+
height: number;
|
69
|
+
}) | undefined;
|
70
|
+
mapStyle?: string | import("@maplibre/maplibre-gl-style-spec").StyleSpecification | import("react-map-gl/dist/esm/types").ImmutableLike<import("@maplibre/maplibre-gl-style-spec").StyleSpecification> | undefined;
|
71
|
+
styleDiffing?: boolean | undefined;
|
72
|
+
fog?: unknown;
|
73
|
+
light?: import("@maplibre/maplibre-gl-style-spec").LightSpecification | undefined;
|
74
|
+
terrain?: import("@maplibre/maplibre-gl-style-spec").TerrainSpecification | undefined;
|
75
|
+
interactiveLayerIds?: string[] | undefined;
|
76
|
+
cursor?: string | undefined;
|
77
|
+
} & import("react-map-gl/dist/esm/utils/set-globals").GlobalSettings & {
|
78
|
+
mapLib?: import("react-map-gl/maplibre").MapLib<import("maplibre-gl").Map> | Promise<import("react-map-gl/maplibre").MapLib<import("maplibre-gl").Map>> | undefined;
|
79
|
+
reuseMaps?: boolean | undefined;
|
80
|
+
id?: string | undefined;
|
81
|
+
style?: React.CSSProperties | undefined;
|
82
|
+
children?: any;
|
83
|
+
} & React.RefAttributes<import("react-map-gl/maplibre").MapRef> & {
|
84
|
+
tooltip?: boolean | undefined;
|
85
|
+
}, "tooltip"> & {
|
86
|
+
tooltip?: ((hoverInfo: HoverInfo, map: MapInstance) => React.ReactNode) | undefined;
|
87
|
+
maps: ({
|
88
|
+
zoom?: number | undefined;
|
89
|
+
bearing?: number | undefined;
|
90
|
+
pitch?: number | undefined;
|
91
|
+
maxZoom?: number | undefined;
|
92
|
+
minZoom?: number | undefined;
|
93
|
+
interactive?: boolean | undefined;
|
94
|
+
minPitch?: number | undefined;
|
95
|
+
maxPitch?: number | undefined;
|
96
|
+
maxBounds?: import("maplibre-gl").LngLatBoundsLike | undefined;
|
97
|
+
renderWorldCopies?: boolean | undefined;
|
98
|
+
scrollZoom?: boolean | undefined;
|
99
|
+
boxZoom?: boolean | undefined;
|
100
|
+
dragRotate?: boolean | undefined;
|
101
|
+
dragPan?: boolean | import("maplibre-gl").DragPanOptions | undefined;
|
102
|
+
keyboard?: boolean | undefined;
|
103
|
+
doubleClickZoom?: boolean | undefined;
|
104
|
+
touchZoomRotate?: boolean | undefined;
|
105
|
+
touchPitch?: boolean | undefined;
|
106
|
+
localIdeographFontFamily?: string | undefined;
|
107
|
+
pixelRatio?: number | undefined;
|
108
|
+
antialias?: boolean | undefined;
|
109
|
+
attributionControl?: boolean | undefined;
|
110
|
+
bearingSnap?: number | undefined;
|
111
|
+
clickTolerance?: number | undefined;
|
112
|
+
collectResourceTiming?: boolean | undefined;
|
113
|
+
crossSourceCollisions?: boolean | undefined;
|
114
|
+
cooperativeGestures?: boolean | undefined;
|
115
|
+
customAttribution?: string | string[] | undefined;
|
116
|
+
hash?: string | boolean | undefined;
|
117
|
+
fadeDuration?: number | undefined;
|
118
|
+
failIfMajorPerformanceCaveat?: boolean | undefined;
|
119
|
+
locale?: any;
|
120
|
+
logoPosition?: import("maplibre-gl").ControlPosition | undefined;
|
121
|
+
preserveDrawingBuffer?: boolean | undefined;
|
122
|
+
pitchWithRotate?: boolean | undefined;
|
123
|
+
refreshExpiredTiles?: boolean | undefined;
|
124
|
+
trackResize?: boolean | undefined;
|
125
|
+
transformRequest?: import("maplibre-gl").RequestTransformFunction | undefined;
|
126
|
+
maxTileCacheSize?: number | undefined;
|
127
|
+
maplibreLogo?: boolean | undefined;
|
128
|
+
} & Partial<import("react-map-gl/maplibre").ViewState> & import("react-map-gl/dist/esm/types/events-maplibre").MapCallbacks & {
|
129
|
+
mapboxAccessToken?: string | undefined;
|
130
|
+
initialViewState?: (Partial<import("react-map-gl/maplibre").ViewState> & {
|
131
|
+
bounds?: import("react-map-gl/dist/esm/types").LngLatBoundsLike | undefined;
|
132
|
+
fitBoundsOptions?: {
|
133
|
+
offset?: import("react-map-gl/dist/esm/types").PointLike | undefined;
|
134
|
+
minZoom?: number | undefined;
|
135
|
+
maxZoom?: number | undefined;
|
136
|
+
padding?: number | import("react-map-gl/dist/esm/types").PaddingOptions | undefined;
|
137
|
+
} | undefined;
|
138
|
+
}) | undefined;
|
139
|
+
gl?: WebGLRenderingContext | undefined;
|
140
|
+
viewState?: (import("react-map-gl/maplibre").ViewState & {
|
141
|
+
width: number;
|
142
|
+
height: number;
|
143
|
+
}) | undefined;
|
144
|
+
mapStyle?: string | import("@maplibre/maplibre-gl-style-spec").StyleSpecification | import("react-map-gl/dist/esm/types").ImmutableLike<import("@maplibre/maplibre-gl-style-spec").StyleSpecification> | undefined;
|
145
|
+
styleDiffing?: boolean | undefined;
|
146
|
+
fog?: unknown;
|
147
|
+
light?: import("@maplibre/maplibre-gl-style-spec").LightSpecification | undefined;
|
148
|
+
terrain?: import("@maplibre/maplibre-gl-style-spec").TerrainSpecification | undefined;
|
149
|
+
interactiveLayerIds?: string[] | undefined;
|
150
|
+
cursor?: string | undefined;
|
151
|
+
} & import("react-map-gl/dist/esm/utils/set-globals").GlobalSettings & {
|
152
|
+
mapLib?: import("react-map-gl/maplibre").MapLib<import("maplibre-gl").Map> | Promise<import("react-map-gl/maplibre").MapLib<import("maplibre-gl").Map>> | undefined;
|
153
|
+
reuseMaps?: boolean | undefined;
|
154
|
+
id?: string | undefined;
|
155
|
+
style?: React.CSSProperties | undefined;
|
156
|
+
children?: any;
|
157
|
+
} & React.RefAttributes<import("react-map-gl/maplibre").MapRef> & {
|
158
|
+
tooltip?: boolean | undefined;
|
159
|
+
})[];
|
160
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
161
|
+
export declare const SyncedMaps: React.ForwardRefExoticComponent<Omit<Omit<{
|
162
|
+
zoom?: number | undefined;
|
163
|
+
bearing?: number | undefined;
|
164
|
+
pitch?: number | undefined;
|
165
|
+
maxZoom?: number | undefined;
|
166
|
+
minZoom?: number | undefined;
|
167
|
+
interactive?: boolean | undefined;
|
168
|
+
minPitch?: number | undefined;
|
169
|
+
maxPitch?: number | undefined;
|
170
|
+
maxBounds?: import("maplibre-gl").LngLatBoundsLike | undefined;
|
171
|
+
renderWorldCopies?: boolean | undefined;
|
172
|
+
scrollZoom?: boolean | undefined;
|
173
|
+
boxZoom?: boolean | undefined;
|
174
|
+
dragRotate?: boolean | undefined;
|
175
|
+
dragPan?: boolean | import("maplibre-gl").DragPanOptions | undefined;
|
176
|
+
keyboard?: boolean | undefined;
|
177
|
+
doubleClickZoom?: boolean | undefined;
|
178
|
+
touchZoomRotate?: boolean | undefined;
|
179
|
+
touchPitch?: boolean | undefined;
|
180
|
+
localIdeographFontFamily?: string | undefined;
|
181
|
+
pixelRatio?: number | undefined;
|
182
|
+
antialias?: boolean | undefined;
|
183
|
+
attributionControl?: boolean | undefined;
|
184
|
+
bearingSnap?: number | undefined;
|
185
|
+
clickTolerance?: number | undefined;
|
186
|
+
collectResourceTiming?: boolean | undefined;
|
187
|
+
crossSourceCollisions?: boolean | undefined;
|
188
|
+
cooperativeGestures?: boolean | undefined;
|
189
|
+
customAttribution?: string | string[] | undefined;
|
190
|
+
hash?: string | boolean | undefined;
|
191
|
+
fadeDuration?: number | undefined;
|
192
|
+
failIfMajorPerformanceCaveat?: boolean | undefined;
|
193
|
+
locale?: any;
|
194
|
+
logoPosition?: import("maplibre-gl").ControlPosition | undefined;
|
195
|
+
preserveDrawingBuffer?: boolean | undefined;
|
196
|
+
pitchWithRotate?: boolean | undefined;
|
197
|
+
refreshExpiredTiles?: boolean | undefined;
|
198
|
+
trackResize?: boolean | undefined;
|
199
|
+
transformRequest?: import("maplibre-gl").RequestTransformFunction | undefined;
|
200
|
+
maxTileCacheSize?: number | undefined;
|
201
|
+
maplibreLogo?: boolean | undefined;
|
202
|
+
} & Partial<import("react-map-gl/maplibre").ViewState> & import("react-map-gl/dist/esm/types/events-maplibre").MapCallbacks & {
|
203
|
+
mapboxAccessToken?: string | undefined;
|
204
|
+
initialViewState?: (Partial<import("react-map-gl/maplibre").ViewState> & {
|
205
|
+
bounds?: import("react-map-gl/dist/esm/types").LngLatBoundsLike | undefined;
|
206
|
+
fitBoundsOptions?: {
|
207
|
+
offset?: import("react-map-gl/dist/esm/types").PointLike | undefined;
|
208
|
+
minZoom?: number | undefined;
|
209
|
+
maxZoom?: number | undefined;
|
210
|
+
padding?: number | import("react-map-gl/dist/esm/types").PaddingOptions | undefined;
|
211
|
+
} | undefined;
|
212
|
+
}) | undefined;
|
213
|
+
gl?: WebGLRenderingContext | undefined;
|
214
|
+
viewState?: (import("react-map-gl/maplibre").ViewState & {
|
215
|
+
width: number;
|
216
|
+
height: number;
|
217
|
+
}) | undefined;
|
218
|
+
mapStyle?: string | import("@maplibre/maplibre-gl-style-spec").StyleSpecification | import("react-map-gl/dist/esm/types").ImmutableLike<import("@maplibre/maplibre-gl-style-spec").StyleSpecification> | undefined;
|
219
|
+
styleDiffing?: boolean | undefined;
|
220
|
+
fog?: unknown;
|
221
|
+
light?: import("@maplibre/maplibre-gl-style-spec").LightSpecification | undefined;
|
222
|
+
terrain?: import("@maplibre/maplibre-gl-style-spec").TerrainSpecification | undefined;
|
223
|
+
interactiveLayerIds?: string[] | undefined;
|
224
|
+
cursor?: string | undefined;
|
225
|
+
} & import("react-map-gl/dist/esm/utils/set-globals").GlobalSettings & {
|
226
|
+
mapLib?: import("react-map-gl/maplibre").MapLib<import("maplibre-gl").Map> | Promise<import("react-map-gl/maplibre").MapLib<import("maplibre-gl").Map>> | undefined;
|
227
|
+
reuseMaps?: boolean | undefined;
|
228
|
+
id?: string | undefined;
|
229
|
+
style?: React.CSSProperties | undefined;
|
230
|
+
children?: any;
|
231
|
+
} & React.RefAttributes<import("react-map-gl/maplibre").MapRef> & {
|
232
|
+
tooltip?: boolean | undefined;
|
233
|
+
}, "tooltip"> & {
|
234
|
+
tooltip?: ((hoverInfo: HoverInfo, map: MapInstance) => React.ReactNode) | undefined;
|
235
|
+
maps: ({
|
236
|
+
zoom?: number | undefined;
|
237
|
+
bearing?: number | undefined;
|
238
|
+
pitch?: number | undefined;
|
239
|
+
maxZoom?: number | undefined;
|
240
|
+
minZoom?: number | undefined;
|
241
|
+
interactive?: boolean | undefined;
|
242
|
+
minPitch?: number | undefined;
|
243
|
+
maxPitch?: number | undefined;
|
244
|
+
maxBounds?: import("maplibre-gl").LngLatBoundsLike | undefined;
|
245
|
+
renderWorldCopies?: boolean | undefined;
|
246
|
+
scrollZoom?: boolean | undefined;
|
247
|
+
boxZoom?: boolean | undefined;
|
248
|
+
dragRotate?: boolean | undefined;
|
249
|
+
dragPan?: boolean | import("maplibre-gl").DragPanOptions | undefined;
|
250
|
+
keyboard?: boolean | undefined;
|
251
|
+
doubleClickZoom?: boolean | undefined;
|
252
|
+
touchZoomRotate?: boolean | undefined;
|
253
|
+
touchPitch?: boolean | undefined;
|
254
|
+
localIdeographFontFamily?: string | undefined;
|
255
|
+
pixelRatio?: number | undefined;
|
256
|
+
antialias?: boolean | undefined;
|
257
|
+
attributionControl?: boolean | undefined;
|
258
|
+
bearingSnap?: number | undefined;
|
259
|
+
clickTolerance?: number | undefined;
|
260
|
+
collectResourceTiming?: boolean | undefined;
|
261
|
+
crossSourceCollisions?: boolean | undefined;
|
262
|
+
cooperativeGestures?: boolean | undefined;
|
263
|
+
customAttribution?: string | string[] | undefined;
|
264
|
+
hash?: string | boolean | undefined;
|
265
|
+
fadeDuration?: number | undefined;
|
266
|
+
failIfMajorPerformanceCaveat?: boolean | undefined;
|
267
|
+
locale?: any;
|
268
|
+
logoPosition?: import("maplibre-gl").ControlPosition | undefined;
|
269
|
+
preserveDrawingBuffer?: boolean | undefined;
|
270
|
+
pitchWithRotate?: boolean | undefined;
|
271
|
+
refreshExpiredTiles?: boolean | undefined;
|
272
|
+
trackResize?: boolean | undefined;
|
273
|
+
transformRequest?: import("maplibre-gl").RequestTransformFunction | undefined;
|
274
|
+
maxTileCacheSize?: number | undefined;
|
275
|
+
maplibreLogo?: boolean | undefined;
|
276
|
+
} & Partial<import("react-map-gl/maplibre").ViewState> & import("react-map-gl/dist/esm/types/events-maplibre").MapCallbacks & {
|
277
|
+
mapboxAccessToken?: string | undefined;
|
278
|
+
initialViewState?: (Partial<import("react-map-gl/maplibre").ViewState> & {
|
279
|
+
bounds?: import("react-map-gl/dist/esm/types").LngLatBoundsLike | undefined;
|
280
|
+
fitBoundsOptions?: {
|
281
|
+
offset?: import("react-map-gl/dist/esm/types").PointLike | undefined;
|
282
|
+
minZoom?: number | undefined;
|
283
|
+
maxZoom?: number | undefined;
|
284
|
+
padding?: number | import("react-map-gl/dist/esm/types").PaddingOptions | undefined;
|
285
|
+
} | undefined;
|
286
|
+
}) | undefined;
|
287
|
+
gl?: WebGLRenderingContext | undefined;
|
288
|
+
viewState?: (import("react-map-gl/maplibre").ViewState & {
|
289
|
+
width: number;
|
290
|
+
height: number;
|
291
|
+
}) | undefined;
|
292
|
+
mapStyle?: string | import("@maplibre/maplibre-gl-style-spec").StyleSpecification | import("react-map-gl/dist/esm/types").ImmutableLike<import("@maplibre/maplibre-gl-style-spec").StyleSpecification> | undefined;
|
293
|
+
styleDiffing?: boolean | undefined;
|
294
|
+
fog?: unknown;
|
295
|
+
light?: import("@maplibre/maplibre-gl-style-spec").LightSpecification | undefined;
|
296
|
+
terrain?: import("@maplibre/maplibre-gl-style-spec").TerrainSpecification | undefined;
|
297
|
+
interactiveLayerIds?: string[] | undefined;
|
298
|
+
cursor?: string | undefined;
|
299
|
+
} & import("react-map-gl/dist/esm/utils/set-globals").GlobalSettings & {
|
300
|
+
mapLib?: import("react-map-gl/maplibre").MapLib<import("maplibre-gl").Map> | Promise<import("react-map-gl/maplibre").MapLib<import("maplibre-gl").Map>> | undefined;
|
301
|
+
reuseMaps?: boolean | undefined;
|
302
|
+
id?: string | undefined;
|
303
|
+
style?: React.CSSProperties | undefined;
|
304
|
+
children?: any;
|
305
|
+
} & React.RefAttributes<import("react-map-gl/maplibre").MapRef> & {
|
306
|
+
tooltip?: boolean | undefined;
|
307
|
+
})[];
|
308
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
309
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './SyncedMaps';
|
package/dist/index.d.ts
ADDED