@maplibre/maplibre-react-native 11.0.0-beta.25 → 11.0.0-beta.27
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/mapview/MLRNAndroidTextureMapViewManager.kt +2 -0
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.kt +5 -1
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewModule.kt +0 -5
- package/ios/modules/offline/MLRNOfflineModule.h +1 -2
- package/ios/modules/offline/MLRNOfflineModule.mm +9 -9
- package/lib/commonjs/components/annotations/callout/Callout.js +2 -1
- package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -1
- package/lib/commonjs/components/annotations/marker/Marker.js +4 -2
- package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +6 -5
- package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
- package/lib/commonjs/components/camera/Camera.js.map +1 -1
- package/lib/commonjs/components/images/Images.js +2 -2
- package/lib/commonjs/components/layer/Layer.js +0 -1
- package/lib/commonjs/components/layer/Layer.js.map +1 -1
- package/lib/commonjs/components/map/Map.js.map +1 -1
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +2 -2
- package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
- package/lib/commonjs/components/sources/image-source/ImageSource.js +3 -2
- package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -1
- package/lib/commonjs/components/sources/raster-source/RasterSource.js +4 -3
- package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -1
- package/lib/commonjs/components/sources/vector-source/VectorSource.js +4 -2
- package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -1
- package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -1
- package/lib/commonjs/components/user-location/UserLocation.js.map +1 -1
- package/lib/commonjs/modules/log/LogManager.js +5 -4
- package/lib/commonjs/modules/log/LogManager.js.map +1 -1
- package/lib/commonjs/modules/network/NetworkManager.js +7 -7
- package/lib/commonjs/modules/network/NetworkManager.js.map +1 -1
- package/lib/commonjs/modules/offline/OfflineManager.js +63 -47
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -1
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js +50 -45
- package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -1
- package/lib/commonjs/plugin/ios.js +9 -8
- package/lib/commonjs/plugin/ios.js.map +1 -1
- package/lib/commonjs/types/Anchor.js +5 -6
- package/lib/commonjs/types/Anchor.js.map +1 -1
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +6 -6
- package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +2 -1
- package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
- package/lib/commonjs/utils/convertStyleSpec.js +4 -4
- package/lib/module/components/annotations/callout/Callout.js +2 -1
- package/lib/module/components/annotations/callout/Callout.js.map +1 -1
- package/lib/module/components/annotations/marker/Marker.js +4 -2
- package/lib/module/components/annotations/marker/Marker.js.map +1 -1
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +6 -5
- package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
- package/lib/module/components/camera/Camera.js.map +1 -1
- package/lib/module/components/images/Images.js +2 -2
- package/lib/module/components/layer/Layer.js +0 -1
- package/lib/module/components/layer/Layer.js.map +1 -1
- package/lib/module/components/map/Map.js.map +1 -1
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js +2 -2
- package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
- package/lib/module/components/sources/image-source/ImageSource.js +3 -2
- package/lib/module/components/sources/image-source/ImageSource.js.map +1 -1
- package/lib/module/components/sources/raster-source/RasterSource.js +4 -3
- package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -1
- package/lib/module/components/sources/vector-source/VectorSource.js +4 -2
- package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -1
- package/lib/module/components/user-location/NativeUserLocation.js.map +1 -1
- package/lib/module/components/user-location/UserLocation.js.map +1 -1
- package/lib/module/modules/log/LogManager.js +5 -4
- package/lib/module/modules/log/LogManager.js.map +1 -1
- package/lib/module/modules/network/NetworkManager.js +7 -7
- package/lib/module/modules/network/NetworkManager.js.map +1 -1
- package/lib/module/modules/offline/OfflineManager.js +63 -47
- package/lib/module/modules/offline/OfflineManager.js.map +1 -1
- package/lib/module/modules/transform-request/TransformRequestManager.js +50 -45
- package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -1
- package/lib/module/plugin/ios.js +9 -8
- package/lib/module/plugin/ios.js.map +1 -1
- package/lib/module/types/Anchor.js +5 -6
- package/lib/module/types/Anchor.js.map +1 -1
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +6 -6
- package/lib/module/utils/animated/AnimatedGeoJSON.js +2 -1
- package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -1
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
- package/lib/module/utils/convertStyleSpec.js +4 -4
- package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts +3 -2
- package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts +15 -14
- package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts +26 -24
- package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/camera/Camera.d.ts +10 -24
- package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/images/Images.d.ts +12 -12
- package/lib/typescript/commonjs/components/layer/Layer.d.ts +0 -1
- package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/map/Map.d.ts +54 -51
- package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts +40 -41
- package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts +5 -3
- package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts +20 -15
- package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +23 -20
- package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts +9 -6
- package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts +4 -2
- package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts +2 -2
- package/lib/typescript/commonjs/modules/log/LogManager.d.ts +5 -4
- package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +7 -7
- package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts +63 -47
- package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts +2 -2
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +56 -49
- package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts +10 -15
- package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/plugin/ios.d.ts +2 -2
- package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/Anchor.d.ts +5 -6
- package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/LngLatBounds.d.ts +2 -1
- package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts +243 -93
- package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/sources/PressableSourceProps.d.ts +1 -2
- package/lib/typescript/commonjs/types/sources/PressableSourceProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts +6 -6
- package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts +2 -1
- package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
- package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts +4 -4
- package/lib/typescript/module/components/annotations/callout/Callout.d.ts +3 -2
- package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -1
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts +15 -14
- package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -1
- package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts +26 -24
- package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -1
- package/lib/typescript/module/components/camera/Camera.d.ts +10 -24
- package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -1
- package/lib/typescript/module/components/images/Images.d.ts +12 -12
- package/lib/typescript/module/components/layer/Layer.d.ts +0 -1
- package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -1
- package/lib/typescript/module/components/map/Map.d.ts +54 -51
- package/lib/typescript/module/components/map/Map.d.ts.map +1 -1
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts +40 -41
- package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -1
- package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts +5 -3
- package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -1
- package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts +20 -15
- package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -1
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +23 -20
- package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -1
- package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts +9 -6
- package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/module/components/user-location/UserLocation.d.ts +4 -2
- package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -1
- package/lib/typescript/module/hooks/useCurrentPosition.d.ts +2 -2
- package/lib/typescript/module/modules/log/LogManager.d.ts +5 -4
- package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -1
- package/lib/typescript/module/modules/network/NetworkManager.d.ts +7 -7
- package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -1
- package/lib/typescript/module/modules/offline/OfflineManager.d.ts +63 -47
- package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -1
- package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts +2 -2
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +56 -49
- package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -1
- package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts +10 -15
- package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts.map +1 -1
- package/lib/typescript/module/plugin/ios.d.ts +2 -2
- package/lib/typescript/module/plugin/ios.d.ts.map +1 -1
- package/lib/typescript/module/types/Anchor.d.ts +5 -6
- package/lib/typescript/module/types/Anchor.d.ts.map +1 -1
- package/lib/typescript/module/types/LngLatBounds.d.ts +2 -1
- package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -1
- package/lib/typescript/module/types/MapLibreRNStyles.d.ts +243 -93
- package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -1
- package/lib/typescript/module/types/sources/PressableSourceProps.d.ts +1 -2
- package/lib/typescript/module/types/sources/PressableSourceProps.d.ts.map +1 -1
- package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts +6 -6
- package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts +2 -1
- package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -1
- package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
- package/lib/typescript/module/utils/convertStyleSpec.d.ts +4 -4
- package/package.json +1 -2
- package/src/components/annotations/callout/Callout.tsx +3 -2
- package/src/components/annotations/marker/Marker.tsx +15 -14
- package/src/components/annotations/view-annotation/ViewAnnotation.tsx +26 -24
- package/src/components/camera/Camera.tsx +10 -24
- package/src/components/images/Images.tsx +12 -12
- package/src/components/layer/Layer.tsx +0 -1
- package/src/components/map/Map.tsx +54 -51
- package/src/components/sources/geojson-source/GeoJSONSource.tsx +40 -41
- package/src/components/sources/image-source/ImageSource.tsx +5 -3
- package/src/components/sources/raster-source/RasterSource.tsx +20 -15
- package/src/components/sources/vector-source/VectorSource.tsx +23 -20
- package/src/components/user-location/NativeUserLocation.tsx +9 -6
- package/src/components/user-location/UserLocation.tsx +4 -2
- package/src/hooks/useCurrentPosition.ts +2 -2
- package/src/modules/log/LogManager.ts +5 -4
- package/src/modules/network/NetworkManager.ts +7 -7
- package/src/modules/offline/OfflineManager.ts +63 -47
- package/src/modules/static-map/StaticMapManager.ts +2 -2
- package/src/modules/transform-request/TransformRequestManager.ts +56 -49
- package/src/plugin/MapLibrePluginProps.ts +10 -15
- package/src/plugin/ios.ts +9 -8
- package/src/types/Anchor.ts +5 -6
- package/src/types/LngLatBounds.ts +2 -1
- package/src/types/MapLibreRNStyles.ts +243 -93
- package/src/types/sources/PressableSourceProps.ts +1 -2
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +2 -2
- package/src/utils/animated/AnimatedCoordinatesArray.ts +6 -6
- package/src/utils/animated/AnimatedGeoJSON.ts +2 -1
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +6 -6
- package/src/utils/convertStyleSpec.ts +4 -4
|
@@ -46,80 +46,82 @@ export interface MapRef {
|
|
|
46
46
|
/**
|
|
47
47
|
* Returns the current center coordinates of the map
|
|
48
48
|
*
|
|
49
|
+
* @returns Current center coordinates of the map
|
|
50
|
+
*
|
|
49
51
|
* @example
|
|
50
52
|
* await mapRef.current?.getCenter();
|
|
51
|
-
*
|
|
52
|
-
* @return Current center coordinates of the map
|
|
53
53
|
*/
|
|
54
54
|
getCenter(): Promise<LngLat>;
|
|
55
55
|
/**
|
|
56
56
|
* Returns the current zoom level of the map
|
|
57
57
|
*
|
|
58
|
+
* @returns Current zoom level of the map
|
|
59
|
+
*
|
|
58
60
|
* @example
|
|
59
61
|
* await mapRef.current?.getZoom();
|
|
60
|
-
*
|
|
61
|
-
* @return Current zoom level of the map
|
|
62
62
|
*/
|
|
63
63
|
getZoom(): Promise<number>;
|
|
64
64
|
/**
|
|
65
65
|
* Returns the current bearing of the map
|
|
66
66
|
*
|
|
67
|
+
* @returns Current bearing of the map
|
|
68
|
+
*
|
|
67
69
|
* @example
|
|
68
70
|
* await mapRef.current?.getBearing();
|
|
69
|
-
*
|
|
70
|
-
* @return Current bearing of the map
|
|
71
71
|
*/
|
|
72
72
|
getBearing(): Promise<number>;
|
|
73
73
|
/**
|
|
74
74
|
* Returns the current pitch of the map
|
|
75
75
|
*
|
|
76
|
+
* @returns Current pitch of the map
|
|
77
|
+
*
|
|
76
78
|
* @example
|
|
77
79
|
* await mapRef.current?.getPitch();
|
|
78
|
-
*
|
|
79
|
-
* @return Current pitch of the map
|
|
80
80
|
*/
|
|
81
81
|
getPitch(): Promise<number>;
|
|
82
82
|
/**
|
|
83
83
|
* Returns the current bounds of the map
|
|
84
84
|
*
|
|
85
|
+
* @returns Current bounds of the map
|
|
86
|
+
*
|
|
85
87
|
* @example
|
|
86
88
|
* await mapRef.current?.getBounds();
|
|
87
|
-
*
|
|
88
|
-
* @return Current bounds of the map
|
|
89
89
|
*/
|
|
90
90
|
getBounds(): Promise<LngLatBounds>;
|
|
91
91
|
/**
|
|
92
92
|
* Returns the current view state of the map
|
|
93
93
|
*
|
|
94
|
+
* @returns Current view state of the map
|
|
95
|
+
*
|
|
94
96
|
* @example
|
|
95
97
|
* await mapRef.current?.getViewState();
|
|
96
|
-
*
|
|
97
|
-
* @return Current view state of the map
|
|
98
98
|
*/
|
|
99
99
|
getViewState(): Promise<ViewState>;
|
|
100
100
|
/**
|
|
101
101
|
* Converts geographic coordinates to pixel point of the view
|
|
102
102
|
*
|
|
103
|
+
* @param lngLat - Geographic coordinate
|
|
104
|
+
* @returns Pixel point
|
|
105
|
+
*
|
|
103
106
|
* @example
|
|
104
107
|
* await mapRef.current?.project([13.04214014753952, 47.80554907882145]);
|
|
105
|
-
*
|
|
106
|
-
* @param lngLat Geographic coordinate
|
|
107
|
-
* @return Pixel point
|
|
108
108
|
*/
|
|
109
109
|
project(lngLat: LngLat): Promise<PixelPoint>;
|
|
110
110
|
/**
|
|
111
111
|
* Converts a pixel point of the view to geographic coordinates.
|
|
112
112
|
*
|
|
113
|
+
* @param point - Pixel point
|
|
114
|
+
* @returns Geographic coordinate
|
|
115
|
+
*
|
|
113
116
|
* @example
|
|
114
117
|
* await mapRef.current?.unproject([280, 640]);
|
|
115
|
-
*
|
|
116
|
-
* @param point Pixel point
|
|
117
|
-
* @return Geographic coordinate
|
|
118
118
|
*/
|
|
119
119
|
unproject(point: PixelPoint): Promise<LngLat>;
|
|
120
120
|
/**
|
|
121
121
|
* Query rendered features at a point
|
|
122
122
|
*
|
|
123
|
+
* @returns Queried features
|
|
124
|
+
*
|
|
123
125
|
* @example
|
|
124
126
|
* await mapRef.current?.queryRenderedFeatures(
|
|
125
127
|
* [240, 640],
|
|
@@ -128,13 +130,13 @@ export interface MapRef {
|
|
|
128
130
|
* layers: ["restaurants", "shops"],
|
|
129
131
|
* },
|
|
130
132
|
* );
|
|
131
|
-
*
|
|
132
|
-
* @return Queried features
|
|
133
133
|
*/
|
|
134
134
|
queryRenderedFeatures(pixelPoint: PixelPoint, options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
|
|
135
135
|
/**
|
|
136
136
|
* Query rendered features within pixel bounds
|
|
137
137
|
*
|
|
138
|
+
* @returns Queried features
|
|
139
|
+
*
|
|
138
140
|
* @example
|
|
139
141
|
* await mapRef.current?.queryRenderedFeatures(
|
|
140
142
|
* [100, 100, 400, 400],
|
|
@@ -143,13 +145,13 @@ export interface MapRef {
|
|
|
143
145
|
* layers: ["restaurants", "shops"],
|
|
144
146
|
* },
|
|
145
147
|
* );
|
|
146
|
-
*
|
|
147
|
-
* @return Queried features
|
|
148
148
|
*/
|
|
149
149
|
queryRenderedFeatures(pixelPointBounds: PixelPointBounds, options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
|
|
150
150
|
/**
|
|
151
151
|
* Query rendered features within the current viewport
|
|
152
152
|
*
|
|
153
|
+
* @returns Queried features
|
|
154
|
+
*
|
|
153
155
|
* @example
|
|
154
156
|
* await mapRef.current?.queryRenderedFeatures(
|
|
155
157
|
* {
|
|
@@ -157,29 +159,26 @@ export interface MapRef {
|
|
|
157
159
|
* layers: ["restaurants", "shops"],
|
|
158
160
|
* },
|
|
159
161
|
* );
|
|
160
|
-
*
|
|
161
|
-
* @return Queried features
|
|
162
162
|
*/
|
|
163
163
|
queryRenderedFeatures(options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
|
|
164
164
|
/**
|
|
165
165
|
* Takes static-map image of the currently displayed map
|
|
166
166
|
*
|
|
167
|
-
* @
|
|
168
|
-
*
|
|
169
|
-
* @return Base64 encoded image or URI of image file
|
|
167
|
+
* @returns Base64 encoded image or URI of image file
|
|
170
168
|
*/
|
|
171
169
|
createStaticMapImage(options: {
|
|
172
170
|
output: "base64" | "file";
|
|
173
171
|
}): Promise<string>;
|
|
174
172
|
/**
|
|
175
|
-
* Sets the visibility of all the layers referencing the specified `source` and
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
* await mapRef.current?.setSourceVisibility(false, 'composite', 'building')
|
|
173
|
+
* Sets the visibility of all the layers referencing the specified `source` and
|
|
174
|
+
* optionally `sourceLayer`
|
|
179
175
|
*
|
|
180
176
|
* @param visible - Visibility of the layers
|
|
181
177
|
* @param source - Identifier of the target source (e.g. 'composite')
|
|
182
178
|
* @param sourceLayer - Identifier of the target source-layer (e.g. 'building')
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* await mapRef.current?.setSourceVisibility(false, 'composite', 'building')
|
|
183
182
|
*/
|
|
184
183
|
setSourceVisibility(visible: boolean, source: string, sourceLayer?: string): Promise<void>;
|
|
185
184
|
/**
|
|
@@ -193,13 +192,13 @@ export interface MapProps extends ViewProps {
|
|
|
193
192
|
/**
|
|
194
193
|
* Style for wrapping React Native View
|
|
195
194
|
*
|
|
196
|
-
* @
|
|
195
|
+
* @defaultValue { flex: 1 }
|
|
197
196
|
*/
|
|
198
197
|
style?: ViewProps["style"];
|
|
199
198
|
/**
|
|
200
199
|
* Maplibre style - either a URL or a Style JSON.
|
|
201
200
|
*
|
|
202
|
-
* @see https://maplibre.org/maplibre-style-spec/
|
|
201
|
+
* @see {@link https://maplibre.org/maplibre-style-spec/}
|
|
203
202
|
*/
|
|
204
203
|
mapStyle: string | StyleSpecification;
|
|
205
204
|
/**
|
|
@@ -211,23 +210,26 @@ export interface MapProps extends ViewProps {
|
|
|
211
210
|
*/
|
|
212
211
|
light?: LightSpecification;
|
|
213
212
|
/**
|
|
214
|
-
* The distance from the edges of the map view's frame to the edges of the map
|
|
213
|
+
* The distance from the edges of the map view's frame to the edges of the map
|
|
214
|
+
* view's logical viewport.
|
|
215
215
|
*/
|
|
216
216
|
contentInset?: ViewPadding;
|
|
217
217
|
/**
|
|
218
|
-
* iOS: The preferred frame rate at which the map view is rendered.
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
218
|
+
* iOS: The preferred frame rate at which the map view is rendered. The default
|
|
219
|
+
* value for this property is MLNMapViewPreferredFramesPerSecondDefault, which
|
|
220
|
+
* will adaptively set the preferred frame rate based on the capability of the
|
|
221
|
+
* user’s device to maintain a smooth experience. This property can be set to
|
|
222
|
+
* arbitrary integer values.
|
|
222
223
|
*
|
|
223
|
-
* Android: The maximum frame rate at which the map view is rendered, but it
|
|
224
|
-
* This property can be set to
|
|
224
|
+
* Android: The maximum frame rate at which the map view is rendered, but it
|
|
225
|
+
* can't excess the ability of device hardware. This property can be set to
|
|
226
|
+
* arbitrary integer values.
|
|
225
227
|
*/
|
|
226
228
|
preferredFramesPerSecond?: number;
|
|
227
229
|
/**
|
|
228
230
|
* Toggle pan interaction of the map
|
|
229
231
|
*
|
|
230
|
-
* @
|
|
232
|
+
* @defaultValue true
|
|
231
233
|
*/
|
|
232
234
|
dragPan?: boolean;
|
|
233
235
|
/**
|
|
@@ -235,31 +237,32 @@ export interface MapProps extends ViewProps {
|
|
|
235
237
|
*
|
|
236
238
|
* On Android this also disables {@link doubleTapZoom} and {@link doubleTapHoldZoom}.
|
|
237
239
|
*
|
|
238
|
-
* @
|
|
240
|
+
* @defaultValue true
|
|
239
241
|
*/
|
|
240
242
|
touchZoom?: boolean;
|
|
241
243
|
/**
|
|
242
244
|
* Toggle double-tap zoom interaction of the map.
|
|
243
245
|
*
|
|
244
|
-
* @
|
|
246
|
+
* @defaultValue true
|
|
245
247
|
*/
|
|
246
248
|
doubleTapZoom?: boolean;
|
|
247
249
|
/**
|
|
248
|
-
* Toggle double-tap-and-hold zoom interaction of the map (also known as quick
|
|
250
|
+
* Toggle double-tap-and-hold zoom interaction of the map (also known as quick
|
|
251
|
+
* zoom and one finger zoom).
|
|
249
252
|
*
|
|
250
|
-
* @
|
|
253
|
+
* @defaultValue true
|
|
251
254
|
*/
|
|
252
255
|
doubleTapHoldZoom?: boolean;
|
|
253
256
|
/**
|
|
254
257
|
* Toggle rotate interaction of the map
|
|
255
258
|
*
|
|
256
|
-
* @
|
|
259
|
+
* @defaultValue true
|
|
257
260
|
*/
|
|
258
261
|
touchRotate?: boolean;
|
|
259
262
|
/**
|
|
260
263
|
* Toggle pitch interaction of the map
|
|
261
264
|
*
|
|
262
|
-
* @
|
|
265
|
+
* @defaultValue true
|
|
263
266
|
*/
|
|
264
267
|
touchPitch?: boolean;
|
|
265
268
|
/**
|
|
@@ -302,7 +305,7 @@ export interface MapProps extends ViewProps {
|
|
|
302
305
|
/**
|
|
303
306
|
* Toggle the compass from hiding when facing north
|
|
304
307
|
*
|
|
305
|
-
* @
|
|
308
|
+
* @defaultValue true
|
|
306
309
|
*/
|
|
307
310
|
compassHiddenFacingNorth?: boolean;
|
|
308
311
|
/**
|
|
@@ -320,15 +323,15 @@ export interface MapProps extends ViewProps {
|
|
|
320
323
|
* Android only: Switch between TextureView (default) and GLSurfaceView for
|
|
321
324
|
* rendering the map
|
|
322
325
|
*
|
|
323
|
-
* @
|
|
326
|
+
* @defaultValue "surface"
|
|
324
327
|
*/
|
|
325
328
|
androidView?: "surface" | "texture";
|
|
326
329
|
/**
|
|
327
330
|
* Called when a user presses the map
|
|
328
331
|
*
|
|
329
332
|
* If the event bubbles up from a child `Source` with an `onPress` handler the
|
|
330
|
-
* `features` will be included. The event will emit on `Map` and `Source
|
|
331
|
-
*
|
|
333
|
+
* `features` will be included. The event will emit on `Map` and `Source` . To
|
|
334
|
+
* prevent this use `event.stopPropagation()` in the `Source` handler.
|
|
332
335
|
*/
|
|
333
336
|
onPress?: (event: NativeSyntheticEvent<PressEvent> | NativeSyntheticEvent<PressEventWithFeatures>) => void;
|
|
334
337
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../../src/components/map/Map.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAKL,KAAK,GAAG,EAMT,MAAM,OAAO,CAAC;AACf,OAAO,EACL,KAAK,oBAAoB,EAKzB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAU3D,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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,6CAgJ7D,CAAC"}
|
|
@@ -4,42 +4,43 @@ import { type BaseProps } from "../../../types/BaseProps";
|
|
|
4
4
|
import type { PressableSourceProps } from "../../../types/sources/PressableSourceProps";
|
|
5
5
|
export interface GeoJSONSourceRef {
|
|
6
6
|
/**
|
|
7
|
-
* Get all features from the source that match the filter, regardless of
|
|
7
|
+
* Get all features from the source that match the filter, regardless of
|
|
8
|
+
* visibility
|
|
9
|
+
*
|
|
10
|
+
* @param filter - Optional filter statement to filter the returned features
|
|
8
11
|
*
|
|
9
12
|
* @example
|
|
10
13
|
* const data = await geoJSONSourceRef.current?.getData(clusterId);
|
|
11
|
-
*
|
|
12
|
-
* @param filter Optional filter statement to filter the returned features
|
|
13
14
|
*/
|
|
14
15
|
getData(filter?: FilterSpecification): Promise<GeoJSON.FeatureCollection>;
|
|
15
16
|
/**
|
|
16
17
|
* Returns the zoom needed to expand the cluster.
|
|
17
18
|
*
|
|
19
|
+
* @param clusterId - The feature cluster to expand.
|
|
20
|
+
* @returns Zoom level at which the cluster expands
|
|
21
|
+
*
|
|
18
22
|
* @example
|
|
19
23
|
* const zoom = await geoJSONSourceRef.current?.getClusterExpansionZoom(clusterId);
|
|
20
|
-
*
|
|
21
|
-
* @param clusterId The feature cluster to expand.
|
|
22
|
-
* @return Zoom level at which the cluster expands
|
|
23
24
|
*/
|
|
24
25
|
getClusterExpansionZoom(clusterId: number): Promise<number>;
|
|
25
26
|
/**
|
|
26
27
|
* Returns the FeatureCollection from the cluster.
|
|
27
28
|
*
|
|
28
|
-
* @
|
|
29
|
-
* const collection = await geoJSONSourceRef.current?.getClusterLeaves(clusterId, limit, offset);
|
|
30
|
-
*
|
|
31
|
-
* @param clusterId The feature cluster to expand.
|
|
29
|
+
* @param clusterId - The feature cluster to expand.
|
|
32
30
|
* @param limit - The number of points to return.
|
|
33
31
|
* @param offset - The amount of points to skip (for pagination).
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* const collection = await geoJSONSourceRef.current?.getClusterLeaves(clusterId, limit, offset);
|
|
34
35
|
*/
|
|
35
36
|
getClusterLeaves(clusterId: number, limit: number, offset: number): Promise<GeoJSON.Feature[]>;
|
|
36
37
|
/**
|
|
37
38
|
* Returns the FeatureCollection from the cluster (on the next zoom level).
|
|
38
39
|
*
|
|
40
|
+
* @param clusterId - The feature cluster to expand.
|
|
41
|
+
*
|
|
39
42
|
* @example
|
|
40
43
|
* const collection = await geoJSONSourceRef.current?.getClusterChildren(clusterId);
|
|
41
|
-
*
|
|
42
|
-
* @param clusterId - The feature cluster to expand.
|
|
43
44
|
*/
|
|
44
45
|
getClusterChildren(clusterId: number): Promise<GeoJSON.Feature[]>;
|
|
45
46
|
}
|
|
@@ -50,7 +51,8 @@ export interface GeoJSONSourceProps extends BaseProps, PressableSourceProps {
|
|
|
50
51
|
id?: string;
|
|
51
52
|
/**
|
|
52
53
|
* Can be provided as one of:
|
|
53
|
-
* - An HTTP(S) URL, absolute file URL, or local file URL relative to the current
|
|
54
|
+
* - An HTTP(S) URL, absolute file URL, or local file URL relative to the current
|
|
55
|
+
* application’s resource bundle
|
|
54
56
|
* - Any valid GeoJSON object
|
|
55
57
|
*/
|
|
56
58
|
data: string | GeoJSON.GeoJSON;
|
|
@@ -59,46 +61,44 @@ export interface GeoJSONSourceProps extends BaseProps, PressableSourceProps {
|
|
|
59
61
|
*/
|
|
60
62
|
cluster?: boolean;
|
|
61
63
|
/**
|
|
62
|
-
* Specifies the radius of each cluster if clustering is enabled.
|
|
63
|
-
*
|
|
64
|
-
* The default value is 50.
|
|
64
|
+
* Specifies the radius of each cluster if clustering is enabled. A value of 512
|
|
65
|
+
* produces a radius equal to the width of a tile. The default value is 50.
|
|
65
66
|
*/
|
|
66
67
|
clusterRadius?: number;
|
|
67
68
|
/**
|
|
68
|
-
* Specifies minimum number of points to form a cluster if clustering is
|
|
69
|
-
* The default value is 2.
|
|
69
|
+
* Specifies minimum number of points to form a cluster if clustering is
|
|
70
|
+
* enabled. The default value is 2.
|
|
70
71
|
*/
|
|
71
72
|
clusterMinPoints?: number;
|
|
72
73
|
/**
|
|
73
|
-
* Specifies the maximum zoom level at which to cluster points if clustering is
|
|
74
|
-
* Defaults to one zoom level less than the value of maxzoom so that,
|
|
75
|
-
* the data is not clustered.
|
|
74
|
+
* Specifies the maximum zoom level at which to cluster points if clustering is
|
|
75
|
+
* enabled. Defaults to one zoom level less than the value of maxzoom so that,
|
|
76
|
+
* at the maximum zoom, the data is not clustered.
|
|
76
77
|
*/
|
|
77
78
|
clusterMaxZoom?: number;
|
|
78
79
|
/**
|
|
79
|
-
* Specifies custom properties on the generated clusters if clustering
|
|
80
|
-
*
|
|
80
|
+
* Specifies custom properties on the generated clusters if clustering is
|
|
81
|
+
* enabled, aggregating values from clustered points.
|
|
81
82
|
*
|
|
82
|
-
* Has the form `{ "property_name": [operator, map_expression]}
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
83
|
+
* Has the form `{ "property_name": [operator, map_expression]}` , where
|
|
84
|
+
* `operator` is a custom reduce expression that references a special
|
|
85
|
+
* `["accumulated"]` value - it accumulates the property value from
|
|
86
|
+
* clusters/points the cluster contains `map_expression` produces the value of a
|
|
87
|
+
* single point
|
|
86
88
|
*
|
|
87
89
|
* @example `{ "resultingSum": [["+", ["accumulated"], ["get", "resultingSum"]], ["get", "scalerank"]] }`
|
|
88
|
-
*
|
|
89
90
|
*/
|
|
90
91
|
clusterProperties?: GeoJSONSourceSpecification["clusterProperties"];
|
|
91
92
|
/**
|
|
92
|
-
* Specifies the maximum zoom level at which to create vector tiles.
|
|
93
|
-
*
|
|
94
|
-
* The default value is 18.
|
|
93
|
+
* Specifies the maximum zoom level at which to create vector tiles. A greater
|
|
94
|
+
* value produces greater detail at high zoom levels. The default value is 18.
|
|
95
95
|
*/
|
|
96
96
|
maxzoom?: number;
|
|
97
97
|
/**
|
|
98
|
-
* Specifies the size of the tile buffer on each side.
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* The default value is 128.
|
|
98
|
+
* Specifies the size of the tile buffer on each side. A value of 0 produces no
|
|
99
|
+
* buffer. A value of 512 produces a buffer as wide as the tile itself. Larger
|
|
100
|
+
* values produce fewer rendering artifacts near tile edges and slower
|
|
101
|
+
* performance. The default value is 128.
|
|
102
102
|
*/
|
|
103
103
|
buffer?: number;
|
|
104
104
|
/**
|
|
@@ -106,13 +106,12 @@ export interface GeoJSONSourceProps extends BaseProps, PressableSourceProps {
|
|
|
106
106
|
*
|
|
107
107
|
* Higher means simpler geometries and faster performance.
|
|
108
108
|
*
|
|
109
|
-
* @
|
|
109
|
+
* @defaultValue 0.375
|
|
110
110
|
*/
|
|
111
111
|
tolerance?: number;
|
|
112
112
|
/**
|
|
113
|
-
* Whether to calculate line distance metrics.
|
|
114
|
-
*
|
|
115
|
-
* The default value is false.
|
|
113
|
+
* Whether to calculate line distance metrics. This is required for line layers
|
|
114
|
+
* that specify lineGradient values. The default value is false.
|
|
116
115
|
*/
|
|
117
116
|
lineMetrics?: boolean;
|
|
118
117
|
children?: ReactNode;
|
|
@@ -122,8 +121,8 @@ export interface GeoJSONSourceProps extends BaseProps, PressableSourceProps {
|
|
|
122
121
|
ref?: Ref<GeoJSONSourceRef>;
|
|
123
122
|
}
|
|
124
123
|
/**
|
|
125
|
-
* GeoJSONSource is a map content source that supplies GeoJSON to be shown on
|
|
126
|
-
* The data may be provided as an url or a GeoJSON object.
|
|
124
|
+
* GeoJSONSource is a map content source that supplies GeoJSON to be shown on
|
|
125
|
+
* the map. The data may be provided as an url or a GeoJSON object.
|
|
127
126
|
*/
|
|
128
127
|
export declare const GeoJSONSource: import("react").MemoExoticComponent<({ id, data, ref, ...props }: GeoJSONSourceProps) => import("react/jsx-runtime").JSX.Element>;
|
|
129
128
|
//# sourceMappingURL=GeoJSONSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoJSONSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/geojson-source/GeoJSONSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,GAAG,EAGT,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAKxF,MAAM,WAAW,gBAAgB;IAC/B
|
|
1
|
+
{"version":3,"file":"GeoJSONSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/geojson-source/GeoJSONSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,GAAG,EAGT,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAKxF,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE1E;;;;;;;;OAQG;IACH,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE5D;;;;;;;;;OASG;IACH,gBAAgB,CACd,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAE9B;;;;;;;OAOG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;CACnE;AAED,MAAM,WAAW,kBAAmB,SAAQ,SAAS,EAAE,oBAAoB;IACzE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,EAAE,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IAEpE;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,oEACM,kBAAkB,6CA0DjD,CAAC"}
|
|
@@ -12,7 +12,8 @@ export interface ImageSourceProps extends BaseProps {
|
|
|
12
12
|
*/
|
|
13
13
|
url: string | number;
|
|
14
14
|
/**
|
|
15
|
-
* The top left, top right, bottom right, and bottom left coordinates for the
|
|
15
|
+
* The top left, top right, bottom right, and bottom left coordinates for the
|
|
16
|
+
* image.
|
|
16
17
|
*/
|
|
17
18
|
coordinates: [
|
|
18
19
|
topLeft: LngLat,
|
|
@@ -23,8 +24,9 @@ export interface ImageSourceProps extends BaseProps {
|
|
|
23
24
|
children?: ReactNode;
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
|
-
* ImageSource is a content source that is used for a georeferenced raster image
|
|
27
|
-
* The georeferenced image scales and rotates as the
|
|
27
|
+
* ImageSource is a content source that is used for a georeferenced raster image
|
|
28
|
+
* to be shown on the map. The georeferenced image scales and rotates as the
|
|
29
|
+
* user zooms and rotates the map
|
|
28
30
|
*/
|
|
29
31
|
export declare const ImageSource: import("react").MemoExoticComponent<({ id, url, ...props }: ImageSourceProps) => import("react/jsx-runtime").JSX.Element>;
|
|
30
32
|
//# sourceMappingURL=ImageSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/image-source/ImageSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAOpD,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IAErB
|
|
1
|
+
{"version":3,"file":"ImageSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/image-source/ImageSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAOpD,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IAErB;;;OAGG;IACH,WAAW,EAAE;QACX,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,MAAM;QAChB,WAAW,EAAE,MAAM;QACnB,UAAU,EAAE,MAAM;KACnB,CAAC;IAEF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,8DAAgC,gBAAgB,6CActE,CAAC"}
|
|
@@ -6,49 +6,54 @@ export interface RasterSourceProps extends BaseProps {
|
|
|
6
6
|
*/
|
|
7
7
|
id?: string;
|
|
8
8
|
/**
|
|
9
|
-
* A URL to a TileJSON configuration file describing the source's contents and
|
|
9
|
+
* A URL to a TileJSON configuration file describing the source's contents and
|
|
10
|
+
* other metadata.
|
|
10
11
|
*/
|
|
11
12
|
url?: string;
|
|
12
13
|
/**
|
|
13
|
-
* An array of tile URL templates. If multiple endpoints are specified, clients
|
|
14
|
+
* An array of tile URL templates. If multiple endpoints are specified, clients
|
|
15
|
+
* may use any combination of endpoints.
|
|
16
|
+
*
|
|
14
17
|
* @example "https://example.com/raster-tiles/{z}/{x}/{y}.png"
|
|
15
18
|
*/
|
|
16
19
|
tiles?: string[];
|
|
17
20
|
/**
|
|
18
|
-
* An unsigned integer that specifies the minimum zoom level at which to display
|
|
19
|
-
* The value should be between 0 and 22, inclusive, and
|
|
20
|
-
* maxzoom, if specified. The default value for this option is 0.
|
|
21
|
+
* An unsigned integer that specifies the minimum zoom level at which to display
|
|
22
|
+
* tiles from the source. The value should be between 0 and 22, inclusive, and
|
|
23
|
+
* less than maxzoom, if specified. The default value for this option is 0.
|
|
21
24
|
*/
|
|
22
25
|
minzoom?: number;
|
|
23
26
|
/**
|
|
24
|
-
* An unsigned integer that specifies the maximum zoom level at which to display
|
|
25
|
-
* The value should be between 0 and 22, inclusive, and
|
|
26
|
-
* minzoom, if specified. The default value for this option is 22.
|
|
27
|
+
* An unsigned integer that specifies the maximum zoom level at which to display
|
|
28
|
+
* tiles from the source. The value should be between 0 and 22, inclusive, and
|
|
29
|
+
* less than minzoom, if specified. The default value for this option is 22.
|
|
27
30
|
*/
|
|
28
31
|
maxzoom?: number;
|
|
29
32
|
/**
|
|
30
33
|
* Size of the map tiles.
|
|
31
34
|
*
|
|
32
|
-
* @
|
|
35
|
+
* @defaultValue 512
|
|
33
36
|
*/
|
|
34
37
|
tileSize?: number;
|
|
35
38
|
/**
|
|
36
39
|
* Influences the y direction of the tile coordinates. (tms inverts y-axis)
|
|
37
40
|
*
|
|
38
|
-
* @
|
|
41
|
+
* @defaultValue "xyz"
|
|
39
42
|
*/
|
|
40
43
|
scheme?: "xyz" | "tms";
|
|
41
44
|
/**
|
|
42
|
-
* An HTML or literal text string defining the buttons to be displayed in an
|
|
43
|
-
* source is part of a map view's style and the map view's
|
|
45
|
+
* An HTML or literal text string defining the buttons to be displayed in an
|
|
46
|
+
* action sheet when the source is part of a map view's style and the map view's
|
|
47
|
+
* attribution button is pressed.
|
|
44
48
|
*/
|
|
45
49
|
attribution?: string;
|
|
46
50
|
children?: ReactNode;
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
|
-
* RasterSource is a map content source that supplies raster image tiles to be
|
|
50
|
-
* The location of and metadata about the tiles are defined
|
|
51
|
-
* or by an external file that conforms to the
|
|
53
|
+
* RasterSource is a map content source that supplies raster image tiles to be
|
|
54
|
+
* shown on the map. The location of and metadata about the tiles are defined
|
|
55
|
+
* either by an option dictionary or by an external file that conforms to the
|
|
56
|
+
* TileJSON specification.
|
|
52
57
|
*/
|
|
53
58
|
export declare const RasterSource: import("react").MemoExoticComponent<({ id, ...props }: RasterSourceProps) => import("react/jsx-runtime").JSX.Element>;
|
|
54
59
|
//# sourceMappingURL=RasterSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RasterSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/raster-source/RasterSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAG1D,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ
|
|
1
|
+
{"version":3,"file":"RasterSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/raster-source/RasterSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAG1D,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAEvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,yDAA2B,iBAAiB,6CAUnE,CAAC"}
|