@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.
@@ -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
- zoom?: number | undefined;
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
- minPitch?: number | undefined;
21
- maxPitch?: number | undefined;
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
- renderWorldCopies?: boolean | undefined;
24
- scrollZoom?: boolean | undefined;
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
- 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;
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
- logoPosition?: import("maplibre-gl").ControlPosition | undefined;
47
- preserveDrawingBuffer?: boolean | undefined;
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
- 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;
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("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 & {
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
- }) | 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;
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 | undefined;
92
+ tooltip?: boolean;
85
93
  }, "tooltip"> & {
86
- tooltip?: ((hoverInfo: HoverInfo, map: MapInstance) => React.ReactNode) | undefined;
94
+ tooltip?: (hoverInfo: HoverInfo, map: MapInstance) => React.ReactNode;
87
95
  maps: ({
88
- zoom?: number | undefined;
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
- minPitch?: number | undefined;
95
- maxPitch?: number | undefined;
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
- renderWorldCopies?: boolean | undefined;
98
- scrollZoom?: boolean | undefined;
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
- 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;
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
- logoPosition?: import("maplibre-gl").ControlPosition | undefined;
121
- preserveDrawingBuffer?: boolean | undefined;
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
- 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;
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("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 & {
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
- }) | 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
+ };
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 | undefined;
172
+ tooltip?: boolean;
159
173
  })[];
160
174
  }, "ref"> & React.RefAttributes<unknown>>;
161
175
  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;
176
+ hash?: boolean | string | undefined;
167
177
  interactive?: boolean | undefined;
168
- minPitch?: number | undefined;
169
- maxPitch?: number | undefined;
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
- renderWorldCopies?: boolean | undefined;
172
- scrollZoom?: boolean | undefined;
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
- 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;
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
- logoPosition?: import("maplibre-gl").ControlPosition | undefined;
195
- preserveDrawingBuffer?: boolean | undefined;
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
- 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;
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("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 & {
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
- }) | 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;
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 | undefined;
252
+ tooltip?: boolean;
233
253
  }, "tooltip"> & {
234
- tooltip?: ((hoverInfo: HoverInfo, map: MapInstance) => React.ReactNode) | undefined;
254
+ tooltip?: (hoverInfo: HoverInfo, map: MapInstance) => React.ReactNode;
235
255
  maps: ({
236
- zoom?: number | undefined;
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
- minPitch?: number | undefined;
243
- maxPitch?: number | undefined;
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
- renderWorldCopies?: boolean | undefined;
246
- scrollZoom?: boolean | undefined;
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
- 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;
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
- logoPosition?: import("maplibre-gl").ControlPosition | undefined;
269
- preserveDrawingBuffer?: boolean | undefined;
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
- 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;
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("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 & {
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
- }) | 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;
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 | undefined;
332
+ tooltip?: boolean;
307
333
  })[];
308
334
  }, "ref"> & React.RefAttributes<unknown>>;
309
335
  export {};
package/dist/index.d.ts CHANGED
@@ -6,3 +6,4 @@ export * from './useHover';
6
6
  export * from './scales';
7
7
  export * from './util';
8
8
  export * from './types';
9
+ export * from './Controls';