@maplibre/maplibre-react-native 10.0.0-beta.1 → 10.0.0-beta.2

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.
Files changed (30) hide show
  1. package/README.md +34 -35
  2. package/lib/commonjs/modules/offline/offlineManager.js +1 -1
  3. package/lib/module/modules/offline/offlineManager.js +1 -1
  4. package/lib/typescript/commonjs/jest.config.d.ts +2 -0
  5. package/lib/typescript/commonjs/jest.config.d.ts.map +1 -0
  6. package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts +1 -1
  7. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +1 -0
  8. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
  9. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -0
  10. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
  11. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +1 -0
  12. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
  13. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +1 -0
  14. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
  15. package/lib/typescript/module/jest.config.d.ts +2 -0
  16. package/lib/typescript/module/jest.config.d.ts.map +1 -0
  17. package/lib/typescript/module/src/modules/offline/offlineManager.d.ts +1 -1
  18. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +1 -0
  19. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
  20. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -0
  21. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
  22. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +1 -0
  23. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
  24. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +1 -0
  25. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
  26. package/package.json +31 -38
  27. package/plugin/build/withMapLibre.js +6 -6
  28. package/src/modules/offline/offlineManager.ts +1 -1
  29. package/android/install.md +0 -32
  30. package/ios/install.md +0 -49
package/README.md CHANGED
@@ -15,66 +15,65 @@ supported both Mapbox and MapLibre for some time, but as the MapLibre and Mapbox
15
15
  diverged, it has become necessary to separate the projects into specific wrappers by underlying renderer.
16
16
 
17
17
  <p align="center">
18
- <img src="/docs/assets/indoor-building-map-android.png"
18
+ <img src="/docs/assets/device-android.png"
19
19
  alt="Indoor Building Map Android"
20
- height="300"
20
+ height="480"
21
21
  />
22
- <img src="/docs/assets/indoor-building-map-ios.png"
22
+ <img src="/docs/assets/device-ios.png"
23
23
  alt="Indoor Building Map iOS"
24
- height="300"
24
+ height="480"
25
25
  />
26
26
  </p>
27
27
 
28
28
  ## Documentation
29
29
 
30
- - [Getting Started](/docs/GettingStarted.md)
30
+ - [Getting Started](/docs/guides/setup/GettingStarted.md)
31
31
  - Installation
32
32
  - React Native
33
- - [Android](/android/install.md)
34
- - [iOS](/ios/install.md)
35
- - [Expo](/plugin/install.md)
33
+ - [Android](/docs/guides/setup/Android.md)
34
+ - [iOS](/docs/guides/setup/iOS.md)
35
+ - [Expo](/docs/guides/setup/Expo.md)
36
36
 
37
37
  ### Components
38
38
 
39
- - [MapView](/docs/MapView.md)
40
- - [Light](/docs/Light.md)
41
- - [StyleSheet](/docs/StyleSheet.md)
42
- - [PointAnnotation](/docs/PointAnnotation.md)
43
- - [MarkerView](/docs/MarkerView.md)
44
- - [Callout](/docs/Callout.md)
45
- - [Camera](docs/Camera.md)
46
- - [UserLocation](docs/UserLocation.md)
47
- - [Images](docs/Images.md)
39
+ - [MapView](/docs/components/MapView.md)
40
+ - [Light](/docs/components/Light.md)
41
+ - [PointAnnotation](/docs/components/PointAnnotation.md)
42
+ - [MarkerView](/docs/components/MarkerView.md)
43
+ - [Callout](/docs/components/Callout.md)
44
+ - [Camera](docs/components/Camera.md)
45
+ - [UserLocation](docs/components/UserLocation.md)
46
+ - [Images](docs/components/Images.md)
48
47
 
49
48
  ### Sources
50
49
 
51
- - [VectorSource](/docs/VectorSource.md)
52
- - [ShapeSource](/docs/ShapeSource.md)
53
- - [RasterSource](/docs/RasterSource.md)
50
+ - [VectorSource](/docs/components/VectorSource.md)
51
+ - [ShapeSource](/docs/components/ShapeSource.md)
52
+ - [RasterSource](/docs/components/RasterSource.md)
54
53
 
55
54
  ### Layers
56
55
 
57
- - [BackgroundLayer](/docs/BackgroundLayer.md)
58
- - [CircleLayer](/docs/CircleLayer.md)
59
- - [FillExtrusionLayer](/docs/FillExtrusionLayer.md)
60
- - [FillLayer](/docs/FillLayer.md)
61
- - [LineLayer](/docs/LineLayer.md)
62
- - [RasterLayer](/docs/RasterLayer.md)
63
- - [SymbolLayer](/docs/SymbolLayer.md)
64
- - [HeatmapLayer](/docs/HeatmapLayer.md)
56
+ - [BackgroundLayer](/docs/components/BackgroundLayer.md)
57
+ - [CircleLayer](/docs/components/CircleLayer.md)
58
+ - [FillExtrusionLayer](/docs/components/FillExtrusionLayer.md)
59
+ - [FillLayer](/docs/components/FillLayer.md)
60
+ - [LineLayer](/docs/components/LineLayer.md)
61
+ - [RasterLayer](/docs/components/RasterLayer.md)
62
+ - [SymbolLayer](/docs/components/SymbolLayer.md)
63
+ - [HeatmapLayer](/docs/components/HeatmapLayer.md)
65
64
 
66
- ### Offline
65
+ ### Modules
67
66
 
68
- - [OfflineManager](/docs/OfflineManager.md)
69
- - [SnapshotManager](/docs/snapshotManager.md)
67
+ - [OfflineManager](/docs/modules/offlineManager.md)
68
+ - [SnapshotManager](/docs/modules/snapshotManager.md)
70
69
 
71
70
  ### Misc
72
71
 
73
- - [MapLibreGL](/docs/MapLibreGL.md)
74
- - [CustomHttpHeaders](/docs/CustomHttpHeaders.md)
75
- - [Logger](/docs/Logger.md)
72
+ - [MapLibreGL](/docs/guides/MapLibreGL.md)
73
+ - [Custom HTTP Headers](/docs/guides/CustomHTTPHeaders.md)
74
+ - [Logger](/docs/guides/Logger.md)
76
75
 
77
- ## Contributing / local development
76
+ ## Contributing & Development
78
77
 
79
78
  Read the [CONTRIBUTING.md](CONTRIBUTING.md) guide in order to get familiar with how we do things around here and
80
79
  set up your local development environment.
@@ -39,7 +39,7 @@ class OfflineManager {
39
39
  *
40
40
  * await MapLibreGL.offlineManager.createPack({
41
41
  * name: 'offlinePack',
42
- * styleURL: 'mapbox://...',
42
+ * styleURL: 'https://demotiles.maplibre.org/tiles/tiles.json',
43
43
  * minZoom: 14,
44
44
  * maxZoom: 20,
45
45
  * bounds: [[neLng, neLat], [swLng, swLat]]
@@ -34,7 +34,7 @@ class OfflineManager {
34
34
  *
35
35
  * await MapLibreGL.offlineManager.createPack({
36
36
  * name: 'offlinePack',
37
- * styleURL: 'mapbox://...',
37
+ * styleURL: 'https://demotiles.maplibre.org/tiles/tiles.json',
38
38
  * minZoom: 14,
39
39
  * maxZoom: 20,
40
40
  * bounds: [[neLng, neLat], [swLng, swLat]]
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=jest.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.config.d.ts","sourceRoot":"","sources":["../../../jest.config.ts"],"names":[],"mappings":""}
@@ -47,7 +47,7 @@ declare class OfflineManager {
47
47
  *
48
48
  * await MapLibreGL.offlineManager.createPack({
49
49
  * name: 'offlinePack',
50
- * styleURL: 'mapbox://...',
50
+ * styleURL: 'https://demotiles.maplibre.org/tiles/tiles.json',
51
51
  * minZoom: 14,
52
52
  * maxZoom: 20,
53
53
  * bounds: [[neLng, neLat], [swLng, swLat]]
@@ -2,6 +2,7 @@ import { Animated } from "react-native";
2
2
  declare const AnimatedWithChildren: any;
3
3
  export type AnimatedCoordinates = [number, number];
4
4
  declare abstract class AbstractAnimatedCoordinates<State> extends AnimatedWithChildren {
5
+ static [x: string]: any;
5
6
  constructor(coords: AnimatedCoordinates[]);
6
7
  /**
7
8
  * Subclasses can override to calculate initial state
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractAnimatedCoordinates.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AbstractAnimatedCoordinates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAMnD,uBAAe,2BAA2B,CAAC,KAAK,CAAE,SAAQ,oBAAoB;gBAChE,MAAM,EAAE,mBAAmB,EAAE;IAMzC;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,KAAK;IAC7D;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK;IAE3D,OAAO,CACL,aAAa,EAAE,QAAQ,CAAC,KAAK,EAC7B,iBAAiB,EAAE,QAAQ,CAAC,kBAAkB,EAC9C,MAAM,EAAE,CACJ,QAAQ,CAAC,qBAAqB,GAC9B,QAAQ,CAAC,qBAAqB,GAC9B,QAAQ,CAAC,oBAAoB,CAChC,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GACrC,QAAQ,CAAC,kBAAkB;IA2B9B,MAAM,CACJ,MAAM,EAAE,QAAQ,CAAC,qBAAqB,GAAG;QACvC,OAAO,EAAE,mBAAmB,EAAE,CAAC;KAChC,GACA,QAAQ,CAAC,kBAAkB;IAa9B,MAAM,CACJ,MAAM,EAAE,QAAQ,CAAC,qBAAqB,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GAC1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BAAqB,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GAC1E,QAAQ,CAAC,kBAAkB;IAa9B,KAAK,CACH,MAAM,EAAE,QAAQ,CAAC,oBAAoB,GAAG;QAAE,OAAO,EAAE,mBAAmB,EAAE,CAAA;KAAE,GACzE,QAAQ,CAAC,kBAAkB;IAY9B,UAAU,IAAI,mBAAmB,EAAE;CAQpC;AAED,eAAe,2BAA2B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  declare const AnimatedWithChildren: any;
2
2
  export default class AnimatedExtractCoordinateFromArray extends AnimatedWithChildren {
3
+ static [x: string]: any;
3
4
  _array: AnimatedExtractCoordinateFromArray;
4
5
  _index: number;
5
6
  constructor(array: AnimatedExtractCoordinateFromArray, index: number);
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,oBAAoB;IAClF,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
1
+ {"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,oBAAoB;;IAClF,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
@@ -1,6 +1,7 @@
1
1
  import { Animated } from "react-native";
2
2
  declare const AnimatedWithChildren: any;
3
3
  export declare class AnimatedPoint extends AnimatedWithChildren {
4
+ static [x: string]: any;
4
5
  constructor(point?: {
5
6
  type: string;
6
7
  coordinates: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,IAAI;IASxD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM;IAkBxD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,IAAI;IASxD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM;IAkBxD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB;AAED,eAAe,aAAa,CAAC"}
@@ -16,6 +16,7 @@ type Shape = {
16
16
  * <AnimatedShapeSource ... shape={new AnimatedShape({type:'LineString', coordinates: animatedCoords})} />
17
17
  */
18
18
  declare class AnimatedShape extends AnimatedWithChildren {
19
+ static [x: string]: any;
19
20
  constructor(shape: Shape);
20
21
  _walkShapeAndGetValues(value: any): any;
21
22
  __getValue(): any;
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedShape.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedShape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,kCAAkC,MAAM,sCAAsC,CAAC;AACtF,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAI5E,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,KAAK,KAAK,GACN;IACE,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EACP,kCAAkC,GAClC,6BAA6B,CAAC;CACnC,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,wBAAwB,CAAC;CACvC,CAAC;AAEN;;;;GAIG;AACH,cAAM,aAAc,SAAQ,oBAAoB;gBAIlC,KAAK,EAAE,KAAK;IAKxB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAkBvC,UAAU,IAAI,GAAG;IAMjB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI;IAarE,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AnimatedShape.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedShape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,kCAAkC,MAAM,sCAAsC,CAAC;AACtF,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAI5E,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,KAAK,KAAK,GACN;IACE,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EACP,kCAAkC,GAClC,6BAA6B,CAAC;CACnC,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,wBAAwB,CAAC;CACvC,CAAC;AAEN;;;;GAIG;AACH,cAAM,aAAc,SAAQ,oBAAoB;;gBAIlC,KAAK,EAAE,KAAK;IAKxB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAkBvC,UAAU,IAAI,GAAG;IAMjB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI;IAarE,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=jest.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.config.d.ts","sourceRoot":"","sources":["../../../jest.config.ts"],"names":[],"mappings":""}
@@ -47,7 +47,7 @@ declare class OfflineManager {
47
47
  *
48
48
  * await MapLibreGL.offlineManager.createPack({
49
49
  * name: 'offlinePack',
50
- * styleURL: 'mapbox://...',
50
+ * styleURL: 'https://demotiles.maplibre.org/tiles/tiles.json',
51
51
  * minZoom: 14,
52
52
  * maxZoom: 20,
53
53
  * bounds: [[neLng, neLat], [swLng, swLat]]
@@ -2,6 +2,7 @@ import { Animated } from "react-native";
2
2
  declare const AnimatedWithChildren: any;
3
3
  export type AnimatedCoordinates = [number, number];
4
4
  declare abstract class AbstractAnimatedCoordinates<State> extends AnimatedWithChildren {
5
+ static [x: string]: any;
5
6
  constructor(coords: AnimatedCoordinates[]);
6
7
  /**
7
8
  * Subclasses can override to calculate initial state
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractAnimatedCoordinates.d.ts","sourceRoot":"","sources":["../../../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B,UAAU,IAAI,mBAAmB,EAAE;CAQpC;AAED,eAAe,2BAA2B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  declare const AnimatedWithChildren: any;
2
2
  export default class AnimatedExtractCoordinateFromArray extends AnimatedWithChildren {
3
+ static [x: string]: any;
3
4
  _array: AnimatedExtractCoordinateFromArray;
4
5
  _index: number;
5
6
  constructor(array: AnimatedExtractCoordinateFromArray, index: number);
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,oBAAoB;IAClF,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
1
+ {"version":3,"file":"AnimatedExtractCoordinateFromArray.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedExtractCoordinateFromArray.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AASrE,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,oBAAoB;;IAClF,MAAM,EAAE,kCAAkC,CAAC;IAE3C,MAAM,SAAK;gBAEC,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,MAAM;IAMpE,UAAU,IAAI,kCAAkC;IAUhD,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB"}
@@ -1,6 +1,7 @@
1
1
  import { Animated } from "react-native";
2
2
  declare const AnimatedWithChildren: any;
3
3
  export declare class AnimatedPoint extends AnimatedWithChildren {
4
+ static [x: string]: any;
4
5
  constructor(point?: {
5
6
  type: string;
6
7
  coordinates: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,IAAI;IASxD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM;IAkBxD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AnimatedPoint.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,QAAA,MAAM,oBAAoB,KAA0C,CAAC;AAOrE,qBAAa,aAAc,SAAQ,oBAAoB;;gBACzC,KAAK;;;KAAgB;IAiBjC,QAAQ,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKrC,SAAS,CAAC,KAAK;;;KAAgB,GAAG,IAAI;IAKtC,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,IAAI;IASxD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM;IAkBxD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMhC,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,MAAM,CACJ,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG;QAChD,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC;KACE,GACjC,QAAQ,CAAC,kBAAkB;IAe9B,UAAU,IAAI,OAAO,CAAC,KAAK;IAO3B,QAAQ,IAAI,IAAI;IAKhB,QAAQ,IAAI,IAAI;CAIjB;AAED,eAAe,aAAa,CAAC"}
@@ -16,6 +16,7 @@ type Shape = {
16
16
  * <AnimatedShapeSource ... shape={new AnimatedShape({type:'LineString', coordinates: animatedCoords})} />
17
17
  */
18
18
  declare class AnimatedShape extends AnimatedWithChildren {
19
+ static [x: string]: any;
19
20
  constructor(shape: Shape);
20
21
  _walkShapeAndGetValues(value: any): any;
21
22
  __getValue(): any;
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedShape.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/animated/AnimatedShape.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE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Ac,SAAQ,oBAAoB;;gBAIlC,KAAK,EAAE,KAAK;IAKxB,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG;IAkBvC,UAAU,IAAI,GAAG;IAMjB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG,IAAI;IAarE,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;CAIjB;AAED,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maplibre/maplibre-react-native",
3
3
  "description": "React Native library for creating maps with MapLibre Native for Android & iOS",
4
- "version": "10.0.0-beta.1",
4
+ "version": "10.0.0-beta.2",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "provenance": true
@@ -115,65 +115,58 @@
115
115
  ]
116
116
  ]
117
117
  },
118
- "peerDependenciesMeta": {
119
- "@expo/config-plugins": {
120
- "optional": true
121
- }
122
- },
123
118
  "peerDependencies": {
124
119
  "@expo/config-plugins": ">=7",
120
+ "@types/geojson": "^7946.0.0",
121
+ "@types/react": ">=16.6.1",
125
122
  "react": ">=16.6.1",
126
123
  "react-native": ">=0.59.9"
127
124
  },
125
+ "peerDependenciesMeta": {
126
+ "@expo/config-plugins": {
127
+ "optional": true
128
+ },
129
+ "@types/geojson": {
130
+ "optional": true
131
+ },
132
+ "@types/react": {
133
+ "optional": true
134
+ }
135
+ },
128
136
  "dependencies": {
129
137
  "@turf/distance": "^7.1.0",
130
138
  "@turf/helpers": "^7.1.0",
131
139
  "@turf/length": "^7.1.0",
132
140
  "@turf/nearest-point-on-line": "^7.1.0",
133
- "@types/debounce": "^1.2.1",
134
- "@types/geojson": "^7946.0.14",
135
- "@types/jest": "^29.5.12",
136
- "@types/node": "^18.11.18",
137
- "@types/react": "^18.2.79",
138
- "@types/react-native": "0.67.8",
139
- "debounce": "^2.0.0"
141
+ "debounce": "^2.2.0"
140
142
  },
141
143
  "devDependencies": {
142
- "@babel/core": "^7.20.5",
143
- "@babel/eslint-parser": "^7.22.9",
144
- "@babel/plugin-proposal-class-properties": "7.18.6",
145
- "@babel/runtime": "7.17.2",
146
- "@expo/config-plugins": "^9.0.9",
147
- "@maplibre/maplibre-gl-style-spec": "21.1.0",
148
- "@react-native/babel-preset": "^0.74.88",
149
- "@react-native/metro-config": "^0.74.88",
144
+ "@babel/core": "^7.26.0",
145
+ "@expo/config-plugins": "^9.0.11",
146
+ "@maplibre/maplibre-gl-style-spec": "22.0.1",
150
147
  "@semantic-release/changelog": "^6.0.3",
151
148
  "@semantic-release/git": "^10.0.1",
152
- "@sinonjs/fake-timers": "^11.2.2",
153
- "@testing-library/react-native": "^12.4.3",
149
+ "@sinonjs/fake-timers": "^13.0.5",
150
+ "@testing-library/react-native": "^12.9.0",
154
151
  "@types/ejs": "^3.1.5",
155
- "@typescript-eslint/eslint-plugin": "^7.18.0",
156
- "@typescript-eslint/parser": "^7.18.0",
157
- "babel-jest": "^29.6.0",
152
+ "@types/geojson": "^7946.0.14",
153
+ "@types/node": "^22.10.1",
154
+ "@types/react": "^18.3.13",
158
155
  "documentation": "^14.0.0",
159
156
  "ejs": "^3.1.10",
160
- "ejs-lint": "^2.0.0",
161
157
  "eslint": "^8.57.1",
162
- "eslint-config-universe": "13.0.0",
158
+ "eslint-config-universe": "14.0.0",
163
159
  "expo-module-scripts": "^4.0.2",
164
160
  "jest": "^29.7.0",
165
- "jest-cli": "^29.7.0",
166
- "prettier": "3.3.3",
167
- "react": "18.2.0",
161
+ "prettier": "3.4.2",
162
+ "react": "18.3.1",
168
163
  "react-docgen": "^7.1.0",
169
- "react-native": "^0.74.6",
170
- "react-native-builder-bob": "^0.32.0",
171
- "react-test-renderer": "18.2.0",
164
+ "react-native": "0.75.4",
165
+ "react-native-builder-bob": "^0.34.0",
166
+ "react-test-renderer": "18.3.1",
172
167
  "semantic-release": "^24.2.0",
168
+ "ts-node": "^10.9.2",
173
169
  "tsx": "^4.19.2",
174
- "typescript": "^5.3.3"
175
- },
176
- "resolutions": {
177
- "typescript": "5.5.3"
170
+ "typescript": "^5.7.2"
178
171
  }
179
172
  }
@@ -9,8 +9,8 @@ exports.addMapLibreInstallerBlock = addMapLibreInstallerBlock;
9
9
  exports.setExcludedArchitectures = setExcludedArchitectures;
10
10
  const config_plugins_1 = require("@expo/config-plugins");
11
11
  const generateCode_1 = require("@expo/config-plugins/build/utils/generateCode");
12
- const fs_1 = require("fs");
13
- const path_1 = __importDefault(require("path"));
12
+ const node_fs_1 = require("node:fs");
13
+ const node_path_1 = __importDefault(require("node:path"));
14
14
  let pkg = {
15
15
  name: "@maplibre/maplibre-react-native",
16
16
  };
@@ -24,7 +24,7 @@ catch {
24
24
  * Dangerously adds the custom installer hooks to the Podfile.
25
25
  * In the future this should be removed in favor of some custom hooks provided by Expo autolinking.
26
26
  *
27
- * https://github.com/maplibre/maplibre-react-native/blob/main/ios/install.md
27
+ * https://github.com/maplibre/maplibre-react-native/blob/main/docs/guides/setup/iOS.md
28
28
  * @param config
29
29
  * @returns
30
30
  */
@@ -33,9 +33,9 @@ const withCocoaPodsInstallerBlocks = (c) => {
33
33
  "ios",
34
34
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
35
35
  async (config) => {
36
- const file = path_1.default.join(config.modRequest.platformProjectRoot, "Podfile");
37
- const contents = await fs_1.promises.readFile(file, "utf8");
38
- await fs_1.promises.writeFile(file, applyCocoaPodsModifications(contents), "utf-8");
36
+ const file = node_path_1.default.join(config.modRequest.platformProjectRoot, "Podfile");
37
+ const contents = await node_fs_1.promises.readFile(file, "utf8");
38
+ await node_fs_1.promises.writeFile(file, applyCocoaPodsModifications(contents), "utf-8");
39
39
  return config;
40
40
  },
41
41
  ]);
@@ -83,7 +83,7 @@ class OfflineManager {
83
83
  *
84
84
  * await MapLibreGL.offlineManager.createPack({
85
85
  * name: 'offlinePack',
86
- * styleURL: 'mapbox://...',
86
+ * styleURL: 'https://demotiles.maplibre.org/tiles/tiles.json',
87
87
  * minZoom: 14,
88
88
  * maxZoom: 20,
89
89
  * bounds: [[neLng, neLat], [swLng, swLat]]
@@ -1,32 +0,0 @@
1
- # Android Installation
2
-
3
- ## Access tokens
4
-
5
- > [!NOTE]
6
- > MapLibre Native for Android is slightly peculiar in that it
7
- _requires_ setting an access token, even though it will be `null` for
8
- most users (only Mapbox authenticates this way). Even if it feels odd,
9
- you have to have a line like this in your code before using the library.
10
- You can put this near the top of your `App.js` for convenience.
11
-
12
- ```javascript
13
- MapLibreGL.setAccessToken(null);
14
- ```
15
-
16
- ## Setting connection status
17
-
18
- TODO: check if this is still an issue with MapLibre Native on Android (issue #21).
19
-
20
- If you are hosting styles and sources on localhost, you might need to set
21
- the connection status manually for the SDK to be able to use them.
22
- See [mapbox/mapbox-gl-native#12819](https://github.com/mapbox/mapbox-gl-native/issues/12819).
23
-
24
- Manually sets the connectivity state of the app, bypassing any checks to the
25
- `ConnectivityManager`. Set to `true` for connected, `false` for disconnected,
26
- and `null` for the normal `ConnectivityManager` behavior.
27
-
28
- ```js
29
- import MapLibreGL from "@maplibre/maplibre-react-native";
30
-
31
- MapLibreGL.setConnected(true);
32
- ```
package/ios/install.md DELETED
@@ -1,49 +0,0 @@
1
- # iOS Installation
2
-
3
- The following assumes, that you're using autolinking and installed
4
- `@maplibre/maplibre-react-native` via `npm` or `yarn`.
5
-
6
- Add the following to your `ios/Podfile`:
7
-
8
- ```ruby
9
- post_install do |installer|
10
- ... other post install hooks
11
- $MLRN.post_install(installer)
12
- end
13
- ```
14
-
15
- Running `pod install` will add version `6.5.4` of the MapLibre SDK.
16
-
17
- ```sh
18
- # Go to the ios directory
19
- cd ios
20
-
21
- # Run Pod Install
22
- pod install
23
- ```
24
-
25
- You are good to go!
26
-
27
- ## Note on iOS Simulator issues
28
-
29
- MapLibre Native has some issues on iOS Simulators in many
30
- environments. The map either does not render at all or appears garbled when panning and zooming.
31
- It is best to test on a real device if at all possible at this time
32
- until this is fixed upstream. iOS devs can open the workspace in Xcode and run from there.
33
-
34
- ## Installing a specific version
35
-
36
- The current default MapLibre version is `6.5.4`.
37
- If you want to install a different version, you can override as follows in
38
- your `Podfile`:
39
-
40
- ```ruby
41
- $MLRN_SPM_Spec = {
42
- url: "https://github.com/maplibre/maplibre-gl-native-distribution",
43
- requirement: {
44
- kind: "upToNextMajorVersion",
45
- minimumVersion: "6.5.4"
46
- },
47
- product_name: "MapLibre"
48
- }
49
- ```