@rnmapbox/maps 10.0.0-beta.73 → 10.0.0-beta.75
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/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/camera/CameraStop.kt +61 -46
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/location/LocationComponentManager.kt +4 -2
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTLayer.kt +7 -2
- package/index.d.ts +46 -328
- package/javascript/components/AbstractLayer.tsx +2 -1
- package/javascript/components/AbstractSource.tsx +3 -1
- package/javascript/components/Atmosphere.tsx +2 -1
- package/javascript/components/Camera.tsx +6 -4
- package/javascript/components/ImageSource.tsx +81 -0
- package/javascript/components/Images.tsx +1 -1
- package/javascript/components/Light.tsx +60 -0
- package/javascript/components/{MapView.js → MapView.tsx} +456 -383
- package/javascript/components/NativeBridgeComponent.tsx +1 -1
- package/javascript/components/PointAnnotation.tsx +2 -1
- package/javascript/components/RasterDemSource.tsx +105 -0
- package/javascript/components/RasterSource.tsx +124 -0
- package/javascript/components/ShapeSource.tsx +1 -11
- package/javascript/components/Terrain.tsx +2 -1
- package/javascript/components/VectorSource.tsx +209 -0
- package/javascript/modules/location/locationManager.ts +1 -1
- package/javascript/modules/offline/{OfflineCreatePackOptions.js → OfflineCreatePackOptions.ts} +21 -6
- package/javascript/modules/offline/{OfflinePack.js → OfflinePack.ts} +19 -4
- package/javascript/modules/offline/{offlineManager.js → offlineManager.ts} +77 -21
- package/javascript/modules/snapshot/{SnapshotOptions.js → SnapshotOptions.ts} +27 -3
- package/javascript/modules/snapshot/{snapshotManager.js → snapshotManager.ts} +1 -1
- package/javascript/types/BaseProps.ts +3 -0
- package/javascript/types/OnPressEvent.ts +11 -0
- package/javascript/utils/{Logger.js → Logger.ts} +32 -14
- package/javascript/utils/MapboxStyles.d.ts +1 -1
- package/javascript/utils/deprecation.ts +3 -3
- package/javascript/utils/geoUtils.ts +91 -0
- package/javascript/utils/{index.js → index.ts} +41 -19
- package/javascript/utils/nativeRef.ts +28 -0
- package/lib/commonjs/components/AbstractLayer.js.map +1 -1
- package/lib/commonjs/components/AbstractSource.js.map +1 -1
- package/lib/commonjs/components/Atmosphere.js.map +1 -1
- package/lib/commonjs/components/Camera.js +4 -4
- package/lib/commonjs/components/Camera.js.map +1 -1
- package/lib/commonjs/components/ImageSource.js +8 -25
- package/lib/commonjs/components/ImageSource.js.map +1 -1
- package/lib/commonjs/components/Images.js +1 -1
- package/lib/commonjs/components/Images.js.map +1 -1
- package/lib/commonjs/components/Light.js +32 -33
- package/lib/commonjs/components/Light.js.map +1 -1
- package/lib/commonjs/components/MapView.js +30 -289
- package/lib/commonjs/components/MapView.js.map +1 -1
- package/lib/commonjs/components/NativeBridgeComponent.js.map +1 -1
- package/lib/commonjs/components/PointAnnotation.js.map +1 -1
- package/lib/commonjs/components/RasterDemSource.js +3 -37
- package/lib/commonjs/components/RasterDemSource.js.map +1 -1
- package/lib/commonjs/components/RasterSource.js +2 -46
- package/lib/commonjs/components/RasterSource.js.map +1 -1
- package/lib/commonjs/components/ShapeSource.js.map +1 -1
- package/lib/commonjs/components/Terrain.js.map +1 -1
- package/lib/commonjs/components/VectorSource.js +15 -74
- package/lib/commonjs/components/VectorSource.js.map +1 -1
- package/lib/commonjs/modules/location/locationManager.js +2 -1
- package/lib/commonjs/modules/location/locationManager.js.map +1 -1
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +2 -4
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
- package/lib/commonjs/modules/offline/offlineManager.js +1 -2
- package/lib/commonjs/modules/offline/offlineManager.js.map +1 -1
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/commonjs/modules/snapshot/snapshotManager.js.map +1 -1
- package/lib/commonjs/types/BaseProps.js +2 -0
- package/lib/commonjs/{utils/index.d.js.map → types/BaseProps.js.map} +1 -1
- package/lib/commonjs/types/OnPressEvent.js +2 -0
- package/lib/commonjs/{utils/geoUtils.d.js.map → types/OnPressEvent.js.map} +1 -1
- package/lib/commonjs/utils/Logger.js +7 -7
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/deprecation.js +2 -2
- package/lib/commonjs/utils/geoUtils.js +15 -23
- package/lib/commonjs/utils/geoUtils.js.map +1 -1
- package/lib/commonjs/utils/index.js +3 -6
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/nativeRef.js +27 -0
- package/lib/commonjs/utils/nativeRef.js.map +1 -0
- package/lib/module/components/AbstractLayer.js.map +1 -1
- package/lib/module/components/AbstractSource.js.map +1 -1
- package/lib/module/components/Atmosphere.js.map +1 -1
- package/lib/module/components/Camera.js +4 -4
- package/lib/module/components/Camera.js.map +1 -1
- package/lib/module/components/ImageSource.js +8 -25
- package/lib/module/components/ImageSource.js.map +1 -1
- package/lib/module/components/Images.js +1 -1
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/Light.js +29 -32
- package/lib/module/components/Light.js.map +1 -1
- package/lib/module/components/MapView.js +31 -290
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/components/NativeBridgeComponent.js.map +1 -1
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/RasterDemSource.js +4 -38
- package/lib/module/components/RasterDemSource.js.map +1 -1
- package/lib/module/components/RasterSource.js +3 -47
- package/lib/module/components/RasterSource.js.map +1 -1
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/Terrain.js.map +1 -1
- package/lib/module/components/VectorSource.js +15 -74
- package/lib/module/components/VectorSource.js.map +1 -1
- package/lib/module/modules/location/locationManager.js +1 -1
- package/lib/module/modules/location/locationManager.js.map +1 -1
- package/lib/module/modules/offline/OfflineCreatePackOptions.js +2 -4
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/module/modules/offline/OfflinePack.js.map +1 -1
- package/lib/module/modules/offline/offlineManager.js +0 -1
- package/lib/module/modules/offline/offlineManager.js.map +1 -1
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/module/modules/snapshot/snapshotManager.js.map +1 -1
- package/lib/module/types/BaseProps.js +2 -0
- package/lib/module/{utils/index.d.js.map → types/BaseProps.js.map} +1 -1
- package/lib/module/types/OnPressEvent.js +2 -0
- package/lib/module/{utils/geoUtils.d.js.map → types/OnPressEvent.js.map} +1 -1
- package/lib/module/utils/Logger.js +7 -7
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/deprecation.js +2 -2
- package/lib/module/utils/geoUtils.js +7 -18
- package/lib/module/utils/geoUtils.js.map +1 -1
- package/lib/module/utils/index.js +3 -5
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/nativeRef.js +21 -0
- package/lib/module/utils/nativeRef.js.map +1 -0
- package/lib/typescript/components/AbstractLayer.d.ts +2 -1
- package/lib/typescript/components/AbstractLayer.d.ts.map +1 -1
- package/lib/typescript/components/AbstractSource.d.ts +2 -1
- package/lib/typescript/components/AbstractSource.d.ts.map +1 -1
- package/lib/typescript/components/Atmosphere.d.ts +2 -1
- package/lib/typescript/components/Atmosphere.d.ts.map +1 -1
- package/lib/typescript/components/Camera.d.ts.map +1 -1
- package/lib/typescript/components/ImageSource.d.ts +32 -0
- package/lib/typescript/components/ImageSource.d.ts.map +1 -0
- package/lib/typescript/components/Images.d.ts +1 -1
- package/lib/typescript/components/Images.d.ts.map +1 -1
- package/lib/typescript/components/Light.d.ts +17 -0
- package/lib/typescript/components/Light.d.ts.map +1 -0
- package/lib/typescript/components/MapView.d.ts +472 -0
- package/lib/typescript/components/MapView.d.ts.map +1 -0
- package/lib/typescript/components/NativeBridgeComponent.d.ts +1 -1
- package/lib/typescript/components/NativeBridgeComponent.d.ts.map +1 -1
- package/lib/typescript/components/PointAnnotation.d.ts +3 -2
- package/lib/typescript/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/components/RasterDemSource.d.ts +46 -0
- package/lib/typescript/components/RasterDemSource.d.ts.map +1 -0
- package/lib/typescript/components/RasterSource.d.ts +59 -0
- package/lib/typescript/components/RasterSource.d.ts.map +1 -0
- package/lib/typescript/components/ShapeSource.d.ts +4 -14
- package/lib/typescript/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/components/Terrain.d.ts +2 -1
- package/lib/typescript/components/Terrain.d.ts.map +1 -1
- package/lib/typescript/components/VectorSource.d.ts +144 -0
- package/lib/typescript/components/VectorSource.d.ts.map +1 -0
- package/lib/typescript/modules/location/locationManager.d.ts +1 -1
- package/lib/typescript/modules/location/locationManager.d.ts.map +1 -1
- package/lib/typescript/modules/offline/OfflineCreatePackOptions.d.ts +22 -0
- package/lib/typescript/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -0
- package/lib/typescript/modules/offline/OfflinePack.d.ts +24 -0
- package/lib/typescript/modules/offline/OfflinePack.d.ts.map +1 -0
- package/lib/typescript/modules/offline/offlineManager.d.ts +219 -0
- package/lib/typescript/modules/offline/offlineManager.d.ts.map +1 -0
- package/lib/typescript/modules/snapshot/SnapshotOptions.d.ts +41 -0
- package/lib/typescript/modules/snapshot/SnapshotOptions.d.ts.map +1 -0
- package/lib/typescript/modules/snapshot/snapshotManager.d.ts +51 -0
- package/lib/typescript/modules/snapshot/snapshotManager.d.ts.map +1 -0
- package/lib/typescript/types/BaseProps.d.ts +4 -0
- package/lib/typescript/types/BaseProps.d.ts.map +1 -0
- package/lib/typescript/types/OnPressEvent.d.ts +12 -0
- package/lib/typescript/types/OnPressEvent.d.ts.map +1 -0
- package/lib/typescript/utils/Logger.d.ts +53 -0
- package/lib/typescript/utils/Logger.d.ts.map +1 -0
- package/lib/typescript/utils/deprecation.d.ts +4 -3
- package/lib/typescript/utils/deprecation.d.ts.map +1 -1
- package/lib/typescript/utils/geoUtils.d.ts +23 -0
- package/lib/typescript/utils/geoUtils.d.ts.map +1 -0
- package/lib/typescript/utils/index.d.ts +48 -0
- package/lib/typescript/utils/index.d.ts.map +1 -0
- package/lib/typescript/utils/nativeRef.d.ts +21 -0
- package/lib/typescript/utils/nativeRef.d.ts.map +1 -0
- package/package.json +3 -1
- package/javascript/components/ImageSource.js +0 -82
- package/javascript/components/Light.js +0 -47
- package/javascript/components/RasterDemSource.js +0 -106
- package/javascript/components/RasterSource.js +0 -124
- package/javascript/components/VectorSource.js +0 -203
- package/javascript/utils/geoUtils.d.ts +0 -10
- package/javascript/utils/geoUtils.js +0 -73
- package/javascript/utils/index.d.ts +0 -27
- package/lib/commonjs/utils/geoUtils.d.js +0 -2
- package/lib/commonjs/utils/index.d.js +0 -2
- package/lib/module/utils/geoUtils.d.js +0 -2
- package/lib/module/utils/index.d.js +0 -2
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NativeMethods, NativeSyntheticEvent } from 'react-native';
|
|
3
|
+
import { OnPressEvent } from '../types/OnPressEvent';
|
|
3
4
|
import AbstractSource from './AbstractSource';
|
|
4
5
|
export declare const NATIVE_MODULE_NAME = "RCTMGLShapeSource";
|
|
5
|
-
export declare type OnPressEvent = {
|
|
6
|
-
features: Array<GeoJSON.Feature>;
|
|
7
|
-
coordinates: {
|
|
8
|
-
latitude: number;
|
|
9
|
-
longitude: number;
|
|
10
|
-
};
|
|
11
|
-
point: {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
6
|
export declare type Props = {
|
|
17
7
|
/**
|
|
18
8
|
* A string that uniquely identifies the source.
|
|
@@ -125,7 +115,7 @@ declare const ShapeSource_base: {
|
|
|
125
115
|
[key: string]: string;
|
|
126
116
|
}>>): void;
|
|
127
117
|
_runPendingNativeCommands<RefType>(nativeRef: RefType): Promise<void>;
|
|
128
|
-
_runNativeCommand<RefType_1, ReturnType_2 = import("../utils").NativeArg>(methodName: string, nativeRef: RefType_1, args?: import("../utils").NativeArg[]): Promise<ReturnType_2>;
|
|
118
|
+
_runNativeCommand<RefType_1, ReturnType_2 = import("../utils").NativeArg>(methodName: string, nativeRef: RefType_1 | undefined, args?: import("../utils").NativeArg[]): Promise<ReturnType_2>;
|
|
129
119
|
context: unknown;
|
|
130
120
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: object) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
131
121
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -149,8 +139,8 @@ declare const ShapeSource_base: {
|
|
|
149
139
|
UNSAFE_componentWillUpdate?(nextProps: object, nextState: Readonly<{}>, nextContext: any): void;
|
|
150
140
|
};
|
|
151
141
|
} & {
|
|
152
|
-
new (props: Props | Readonly<Props>): AbstractSource<Props, NativeProps>;
|
|
153
|
-
new (props: Props, context: any): AbstractSource<Props, NativeProps>;
|
|
142
|
+
new (props: (Props & import("../types/BaseProps").BaseProps) | Readonly<Props & import("../types/BaseProps").BaseProps>): AbstractSource<Props, NativeProps>;
|
|
143
|
+
new (props: Props & import("../types/BaseProps").BaseProps, context: any): AbstractSource<Props, NativeProps>;
|
|
154
144
|
contextType?: React.Context<any> | undefined;
|
|
155
145
|
};
|
|
156
146
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeSource.d.ts","sourceRoot":"","sources":["../../../javascript/components/ShapeSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,aAAa,EAEb,oBAAoB,EAErB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ShapeSource.d.ts","sourceRoot":"","sources":["../../../javascript/components/ShapeSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,aAAa,EAEb,oBAAoB,EAErB,MAAM,cAAc,CAAC;AAUtB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAK9C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAMtD,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EACF,OAAO,CAAC,kBAAkB,GAC1B,OAAO,CAAC,OAAO,GACf,OAAO,CAAC,iBAAiB,GACzB,OAAO,CAAC,QAAQ,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACrD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF;;;GAGG;AACH,qBAAa,WAAY,SAAQ,gBAGhC;IACC,MAAM,CAAC,iBAAiB,SAAY;IAEpC,MAAM,CAAC,YAAY;;MAEjB;gBAEU,KAAK,EAAE,KAAK;IAIxB,aAAa,CACX,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC;IAMnE;;;;;;;;;OASG;IACG,QAAQ,CAAC,MAAM,GAAE,KAAK,CAAC,MAAM,CAAM;IAczC;;;;;;;;OAQG;IACG,uBAAuB,CAC3B,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAChC,OAAO,CAAC,MAAM,CAAC;IAqBlB;;;;;;;;;;OAUG;IACG,gBAAgB,CACpB,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EACjC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM;IAgChB;;;;;;;;OAQG;IACG,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO;IA+B1D,cAAc,CAAC,KAAK,EAAE,WAAW;IAWjC,SAAS;IAOT,OAAO,CACL,KAAK,EAAE,oBAAoB,CAAC;QAC1B,OAAO,EAAE,YAAY,CAAC;KACvB,CAAC;IA+BJ,MAAM;CA+BP;AAED,aAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TerrainLayerStyleProps, Value } from '../utils/MapboxStyles';
|
|
3
|
+
import type { BaseProps } from '../types/BaseProps';
|
|
3
4
|
export declare const NATIVE_MODULE_NAME = "RCTMGLTerrain";
|
|
4
|
-
declare type Props = {
|
|
5
|
+
declare type Props = BaseProps & {
|
|
5
6
|
/**
|
|
6
7
|
* Name of a source of raster_dem type to be used for terrain elevation.
|
|
7
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Terrain.d.ts","sourceRoot":"","sources":["../../../javascript/components/Terrain.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Terrain.d.ts","sourceRoot":"","sources":["../../../javascript/components/Terrain.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,aAAK,KAAK,GAAG,SAAS,GAAG;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEvC;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,OAAO,oCAAgB,KAAK,iBAoBvC,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NativeMethods, NativeSyntheticEvent } from 'react-native';
|
|
3
|
+
import { OnPressEvent } from '../types/OnPressEvent';
|
|
4
|
+
import AbstractSource from './AbstractSource';
|
|
5
|
+
export declare const NATIVE_MODULE_NAME = "RCTMGLVectorSource";
|
|
6
|
+
interface Props {
|
|
7
|
+
/**
|
|
8
|
+
* A string that uniquely identifies the source.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* A URL to a TileJSON configuration file describing the source’s contents and other metadata.
|
|
13
|
+
*/
|
|
14
|
+
url?: string;
|
|
15
|
+
/**
|
|
16
|
+
* An array of tile URL templates. If multiple endpoints are specified, clients may use any combination of endpoints.
|
|
17
|
+
* Example: https://example.com/vector-tiles/{z}/{x}/{y}.pbf
|
|
18
|
+
*/
|
|
19
|
+
tileUrlTemplates?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* An unsigned integer that specifies the minimum zoom level at which to display tiles from the source.
|
|
22
|
+
* The value should be between 0 and 22, inclusive, and less than
|
|
23
|
+
* maxZoomLevel, if specified. The default value for this option is 0.
|
|
24
|
+
*/
|
|
25
|
+
minZoomLevel?: number;
|
|
26
|
+
/**
|
|
27
|
+
* An unsigned integer that specifies the maximum zoom level at which to display tiles from the source.
|
|
28
|
+
* The value should be between 0 and 22, inclusive, and less than
|
|
29
|
+
* minZoomLevel, if specified. The default value for this option is 22.
|
|
30
|
+
*/
|
|
31
|
+
maxZoomLevel?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Influences the y direction of the tile coordinates. (tms inverts y axis)
|
|
34
|
+
*/
|
|
35
|
+
tms?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* An HTML or literal text string defining the buttons to be displayed in an action sheet when the
|
|
38
|
+
* source is part of a map view’s style and the map view’s attribution button is pressed.
|
|
39
|
+
*/
|
|
40
|
+
attribution?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Source press listener, gets called when a user presses one of the children layers only
|
|
43
|
+
* if that layer has a higher z-index than another source layers
|
|
44
|
+
*
|
|
45
|
+
* @param {Object} event
|
|
46
|
+
* @param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)
|
|
47
|
+
* @param {Object} event.coordinates - the coordinates of the click
|
|
48
|
+
* @param {Object} event.point - the point of the click
|
|
49
|
+
*/
|
|
50
|
+
onPress?: (event: OnPressEvent) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Overrides the default touch hitbox(44x44 pixels) for the source layers
|
|
53
|
+
*/
|
|
54
|
+
hitbox?: {
|
|
55
|
+
/**
|
|
56
|
+
* `width` of hitbox
|
|
57
|
+
*/
|
|
58
|
+
width: number;
|
|
59
|
+
/**
|
|
60
|
+
* `height` of hitbox
|
|
61
|
+
*/
|
|
62
|
+
height: number;
|
|
63
|
+
};
|
|
64
|
+
children: React.ReactElement | React.ReactElement[];
|
|
65
|
+
}
|
|
66
|
+
declare type NativeProps = Props;
|
|
67
|
+
declare const VectorSource_base: {
|
|
68
|
+
new (...args: any[]): {
|
|
69
|
+
_nativeModuleName: string;
|
|
70
|
+
_onAndroidCallback: (e: any) => void;
|
|
71
|
+
_callbackMap: Map<string, any>;
|
|
72
|
+
_preRefMapMethodQueue: {
|
|
73
|
+
method: {
|
|
74
|
+
name: string; /**
|
|
75
|
+
* A string that uniquely identifies the source.
|
|
76
|
+
*/
|
|
77
|
+
args: import("../utils").NativeArg[];
|
|
78
|
+
};
|
|
79
|
+
resolver: (value: import("../utils").NativeArg) => void;
|
|
80
|
+
}[];
|
|
81
|
+
_addAddAndroidCallback<ReturnType_1>(id: string, resolve: (value: ReturnType_1) => void, reject: (error: Error) => void): void;
|
|
82
|
+
_removeAndroidCallback(id: string): void;
|
|
83
|
+
_onAndroidCallbackO(e: React.SyntheticEvent<Element, import("./NativeBridgeComponent").RNMBEvent<{
|
|
84
|
+
[key: string]: string;
|
|
85
|
+
}>>): void;
|
|
86
|
+
_runPendingNativeCommands<RefType>(nativeRef: RefType): Promise<void>;
|
|
87
|
+
_runNativeCommand<RefType_1, ReturnType_2 = import("../utils").NativeArg>(methodName: string, nativeRef: RefType_1 | undefined, args?: import("../utils").NativeArg[]): Promise<ReturnType_2>;
|
|
88
|
+
context: unknown;
|
|
89
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: object) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
90
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
91
|
+
render(): React.ReactNode;
|
|
92
|
+
readonly props: object;
|
|
93
|
+
state: Readonly<{}>;
|
|
94
|
+
refs: {
|
|
95
|
+
[key: string]: React.ReactInstance;
|
|
96
|
+
};
|
|
97
|
+
componentDidMount?(): void;
|
|
98
|
+
shouldComponentUpdate?(nextProps: object, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
99
|
+
componentWillUnmount?(): void;
|
|
100
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
101
|
+
getSnapshotBeforeUpdate?(prevProps: object, prevState: Readonly<{}>): any;
|
|
102
|
+
componentDidUpdate?(prevProps: object, prevState: Readonly<{}>, snapshot?: any): void;
|
|
103
|
+
componentWillMount?(): void;
|
|
104
|
+
UNSAFE_componentWillMount?(): void;
|
|
105
|
+
componentWillReceiveProps?(nextProps: object, nextContext: any): void;
|
|
106
|
+
UNSAFE_componentWillReceiveProps?(nextProps: object, nextContext: any): void;
|
|
107
|
+
componentWillUpdate?(nextProps: object, nextState: Readonly<{}>, nextContext: any): void;
|
|
108
|
+
UNSAFE_componentWillUpdate?(nextProps: object, nextState: Readonly<{}>, nextContext: any): void;
|
|
109
|
+
};
|
|
110
|
+
} & {
|
|
111
|
+
new (props: (Props & import("../types/BaseProps").BaseProps) | Readonly<Props & import("../types/BaseProps").BaseProps>): AbstractSource<Props, Props>;
|
|
112
|
+
new (props: Props & import("../types/BaseProps").BaseProps, context: any): AbstractSource<Props, Props>;
|
|
113
|
+
contextType?: React.Context<any> | undefined;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* VectorSource is a map content source that supplies tiled vector data in Mapbox Vector Tile format to be shown on the map.
|
|
117
|
+
* The location of and metadata about the tiles are defined either by an option dictionary or by an external file that conforms to the TileJSON specification.
|
|
118
|
+
*/
|
|
119
|
+
declare class VectorSource extends VectorSource_base {
|
|
120
|
+
static defaultProps: {
|
|
121
|
+
id: any;
|
|
122
|
+
};
|
|
123
|
+
constructor(props: Props);
|
|
124
|
+
_setNativeRef(nativeRef: (React.Component<NativeProps> & Readonly<NativeMethods>) | null): void;
|
|
125
|
+
/**
|
|
126
|
+
* Returns all features that match the query parameters regardless of whether or not the feature is
|
|
127
|
+
* currently rendered on the map. The domain of the query includes all currently-loaded vector tiles
|
|
128
|
+
* and GeoJSON source tiles. This function does not check tiles outside of the visible viewport.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* vectorSource.features(['id1', 'id2'])
|
|
132
|
+
*
|
|
133
|
+
* @param {Array=} layerIDs - 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.
|
|
134
|
+
* @param {Array=} filter - an optional filter statement to filter the returned Features.
|
|
135
|
+
* @return {FeatureCollection}
|
|
136
|
+
*/
|
|
137
|
+
features(layerIDs?: never[], filter?: never[]): Promise<any>;
|
|
138
|
+
onPress(event: NativeSyntheticEvent<{
|
|
139
|
+
payload: OnPressEvent;
|
|
140
|
+
}>): void;
|
|
141
|
+
render(): JSX.Element;
|
|
142
|
+
}
|
|
143
|
+
export default VectorSource;
|
|
144
|
+
//# sourceMappingURL=VectorSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VectorSource.d.ts","sourceRoot":"","sources":["../../../javascript/components/VectorSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,aAAa,EAEb,oBAAoB,EAErB,MAAM,cAAc,CAAC;AAKtB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAK9C,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,UAAU,KAAK;IACb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACrD;AAGD,aAAK,WAAW,GAAG,KAAK,CAAC;;;;;;;;8BAtEvB;;mBAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEL;;;GAGG;AACH,cAAM,YAAa,SAAQ,iBAG1B;IACC,MAAM,CAAC,YAAY;;MAEjB;gBAEU,KAAK,EAAE,KAAK;IAIxB,aAAa,CACX,SAAS,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,IAAI;IAS5E;;;;;;;;;;;OAWG;IACG,QAAQ,CAAC,QAAQ,UAAK,EAAE,MAAM,UAAK;IAczC,OAAO,CACL,KAAK,EAAE,oBAAoB,CAAC;QAC1B,OAAO,EAAE,YAAY,CAAC;KACvB,CAAC;IAiCJ,MAAM;CAuBP;AAKD,eAAe,YAAY,CAAC"}
|
|
@@ -47,7 +47,7 @@ interface Coordinates {
|
|
|
47
47
|
/**
|
|
48
48
|
* LocationManager is a singleton, see `locationManager`
|
|
49
49
|
*/
|
|
50
|
-
declare class LocationManager {
|
|
50
|
+
export declare class LocationManager {
|
|
51
51
|
_listeners: ((location: Location) => void)[];
|
|
52
52
|
_lastKnownLocation: Location | null;
|
|
53
53
|
_isListening: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationManager.d.ts","sourceRoot":"","sources":["../../../../javascript/modules/location/locationManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EAElB,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAKtB,eAAO,MAAM,0BAA0B,oBAEtC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,UAAU,WAAW;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"locationManager.d.ts","sourceRoot":"","sources":["../../../../javascript/modules/location/locationManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EAElB,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAKtB,eAAO,MAAM,0BAA0B,oBAEtC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,UAAU,WAAW;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,eAAe;IAC1B,UAAU,EAAE,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC;IAC7C,kBAAkB,EAAE,QAAQ,GAAG,IAAI,CAAC;IACpC,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,YAAY,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACzC,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;;IAgBpB,oBAAoB;IAuB1B,WAAW,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI;IAalD,cAAc,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI;IAOrD,kBAAkB;IAKlB,qBAAqB,CAAC,QAAQ,EAAE,cAAc;IAY9C,KAAK,CAAC,YAAY,SAAK;IAwBvB,IAAI;IAUJ,kBAAkB,CAAC,eAAe,EAAE,MAAM;IAK1C,oBAAoB,CAAC,iBAAiB,EAAE,OAAO;IAK/C,SAAS,CAAC,QAAQ,EAAE,QAAQ;IAM5B;;OAEG;IACH,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAI5D;;;;;;;;;OASG;IACH,wBAAwB,CAAC,aAAa,EAAE,MAAM;CAG/C;;AAED,wBAAqC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare type OfflineCreatePackOptionsArgs = {
|
|
2
|
+
name: string;
|
|
3
|
+
styleURL: string;
|
|
4
|
+
bounds: [GeoJSON.Position, GeoJSON.Position];
|
|
5
|
+
minZoom?: number;
|
|
6
|
+
maxZoom?: number;
|
|
7
|
+
metadata?: Record<string, unknown>;
|
|
8
|
+
};
|
|
9
|
+
declare class OfflineCreatePackOptions {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly styleURL: string;
|
|
12
|
+
readonly bounds: string;
|
|
13
|
+
readonly minZoom: number | undefined;
|
|
14
|
+
readonly maxZoom: number | undefined;
|
|
15
|
+
readonly metadata: string | undefined;
|
|
16
|
+
constructor(options: OfflineCreatePackOptionsArgs);
|
|
17
|
+
_assert(options: OfflineCreatePackOptionsArgs): void;
|
|
18
|
+
_makeLatLngBounds(bounds: [GeoJSON.Position, GeoJSON.Position]): string;
|
|
19
|
+
_makeMetadata(metadata: Record<string, unknown> | undefined): string;
|
|
20
|
+
}
|
|
21
|
+
export default OfflineCreatePackOptions;
|
|
22
|
+
//# sourceMappingURL=OfflineCreatePackOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OfflineCreatePackOptions.d.ts","sourceRoot":"","sources":["../../../../javascript/modules/offline/OfflineCreatePackOptions.ts"],"names":[],"mappings":"AAGA,oBAAY,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,cAAM,wBAAwB;IAC5B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,SAAgB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,SAAgB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEjC,OAAO,EAAE,4BAA4B;IAWjD,OAAO,CAAC,OAAO,EAAE,4BAA4B;IAgB7C,iBAAiB,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,MAAM;IAKvE,aAAa,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;CAM5D;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import OfflineCreatePackOptions from './OfflineCreatePackOptions';
|
|
2
|
+
declare type OfflinePackStatus = {
|
|
3
|
+
name: string;
|
|
4
|
+
state: number;
|
|
5
|
+
percentage: number;
|
|
6
|
+
completedResourceCount: number;
|
|
7
|
+
completedResourceSize: number;
|
|
8
|
+
completedTileSize: number;
|
|
9
|
+
completedTileCount: number;
|
|
10
|
+
requiredResourceCount: number;
|
|
11
|
+
};
|
|
12
|
+
declare class OfflinePack {
|
|
13
|
+
private pack;
|
|
14
|
+
private _metadata;
|
|
15
|
+
constructor(pack: OfflineCreatePackOptions);
|
|
16
|
+
get name(): any;
|
|
17
|
+
get bounds(): string;
|
|
18
|
+
get metadata(): any;
|
|
19
|
+
status(): Promise<OfflinePackStatus>;
|
|
20
|
+
resume(): Promise<void>;
|
|
21
|
+
pause(): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export default OfflinePack;
|
|
24
|
+
//# sourceMappingURL=OfflinePack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OfflinePack.d.ts","sourceRoot":"","sources":["../../../../javascript/modules/offline/OfflinePack.ts"],"names":[],"mappings":"AAEA,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAIlE,aAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,cAAM,WAAW;IACf,OAAO,CAAC,IAAI,CAA2B;IACvC,OAAO,CAAC,SAAS,CAAM;gBACX,IAAI,EAAE,wBAAwB;IAK1C,IAAI,IAAI,QAGP;IAED,IAAI,MAAM,WAET;IAED,IAAI,QAAQ,QAKX;IAED,MAAM,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAIpC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAGvB;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { NativeEventEmitter, EventSubscription } from 'react-native';
|
|
2
|
+
import { OfflineCreatePackOptionsArgs } from './OfflineCreatePackOptions';
|
|
3
|
+
import OfflinePack from './OfflinePack';
|
|
4
|
+
export declare const OfflineModuleEventEmitter: NativeEventEmitter;
|
|
5
|
+
export declare type OfflineProgressStatus = {
|
|
6
|
+
name: string;
|
|
7
|
+
state: number;
|
|
8
|
+
percentage: number;
|
|
9
|
+
completedResourceSize: number;
|
|
10
|
+
completedTileCount: number;
|
|
11
|
+
completedResourceCount: number;
|
|
12
|
+
requiredResourceCount: number;
|
|
13
|
+
completedTileSize: number;
|
|
14
|
+
};
|
|
15
|
+
export declare type OfflinePackError = {
|
|
16
|
+
name: string;
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
declare type ErrorEvent = {
|
|
20
|
+
payload: OfflinePackError;
|
|
21
|
+
};
|
|
22
|
+
declare type ProgressEvent = {
|
|
23
|
+
payload: OfflineProgressStatus;
|
|
24
|
+
};
|
|
25
|
+
declare type ProgressListener = (pack: OfflinePack, status: OfflineProgressStatus) => void;
|
|
26
|
+
declare type ErrorListener = (pack: OfflinePack, err: OfflinePackError) => void;
|
|
27
|
+
/**
|
|
28
|
+
* OfflineManager implements a singleton (shared object) that manages offline packs.
|
|
29
|
+
* All of this class’s instance methods are asynchronous, reflecting the fact that offline resources are stored in a database.
|
|
30
|
+
* The shared object maintains a canonical collection of offline packs.
|
|
31
|
+
*/
|
|
32
|
+
declare class OfflineManager {
|
|
33
|
+
private _hasInitialized;
|
|
34
|
+
private _offlinePacks;
|
|
35
|
+
private _progressListeners;
|
|
36
|
+
private _errorListeners;
|
|
37
|
+
subscriptionProgress: EventSubscription | null;
|
|
38
|
+
subscriptionError: EventSubscription | null;
|
|
39
|
+
constructor();
|
|
40
|
+
/**
|
|
41
|
+
* Creates and registers an offline pack that downloads the resources needed to use the given region offline.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
*
|
|
45
|
+
* const progressListener = (offlineRegion, status) => console.log(offlineRegion, status);
|
|
46
|
+
* const errorListener = (offlineRegion, err) => console.log(offlineRegion, err);
|
|
47
|
+
*
|
|
48
|
+
* await MapboxGL.offlineManager.createPack({
|
|
49
|
+
* name: 'offlinePack',
|
|
50
|
+
* styleURL: 'mapbox://...',
|
|
51
|
+
* minZoom: 14,
|
|
52
|
+
* maxZoom: 20,
|
|
53
|
+
* bounds: [[neLng, neLat], [swLng, swLat]]
|
|
54
|
+
* }, progressListener, errorListener)
|
|
55
|
+
*
|
|
56
|
+
* @param {OfflineCreatePackOptions} options Create options for a offline pack that specifices zoom levels, style url, and the region to download.
|
|
57
|
+
* @param {Callback=} progressListener Callback that listens for status events while downloading the offline resource.
|
|
58
|
+
* @param {Callback=} errorListener Callback that listens for status events while downloading the offline resource.
|
|
59
|
+
* @return {void}
|
|
60
|
+
*/
|
|
61
|
+
createPack(options: OfflineCreatePackOptionsArgs, progressListener: ProgressListener, errorListener?: ErrorListener): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Invalidates the specified offline pack. This method checks that the tiles in the specified offline pack match those from the server. Local tiles that do not match the latest version on the server are updated.
|
|
64
|
+
*
|
|
65
|
+
* This is more efficient than deleting the offline pack and downloading it again. If the data stored locally matches that on the server, new data will not be downloaded.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await MapboxGL.offlineManager.invalidatePack('packName')
|
|
69
|
+
*
|
|
70
|
+
* @param {String} name Name of the offline pack.
|
|
71
|
+
* @return {void}
|
|
72
|
+
*/
|
|
73
|
+
invalidatePack(name: string): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Unregisters the given offline pack and allows resources that are no longer required by any remaining packs to be potentially freed.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* await MapboxGL.offlineManager.deletePack('packName')
|
|
79
|
+
*
|
|
80
|
+
* @param {String} name Name of the offline pack.
|
|
81
|
+
* @return {void}
|
|
82
|
+
*/
|
|
83
|
+
deletePack(name: string): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Forces a revalidation of the tiles in the ambient cache and downloads a fresh version of the tiles from the tile server.
|
|
86
|
+
* This is the recommend method for clearing the cache.
|
|
87
|
+
* This is the most efficient method because tiles in the ambient cache are re-downloaded to remove outdated data from a device.
|
|
88
|
+
* It does not erase resources from the ambient cache or delete the database, which can be computationally expensive operations that may carry unintended side effects.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* await MapboxGL.offlineManager.invalidateAmbientCache();
|
|
92
|
+
*
|
|
93
|
+
* @return {void}
|
|
94
|
+
*/
|
|
95
|
+
invalidateAmbientCache(): Promise<void>;
|
|
96
|
+
/**
|
|
97
|
+
* Erases resources from the ambient cache.
|
|
98
|
+
* This method clears the cache and decreases the amount of space that map resources take up on the device.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* await MapboxGL.offlineManager.clearAmbientCache();
|
|
102
|
+
*
|
|
103
|
+
* @return {void}
|
|
104
|
+
*/
|
|
105
|
+
clearAmbientCache(): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Migrates the offline cache from pre-v10 SDKs to the new v10 cache location
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* await MapboxGL.offlineManager.migrateOfflineCache()
|
|
111
|
+
*
|
|
112
|
+
* @return {void}
|
|
113
|
+
*/
|
|
114
|
+
migrateOfflineCache(): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the maximum size of the ambient cache in bytes. Disables the ambient cache if set to 0.
|
|
117
|
+
* This method may be computationally expensive because it will erase resources from the ambient cache if its size is decreased.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* await MapboxGL.offlineManager.setMaximumAmbientCacheSize(5000000);
|
|
121
|
+
*
|
|
122
|
+
* @param {Number} size Size of ambient cache.
|
|
123
|
+
* @return {void}
|
|
124
|
+
*/
|
|
125
|
+
setMaximumAmbientCacheSize(size: number): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Deletes the existing database, which includes both the ambient cache and offline packs, then reinitializes it.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await MapboxGL.offlineManager.resetDatabase();
|
|
131
|
+
*
|
|
132
|
+
* @return {void}
|
|
133
|
+
*/
|
|
134
|
+
resetDatabase(): Promise<void>;
|
|
135
|
+
/**
|
|
136
|
+
* Retrieves all the current offline packs that are stored in the database.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* const offlinePacks = await MapboxGL.offlineManager.getPacks();
|
|
140
|
+
*
|
|
141
|
+
* @return {Array<OfflinePack>}
|
|
142
|
+
*/
|
|
143
|
+
getPacks(): Promise<OfflinePack[]>;
|
|
144
|
+
/**
|
|
145
|
+
* Retrieves an offline pack that is stored in the database by name.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* const offlinePack = await MapboxGL.offlineManager.getPack();
|
|
149
|
+
*
|
|
150
|
+
* @param {String} name Name of the offline pack.
|
|
151
|
+
* @return {OfflinePack}
|
|
152
|
+
*/
|
|
153
|
+
getPack(name: string): Promise<OfflinePack | undefined>;
|
|
154
|
+
/**
|
|
155
|
+
* Sideloads offline db
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* await MapboxGL.offlineManager.mergeOfflineRegions(path);
|
|
159
|
+
*
|
|
160
|
+
* @param {String} path Path to offline tile db on file system.
|
|
161
|
+
* @return {void}
|
|
162
|
+
*/
|
|
163
|
+
mergeOfflineRegions(path: string): Promise<void>;
|
|
164
|
+
/**
|
|
165
|
+
* Sets the maximum number of Mapbox-hosted tiles that may be downloaded and stored on the current device.
|
|
166
|
+
* The Mapbox Terms of Service prohibit changing or bypassing this limit without permission from Mapbox.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* MapboxGL.offlineManager.setTileCountLimit(1000);
|
|
170
|
+
*
|
|
171
|
+
* @param {Number} limit Map tile limit count.
|
|
172
|
+
* @return {void}
|
|
173
|
+
*/
|
|
174
|
+
setTileCountLimit(limit: number): void;
|
|
175
|
+
/**
|
|
176
|
+
* Sets the period at which download status events will be sent over the React Native bridge.
|
|
177
|
+
* The default is 300ms.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* MapboxGL.offlineManager.setProgressEventThrottle(500);
|
|
181
|
+
*
|
|
182
|
+
* @param {Number} throttleValue event throttle value in ms.
|
|
183
|
+
* @return {void}
|
|
184
|
+
*/
|
|
185
|
+
setProgressEventThrottle(throttleValue: number): void;
|
|
186
|
+
/**
|
|
187
|
+
* Subscribe to download status/error events for the requested offline pack.
|
|
188
|
+
* Note that createPack calls this internally if listeners are provided.
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* const progressListener = (offlinePack, status) => console.log(offlinePack, status)
|
|
192
|
+
* const errorListener = (offlinePack, err) => console.log(offlinePack, err)
|
|
193
|
+
* MapboxGL.offlineManager.subscribe('packName', progressListener, errorListener)
|
|
194
|
+
*
|
|
195
|
+
* @param {String} packName Name of the offline pack.
|
|
196
|
+
* @param {Callback} progressListener Callback that listens for status events while downloading the offline resource.
|
|
197
|
+
* @param {Callback} errorListener Callback that listens for status events while downloading the offline resource.
|
|
198
|
+
* @return {void}
|
|
199
|
+
*/
|
|
200
|
+
subscribe(packName: string, progressListener: ProgressListener, errorListener?: ErrorListener): Promise<void>;
|
|
201
|
+
/**
|
|
202
|
+
* Unsubscribes any listeners associated with the offline pack.
|
|
203
|
+
* It's a good idea to call this on componentWillUnmount.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* MapboxGL.offlineManager.unsubscribe('packName')
|
|
207
|
+
*
|
|
208
|
+
* @param {String} packName Name of the offline pack.
|
|
209
|
+
* @return {void}
|
|
210
|
+
*/
|
|
211
|
+
unsubscribe(packName: string): void;
|
|
212
|
+
_initialize(): Promise<boolean>;
|
|
213
|
+
_onProgress(e: ProgressEvent): void;
|
|
214
|
+
_onError(e: ErrorEvent): void;
|
|
215
|
+
_hasListeners(name: string, listenerMap: Record<string, ProgressListener> | Record<string, ErrorListener>): boolean;
|
|
216
|
+
}
|
|
217
|
+
declare const offlineManager: OfflineManager;
|
|
218
|
+
export default offlineManager;
|
|
219
|
+
//# sourceMappingURL=offlineManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offlineManager.d.ts","sourceRoot":"","sources":["../../../../javascript/modules/offline/offlineManager.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare type SnapshotOptionsArgs = {
|
|
2
|
+
centerCoordinate?: GeoJSON.Position;
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
zoomLevel?: number;
|
|
6
|
+
pitch?: number;
|
|
7
|
+
heading?: number;
|
|
8
|
+
styleURL?: string;
|
|
9
|
+
writeToDisk?: boolean;
|
|
10
|
+
bounds?: number[][];
|
|
11
|
+
withLogo?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare class SnapshotOptions {
|
|
14
|
+
readonly styleURL: string;
|
|
15
|
+
readonly heading: number;
|
|
16
|
+
readonly pitch: number;
|
|
17
|
+
readonly zoomLevel: number;
|
|
18
|
+
readonly width: number;
|
|
19
|
+
readonly height: number;
|
|
20
|
+
readonly writeToDisk: boolean;
|
|
21
|
+
readonly withLogo: boolean;
|
|
22
|
+
readonly centerCoordinate: string | undefined;
|
|
23
|
+
readonly bounds: string | undefined;
|
|
24
|
+
constructor(options?: SnapshotOptionsArgs);
|
|
25
|
+
toJSON(): {
|
|
26
|
+
styleURL: string;
|
|
27
|
+
heading: number;
|
|
28
|
+
pitch: number;
|
|
29
|
+
zoomLevel: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
writeToDisk: boolean;
|
|
33
|
+
centerCoordinate: string | undefined;
|
|
34
|
+
bounds: string | undefined;
|
|
35
|
+
withLogo: boolean;
|
|
36
|
+
};
|
|
37
|
+
_createCenterCoordPoint(centerCoordinate: number[]): string;
|
|
38
|
+
_createBoundsCollection(bounds: number[][]): string;
|
|
39
|
+
}
|
|
40
|
+
export default SnapshotOptions;
|
|
41
|
+
//# sourceMappingURL=SnapshotOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnapshotOptions.d.ts","sourceRoot":"","sources":["../../../../javascript/modules/snapshot/SnapshotOptions.ts"],"names":[],"mappings":"AAOA,oBAAY,mBAAmB,GAAG;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,cAAM,eAAe;IACnB,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,OAAO,EAAE,MAAM,CAAC;IAChC,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,WAAW,EAAE,OAAO,CAAC;IACrC,SAAgB,QAAQ,EAAE,OAAO,CAAC;IAClC,SAAgB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrD,SAAgB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;gBAE/B,OAAO,GAAE,mBAAwB;IA2B7C,MAAM;;;;;;;;;;;;IAeN,uBAAuB,CAAC,gBAAgB,EAAE,MAAM,EAAE;IAKlD,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;CAS3C;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The snapshotManager generates static raster images of the map.
|
|
3
|
+
* Each snapshot image depicts a portion of a map defined by an SnapshotOptions object you provide.
|
|
4
|
+
* The snapshotter generates the snapshot asynchronous.
|
|
5
|
+
*/
|
|
6
|
+
declare class SnapshotManager {
|
|
7
|
+
/**
|
|
8
|
+
* Takes a snapshot of the base map using the provided Snapshot options. NOTE pitch, heading, zoomLevel only works when centerCoordinate is set!
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* // creates a temp file png of base map
|
|
13
|
+
* const uri = await MapboxGL.snapshotManager.takeSnap({
|
|
14
|
+
* centerCoordinate: [-74.126410, 40.797968],
|
|
15
|
+
* width: width,
|
|
16
|
+
* height: height,
|
|
17
|
+
* zoomLevel: 12,
|
|
18
|
+
* pitch: 30,
|
|
19
|
+
* heading: 20,
|
|
20
|
+
* styleURL: MapboxGL.StyleURL.Dark,
|
|
21
|
+
* writeToDisk: true, // Create a temporary file
|
|
22
|
+
* });
|
|
23
|
+
*
|
|
24
|
+
* // creates base64 png of base map without logo
|
|
25
|
+
* const uri = await MapboxGL.snapshotManager.takeSnap({
|
|
26
|
+
* centerCoordinate: [-74.126410, 40.797968],
|
|
27
|
+
* width: width,
|
|
28
|
+
* height: height,
|
|
29
|
+
* zoomLevel: 12,
|
|
30
|
+
* pitch: 30,
|
|
31
|
+
* heading: 20,
|
|
32
|
+
* styleURL: MapboxGL.StyleURL.Dark,
|
|
33
|
+
* withLogo: false, // Disable Mapbox logo (Android only)
|
|
34
|
+
* });
|
|
35
|
+
*
|
|
36
|
+
* // creates snapshot with bounds
|
|
37
|
+
* const uri = await MapboxGL.snapshotManager.takeSnap({
|
|
38
|
+
* bounds: [[-74.126410, 40.797968], [-74.143727, 40.772177]],
|
|
39
|
+
* width: width,
|
|
40
|
+
* height: height,
|
|
41
|
+
* styleURL: MapboxGL.StyleURL.Dark,
|
|
42
|
+
* });
|
|
43
|
+
*
|
|
44
|
+
* @param {SnapshotOptions} options Snapshot options for create a static image of the base map
|
|
45
|
+
* @return {Promise}
|
|
46
|
+
*/
|
|
47
|
+
takeSnap(options?: {}): Promise<string>;
|
|
48
|
+
}
|
|
49
|
+
declare const snapshotManager: SnapshotManager;
|
|
50
|
+
export default snapshotManager;
|
|
51
|
+
//# sourceMappingURL=snapshotManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshotManager.d.ts","sourceRoot":"","sources":["../../../../javascript/modules/snapshot/snapshotManager.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,cAAM,eAAe;IACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACG,QAAQ,CAAC,OAAO,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;CAM9C;AAED,QAAA,MAAM,eAAe,iBAAwB,CAAC;AAC9C,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseProps.d.ts","sourceRoot":"","sources":["../../../javascript/types/BaseProps.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS,GAAG;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OnPressEvent.d.ts","sourceRoot":"","sources":["../../../javascript/types/OnPressEvent.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACzB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,KAAK,EAAE;QACL,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;CACH,CAAC"}
|