@orioro/react-maplibre-util 0.0.2 → 0.2.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/CHANGELOG.md +17 -0
- package/dist/Controls/ControlContainer/index.d.ts +16 -0
- package/dist/Controls/TerrainControl/TerrainControl.d.ts +21 -0
- package/dist/Controls/TerrainControl/index.d.ts +1 -0
- package/dist/Controls/index.d.ts +2 -0
- package/dist/GeocoderCtrl_MapLibre/mapboxGeocoderApi.d.ts +1 -1
- package/dist/HoverTooltip/HoverTooltip.d.ts +3 -2
- package/dist/LayeredMap/parseMapViews.d.ts +45 -0
- package/dist/MapWindow/MapWindow.d.ts +63 -57
- package/dist/SyncedMaps/GhostCursor.d.ts +1 -2
- package/dist/SyncedMaps/SyncedMaps.d.ts +260 -234
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +741 -218
- package/dist/useHover/useHover.d.ts +5 -4
- package/dist/util/applyReactStyle.d.ts +2 -0
- package/dist/util/index.d.ts +2 -0
- package/dist/util/misc.d.ts +5 -0
- package/package.json +12 -4
- package/dist/tmpMapView/MapView.d.ts +0 -3
@@ -1,309 +1,335 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { Map, MapInstance, MapMouseEvent } from 'react-map-gl/maplibre';
|
3
|
+
import { MapGeoJSONFeature } from 'maplibre-gl';
|
3
4
|
type HoverInfo = {
|
4
5
|
index: number;
|
5
6
|
point: [number, number];
|
6
7
|
coordinates: [number, number];
|
7
8
|
event: MapMouseEvent;
|
9
|
+
features?: MapGeoJSONFeature[];
|
8
10
|
};
|
9
11
|
export declare function makeSyncedMaps({ components, }: {
|
10
12
|
components: {
|
11
13
|
Map: typeof Map;
|
12
14
|
};
|
13
15
|
}): React.ForwardRefExoticComponent<Omit<Omit<{
|
14
|
-
|
15
|
-
bearing?: number | undefined;
|
16
|
-
pitch?: number | undefined;
|
17
|
-
maxZoom?: number | undefined;
|
18
|
-
minZoom?: number | undefined;
|
16
|
+
hash?: boolean | string | undefined;
|
19
17
|
interactive?: boolean | undefined;
|
20
|
-
|
21
|
-
|
18
|
+
bearingSnap?: number | undefined;
|
19
|
+
attributionControl?: (false | import("maplibre-gl").AttributionControlOptions) | undefined;
|
20
|
+
maplibreLogo?: boolean | undefined;
|
21
|
+
logoPosition?: import("maplibre-gl").ControlPosition | undefined;
|
22
|
+
canvasContextAttributes?: import("maplibre-gl").WebGLContextAttributesWithType | undefined;
|
23
|
+
refreshExpiredTiles?: boolean | undefined;
|
22
24
|
maxBounds?: import("maplibre-gl").LngLatBoundsLike | undefined;
|
23
|
-
|
24
|
-
|
25
|
+
scrollZoom?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
26
|
+
minZoom?: number | null | undefined;
|
27
|
+
maxZoom?: number | null | undefined;
|
28
|
+
minPitch?: number | null | undefined;
|
29
|
+
maxPitch?: number | null | undefined;
|
25
30
|
boxZoom?: boolean | undefined;
|
26
31
|
dragRotate?: boolean | undefined;
|
27
|
-
dragPan?: boolean | import("maplibre-gl").DragPanOptions | undefined;
|
32
|
+
dragPan?: (boolean | import("maplibre-gl").DragPanOptions) | undefined;
|
28
33
|
keyboard?: boolean | undefined;
|
29
34
|
doubleClickZoom?: boolean | undefined;
|
30
|
-
touchZoomRotate?: boolean | undefined;
|
31
|
-
touchPitch?: boolean | undefined;
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
failIfMajorPerformanceCaveat?: boolean | undefined;
|
35
|
+
touchZoomRotate?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
36
|
+
touchPitch?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
37
|
+
cooperativeGestures?: import("maplibre-gl").GestureOptions | undefined;
|
38
|
+
trackResize?: boolean | undefined;
|
39
|
+
elevation?: number | undefined;
|
40
|
+
zoom?: number | undefined;
|
41
|
+
bearing?: number | undefined;
|
42
|
+
pitch?: number | undefined;
|
43
|
+
roll?: number | undefined;
|
44
|
+
renderWorldCopies?: boolean | undefined;
|
45
|
+
maxTileCacheSize?: number | null | undefined;
|
46
|
+
maxTileCacheZoomLevels?: number | undefined;
|
47
|
+
transformRequest?: (import("maplibre-gl").RequestTransformFunction | null) | undefined;
|
48
|
+
transformCameraUpdate?: (import("maplibre-gl").CameraUpdateTransformFunction | null) | undefined;
|
45
49
|
locale?: any;
|
46
|
-
|
47
|
-
|
50
|
+
fadeDuration?: number | undefined;
|
51
|
+
crossSourceCollisions?: boolean | undefined;
|
52
|
+
collectResourceTiming?: boolean | undefined;
|
53
|
+
clickTolerance?: number | undefined;
|
54
|
+
localIdeographFontFamily?: string | false | undefined;
|
48
55
|
pitchWithRotate?: boolean | undefined;
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
initialViewState?:
|
57
|
-
bounds?: import("
|
56
|
+
rollEnabled?: boolean | undefined;
|
57
|
+
pixelRatio?: number | undefined;
|
58
|
+
validateStyle?: boolean | undefined;
|
59
|
+
maxCanvasSize?: [number, number] | undefined;
|
60
|
+
cancelPendingTileRequestsWhileZooming?: boolean | undefined;
|
61
|
+
centerClampedToGround?: boolean | undefined;
|
62
|
+
} & Partial<import("react-map-gl/maplibre").ViewState> & import("react-map-gl/maplibre").MapCallbacks & {
|
63
|
+
initialViewState?: Partial<import("react-map-gl/maplibre").ViewState> & {
|
64
|
+
bounds?: import("maplibre-gl").LngLatBoundsLike;
|
58
65
|
fitBoundsOptions?: {
|
59
|
-
offset?: import("
|
60
|
-
minZoom?: number
|
61
|
-
maxZoom?: number
|
62
|
-
padding?: number | import("
|
63
|
-
}
|
64
|
-
}
|
65
|
-
gl?: WebGLRenderingContext
|
66
|
-
viewState?:
|
66
|
+
offset?: import("maplibre-gl").PointLike;
|
67
|
+
minZoom?: number;
|
68
|
+
maxZoom?: number;
|
69
|
+
padding?: number | import("maplibre-gl").PaddingOptions;
|
70
|
+
};
|
71
|
+
};
|
72
|
+
gl?: WebGLRenderingContext;
|
73
|
+
viewState?: import("react-map-gl/maplibre").ViewState & {
|
67
74
|
width: number;
|
68
75
|
height: number;
|
69
|
-
}
|
70
|
-
mapStyle?: string | import("
|
71
|
-
styleDiffing?: boolean
|
72
|
-
|
73
|
-
light?: import("
|
74
|
-
terrain?: import("
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
};
|
77
|
+
mapStyle?: string | import("maplibre-gl").StyleSpecification | import("react-map-gl/maplibre").ImmutableLike<import("maplibre-gl").StyleSpecification>;
|
78
|
+
styleDiffing?: boolean;
|
79
|
+
projection?: import("maplibre-gl").ProjectionSpecification | "mercator" | "globe";
|
80
|
+
light?: import("maplibre-gl").LightSpecification;
|
81
|
+
terrain?: import("maplibre-gl").TerrainSpecification;
|
82
|
+
sky?: import("maplibre-gl").SkySpecification;
|
83
|
+
interactiveLayerIds?: string[];
|
84
|
+
cursor?: string;
|
85
|
+
} & import("@vis.gl/react-maplibre/dist/utils/set-globals").GlobalSettings & {
|
86
|
+
mapLib?: import("react-map-gl/maplibre").MapLib | Promise<import("react-map-gl/maplibre").MapLib>;
|
87
|
+
reuseMaps?: boolean;
|
88
|
+
id?: string;
|
89
|
+
style?: React.CSSProperties;
|
82
90
|
children?: any;
|
83
91
|
} & React.RefAttributes<import("react-map-gl/maplibre").MapRef> & {
|
84
|
-
tooltip?: boolean
|
92
|
+
tooltip?: boolean;
|
85
93
|
}, "tooltip"> & {
|
86
|
-
tooltip?: (
|
94
|
+
tooltip?: (hoverInfo: HoverInfo, map: MapInstance) => React.ReactNode;
|
87
95
|
maps: ({
|
88
|
-
|
89
|
-
bearing?: number | undefined;
|
90
|
-
pitch?: number | undefined;
|
91
|
-
maxZoom?: number | undefined;
|
92
|
-
minZoom?: number | undefined;
|
96
|
+
hash?: boolean | string | undefined;
|
93
97
|
interactive?: boolean | undefined;
|
94
|
-
|
95
|
-
|
98
|
+
bearingSnap?: number | undefined;
|
99
|
+
attributionControl?: (false | import("maplibre-gl").AttributionControlOptions) | undefined;
|
100
|
+
maplibreLogo?: boolean | undefined;
|
101
|
+
logoPosition?: import("maplibre-gl").ControlPosition | undefined;
|
102
|
+
canvasContextAttributes?: import("maplibre-gl").WebGLContextAttributesWithType | undefined;
|
103
|
+
refreshExpiredTiles?: boolean | undefined;
|
96
104
|
maxBounds?: import("maplibre-gl").LngLatBoundsLike | undefined;
|
97
|
-
|
98
|
-
|
105
|
+
scrollZoom?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
106
|
+
minZoom?: number | null | undefined;
|
107
|
+
maxZoom?: number | null | undefined;
|
108
|
+
minPitch?: number | null | undefined;
|
109
|
+
maxPitch?: number | null | undefined;
|
99
110
|
boxZoom?: boolean | undefined;
|
100
111
|
dragRotate?: boolean | undefined;
|
101
|
-
dragPan?: boolean | import("maplibre-gl").DragPanOptions | undefined;
|
112
|
+
dragPan?: (boolean | import("maplibre-gl").DragPanOptions) | undefined;
|
102
113
|
keyboard?: boolean | undefined;
|
103
114
|
doubleClickZoom?: boolean | undefined;
|
104
|
-
touchZoomRotate?: boolean | undefined;
|
105
|
-
touchPitch?: boolean | undefined;
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
failIfMajorPerformanceCaveat?: boolean | undefined;
|
115
|
+
touchZoomRotate?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
116
|
+
touchPitch?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
117
|
+
cooperativeGestures?: import("maplibre-gl").GestureOptions | undefined;
|
118
|
+
trackResize?: boolean | undefined;
|
119
|
+
elevation?: number | undefined;
|
120
|
+
zoom?: number | undefined;
|
121
|
+
bearing?: number | undefined;
|
122
|
+
pitch?: number | undefined;
|
123
|
+
roll?: number | undefined;
|
124
|
+
renderWorldCopies?: boolean | undefined;
|
125
|
+
maxTileCacheSize?: number | null | undefined;
|
126
|
+
maxTileCacheZoomLevels?: number | undefined;
|
127
|
+
transformRequest?: (import("maplibre-gl").RequestTransformFunction | null) | undefined;
|
128
|
+
transformCameraUpdate?: (import("maplibre-gl").CameraUpdateTransformFunction | null) | undefined;
|
119
129
|
locale?: any;
|
120
|
-
|
121
|
-
|
130
|
+
fadeDuration?: number | undefined;
|
131
|
+
crossSourceCollisions?: boolean | undefined;
|
132
|
+
collectResourceTiming?: boolean | undefined;
|
133
|
+
clickTolerance?: number | undefined;
|
134
|
+
localIdeographFontFamily?: string | false | undefined;
|
122
135
|
pitchWithRotate?: boolean | undefined;
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
initialViewState?:
|
131
|
-
bounds?: import("
|
136
|
+
rollEnabled?: boolean | undefined;
|
137
|
+
pixelRatio?: number | undefined;
|
138
|
+
validateStyle?: boolean | undefined;
|
139
|
+
maxCanvasSize?: [number, number] | undefined;
|
140
|
+
cancelPendingTileRequestsWhileZooming?: boolean | undefined;
|
141
|
+
centerClampedToGround?: boolean | undefined;
|
142
|
+
} & Partial<import("react-map-gl/maplibre").ViewState> & import("react-map-gl/maplibre").MapCallbacks & {
|
143
|
+
initialViewState?: Partial<import("react-map-gl/maplibre").ViewState> & {
|
144
|
+
bounds?: import("maplibre-gl").LngLatBoundsLike;
|
132
145
|
fitBoundsOptions?: {
|
133
|
-
offset?: import("
|
134
|
-
minZoom?: number
|
135
|
-
maxZoom?: number
|
136
|
-
padding?: number | import("
|
137
|
-
}
|
138
|
-
}
|
139
|
-
gl?: WebGLRenderingContext
|
140
|
-
viewState?:
|
146
|
+
offset?: import("maplibre-gl").PointLike;
|
147
|
+
minZoom?: number;
|
148
|
+
maxZoom?: number;
|
149
|
+
padding?: number | import("maplibre-gl").PaddingOptions;
|
150
|
+
};
|
151
|
+
};
|
152
|
+
gl?: WebGLRenderingContext;
|
153
|
+
viewState?: import("react-map-gl/maplibre").ViewState & {
|
141
154
|
width: number;
|
142
155
|
height: number;
|
143
|
-
}
|
144
|
-
mapStyle?: string | import("
|
145
|
-
styleDiffing?: boolean
|
146
|
-
|
147
|
-
light?: import("
|
148
|
-
terrain?: import("
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
+
};
|
157
|
+
mapStyle?: string | import("maplibre-gl").StyleSpecification | import("react-map-gl/maplibre").ImmutableLike<import("maplibre-gl").StyleSpecification>;
|
158
|
+
styleDiffing?: boolean;
|
159
|
+
projection?: import("maplibre-gl").ProjectionSpecification | "mercator" | "globe";
|
160
|
+
light?: import("maplibre-gl").LightSpecification;
|
161
|
+
terrain?: import("maplibre-gl").TerrainSpecification;
|
162
|
+
sky?: import("maplibre-gl").SkySpecification;
|
163
|
+
interactiveLayerIds?: string[];
|
164
|
+
cursor?: string;
|
165
|
+
} & import("@vis.gl/react-maplibre/dist/utils/set-globals").GlobalSettings & {
|
166
|
+
mapLib?: import("react-map-gl/maplibre").MapLib | Promise<import("react-map-gl/maplibre").MapLib>;
|
167
|
+
reuseMaps?: boolean;
|
168
|
+
id?: string;
|
169
|
+
style?: React.CSSProperties;
|
156
170
|
children?: any;
|
157
171
|
} & React.RefAttributes<import("react-map-gl/maplibre").MapRef> & {
|
158
|
-
tooltip?: boolean
|
172
|
+
tooltip?: boolean;
|
159
173
|
})[];
|
160
174
|
}, "ref"> & React.RefAttributes<unknown>>;
|
161
175
|
export declare const SyncedMaps: React.ForwardRefExoticComponent<Omit<Omit<{
|
162
|
-
|
163
|
-
bearing?: number | undefined;
|
164
|
-
pitch?: number | undefined;
|
165
|
-
maxZoom?: number | undefined;
|
166
|
-
minZoom?: number | undefined;
|
176
|
+
hash?: boolean | string | undefined;
|
167
177
|
interactive?: boolean | undefined;
|
168
|
-
|
169
|
-
|
178
|
+
bearingSnap?: number | undefined;
|
179
|
+
attributionControl?: (false | import("maplibre-gl").AttributionControlOptions) | undefined;
|
180
|
+
maplibreLogo?: boolean | undefined;
|
181
|
+
logoPosition?: import("maplibre-gl").ControlPosition | undefined;
|
182
|
+
canvasContextAttributes?: import("maplibre-gl").WebGLContextAttributesWithType | undefined;
|
183
|
+
refreshExpiredTiles?: boolean | undefined;
|
170
184
|
maxBounds?: import("maplibre-gl").LngLatBoundsLike | undefined;
|
171
|
-
|
172
|
-
|
185
|
+
scrollZoom?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
186
|
+
minZoom?: number | null | undefined;
|
187
|
+
maxZoom?: number | null | undefined;
|
188
|
+
minPitch?: number | null | undefined;
|
189
|
+
maxPitch?: number | null | undefined;
|
173
190
|
boxZoom?: boolean | undefined;
|
174
191
|
dragRotate?: boolean | undefined;
|
175
|
-
dragPan?: boolean | import("maplibre-gl").DragPanOptions | undefined;
|
192
|
+
dragPan?: (boolean | import("maplibre-gl").DragPanOptions) | undefined;
|
176
193
|
keyboard?: boolean | undefined;
|
177
194
|
doubleClickZoom?: boolean | undefined;
|
178
|
-
touchZoomRotate?: boolean | undefined;
|
179
|
-
touchPitch?: boolean | undefined;
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
failIfMajorPerformanceCaveat?: boolean | undefined;
|
195
|
+
touchZoomRotate?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
196
|
+
touchPitch?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
197
|
+
cooperativeGestures?: import("maplibre-gl").GestureOptions | undefined;
|
198
|
+
trackResize?: boolean | undefined;
|
199
|
+
elevation?: number | undefined;
|
200
|
+
zoom?: number | undefined;
|
201
|
+
bearing?: number | undefined;
|
202
|
+
pitch?: number | undefined;
|
203
|
+
roll?: number | undefined;
|
204
|
+
renderWorldCopies?: boolean | undefined;
|
205
|
+
maxTileCacheSize?: number | null | undefined;
|
206
|
+
maxTileCacheZoomLevels?: number | undefined;
|
207
|
+
transformRequest?: (import("maplibre-gl").RequestTransformFunction | null) | undefined;
|
208
|
+
transformCameraUpdate?: (import("maplibre-gl").CameraUpdateTransformFunction | null) | undefined;
|
193
209
|
locale?: any;
|
194
|
-
|
195
|
-
|
210
|
+
fadeDuration?: number | undefined;
|
211
|
+
crossSourceCollisions?: boolean | undefined;
|
212
|
+
collectResourceTiming?: boolean | undefined;
|
213
|
+
clickTolerance?: number | undefined;
|
214
|
+
localIdeographFontFamily?: string | false | undefined;
|
196
215
|
pitchWithRotate?: boolean | undefined;
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
initialViewState?:
|
205
|
-
bounds?: import("
|
216
|
+
rollEnabled?: boolean | undefined;
|
217
|
+
pixelRatio?: number | undefined;
|
218
|
+
validateStyle?: boolean | undefined;
|
219
|
+
maxCanvasSize?: [number, number] | undefined;
|
220
|
+
cancelPendingTileRequestsWhileZooming?: boolean | undefined;
|
221
|
+
centerClampedToGround?: boolean | undefined;
|
222
|
+
} & Partial<import("react-map-gl/maplibre").ViewState> & import("react-map-gl/maplibre").MapCallbacks & {
|
223
|
+
initialViewState?: Partial<import("react-map-gl/maplibre").ViewState> & {
|
224
|
+
bounds?: import("maplibre-gl").LngLatBoundsLike;
|
206
225
|
fitBoundsOptions?: {
|
207
|
-
offset?: import("
|
208
|
-
minZoom?: number
|
209
|
-
maxZoom?: number
|
210
|
-
padding?: number | import("
|
211
|
-
}
|
212
|
-
}
|
213
|
-
gl?: WebGLRenderingContext
|
214
|
-
viewState?:
|
226
|
+
offset?: import("maplibre-gl").PointLike;
|
227
|
+
minZoom?: number;
|
228
|
+
maxZoom?: number;
|
229
|
+
padding?: number | import("maplibre-gl").PaddingOptions;
|
230
|
+
};
|
231
|
+
};
|
232
|
+
gl?: WebGLRenderingContext;
|
233
|
+
viewState?: import("react-map-gl/maplibre").ViewState & {
|
215
234
|
width: number;
|
216
235
|
height: number;
|
217
|
-
}
|
218
|
-
mapStyle?: string | import("
|
219
|
-
styleDiffing?: boolean
|
220
|
-
|
221
|
-
light?: import("
|
222
|
-
terrain?: import("
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
236
|
+
};
|
237
|
+
mapStyle?: string | import("maplibre-gl").StyleSpecification | import("react-map-gl/maplibre").ImmutableLike<import("maplibre-gl").StyleSpecification>;
|
238
|
+
styleDiffing?: boolean;
|
239
|
+
projection?: import("maplibre-gl").ProjectionSpecification | "mercator" | "globe";
|
240
|
+
light?: import("maplibre-gl").LightSpecification;
|
241
|
+
terrain?: import("maplibre-gl").TerrainSpecification;
|
242
|
+
sky?: import("maplibre-gl").SkySpecification;
|
243
|
+
interactiveLayerIds?: string[];
|
244
|
+
cursor?: string;
|
245
|
+
} & import("@vis.gl/react-maplibre/dist/utils/set-globals").GlobalSettings & {
|
246
|
+
mapLib?: import("react-map-gl/maplibre").MapLib | Promise<import("react-map-gl/maplibre").MapLib>;
|
247
|
+
reuseMaps?: boolean;
|
248
|
+
id?: string;
|
249
|
+
style?: React.CSSProperties;
|
230
250
|
children?: any;
|
231
251
|
} & React.RefAttributes<import("react-map-gl/maplibre").MapRef> & {
|
232
|
-
tooltip?: boolean
|
252
|
+
tooltip?: boolean;
|
233
253
|
}, "tooltip"> & {
|
234
|
-
tooltip?: (
|
254
|
+
tooltip?: (hoverInfo: HoverInfo, map: MapInstance) => React.ReactNode;
|
235
255
|
maps: ({
|
236
|
-
|
237
|
-
bearing?: number | undefined;
|
238
|
-
pitch?: number | undefined;
|
239
|
-
maxZoom?: number | undefined;
|
240
|
-
minZoom?: number | undefined;
|
256
|
+
hash?: boolean | string | undefined;
|
241
257
|
interactive?: boolean | undefined;
|
242
|
-
|
243
|
-
|
258
|
+
bearingSnap?: number | undefined;
|
259
|
+
attributionControl?: (false | import("maplibre-gl").AttributionControlOptions) | undefined;
|
260
|
+
maplibreLogo?: boolean | undefined;
|
261
|
+
logoPosition?: import("maplibre-gl").ControlPosition | undefined;
|
262
|
+
canvasContextAttributes?: import("maplibre-gl").WebGLContextAttributesWithType | undefined;
|
263
|
+
refreshExpiredTiles?: boolean | undefined;
|
244
264
|
maxBounds?: import("maplibre-gl").LngLatBoundsLike | undefined;
|
245
|
-
|
246
|
-
|
265
|
+
scrollZoom?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
266
|
+
minZoom?: number | null | undefined;
|
267
|
+
maxZoom?: number | null | undefined;
|
268
|
+
minPitch?: number | null | undefined;
|
269
|
+
maxPitch?: number | null | undefined;
|
247
270
|
boxZoom?: boolean | undefined;
|
248
271
|
dragRotate?: boolean | undefined;
|
249
|
-
dragPan?: boolean | import("maplibre-gl").DragPanOptions | undefined;
|
272
|
+
dragPan?: (boolean | import("maplibre-gl").DragPanOptions) | undefined;
|
250
273
|
keyboard?: boolean | undefined;
|
251
274
|
doubleClickZoom?: boolean | undefined;
|
252
|
-
touchZoomRotate?: boolean | undefined;
|
253
|
-
touchPitch?: boolean | undefined;
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
failIfMajorPerformanceCaveat?: boolean | undefined;
|
275
|
+
touchZoomRotate?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
276
|
+
touchPitch?: (boolean | import("maplibre-gl").AroundCenterOptions) | undefined;
|
277
|
+
cooperativeGestures?: import("maplibre-gl").GestureOptions | undefined;
|
278
|
+
trackResize?: boolean | undefined;
|
279
|
+
elevation?: number | undefined;
|
280
|
+
zoom?: number | undefined;
|
281
|
+
bearing?: number | undefined;
|
282
|
+
pitch?: number | undefined;
|
283
|
+
roll?: number | undefined;
|
284
|
+
renderWorldCopies?: boolean | undefined;
|
285
|
+
maxTileCacheSize?: number | null | undefined;
|
286
|
+
maxTileCacheZoomLevels?: number | undefined;
|
287
|
+
transformRequest?: (import("maplibre-gl").RequestTransformFunction | null) | undefined;
|
288
|
+
transformCameraUpdate?: (import("maplibre-gl").CameraUpdateTransformFunction | null) | undefined;
|
267
289
|
locale?: any;
|
268
|
-
|
269
|
-
|
290
|
+
fadeDuration?: number | undefined;
|
291
|
+
crossSourceCollisions?: boolean | undefined;
|
292
|
+
collectResourceTiming?: boolean | undefined;
|
293
|
+
clickTolerance?: number | undefined;
|
294
|
+
localIdeographFontFamily?: string | false | undefined;
|
270
295
|
pitchWithRotate?: boolean | undefined;
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
initialViewState?:
|
279
|
-
bounds?: import("
|
296
|
+
rollEnabled?: boolean | undefined;
|
297
|
+
pixelRatio?: number | undefined;
|
298
|
+
validateStyle?: boolean | undefined;
|
299
|
+
maxCanvasSize?: [number, number] | undefined;
|
300
|
+
cancelPendingTileRequestsWhileZooming?: boolean | undefined;
|
301
|
+
centerClampedToGround?: boolean | undefined;
|
302
|
+
} & Partial<import("react-map-gl/maplibre").ViewState> & import("react-map-gl/maplibre").MapCallbacks & {
|
303
|
+
initialViewState?: Partial<import("react-map-gl/maplibre").ViewState> & {
|
304
|
+
bounds?: import("maplibre-gl").LngLatBoundsLike;
|
280
305
|
fitBoundsOptions?: {
|
281
|
-
offset?: import("
|
282
|
-
minZoom?: number
|
283
|
-
maxZoom?: number
|
284
|
-
padding?: number | import("
|
285
|
-
}
|
286
|
-
}
|
287
|
-
gl?: WebGLRenderingContext
|
288
|
-
viewState?:
|
306
|
+
offset?: import("maplibre-gl").PointLike;
|
307
|
+
minZoom?: number;
|
308
|
+
maxZoom?: number;
|
309
|
+
padding?: number | import("maplibre-gl").PaddingOptions;
|
310
|
+
};
|
311
|
+
};
|
312
|
+
gl?: WebGLRenderingContext;
|
313
|
+
viewState?: import("react-map-gl/maplibre").ViewState & {
|
289
314
|
width: number;
|
290
315
|
height: number;
|
291
|
-
}
|
292
|
-
mapStyle?: string | import("
|
293
|
-
styleDiffing?: boolean
|
294
|
-
|
295
|
-
light?: import("
|
296
|
-
terrain?: import("
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
316
|
+
};
|
317
|
+
mapStyle?: string | import("maplibre-gl").StyleSpecification | import("react-map-gl/maplibre").ImmutableLike<import("maplibre-gl").StyleSpecification>;
|
318
|
+
styleDiffing?: boolean;
|
319
|
+
projection?: import("maplibre-gl").ProjectionSpecification | "mercator" | "globe";
|
320
|
+
light?: import("maplibre-gl").LightSpecification;
|
321
|
+
terrain?: import("maplibre-gl").TerrainSpecification;
|
322
|
+
sky?: import("maplibre-gl").SkySpecification;
|
323
|
+
interactiveLayerIds?: string[];
|
324
|
+
cursor?: string;
|
325
|
+
} & import("@vis.gl/react-maplibre/dist/utils/set-globals").GlobalSettings & {
|
326
|
+
mapLib?: import("react-map-gl/maplibre").MapLib | Promise<import("react-map-gl/maplibre").MapLib>;
|
327
|
+
reuseMaps?: boolean;
|
328
|
+
id?: string;
|
329
|
+
style?: React.CSSProperties;
|
304
330
|
children?: any;
|
305
331
|
} & React.RefAttributes<import("react-map-gl/maplibre").MapRef> & {
|
306
|
-
tooltip?: boolean
|
332
|
+
tooltip?: boolean;
|
307
333
|
})[];
|
308
334
|
}, "ref"> & React.RefAttributes<unknown>>;
|
309
335
|
export {};
|
package/dist/index.d.ts
CHANGED