@maplibre/maplibre-react-native 11.0.0-beta.24 → 11.0.0-beta.26
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/MLRNMapView.kt +10 -8
- 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
|
@@ -4,15 +4,13 @@ import { type BaseProps } from "../../../types/BaseProps";
|
|
|
4
4
|
import type { PressableSourceProps } from "../../../types/sources/PressableSourceProps";
|
|
5
5
|
export interface VectorSourceRef {
|
|
6
6
|
/**
|
|
7
|
-
* Returns all features that match the query parameters regardless of whether or
|
|
8
|
-
* currently rendered on the map. The domain of the query
|
|
9
|
-
* and GeoJSON source tiles. This
|
|
7
|
+
* Returns all features that match the query parameters regardless of whether or
|
|
8
|
+
* not the feature is currently rendered on the map. The domain of the query
|
|
9
|
+
* includes all currently-loaded vector tiles and GeoJSON source tiles. This
|
|
10
|
+
* function does not check tiles outside of the visible viewport.
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* vectorSource.features(['id1', 'id2'])
|
|
13
|
-
*
|
|
14
|
-
* @param options.sourceLayer - A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array.
|
|
15
|
-
* @param options.filter - an optional filter statement to filter the returned Features.
|
|
16
14
|
*/
|
|
17
15
|
querySourceFeatures(options: {
|
|
18
16
|
sourceLayer: string;
|
|
@@ -25,35 +23,38 @@ export interface VectorSourceProps extends BaseProps, PressableSourceProps {
|
|
|
25
23
|
*/
|
|
26
24
|
id?: string;
|
|
27
25
|
/**
|
|
28
|
-
* A URL to a TileJSON configuration file describing the source’s contents and
|
|
26
|
+
* A URL to a TileJSON configuration file describing the source’s contents and
|
|
27
|
+
* other metadata.
|
|
29
28
|
*/
|
|
30
29
|
url?: string;
|
|
31
30
|
/**
|
|
32
|
-
* An array of tile URL templates. If multiple endpoints are specified, clients
|
|
33
|
-
* Example:
|
|
31
|
+
* An array of tile URL templates. If multiple endpoints are specified, clients
|
|
32
|
+
* may use any combination of endpoints. Example:
|
|
33
|
+
* https://example.com/vector-tiles/{z}/{x}/{y}.pbf
|
|
34
34
|
*/
|
|
35
35
|
tiles?: string[];
|
|
36
36
|
/**
|
|
37
|
-
* An unsigned integer that specifies the minimum zoom level at which to display
|
|
38
|
-
* The value should be between 0 and 22, inclusive, and
|
|
39
|
-
* maxzoom, if specified. The default value for this option is 0.
|
|
37
|
+
* An unsigned integer that specifies the minimum zoom level at which to display
|
|
38
|
+
* tiles from the source. The value should be between 0 and 22, inclusive, and
|
|
39
|
+
* less than maxzoom, if specified. The default value for this option is 0.
|
|
40
40
|
*/
|
|
41
41
|
minzoom?: number;
|
|
42
42
|
/**
|
|
43
|
-
* An unsigned integer that specifies the maximum zoom level at which to display
|
|
44
|
-
* The value should be between 0 and 22, inclusive, and
|
|
45
|
-
* minzoom, if specified. The default value for this option is 22.
|
|
43
|
+
* An unsigned integer that specifies the maximum zoom level at which to display
|
|
44
|
+
* tiles from the source. The value should be between 0 and 22, inclusive, and
|
|
45
|
+
* less than minzoom, if specified. The default value for this option is 22.
|
|
46
46
|
*/
|
|
47
47
|
maxzoom?: number;
|
|
48
48
|
/**
|
|
49
49
|
* Influences the y direction of the tile coordinates. (tms inverts y-axis)
|
|
50
50
|
*
|
|
51
|
-
* @
|
|
51
|
+
* @defaultValue "xyz"
|
|
52
52
|
*/
|
|
53
53
|
scheme?: "xyz" | "tms";
|
|
54
54
|
/**
|
|
55
|
-
* An HTML or literal text string defining the buttons to be displayed in an
|
|
56
|
-
* source is part of a map view’s style and the map view’s
|
|
55
|
+
* An HTML or literal text string defining the buttons to be displayed in an
|
|
56
|
+
* action sheet when the source is part of a map view’s style and the map view’s
|
|
57
|
+
* attribution button is pressed.
|
|
57
58
|
*/
|
|
58
59
|
attribution?: string;
|
|
59
60
|
children?: ReactNode;
|
|
@@ -63,8 +64,10 @@ export interface VectorSourceProps extends BaseProps, PressableSourceProps {
|
|
|
63
64
|
ref?: Ref<VectorSourceRef>;
|
|
64
65
|
}
|
|
65
66
|
/**
|
|
66
|
-
* VectorSource is a map content source that supplies tiled vector data in
|
|
67
|
-
*
|
|
67
|
+
* VectorSource is a map content source that supplies tiled vector data in
|
|
68
|
+
* Mapbox Vector Tile format to be shown on the map. The location of and
|
|
69
|
+
* metadata about the tiles are defined either by an option dictionary or by an
|
|
70
|
+
* external file that conforms to the TileJSON specification.
|
|
68
71
|
*/
|
|
69
72
|
export declare const VectorSource: import("react").MemoExoticComponent<({ id, ref, ...props }: VectorSourceProps) => import("react/jsx-runtime").JSX.Element>;
|
|
70
73
|
//# sourceMappingURL=VectorSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/vector-source/VectorSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,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,eAAe;IAC9B
|
|
1
|
+
{"version":3,"file":"VectorSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/vector-source/VectorSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,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,eAAe;IAC9B;;;;;;;;OAQG;IACH,mBAAmB,CAAC,OAAO,EAAE;QAC3B,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,mBAAmB,CAAC;KAC9B,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,oBAAoB;IACxE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;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,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAEvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;CAC5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,8DAAgC,iBAAiB,6CAoCxE,CAAC"}
|
|
@@ -3,19 +3,22 @@ interface NativeUserLocationProps extends BaseProps {
|
|
|
3
3
|
/**
|
|
4
4
|
* Rendering mode
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* - "default": Renders only a puck
|
|
7
|
+
* - "heading": Renders a puck with triangle indicating device heading based on
|
|
8
|
+
* compass
|
|
9
|
+
* - "course": Android renders an arrow indicating device heading based on GPS
|
|
10
|
+
* course, iOS behaves like mode="heading"
|
|
9
11
|
*
|
|
10
|
-
* @
|
|
12
|
+
* @defaultValue "default"
|
|
11
13
|
*/
|
|
12
14
|
mode?: "default" | "heading" | "course";
|
|
13
15
|
/**
|
|
14
16
|
* Limit the maximum frames per second for location updates on Android
|
|
15
17
|
*
|
|
16
|
-
* Use this setting to limit animation rate of the location puck to decrease the
|
|
18
|
+
* Use this setting to limit animation rate of the location puck to decrease the
|
|
19
|
+
* stress on the device's CPU which could improve battery life.
|
|
17
20
|
*
|
|
18
|
-
* @platform
|
|
21
|
+
* @platform Android
|
|
19
22
|
*/
|
|
20
23
|
androidPreferredFramesPerSecond?: number;
|
|
21
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeUserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/user-location/NativeUserLocation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,UAAU,uBAAwB,SAAQ,SAAS;IACjD
|
|
1
|
+
{"version":3,"file":"NativeUserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/user-location/NativeUserLocation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,UAAU,uBAAwB,SAAQ,SAAS;IACjD;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAExC;;;;;;;OAOG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;CAC1C;AAED,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,4CAEhE,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
export interface UserLocationProps {
|
|
3
3
|
/**
|
|
4
|
-
* Children to render inside the UserLocation Annotation, e.g. CircleLayer,
|
|
4
|
+
* Children to render inside the UserLocation Annotation, e.g. CircleLayer,
|
|
5
|
+
* SymbolLayer
|
|
5
6
|
*/
|
|
6
7
|
children?: ReactNode;
|
|
7
8
|
/**
|
|
@@ -13,7 +14,8 @@ export interface UserLocationProps {
|
|
|
13
14
|
*/
|
|
14
15
|
accuracy?: boolean;
|
|
15
16
|
/**
|
|
16
|
-
* Render an arrow which indicates direction the device is pointing relative to
|
|
17
|
+
* Render an arrow which indicates direction the device is pointing relative to
|
|
18
|
+
* north
|
|
17
19
|
*/
|
|
18
20
|
heading?: boolean;
|
|
19
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/user-location/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAStD,MAAM,WAAW,iBAAiB;IAChC
|
|
1
|
+
{"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/user-location/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAStD,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,6GAQpB,iBAAiB,oDA8CrB,CAAC"}
|
|
@@ -3,13 +3,13 @@ interface UseCurrentPositionOptions {
|
|
|
3
3
|
/**
|
|
4
4
|
* Enable or disable position updates
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @defaultValue true
|
|
7
7
|
*/
|
|
8
8
|
enabled?: boolean;
|
|
9
9
|
/**
|
|
10
10
|
* Minimum displacement in meters to trigger position update
|
|
11
11
|
*
|
|
12
|
-
* @
|
|
12
|
+
* @defaultValue 0
|
|
13
13
|
*/
|
|
14
14
|
minDisplacement?: number;
|
|
15
15
|
}
|
|
@@ -10,9 +10,10 @@ interface LogEvent {
|
|
|
10
10
|
/**
|
|
11
11
|
* Handler for `onLog` events
|
|
12
12
|
*
|
|
13
|
-
* Called before logging a message, return false to proceed with default
|
|
13
|
+
* Called before logging a message, return false to proceed with default
|
|
14
|
+
* logging.
|
|
14
15
|
*
|
|
15
|
-
* @param event
|
|
16
|
+
* @param event -
|
|
16
17
|
*/
|
|
17
18
|
type LogHandler = (event: LogEvent) => boolean;
|
|
18
19
|
declare class LogManager {
|
|
@@ -24,13 +25,13 @@ declare class LogManager {
|
|
|
24
25
|
/**
|
|
25
26
|
* Override logging behavior
|
|
26
27
|
*
|
|
27
|
-
* @param logHandler
|
|
28
|
+
* @param logHandler -
|
|
28
29
|
*/
|
|
29
30
|
onLog(logHandler: LogHandler): void;
|
|
30
31
|
/**
|
|
31
32
|
* Set the minimum log level for a message to be logged
|
|
32
33
|
*
|
|
33
|
-
* @param level Minimum log level
|
|
34
|
+
* @param level - Minimum log level
|
|
34
35
|
*/
|
|
35
36
|
setLogLevel(level: LogLevel): void;
|
|
36
37
|
start(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/log/LogManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvE,UAAU,QAAQ;IAChB,KAAK,EAAE,QAAQ,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAED
|
|
1
|
+
{"version":3,"file":"LogManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/log/LogManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvE,UAAU,QAAQ;IAChB,KAAK,EAAE,QAAQ,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,KAAK,UAAU,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC;AAE/C,cAAM,UAAU;IACd,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,UAAU,CAAqC;IACvD,OAAO,CAAC,YAAY,CAA4C;;IAMhE;;;;OAIG;IACH,KAAK,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAInC;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAKlC,KAAK,IAAI,IAAI;IAQb,IAAI,IAAI,IAAI;IAQZ,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,SAAS;CAgBlB;AAED,QAAA,MAAM,UAAU,YAAmB,CAAC;AAEpC,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* NetworkManager provides methods for managing and controlling network
|
|
2
|
+
* NetworkManager provides methods for managing and controlling network
|
|
3
|
+
* connectivity.
|
|
3
4
|
*/
|
|
4
5
|
declare class NetworkManager {
|
|
5
6
|
/**
|
|
6
|
-
* Android only: Sets the connectivity state of the map. When set to false, the
|
|
7
|
-
* not make any network requests and will only use cached tiles. This
|
|
8
|
-
* useful for implementing offline mode or reducing data usage.
|
|
7
|
+
* Android only: Sets the connectivity state of the map. When set to false, the
|
|
8
|
+
* map will not make any network requests and will only use cached tiles. This
|
|
9
|
+
* is useful for implementing offline mode or reducing data usage.
|
|
10
|
+
*
|
|
11
|
+
* @param connected - Whether the map should be connected to the network
|
|
9
12
|
*
|
|
10
13
|
* @example
|
|
11
14
|
* ```ts
|
|
12
15
|
* // Enable offline mode
|
|
13
16
|
* NetworkManager.setConnected(false);
|
|
14
|
-
*
|
|
15
17
|
* // Re-enable network requests
|
|
16
18
|
* NetworkManager.setConnected(true);
|
|
17
19
|
* ```
|
|
18
|
-
*
|
|
19
|
-
* @param connected Whether the map should be connected to the network
|
|
20
20
|
*/
|
|
21
21
|
static setConnected(connected: boolean): void;
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/NetworkManager.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"NetworkManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/NetworkManager.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,cAAM,cAAc;IAClB;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;CAG9C;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -21,9 +21,10 @@ export type OfflinePackError = {
|
|
|
21
21
|
export type OfflinePackProgressListener = (offlinePack: OfflinePack, status: OfflinePackStatus) => void;
|
|
22
22
|
export type OfflinePackErrorListener = (offlinePack: OfflinePack, error: OfflinePackError) => void;
|
|
23
23
|
/**
|
|
24
|
-
* OfflineManager implements a singleton (shared object) that manages offline
|
|
25
|
-
* All of this class's instance methods are asynchronous, reflecting the
|
|
26
|
-
*
|
|
24
|
+
* OfflineManager implements a singleton (shared object) that manages offline
|
|
25
|
+
* packs. All of this class's instance methods are asynchronous, reflecting the
|
|
26
|
+
* fact that offline resources are stored in a database. The shared object
|
|
27
|
+
* maintains a canonical collection of offline packs.
|
|
27
28
|
*/
|
|
28
29
|
declare class OfflineManager {
|
|
29
30
|
private initialized;
|
|
@@ -34,10 +35,18 @@ declare class OfflineManager {
|
|
|
34
35
|
private subscriptionError;
|
|
35
36
|
constructor();
|
|
36
37
|
/**
|
|
37
|
-
* Creates and registers an offline pack that downloads the resources needed to
|
|
38
|
+
* Creates and registers an offline pack that downloads the resources needed to
|
|
39
|
+
* use the given region offline.
|
|
38
40
|
*
|
|
39
|
-
* @
|
|
41
|
+
* @param options - Create options for offline pack that specifies zoom levels, style url, and
|
|
42
|
+
* the region to download.
|
|
43
|
+
* @param progressListener - Callback that listens for status events while downloading the offline
|
|
44
|
+
* resource.
|
|
45
|
+
* @param errorListener - Callback that listens for status events while downloading the offline
|
|
46
|
+
* resource.
|
|
47
|
+
* @returns The created offline pack with its generated ID.
|
|
40
48
|
*
|
|
49
|
+
* @example
|
|
41
50
|
* const progressListener = (offlineRegion, status) => console.log(offlineRegion, status);
|
|
42
51
|
* const errorListener = (offlineRegion, error) => console.log(offlineRegion, error);
|
|
43
52
|
*
|
|
@@ -48,64 +57,68 @@ declare class OfflineManager {
|
|
|
48
57
|
* bounds: [west, south, east, north],
|
|
49
58
|
* metadata: { customValue: 'myValue' }
|
|
50
59
|
* }, progressListener, errorListener)
|
|
51
|
-
*
|
|
52
|
-
* @param options Create options for offline pack that specifies zoom levels, style url, and the region to download.
|
|
53
|
-
* @param progressListener Callback that listens for status events while downloading the offline resource.
|
|
54
|
-
* @param errorListener Callback that listens for status events while downloading the offline resource.
|
|
55
|
-
*
|
|
56
|
-
* @return The created offline pack with its generated ID.
|
|
57
60
|
*/
|
|
58
61
|
createPack(options: OfflinePackCreateOptions, progressListener: OfflinePackProgressListener, errorListener: OfflinePackErrorListener): Promise<OfflinePack>;
|
|
59
62
|
/**
|
|
60
|
-
* Invalidates the specified offline pack. This method checks that the tiles in
|
|
63
|
+
* Invalidates the specified offline pack. This method checks that the tiles in
|
|
64
|
+
* the specified offline pack match those from the server. Local tiles that do
|
|
65
|
+
* not match the latest version on the server are updated.
|
|
66
|
+
*
|
|
67
|
+
* This is more efficient than deleting the offline pack and downloading it
|
|
68
|
+
* again. If the data stored locally matches that on the server, new data will
|
|
69
|
+
* not be downloaded.
|
|
61
70
|
*
|
|
62
|
-
*
|
|
71
|
+
* @param id - ID of the OfflinePack.
|
|
63
72
|
*
|
|
64
73
|
* @example
|
|
65
74
|
* await OfflineManager.invalidatePack(pack.id)
|
|
66
|
-
*
|
|
67
|
-
* @param id ID of the OfflinePack.
|
|
68
75
|
*/
|
|
69
76
|
invalidatePack(id: string): Promise<void>;
|
|
70
77
|
/**
|
|
71
|
-
* Unregisters the given OfflinePack and allows resources that are no longer
|
|
78
|
+
* Unregisters the given OfflinePack and allows resources that are no longer
|
|
79
|
+
* required by any remaining packs to be potentially freed.
|
|
80
|
+
*
|
|
81
|
+
* @param id - ID of the OfflinePack.
|
|
72
82
|
*
|
|
73
83
|
* @example
|
|
74
84
|
* await OfflineManager.deletePack(pack.id)
|
|
75
|
-
*
|
|
76
|
-
* @param id ID of the OfflinePack.
|
|
77
85
|
*/
|
|
78
86
|
deletePack(id: string): Promise<void>;
|
|
79
87
|
/**
|
|
80
|
-
* Forces a revalidation of the tiles in the ambient cache and downloads a fresh
|
|
81
|
-
* This is the recommend method for
|
|
82
|
-
* This is the most efficient method because tiles in the
|
|
83
|
-
*
|
|
88
|
+
* Forces a revalidation of the tiles in the ambient cache and downloads a fresh
|
|
89
|
+
* version of the tiles from the tile server. This is the recommend method for
|
|
90
|
+
* clearing the cache. This is the most efficient method because tiles in the
|
|
91
|
+
* ambient cache are re-downloaded to remove outdated data from a device. It
|
|
92
|
+
* does not erase resources from the ambient cache or delete the database, which
|
|
93
|
+
* can be computationally expensive operations that may carry unintended side
|
|
94
|
+
* effects.
|
|
84
95
|
*
|
|
85
96
|
* @example
|
|
86
97
|
* await OfflineManager.invalidateAmbientCache();
|
|
87
98
|
*/
|
|
88
99
|
invalidateAmbientCache(): Promise<void>;
|
|
89
100
|
/**
|
|
90
|
-
* Erases resources from the ambient cache.
|
|
91
|
-
*
|
|
101
|
+
* Erases resources from the ambient cache. This method clears the cache and
|
|
102
|
+
* decreases the amount of space that map resources take up on the device.
|
|
92
103
|
*
|
|
93
104
|
* @example
|
|
94
105
|
* await OfflineManager.clearAmbientCache();
|
|
95
106
|
*/
|
|
96
107
|
clearAmbientCache(): Promise<void>;
|
|
97
108
|
/**
|
|
98
|
-
* Sets the maximum size of the ambient cache in bytes. Disables the ambient
|
|
99
|
-
* This method may be computationally expensive because it
|
|
109
|
+
* Sets the maximum size of the ambient cache in bytes. Disables the ambient
|
|
110
|
+
* cache if set to 0. This method may be computationally expensive because it
|
|
111
|
+
* will erase resources from the ambient cache if its size is decreased.
|
|
112
|
+
*
|
|
113
|
+
* @param size - Size of ambient cache.
|
|
100
114
|
*
|
|
101
115
|
* @example
|
|
102
116
|
* await OfflineManager.setMaximumAmbientCacheSize(5000000);
|
|
103
|
-
*
|
|
104
|
-
* @param size Size of ambient cache.
|
|
105
117
|
*/
|
|
106
118
|
setMaximumAmbientCacheSize(size: number): Promise<void>;
|
|
107
119
|
/**
|
|
108
|
-
* Deletes the existing database, which includes both the ambient cache and
|
|
120
|
+
* Deletes the existing database, which includes both the ambient cache and
|
|
121
|
+
* offline packs, then reinitializes it.
|
|
109
122
|
*
|
|
110
123
|
* @example
|
|
111
124
|
* await OfflineManager.resetDatabase();
|
|
@@ -128,49 +141,54 @@ declare class OfflineManager {
|
|
|
128
141
|
/**
|
|
129
142
|
* Sideloads offline db
|
|
130
143
|
*
|
|
144
|
+
* @param path - Path to offline tile db on file system.
|
|
145
|
+
*
|
|
131
146
|
* @example
|
|
132
147
|
* await OfflineManager.mergeOfflineRegions(path);
|
|
133
|
-
*
|
|
134
|
-
* @param path Path to offline tile db on file system.
|
|
135
148
|
*/
|
|
136
149
|
mergeOfflineRegions(path: string): Promise<void>;
|
|
137
150
|
/**
|
|
138
|
-
* Sets the maximum number of tiles that may be downloaded and stored on the
|
|
139
|
-
* Consult the Terms of Service for your map tile host before
|
|
151
|
+
* Sets the maximum number of tiles that may be downloaded and stored on the
|
|
152
|
+
* current device. Consult the Terms of Service for your map tile host before
|
|
153
|
+
* changing this value.
|
|
154
|
+
*
|
|
155
|
+
* @param limit - Map tile limit count.
|
|
140
156
|
*
|
|
141
157
|
* @example
|
|
142
158
|
* OfflineManager.setTileCountLimit(1000);
|
|
143
|
-
*
|
|
144
|
-
* @param limit Map tile limit count.
|
|
145
159
|
*/
|
|
146
160
|
setTileCountLimit(limit: number): void;
|
|
147
161
|
/**
|
|
148
|
-
* Sets the period at which download status events will be sent over the React
|
|
149
|
-
* The default is 500ms.
|
|
162
|
+
* Sets the period at which download status events will be sent over the React
|
|
163
|
+
* Native bridge. The default is 500ms.
|
|
164
|
+
*
|
|
165
|
+
* @param throttleValue - Event throttle value in ms.
|
|
150
166
|
*
|
|
151
167
|
* @example
|
|
152
168
|
* OfflineManager.setProgressEventThrottle(500);
|
|
153
|
-
*
|
|
154
|
-
* @param throttleValue Event throttle value in ms.
|
|
155
169
|
*/
|
|
156
170
|
setProgressEventThrottle(throttleValue: number): void;
|
|
157
171
|
/**
|
|
158
172
|
* Subscribe to download status/error events for the requested offline pack.
|
|
159
173
|
* Note that createPack calls this internally if listeners are provided.
|
|
160
174
|
*
|
|
175
|
+
* @param id - ID of the offline pack.
|
|
176
|
+
* @param progressListener - Callback that listens for status events while downloading the offline
|
|
177
|
+
* resource.
|
|
178
|
+
* @param errorListener - Callback that listens for status events while downloading the offline
|
|
179
|
+
* resource.
|
|
180
|
+
*
|
|
161
181
|
* @example
|
|
162
182
|
* const progressListener = (offlinePack, status) => console.log(offlinePack, status)
|
|
163
183
|
* const errorListener = (offlinePack, error) => console.log(offlinePack, error)
|
|
164
184
|
* OfflineManager.addListener(pack.id, progressListener, errorListener)
|
|
165
|
-
*
|
|
166
|
-
* @param id ID of the offline pack.
|
|
167
|
-
* @param progressListener Callback that listens for status events while downloading the offline resource.
|
|
168
|
-
* @param errorListener Callback that listens for status events while downloading the offline resource.
|
|
169
185
|
*/
|
|
170
186
|
addListener(id: string, progressListener: OfflinePackProgressListener, errorListener: OfflinePackErrorListener): Promise<void>;
|
|
171
187
|
/**
|
|
172
|
-
* Unsubscribes any listeners associated with the offline pack.
|
|
173
|
-
*
|
|
188
|
+
* Unsubscribes any listeners associated with the offline pack. Should be called
|
|
189
|
+
* when the component unmounts.
|
|
190
|
+
*
|
|
191
|
+
* @param packId - ID of the offline pack.
|
|
174
192
|
*
|
|
175
193
|
* @example
|
|
176
194
|
* useEffect(() => {
|
|
@@ -178,8 +196,6 @@ declare class OfflineManager {
|
|
|
178
196
|
* OfflineManager.removeListener(pack.id);
|
|
179
197
|
* }
|
|
180
198
|
* }, []);
|
|
181
|
-
*
|
|
182
|
-
* @param packId ID of the offline pack.
|
|
183
199
|
*/
|
|
184
200
|
removeListener(packId: string): void;
|
|
185
201
|
private initialize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfflineManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/offline/OfflineManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE1E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,CACxC,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,iBAAiB,KACtB,IAAI,CAAC;AACV,MAAM,MAAM,wBAAwB,GAAG,CACrC,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,gBAAgB,KACpB,IAAI,CAAC;AAEV
|
|
1
|
+
{"version":3,"file":"OfflineManager.d.ts","sourceRoot":"","sources":["../../../../../src/modules/offline/OfflineManager.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,7 +4,7 @@ export interface StaticMapOptions {
|
|
|
4
4
|
/**
|
|
5
5
|
* Maplibre style - either a URL or a Style JSON.
|
|
6
6
|
*
|
|
7
|
-
* @see https://maplibre.org/maplibre-style-spec/
|
|
7
|
+
* @see {@link https://maplibre.org/maplibre-style-spec/}
|
|
8
8
|
*/
|
|
9
9
|
mapStyle: string | object;
|
|
10
10
|
/**
|
|
@@ -39,7 +39,7 @@ export type StaticMapCenterOptions = StaticMapOptions & {
|
|
|
39
39
|
*/
|
|
40
40
|
zoom?: number;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* The bearing (rotation) of the map.
|
|
43
43
|
*/
|
|
44
44
|
bearing?: number;
|
|
45
45
|
/**
|