@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.
Files changed (218) hide show
  1. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +10 -8
  2. package/ios/modules/offline/MLRNOfflineModule.h +1 -2
  3. package/ios/modules/offline/MLRNOfflineModule.mm +9 -9
  4. package/lib/commonjs/components/annotations/callout/Callout.js +2 -1
  5. package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -1
  6. package/lib/commonjs/components/annotations/marker/Marker.js +4 -2
  7. package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
  8. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +6 -5
  9. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  10. package/lib/commonjs/components/camera/Camera.js.map +1 -1
  11. package/lib/commonjs/components/images/Images.js +2 -2
  12. package/lib/commonjs/components/layer/Layer.js +0 -1
  13. package/lib/commonjs/components/layer/Layer.js.map +1 -1
  14. package/lib/commonjs/components/map/Map.js.map +1 -1
  15. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +2 -2
  16. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  17. package/lib/commonjs/components/sources/image-source/ImageSource.js +3 -2
  18. package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -1
  19. package/lib/commonjs/components/sources/raster-source/RasterSource.js +4 -3
  20. package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -1
  21. package/lib/commonjs/components/sources/vector-source/VectorSource.js +4 -2
  22. package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -1
  23. package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -1
  24. package/lib/commonjs/components/user-location/UserLocation.js.map +1 -1
  25. package/lib/commonjs/modules/log/LogManager.js +5 -4
  26. package/lib/commonjs/modules/log/LogManager.js.map +1 -1
  27. package/lib/commonjs/modules/network/NetworkManager.js +7 -7
  28. package/lib/commonjs/modules/network/NetworkManager.js.map +1 -1
  29. package/lib/commonjs/modules/offline/OfflineManager.js +63 -47
  30. package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -1
  31. package/lib/commonjs/modules/transform-request/TransformRequestManager.js +50 -45
  32. package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -1
  33. package/lib/commonjs/plugin/ios.js +9 -8
  34. package/lib/commonjs/plugin/ios.js.map +1 -1
  35. package/lib/commonjs/types/Anchor.js +5 -6
  36. package/lib/commonjs/types/Anchor.js.map +1 -1
  37. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  38. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +6 -6
  39. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +2 -1
  40. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -1
  41. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  42. package/lib/commonjs/utils/convertStyleSpec.js +4 -4
  43. package/lib/module/components/annotations/callout/Callout.js +2 -1
  44. package/lib/module/components/annotations/callout/Callout.js.map +1 -1
  45. package/lib/module/components/annotations/marker/Marker.js +4 -2
  46. package/lib/module/components/annotations/marker/Marker.js.map +1 -1
  47. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +6 -5
  48. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  49. package/lib/module/components/camera/Camera.js.map +1 -1
  50. package/lib/module/components/images/Images.js +2 -2
  51. package/lib/module/components/layer/Layer.js +0 -1
  52. package/lib/module/components/layer/Layer.js.map +1 -1
  53. package/lib/module/components/map/Map.js.map +1 -1
  54. package/lib/module/components/sources/geojson-source/GeoJSONSource.js +2 -2
  55. package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  56. package/lib/module/components/sources/image-source/ImageSource.js +3 -2
  57. package/lib/module/components/sources/image-source/ImageSource.js.map +1 -1
  58. package/lib/module/components/sources/raster-source/RasterSource.js +4 -3
  59. package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -1
  60. package/lib/module/components/sources/vector-source/VectorSource.js +4 -2
  61. package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -1
  62. package/lib/module/components/user-location/NativeUserLocation.js.map +1 -1
  63. package/lib/module/components/user-location/UserLocation.js.map +1 -1
  64. package/lib/module/modules/log/LogManager.js +5 -4
  65. package/lib/module/modules/log/LogManager.js.map +1 -1
  66. package/lib/module/modules/network/NetworkManager.js +7 -7
  67. package/lib/module/modules/network/NetworkManager.js.map +1 -1
  68. package/lib/module/modules/offline/OfflineManager.js +63 -47
  69. package/lib/module/modules/offline/OfflineManager.js.map +1 -1
  70. package/lib/module/modules/transform-request/TransformRequestManager.js +50 -45
  71. package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -1
  72. package/lib/module/plugin/ios.js +9 -8
  73. package/lib/module/plugin/ios.js.map +1 -1
  74. package/lib/module/types/Anchor.js +5 -6
  75. package/lib/module/types/Anchor.js.map +1 -1
  76. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  77. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +6 -6
  78. package/lib/module/utils/animated/AnimatedGeoJSON.js +2 -1
  79. package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -1
  80. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  81. package/lib/module/utils/convertStyleSpec.js +4 -4
  82. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts +3 -2
  83. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -1
  84. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts +15 -14
  85. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -1
  86. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts +26 -24
  87. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -1
  88. package/lib/typescript/commonjs/components/camera/Camera.d.ts +10 -24
  89. package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -1
  90. package/lib/typescript/commonjs/components/images/Images.d.ts +12 -12
  91. package/lib/typescript/commonjs/components/layer/Layer.d.ts +0 -1
  92. package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -1
  93. package/lib/typescript/commonjs/components/map/Map.d.ts +54 -51
  94. package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -1
  95. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts +40 -41
  96. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts +5 -3
  98. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -1
  99. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts +20 -15
  100. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +23 -20
  102. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -1
  103. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts +9 -6
  104. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -1
  105. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts +4 -2
  106. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -1
  107. package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts +2 -2
  108. package/lib/typescript/commonjs/modules/log/LogManager.d.ts +5 -4
  109. package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -1
  110. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +7 -7
  111. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -1
  112. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts +63 -47
  113. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -1
  114. package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts +2 -2
  115. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +56 -49
  116. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts +10 -15
  118. package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/plugin/ios.d.ts +2 -2
  120. package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/types/Anchor.d.ts +5 -6
  122. package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/types/LngLatBounds.d.ts +2 -1
  124. package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts +243 -93
  126. package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/types/sources/PressableSourceProps.d.ts +1 -2
  128. package/lib/typescript/commonjs/types/sources/PressableSourceProps.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  130. package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts +6 -6
  131. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts +2 -1
  132. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  134. package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts +4 -4
  135. package/lib/typescript/module/components/annotations/callout/Callout.d.ts +3 -2
  136. package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -1
  137. package/lib/typescript/module/components/annotations/marker/Marker.d.ts +15 -14
  138. package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -1
  139. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts +26 -24
  140. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -1
  141. package/lib/typescript/module/components/camera/Camera.d.ts +10 -24
  142. package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -1
  143. package/lib/typescript/module/components/images/Images.d.ts +12 -12
  144. package/lib/typescript/module/components/layer/Layer.d.ts +0 -1
  145. package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -1
  146. package/lib/typescript/module/components/map/Map.d.ts +54 -51
  147. package/lib/typescript/module/components/map/Map.d.ts.map +1 -1
  148. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts +40 -41
  149. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -1
  150. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts +5 -3
  151. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -1
  152. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts +20 -15
  153. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -1
  154. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +23 -20
  155. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -1
  156. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts +9 -6
  157. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -1
  158. package/lib/typescript/module/components/user-location/UserLocation.d.ts +4 -2
  159. package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -1
  160. package/lib/typescript/module/hooks/useCurrentPosition.d.ts +2 -2
  161. package/lib/typescript/module/modules/log/LogManager.d.ts +5 -4
  162. package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -1
  163. package/lib/typescript/module/modules/network/NetworkManager.d.ts +7 -7
  164. package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -1
  165. package/lib/typescript/module/modules/offline/OfflineManager.d.ts +63 -47
  166. package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -1
  167. package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts +2 -2
  168. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +56 -49
  169. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -1
  170. package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts +10 -15
  171. package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts.map +1 -1
  172. package/lib/typescript/module/plugin/ios.d.ts +2 -2
  173. package/lib/typescript/module/plugin/ios.d.ts.map +1 -1
  174. package/lib/typescript/module/types/Anchor.d.ts +5 -6
  175. package/lib/typescript/module/types/Anchor.d.ts.map +1 -1
  176. package/lib/typescript/module/types/LngLatBounds.d.ts +2 -1
  177. package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -1
  178. package/lib/typescript/module/types/MapLibreRNStyles.d.ts +243 -93
  179. package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -1
  180. package/lib/typescript/module/types/sources/PressableSourceProps.d.ts +1 -2
  181. package/lib/typescript/module/types/sources/PressableSourceProps.d.ts.map +1 -1
  182. package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  183. package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts +6 -6
  184. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts +2 -1
  185. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -1
  186. package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  187. package/lib/typescript/module/utils/convertStyleSpec.d.ts +4 -4
  188. package/package.json +1 -2
  189. package/src/components/annotations/callout/Callout.tsx +3 -2
  190. package/src/components/annotations/marker/Marker.tsx +15 -14
  191. package/src/components/annotations/view-annotation/ViewAnnotation.tsx +26 -24
  192. package/src/components/camera/Camera.tsx +10 -24
  193. package/src/components/images/Images.tsx +12 -12
  194. package/src/components/layer/Layer.tsx +0 -1
  195. package/src/components/map/Map.tsx +54 -51
  196. package/src/components/sources/geojson-source/GeoJSONSource.tsx +40 -41
  197. package/src/components/sources/image-source/ImageSource.tsx +5 -3
  198. package/src/components/sources/raster-source/RasterSource.tsx +20 -15
  199. package/src/components/sources/vector-source/VectorSource.tsx +23 -20
  200. package/src/components/user-location/NativeUserLocation.tsx +9 -6
  201. package/src/components/user-location/UserLocation.tsx +4 -2
  202. package/src/hooks/useCurrentPosition.ts +2 -2
  203. package/src/modules/log/LogManager.ts +5 -4
  204. package/src/modules/network/NetworkManager.ts +7 -7
  205. package/src/modules/offline/OfflineManager.ts +63 -47
  206. package/src/modules/static-map/StaticMapManager.ts +2 -2
  207. package/src/modules/transform-request/TransformRequestManager.ts +56 -49
  208. package/src/plugin/MapLibrePluginProps.ts +10 -15
  209. package/src/plugin/ios.ts +9 -8
  210. package/src/types/Anchor.ts +5 -6
  211. package/src/types/LngLatBounds.ts +2 -1
  212. package/src/types/MapLibreRNStyles.ts +243 -93
  213. package/src/types/sources/PressableSourceProps.ts +1 -2
  214. package/src/utils/animated/AbstractAnimatedCoordinates.ts +2 -2
  215. package/src/utils/animated/AnimatedCoordinatesArray.ts +6 -6
  216. package/src/utils/animated/AnimatedGeoJSON.ts +2 -1
  217. package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +6 -6
  218. package/src/utils/convertStyleSpec.ts +4 -4
package/src/plugin/ios.ts CHANGED
@@ -13,8 +13,8 @@ import type { MapLibrePluginProps } from "./MapLibrePluginProps";
13
13
  const TAG_PREFIX = `@maplibre/maplibre-react-native`;
14
14
 
15
15
  /**
16
- * Only the post-install block is required, the post installer block is used for SPM (Swift Package Manager) which Expo
17
- * doesn't currently support.
16
+ * Only the post-install block is required, the post installer block is used for
17
+ * SPM (Swift Package Manager) which Expo doesn't currently support.
18
18
  */
19
19
  export function applyPodfilePostInstall(contents: string): string {
20
20
  const result = mergeContents({
@@ -129,15 +129,16 @@ const withoutSignatures: ConfigPlugin = (config) => {
129
129
  };
130
130
 
131
131
  /**
132
- * Set the Debug Information Format to DWARF with dSYM File during EAS Build for Managed App
133
- * https://github.com/expo/eas-cli/issues/968
132
+ * Set the Debug Information Format to DWARF with dSYM File during EAS Build for
133
+ * Managed App https://github.com/expo/eas-cli/issues/968
134
134
  *
135
- * Set `artifactPath` in `eas.json`:
136
- * ```json
137
- * "ios": {
135
+ * Set `artifactPath` in `eas.json`:
136
+ *
137
+ * ```json
138
+ * "ios": {
138
139
  * "artifactPath": "ios/build/*"
139
140
  * }
140
- * ```
141
+ * ```
141
142
  */
142
143
  const withDwarfDsym: ConfigPlugin = (config) => {
143
144
  return withXcodeProject(config, (c) => {
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Position anchor for markers and annotations.
3
- * Follows MapLibre GL JS PositionAnchor format.
2
+ * Position anchor for markers and annotations. Follows MapLibre GL JS
3
+ * PositionAnchor format.
4
4
  *
5
- * @see https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/PositionAnchor/
5
+ * @see {@link https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/PositionAnchor/}
6
6
  */
7
7
  export type Anchor =
8
8
  | "center"
@@ -16,9 +16,8 @@ export type Anchor =
16
16
  | "bottom-right";
17
17
 
18
18
  /**
19
- * Converts an Anchor string to native {x, y} format.
20
- * x: 0 = left, 0.5 = center, 1 = right
21
- * y: 0 = top, 0.5 = center, 1 = bottom
19
+ * Converts an Anchor string to native {x, y} format. x: 0 = left, 0.5 = center,
20
+ * 1 = right y: 0 = top, 0.5 = center, 1 = bottom
22
21
  */
23
22
  export function anchorToNative(anchor: Anchor): { x: number; y: number } {
24
23
  switch (anchor) {
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Represents bounds in geographic coordinates
3
3
  *
4
- * Uses order of south-west and north-east corners in flat style per GeoJSON RFC.
4
+ * Uses order of south-west and north-east corners in flat style per GeoJSON
5
+ * RFC.
5
6
  */
6
7
  export type LngLatBounds = [
7
8
  west: number,