@maplibre/maplibre-react-native 11.0.0-alpha.21 → 11.0.0-alpha.23
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/android/src/main/java/org/maplibre/reactnative/components/camera/CameraStop.kt +2 -3
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +53 -50
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewModule.kt +35 -26
- package/android/src/main/java/org/maplibre/reactnative/events/FeatureClickEvent.java +5 -8
- package/android/src/main/java/org/maplibre/reactnative/events/MapPressEvent.kt +6 -4
- package/android/src/main/java/org/maplibre/reactnative/utils/ConvertUtils.java +2 -2
- package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.kt +7 -9
- package/ios/components/camera/CameraStop.m +2 -2
- package/ios/components/camera/MLRNCameraComponentView.mm +7 -9
- package/ios/components/camera/MLRNCameraModule.mm +3 -3
- package/ios/components/map-view/MLRNMapTouchEvent.m +14 -8
- package/ios/components/map-view/MLRNMapView.m +16 -10
- package/ios/components/map-view/MLRNMapViewComponentView.mm +24 -30
- package/ios/components/map-view/MLRNMapViewManager.h +8 -8
- package/ios/components/map-view/MLRNMapViewManager.m +23 -34
- package/ios/components/map-view/MLRNMapViewModule.mm +40 -36
- package/lib/commonjs/components/camera/Camera.js +15 -15
- package/lib/commonjs/components/camera/Camera.js.map +1 -1
- package/lib/commonjs/components/camera/CameraNativeComponent.ts +1 -2
- package/lib/commonjs/components/camera/NativeCameraModule.js.map +1 -1
- package/lib/commonjs/components/map-view/MapView.js +8 -11
- package/lib/commonjs/components/map-view/MapView.js.map +1 -1
- package/lib/commonjs/components/map-view/MapViewNativeComponent.ts +7 -6
- package/lib/commonjs/components/map-view/NativeMapViewModule.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types/LngLat.js +2 -0
- package/lib/commonjs/types/{Bounds.js.map → LngLat.js.map} +1 -1
- package/lib/commonjs/types/LngLatBounds.js +2 -0
- package/lib/commonjs/types/LngLatBounds.js.map +1 -0
- package/lib/commonjs/types/PixelPoint.js +2 -0
- package/lib/commonjs/types/PixelPoint.js.map +1 -0
- package/lib/commonjs/types/PixelPointBounds.js +2 -0
- package/lib/commonjs/types/PixelPointBounds.js.map +1 -0
- package/lib/commonjs/types/PressEvent.js +4 -0
- package/lib/module/components/camera/Camera.js +15 -15
- package/lib/module/components/camera/Camera.js.map +1 -1
- package/lib/module/components/camera/CameraNativeComponent.ts +1 -2
- package/lib/module/components/camera/NativeCameraModule.js.map +1 -1
- package/lib/module/components/map-view/MapView.js +8 -11
- package/lib/module/components/map-view/MapView.js.map +1 -1
- package/lib/module/components/map-view/MapViewNativeComponent.ts +7 -6
- package/lib/module/components/map-view/NativeMapViewModule.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types/LngLat.js +2 -0
- package/lib/module/types/{Bounds.js.map → LngLat.js.map} +1 -1
- package/lib/module/types/LngLatBounds.js +2 -0
- package/lib/module/types/LngLatBounds.js.map +1 -0
- package/lib/module/types/PixelPoint.js +2 -0
- package/lib/module/types/PixelPoint.js.map +1 -0
- package/lib/module/types/PixelPointBounds.js +2 -0
- package/lib/module/types/PixelPointBounds.js.map +1 -0
- package/lib/module/types/PressEvent.js +2 -0
- package/lib/typescript/commonjs/src/components/camera/Camera.d.ts +15 -21
- package/lib/typescript/commonjs/src/components/camera/Camera.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts +1 -2
- package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts +1 -2
- package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/map-view/MapView.d.ts +66 -42
- package/lib/typescript/commonjs/src/components/map-view/MapView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/map-view/MapViewNativeComponent.d.ts +9 -6
- package/lib/typescript/commonjs/src/components/map-view/MapViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/map-view/NativeMapViewModule.d.ts +12 -26
- package/lib/typescript/commonjs/src/components/map-view/NativeMapViewModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +6 -3
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/LngLat.d.ts +5 -0
- package/lib/typescript/commonjs/src/types/LngLat.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/LngLatBounds.d.ts +12 -0
- package/lib/typescript/commonjs/src/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/PixelPoint.d.ts +5 -0
- package/lib/typescript/commonjs/src/types/PixelPoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/PixelPointBounds.d.ts +10 -0
- package/lib/typescript/commonjs/src/types/PixelPointBounds.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/PressEvent.d.ts +6 -6
- package/lib/typescript/commonjs/src/types/PressEvent.d.ts.map +1 -1
- package/lib/typescript/module/src/components/camera/Camera.d.ts +15 -21
- package/lib/typescript/module/src/components/camera/Camera.d.ts.map +1 -1
- package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts +1 -2
- package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts +1 -2
- package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts.map +1 -1
- package/lib/typescript/module/src/components/map-view/MapView.d.ts +66 -42
- package/lib/typescript/module/src/components/map-view/MapView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/map-view/MapViewNativeComponent.d.ts +9 -6
- package/lib/typescript/module/src/components/map-view/MapViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/components/map-view/NativeMapViewModule.d.ts +12 -26
- package/lib/typescript/module/src/components/map-view/NativeMapViewModule.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +6 -3
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/types/LngLat.d.ts +5 -0
- package/lib/typescript/module/src/types/LngLat.d.ts.map +1 -0
- package/lib/typescript/module/src/types/LngLatBounds.d.ts +12 -0
- package/lib/typescript/module/src/types/LngLatBounds.d.ts.map +1 -0
- package/lib/typescript/module/src/types/PixelPoint.d.ts +5 -0
- package/lib/typescript/module/src/types/PixelPoint.d.ts.map +1 -0
- package/lib/typescript/module/src/types/PixelPointBounds.d.ts +10 -0
- package/lib/typescript/module/src/types/PixelPointBounds.d.ts.map +1 -0
- package/lib/typescript/module/src/types/PressEvent.d.ts +6 -6
- package/lib/typescript/module/src/types/PressEvent.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/camera/Camera.tsx +24 -26
- package/src/components/camera/CameraNativeComponent.ts +1 -2
- package/src/components/camera/NativeCameraModule.ts +1 -2
- package/src/components/map-view/MapView.tsx +106 -62
- package/src/components/map-view/MapViewNativeComponent.ts +7 -6
- package/src/components/map-view/NativeMapViewModule.ts +23 -28
- package/src/index.ts +8 -4
- package/src/types/LngLat.ts +4 -0
- package/src/types/LngLatBounds.ts +11 -0
- package/src/types/PixelPoint.ts +4 -0
- package/src/types/PixelPointBounds.ts +9 -0
- package/src/types/PressEvent.ts +7 -8
- package/lib/commonjs/types/Bounds.js +0 -2
- package/lib/module/types/Bounds.js +0 -2
- package/lib/typescript/commonjs/src/types/Bounds.d.ts +0 -2
- package/lib/typescript/commonjs/src/types/Bounds.d.ts.map +0 -1
- package/lib/typescript/module/src/types/Bounds.d.ts +0 -2
- package/lib/typescript/module/src/types/Bounds.d.ts.map +0 -1
- package/src/types/Bounds.ts +0 -1
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import { type NativeSyntheticEvent, type ViewProps } from "react-native";
|
|
3
3
|
import { type BaseProps } from "../../types/BaseProps";
|
|
4
|
-
import type {
|
|
4
|
+
import type { LngLat } from "../../types/LngLat";
|
|
5
|
+
import type { LngLatBounds } from "../../types/LngLatBounds";
|
|
5
6
|
import { type FilterExpression, type LightLayerStyle } from "../../types/MapLibreRNStyles";
|
|
7
|
+
import type { PixelPoint } from "../../types/PixelPoint";
|
|
8
|
+
import type { PixelPointBounds } from "../../types/PixelPointBounds";
|
|
6
9
|
import type { PressEvent } from "../../types/PressEvent";
|
|
7
10
|
import type { ViewPadding } from "../../types/ViewPadding";
|
|
8
11
|
export type OrnamentViewPosition = {
|
|
@@ -19,19 +22,24 @@ export type OrnamentViewPosition = {
|
|
|
19
22
|
left: number;
|
|
20
23
|
};
|
|
21
24
|
export type ViewState = {
|
|
22
|
-
|
|
23
|
-
latitude: number;
|
|
25
|
+
center: LngLat;
|
|
24
26
|
zoom: number;
|
|
25
27
|
bearing: number;
|
|
26
28
|
pitch: number;
|
|
27
|
-
bounds:
|
|
29
|
+
bounds: LngLatBounds;
|
|
28
30
|
};
|
|
29
31
|
export type ViewStateChangeEvent = ViewState & {
|
|
30
32
|
animated: boolean;
|
|
31
33
|
userInteraction: boolean;
|
|
32
34
|
};
|
|
33
35
|
export type QueryRenderedFeaturesOptions = {
|
|
36
|
+
/**
|
|
37
|
+
* Filter expression to filter the queried features
|
|
38
|
+
*/
|
|
34
39
|
filter?: FilterExpression;
|
|
40
|
+
/**
|
|
41
|
+
* IDs of layers to query features from
|
|
42
|
+
*/
|
|
35
43
|
layers?: string[];
|
|
36
44
|
};
|
|
37
45
|
export interface MapViewRef {
|
|
@@ -43,7 +51,7 @@ export interface MapViewRef {
|
|
|
43
51
|
*
|
|
44
52
|
* @return Current center coordinates of the map
|
|
45
53
|
*/
|
|
46
|
-
getCenter(): Promise<
|
|
54
|
+
getCenter(): Promise<LngLat>;
|
|
47
55
|
/**
|
|
48
56
|
* Returns the current zoom level of the map
|
|
49
57
|
*
|
|
@@ -52,7 +60,7 @@ export interface MapViewRef {
|
|
|
52
60
|
*
|
|
53
61
|
* @return Current zoom level of the map
|
|
54
62
|
*/
|
|
55
|
-
getZoom(): Promise<
|
|
63
|
+
getZoom(): Promise<number>;
|
|
56
64
|
/**
|
|
57
65
|
* Returns the current bearing of the map
|
|
58
66
|
*
|
|
@@ -61,7 +69,7 @@ export interface MapViewRef {
|
|
|
61
69
|
*
|
|
62
70
|
* @return Current bearing of the map
|
|
63
71
|
*/
|
|
64
|
-
getBearing(): Promise<
|
|
72
|
+
getBearing(): Promise<number>;
|
|
65
73
|
/**
|
|
66
74
|
* Returns the current pitch of the map
|
|
67
75
|
*
|
|
@@ -70,7 +78,7 @@ export interface MapViewRef {
|
|
|
70
78
|
*
|
|
71
79
|
* @return Current pitch of the map
|
|
72
80
|
*/
|
|
73
|
-
getPitch(): Promise<
|
|
81
|
+
getPitch(): Promise<number>;
|
|
74
82
|
/**
|
|
75
83
|
* Returns the current bounds of the map
|
|
76
84
|
*
|
|
@@ -79,7 +87,7 @@ export interface MapViewRef {
|
|
|
79
87
|
*
|
|
80
88
|
* @return Current bounds of the map
|
|
81
89
|
*/
|
|
82
|
-
getBounds(): Promise<
|
|
90
|
+
getBounds(): Promise<LngLatBounds>;
|
|
83
91
|
/**
|
|
84
92
|
* Returns the current view state of the map
|
|
85
93
|
*
|
|
@@ -90,53 +98,69 @@ export interface MapViewRef {
|
|
|
90
98
|
*/
|
|
91
99
|
getViewState(): Promise<ViewState>;
|
|
92
100
|
/**
|
|
93
|
-
* Converts
|
|
101
|
+
* Converts geographic coordinates to pixel point of the view
|
|
94
102
|
*
|
|
95
103
|
* @example
|
|
96
104
|
* await mapViewRef.current?.getPointInView([-37.817070, 144.949901]);
|
|
97
105
|
*
|
|
98
|
-
* @param
|
|
106
|
+
* @param coordinates Geographic coordinate
|
|
99
107
|
* @return Pixel point
|
|
100
108
|
*/
|
|
101
|
-
project(
|
|
102
|
-
longitude: number;
|
|
103
|
-
latitude: number;
|
|
104
|
-
}): Promise<{
|
|
105
|
-
locationX: number;
|
|
106
|
-
locationY: number;
|
|
107
|
-
}>;
|
|
109
|
+
project(coordinates: LngLat): Promise<PixelPoint>;
|
|
108
110
|
/**
|
|
109
|
-
* Converts a pixel point of the view to
|
|
111
|
+
* Converts a pixel point of the view to geographic coordinates.
|
|
110
112
|
*
|
|
111
113
|
* @example
|
|
112
|
-
* await mapViewRef.current?.getCoordinateFromView([
|
|
114
|
+
* await mapViewRef.current?.getCoordinateFromView([280, 640]);
|
|
113
115
|
*
|
|
114
116
|
* @param point Pixel point
|
|
115
117
|
* @return Geographic coordinate
|
|
116
118
|
*/
|
|
117
|
-
unproject(point:
|
|
118
|
-
locationX: number;
|
|
119
|
-
locationY: number;
|
|
120
|
-
}): Promise<{
|
|
121
|
-
longitude: number;
|
|
122
|
-
latitude: number;
|
|
123
|
-
}>;
|
|
119
|
+
unproject(point: PixelPoint): Promise<LngLat>;
|
|
124
120
|
/**
|
|
125
|
-
*
|
|
121
|
+
* Query rendered features at a point
|
|
126
122
|
*
|
|
127
123
|
* @example
|
|
128
|
-
* await mapViewRef.current?.
|
|
124
|
+
* await mapViewRef.current?.queryRenderedFeatures(
|
|
125
|
+
* [240, 640],
|
|
126
|
+
* {
|
|
127
|
+
* filter: ["==", "type", "Point"],
|
|
128
|
+
* layers: ["restaurants", "shops"],
|
|
129
|
+
* },
|
|
130
|
+
* );
|
|
129
131
|
*
|
|
130
|
-
* @
|
|
131
|
-
* @param options.layers - A array of layer id's to filter the features by
|
|
132
|
-
* @return FeatureCollection containing queried features
|
|
132
|
+
* @return Queried features
|
|
133
133
|
*/
|
|
134
|
-
queryRenderedFeatures(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
queryRenderedFeatures(pixelPoint: PixelPoint, options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
|
|
135
|
+
/**
|
|
136
|
+
* Query rendered features within pixel bounds
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await mapViewRef.current?.queryRenderedFeatures(
|
|
140
|
+
* [100, 100, 400, 400],
|
|
141
|
+
* {
|
|
142
|
+
* filter: ["==", "type", "Point"],
|
|
143
|
+
* layers: ["restaurants", "shops"],
|
|
144
|
+
* },
|
|
145
|
+
* );
|
|
146
|
+
*
|
|
147
|
+
* @return Queried features
|
|
148
|
+
*/
|
|
149
|
+
queryRenderedFeatures(pixelPointBounds: PixelPointBounds, options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
|
|
150
|
+
/**
|
|
151
|
+
* Query rendered features within the current viewport
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* await mapViewRef.current?.queryRenderedFeatures(
|
|
155
|
+
* {
|
|
156
|
+
* filter: ["==", "type", "Point"],
|
|
157
|
+
* layers: ["restaurants", "shops"],
|
|
158
|
+
* },
|
|
159
|
+
* );
|
|
160
|
+
*
|
|
161
|
+
* @return Queried features
|
|
162
|
+
*/
|
|
163
|
+
queryRenderedFeatures(options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
|
|
140
164
|
/**
|
|
141
165
|
* Takes snapshot of map with current tiles and returns a URI to the image
|
|
142
166
|
* @param writeToDisk If true will create a temp file, otherwise it is in base64
|
|
@@ -155,12 +179,13 @@ export interface MapViewRef {
|
|
|
155
179
|
*/
|
|
156
180
|
setSourceVisibility(visible: boolean, source: string, sourceLayer?: string): Promise<void>;
|
|
157
181
|
/**
|
|
158
|
-
* Show the attribution
|
|
159
|
-
*
|
|
182
|
+
* Show the attribution dialog
|
|
183
|
+
*
|
|
184
|
+
* Can be used to implement a custom attribution button.
|
|
160
185
|
*/
|
|
161
186
|
showAttribution(): Promise<void>;
|
|
162
187
|
}
|
|
163
|
-
interface MapViewProps extends BaseProps {
|
|
188
|
+
export interface MapViewProps extends BaseProps {
|
|
164
189
|
children?: ReactNode;
|
|
165
190
|
/**
|
|
166
191
|
* Style for wrapping React Native View
|
|
@@ -329,5 +354,4 @@ interface MapViewProps extends BaseProps {
|
|
|
329
354
|
* MapLibre Native MapView
|
|
330
355
|
*/
|
|
331
356
|
export declare const MapView: import("react").NamedExoticComponent<MapViewProps & import("react").RefAttributes<MapViewRef>>;
|
|
332
|
-
export {};
|
|
333
357
|
//# sourceMappingURL=MapView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/map-view/MapView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AACf,OAAO,EAKL,KAAK,oBAAoB,EAIzB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAOtB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAkC3D,MAAM,MAAM,oBAAoB,GAC5B;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC7B;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAErC,MAAM,MAAM,SAAS,GAAG;IACtB,
|
|
1
|
+
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/map-view/MapView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EAMf,MAAM,OAAO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AAC;IAEtE;;OAEG;IACH,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAEtE;;OAEG;IACH,4BAA4B,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAE3E;;OAEG;IACH,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;CACvE;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,gGAoKnB,CAAC"}
|
|
@@ -14,14 +14,17 @@ type NativeOrnamentViewPosition = {
|
|
|
14
14
|
left?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
|
|
15
15
|
};
|
|
16
16
|
type NativePressEvent = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
lngLat: UnsafeMixed<[
|
|
18
|
+
longitude: CodegenTypes.Double,
|
|
19
|
+
latitude: CodegenTypes.Double
|
|
20
|
+
]>;
|
|
21
|
+
point: UnsafeMixed<[x: CodegenTypes.Double, y: CodegenTypes.Double]>;
|
|
21
22
|
};
|
|
22
23
|
type NativeViewStateEvent = {
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
center: UnsafeMixed<[
|
|
25
|
+
longitude: CodegenTypes.Double,
|
|
26
|
+
latitude: CodegenTypes.Double
|
|
27
|
+
]>;
|
|
25
28
|
zoom: CodegenTypes.Double;
|
|
26
29
|
bearing: CodegenTypes.Double;
|
|
27
30
|
pitch: CodegenTypes.Double;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/map-view/MapViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,KAAK,iBAAiB,GAAG;IACvB,GAAG,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACtD,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACzD,IAAI,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;CACxD,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,GAAG,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IACvD,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IACzD,MAAM,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1D,IAAI,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;CACzD,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,YAAY,CAAC,MAAM
|
|
1
|
+
{"version":3,"file":"MapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/map-view/MapViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK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EAAE,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAErE,uBAAuB,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;CACjE;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
|
|
@@ -1,41 +1,27 @@
|
|
|
1
1
|
import { type CodegenTypes, type TurboModule } from "react-native";
|
|
2
2
|
type NativeViewState = {
|
|
3
|
-
|
|
4
|
-
latitude: CodegenTypes.Double;
|
|
3
|
+
center: CodegenTypes.Double[];
|
|
5
4
|
zoom: CodegenTypes.Double;
|
|
6
5
|
bearing: CodegenTypes.Double;
|
|
7
6
|
pitch: CodegenTypes.Double;
|
|
8
7
|
bounds: CodegenTypes.Double[];
|
|
9
8
|
};
|
|
10
9
|
export interface Spec extends TurboModule {
|
|
11
|
-
getCenter: (reactTag: CodegenTypes.Int32) => Promise<
|
|
12
|
-
longitude: CodegenTypes.Double;
|
|
13
|
-
latitude: CodegenTypes.Double;
|
|
14
|
-
}>;
|
|
10
|
+
getCenter: (reactTag: CodegenTypes.Int32) => Promise<[longitude: CodegenTypes.Double, latitude: CodegenTypes.Double]>;
|
|
15
11
|
getZoom: (reactTag: CodegenTypes.Int32) => Promise<CodegenTypes.Double>;
|
|
16
12
|
getBearing: (reactTag: CodegenTypes.Int32) => Promise<CodegenTypes.Double>;
|
|
17
13
|
getPitch: (reactTag: CodegenTypes.Int32) => Promise<CodegenTypes.Double>;
|
|
18
|
-
getBounds: (reactTag: CodegenTypes.Int32) => Promise<
|
|
14
|
+
getBounds: (reactTag: CodegenTypes.Int32) => Promise<[
|
|
15
|
+
west: CodegenTypes.Double,
|
|
16
|
+
south: CodegenTypes.Double,
|
|
17
|
+
east: CodegenTypes.Double,
|
|
18
|
+
north: CodegenTypes.Double
|
|
19
|
+
]>;
|
|
19
20
|
getViewState: (reactTag: CodegenTypes.Int32) => Promise<NativeViewState>;
|
|
20
|
-
project: (reactTag: CodegenTypes.Int32,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
locationX: CodegenTypes.Double;
|
|
25
|
-
locationY: CodegenTypes.Double;
|
|
26
|
-
}>;
|
|
27
|
-
unproject: (reactTag: CodegenTypes.Int32, point: {
|
|
28
|
-
locationX: CodegenTypes.Double;
|
|
29
|
-
locationY: CodegenTypes.Double;
|
|
30
|
-
}) => Promise<{
|
|
31
|
-
longitude: CodegenTypes.Double;
|
|
32
|
-
latitude: CodegenTypes.Double;
|
|
33
|
-
}>;
|
|
34
|
-
queryRenderedFeaturesWithCoordinate: (reactTag: CodegenTypes.Int32, coordinate: {
|
|
35
|
-
longitude: CodegenTypes.Double;
|
|
36
|
-
latitude: CodegenTypes.Double;
|
|
37
|
-
}, layers: string[], filter: string[]) => Promise<object>;
|
|
38
|
-
queryRenderedFeaturesWithBounds: (reactTag: CodegenTypes.Int32, bounds: CodegenTypes.Double[], layers: string[], filter: string[]) => Promise<object>;
|
|
21
|
+
project: (reactTag: CodegenTypes.Int32, lngLat: CodegenTypes.Double[]) => Promise<[x: CodegenTypes.Double, y: CodegenTypes.Double]>;
|
|
22
|
+
unproject: (reactTag: CodegenTypes.Int32, pixelPoint: CodegenTypes.Double[]) => Promise<[longitude: CodegenTypes.Double, latitude: CodegenTypes.Double]>;
|
|
23
|
+
queryRenderedFeaturesWithPoint: (reactTag: CodegenTypes.Int32, pixelPoint: CodegenTypes.Double[], layers: string[], filter: string[]) => Promise<GeoJSON.Feature[]>;
|
|
24
|
+
queryRenderedFeaturesWithBounds: (reactTag: CodegenTypes.Int32, pixelPointBounds: CodegenTypes.Double[][] | null, layers: string[], filter: string[]) => Promise<GeoJSON.Feature[]>;
|
|
39
25
|
setSourceVisibility: (reactTag: CodegenTypes.Int32, visible: boolean, sourceId: string, sourceLayerId: string | null) => Promise<void>;
|
|
40
26
|
takeSnap: (reactTag: CodegenTypes.Int32, writeToDisk: boolean) => Promise<string>;
|
|
41
27
|
showAttribution: (reactTag: CodegenTypes.Int32) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeMapViewModule.d.ts","sourceRoot":"","sources":["../../../../../../src/components/map-view/NativeMapViewModule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,WAAW,EAEjB,MAAM,cAAc,CAAC;AAEtB,KAAK,eAAe,GAAG;IACrB,
|
|
1
|
+
{"version":3,"file":"NativeMapViewModule.d.ts","sourceRoot":"","sources":["../../../../../../src/components/map-view/NativeMapViewModule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,WAAW,EAEjB,MAAM,cAAc,CAAC;AAEtB,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC;IAC9B,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC;IAC1B,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC;IAC7B,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC;IAC3B,MAAM,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,SAAS,EAAE,CACT,QAAQ,EAAE,YAAY,CAAC,KAAK,KACzB,OAAO,CAAC,CAAC,SAAS,EAAE,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAE9E,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,KAAK,KAAK,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAExE,UAAU,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,KAAK,KAAK,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAE3E,QAAQ,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,KAAK,KAAK,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAEzE,SAAS,EAAE,CACT,QAAQ,E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AAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,GAAG,IAAI,KACzB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB,QAAQ,EAAE,CACR,QAAQ,EAAE,YAAY,CAAC,KAAK,EAC5B,WAAW,EAAE,OAAO,KACjB,OAAO,CAAC,MAAM,CAAC,CAAC;IAErB,eAAe,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE;;AAED,wBAA2E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./MLRNModule";
|
|
2
|
-
export { type CameraOptions, type CameraEasing, type CameraAnimationOptions, type CameraCenterOptions, type CameraBoundsOptions, type CameraCenterStop, type CameraBoundsStop, type CameraStop, type InitialViewState, type
|
|
3
|
-
export { MapView, type MapViewRef, type ViewState, type ViewStateChangeEvent, } from "./components/map-view/MapView";
|
|
2
|
+
export { Camera, type CameraProps, type CameraRef, type CameraOptions, type CameraEasing, type CameraAnimationOptions, type CameraCenterOptions, type CameraBoundsOptions, type CameraCenterStop, type CameraBoundsStop, type CameraStop, type InitialViewState, type TrackUserLocation, type TrackUserLocationChangeEvent, } from "./components/camera/Camera";
|
|
3
|
+
export { MapView, type MapViewProps, type MapViewRef, type ViewState, type ViewStateChangeEvent, } from "./components/map-view/MapView";
|
|
4
4
|
export { PointAnnotation } from "./components/annotations/PointAnnotation";
|
|
5
5
|
export type { PointAnnotationRef } from "./components/annotations/PointAnnotation";
|
|
6
6
|
export { Annotation } from "./components/annotations/Annotation";
|
|
@@ -31,8 +31,11 @@ export { OfflinePack } from "./modules/offline/OfflinePack";
|
|
|
31
31
|
export { OfflineCreatePackOptions } from "./modules/offline/OfflineCreatePackOptions";
|
|
32
32
|
export { SnapshotManager } from "./modules/snapshot/SnapshotManager";
|
|
33
33
|
export type { SnapshotInputOptions } from "./modules/snapshot/SnapshotOptions";
|
|
34
|
-
export type {
|
|
34
|
+
export type { LngLat } from "./types/LngLat";
|
|
35
|
+
export type { LngLatBounds } from "./types/LngLatBounds";
|
|
35
36
|
export type { FillLayerStyle, LineLayerStyle, SymbolLayerStyle, CircleLayerStyle, HeatmapLayerStyle, FillExtrusionLayerStyle, RasterLayerStyle, HillshadeLayerStyle, BackgroundLayerStyle, LightLayerStyle, Expression, } from "./types/MapLibreRNStyles";
|
|
37
|
+
export type { PixelPoint } from "./types/PixelPoint";
|
|
38
|
+
export type { PixelPointBounds } from "./types/PixelPointBounds";
|
|
36
39
|
export type { PressEvent, PressEventWithFeatures } from "./types/PressEvent";
|
|
37
40
|
export type { ViewPadding } from "./types/ViewPadding";
|
|
38
41
|
export { Animated } from "./utils/animated/Animated";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,4BAA4B,GAClC,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAA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AAM,MAAM,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents bounds in geographic coordinates
|
|
3
|
+
*
|
|
4
|
+
* Uses order of south-west and north-east corners in flat style per GeoJSON RFC.
|
|
5
|
+
*/
|
|
6
|
+
export type LngLatBounds = [
|
|
7
|
+
west: number,
|
|
8
|
+
south: number,
|
|
9
|
+
east: number,
|
|
10
|
+
north: number
|
|
11
|
+
];
|
|
12
|
+
//# sourceMappingURL=LngLatBounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LngLatBounds.d.ts","sourceRoot":"","sources":["../../../../../src/types/LngLatBounds.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,MAAM;CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PixelPoint.d.ts","sourceRoot":"","sources":["../../../../../src/types/PixelPoint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bounds in pixel coordinates
|
|
3
|
+
*
|
|
4
|
+
* Uses common order of top-left and bottom-right corners.
|
|
5
|
+
*/
|
|
6
|
+
export type PixelPointBounds = [
|
|
7
|
+
topLeft: [left: number, top: number],
|
|
8
|
+
bottomRight: [right: number, bottom: number]
|
|
9
|
+
];
|
|
10
|
+
//# sourceMappingURL=PixelPointBounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PixelPointBounds.d.ts","sourceRoot":"","sources":["../../../../../src/types/PixelPointBounds.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC;IACpC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;CAC7C,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import type { LngLat } from "./LngLat";
|
|
2
|
+
import type { PixelPoint } from "./PixelPoint";
|
|
1
3
|
export interface PressEvent {
|
|
2
|
-
longitude: number;
|
|
3
|
-
latitude: number;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Geographic coordinates of the touch event
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
lngLat: LngLat;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Pixel point of the touch event within the elements' viewport
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
point: PixelPoint;
|
|
12
12
|
}
|
|
13
13
|
export interface PressEventWithFeatures extends PressEvent {
|
|
14
14
|
features: GeoJSON.Feature[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PressEvent.d.ts","sourceRoot":"","sources":["../../../../../src/types/PressEvent.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"PressEvent.d.ts","sourceRoot":"","sources":["../../../../../src/types/PressEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACxD,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;CAC7B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type NativeSyntheticEvent } from "react-native";
|
|
2
2
|
import { type BaseProps } from "../../types/BaseProps";
|
|
3
|
-
import type {
|
|
3
|
+
import type { LngLatBounds } from "../../types/LngLatBounds";
|
|
4
4
|
import type { ViewPadding } from "../../types/ViewPadding";
|
|
5
5
|
export interface CameraOptions {
|
|
6
6
|
/**
|
|
@@ -32,30 +32,30 @@ export interface CameraAnimationOptions {
|
|
|
32
32
|
easing?: CameraEasing;
|
|
33
33
|
}
|
|
34
34
|
export interface CameraCenterOptions {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Geographic center coordinates of the map
|
|
37
|
+
*/
|
|
38
|
+
center: [longitude: number, latitude: number];
|
|
37
39
|
}
|
|
38
40
|
export interface CameraBoundsOptions {
|
|
39
41
|
/**
|
|
40
42
|
* The corners of a box around which the map should bound.
|
|
41
43
|
*/
|
|
42
|
-
bounds:
|
|
44
|
+
bounds: LngLatBounds;
|
|
43
45
|
}
|
|
44
46
|
export type CameraCenterStop = CameraOptions & CameraAnimationOptions & CameraCenterOptions;
|
|
45
47
|
export type CameraBoundsStop = CameraOptions & CameraAnimationOptions & CameraBoundsOptions;
|
|
46
48
|
export type CameraStop = (CameraOptions & CameraAnimationOptions & {
|
|
47
|
-
|
|
48
|
-
latitude?: never;
|
|
49
|
+
center?: never;
|
|
49
50
|
bounds?: never;
|
|
50
51
|
}) | CameraCenterStop | CameraBoundsStop;
|
|
51
52
|
export type InitialViewState = (CameraOptions & {
|
|
52
|
-
|
|
53
|
-
latitude?: never;
|
|
53
|
+
center?: never;
|
|
54
54
|
bounds?: never;
|
|
55
55
|
}) | (CameraOptions & CameraCenterOptions) | (CameraOptions & CameraBoundsOptions);
|
|
56
56
|
export interface CameraRef {
|
|
57
57
|
/**
|
|
58
|
-
* Map camera will move to new
|
|
58
|
+
* Map camera will move to new coordinates at the same zoom level
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* cameraRef.current?.easeTo([lng, lat], 200) // eases camera to new location based on duration
|
|
@@ -64,11 +64,9 @@ export interface CameraRef {
|
|
|
64
64
|
* @param options.center Coordinates that map camera will move too
|
|
65
65
|
* @param options.duration Duration of camera animation
|
|
66
66
|
*/
|
|
67
|
-
jumpTo(options:
|
|
68
|
-
center: CameraCenterOptions;
|
|
69
|
-
} & CameraOptions): void;
|
|
67
|
+
jumpTo(options: CameraCenterOptions & CameraOptions): void;
|
|
70
68
|
/**
|
|
71
|
-
* Map camera will move to new
|
|
69
|
+
* Map camera will move to new coordinates at the same zoom level
|
|
72
70
|
*
|
|
73
71
|
* @example
|
|
74
72
|
* cameraRef.current?.easeTo([lng, lat], 200) // eases camera to new location based on duration
|
|
@@ -77,9 +75,7 @@ export interface CameraRef {
|
|
|
77
75
|
* @param options.center Coordinates that map camera will move too
|
|
78
76
|
* @param options.duration Duration of camera animation
|
|
79
77
|
*/
|
|
80
|
-
easeTo(options:
|
|
81
|
-
center: CameraCenterOptions;
|
|
82
|
-
} & CameraOptions & CameraAnimationOptions): void;
|
|
78
|
+
easeTo(options: CameraCenterOptions & CameraOptions & CameraAnimationOptions): void;
|
|
83
79
|
/**
|
|
84
80
|
* Map camera will fly to new coordinate
|
|
85
81
|
*
|
|
@@ -90,9 +86,7 @@ export interface CameraRef {
|
|
|
90
86
|
* @param options.center Coordinates that map camera will jump to
|
|
91
87
|
* @param options.duration Duration of camera animation
|
|
92
88
|
*/
|
|
93
|
-
flyTo(options:
|
|
94
|
-
center: CameraCenterOptions;
|
|
95
|
-
} & CameraOptions & CameraAnimationOptions): void;
|
|
89
|
+
flyTo(options: CameraCenterOptions & CameraOptions & CameraAnimationOptions): void;
|
|
96
90
|
/**
|
|
97
91
|
* Map camera transitions to fit provided bounds
|
|
98
92
|
*
|
|
@@ -105,7 +99,7 @@ export interface CameraRef {
|
|
|
105
99
|
* @param options.padding Padding for the bounds
|
|
106
100
|
* @param options.duration Duration of camera animation
|
|
107
101
|
*/
|
|
108
|
-
fitBounds(bounds:
|
|
102
|
+
fitBounds(bounds: LngLatBounds, options?: CameraOptions & CameraAnimationOptions): void;
|
|
109
103
|
/**
|
|
110
104
|
* Map camera will zoom to specified level
|
|
111
105
|
*
|
|
@@ -159,7 +153,7 @@ export type CameraProps = BaseProps & Partial<CameraStop> & {
|
|
|
159
153
|
/**
|
|
160
154
|
* Restrict map panning so that the center is within these bounds
|
|
161
155
|
*/
|
|
162
|
-
maxBounds?:
|
|
156
|
+
maxBounds?: LngLatBounds;
|
|
163
157
|
/**
|
|
164
158
|
* The mode used to track the user location on the map:
|
|
165
159
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Camera.d.ts","sourceRoot":"","sources":["../../../../../../src/components/camera/Camera.tsx"],"names":[],"mappings":"AAQA,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Camera.d.ts","sourceRoot":"","sources":["../../../../../../src/components/camera/Camera.tsx"],"names":[],"mappings":"AAQA,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED,MAAM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sBAAsB,GACpE,IAAI,CAAC;IAER;;;;;;;;;;;OAWG;IACH,SAAS,CACP,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa,GAAG,sBAAsB,GAC/C,IAAI,CAAC;IAER;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,sBAAsB,GAAG,IAAI,CAAC;IAE7E;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEjE,MAAM,MAAM,4BAA4B,GAAG;IACzC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,SAAS,GACjC,OAAO,CAAC,UAAU,CAAC,GAAG;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB;;;;;;;;;OASG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC;;OAEG;IACH,yBAAyB,CAAC,EAAE,CAC1B,KAAK,EAAE,oBAAoB,CAAC,4BAA4B,CAAC,KACtD,IAAI,CAAC;CACX,CAAC;AAEJ,eAAO,MAAM,MAAM,8FAoElB,CAAC"}
|
|
@@ -7,8 +7,7 @@ type NativeViewPadding = {
|
|
|
7
7
|
left?: CodegenTypes.WithDefault<CodegenTypes.Int32, 0>;
|
|
8
8
|
};
|
|
9
9
|
type NativeViewState = {
|
|
10
|
-
|
|
11
|
-
latitude?: CodegenTypes.WithDefault<CodegenTypes.Double, -360>;
|
|
10
|
+
center?: CodegenTypes.Double[];
|
|
12
11
|
bounds?: CodegenTypes.Double[];
|
|
13
12
|
padding?: NativeViewPadding;
|
|
14
13
|
zoom?: CodegenTypes.WithDefault<CodegenTypes.Double, -1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CameraNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/camera/CameraNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAGnE,KAAK,iBAAiB,GAAG;IACvB,GAAG,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACtD,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACzD,IAAI,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;CACxD,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,
|
|
1
|
+
{"version":3,"file":"CameraNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/camera/CameraNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAGnE,KAAK,iBAAiB,GAAG;IACvB,GAAG,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACtD,KAAK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GAAG,IAAI,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB,gBAAgB,CAAC,EAAE,eAAe,CAAC;IAEnC,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5D,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5D,SAAS,CAAC,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC;IAElC,iBAAiB,CAAC,EAAE,YAAY,CAAC,WAAW,CAC1C,2BAA2B,EAC3B,MAAM,CACP,CAAC;IAEF,yBAAyB,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,4BAA4B,CAAC,CAAC;CAC3F;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
|
|
@@ -6,8 +6,7 @@ type NativeViewPadding = {
|
|
|
6
6
|
left?: CodegenTypes.WithDefault<CodegenTypes.Int32, 0>;
|
|
7
7
|
};
|
|
8
8
|
type NativeViewState = {
|
|
9
|
-
|
|
10
|
-
latitude?: CodegenTypes.WithDefault<CodegenTypes.Double, -360>;
|
|
9
|
+
center?: CodegenTypes.Double[];
|
|
11
10
|
bounds?: CodegenTypes.Double[];
|
|
12
11
|
padding?: NativeViewPadding;
|
|
13
12
|
zoom?: CodegenTypes.WithDefault<CodegenTypes.Double, -1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeCameraModule.d.ts","sourceRoot":"","sources":["../../../../../../src/components/camera/NativeCameraModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,cAAc,CAAC;AAGtB,KAAK,iBAAiB,GAAG;IACvB,GAAG,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,Y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