@maplibre/maplibre-react-native 11.0.0-beta.25 → 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 (217) hide show
  1. package/ios/modules/offline/MLRNOfflineModule.h +1 -2
  2. package/ios/modules/offline/MLRNOfflineModule.mm +9 -9
  3. package/lib/commonjs/components/annotations/callout/Callout.js +2 -1
  4. package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -1
  5. package/lib/commonjs/components/annotations/marker/Marker.js +4 -2
  6. package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
  7. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +6 -5
  8. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  9. package/lib/commonjs/components/camera/Camera.js.map +1 -1
  10. package/lib/commonjs/components/images/Images.js +2 -2
  11. package/lib/commonjs/components/layer/Layer.js +0 -1
  12. package/lib/commonjs/components/layer/Layer.js.map +1 -1
  13. package/lib/commonjs/components/map/Map.js.map +1 -1
  14. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +2 -2
  15. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  16. package/lib/commonjs/components/sources/image-source/ImageSource.js +3 -2
  17. package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -1
  18. package/lib/commonjs/components/sources/raster-source/RasterSource.js +4 -3
  19. package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -1
  20. package/lib/commonjs/components/sources/vector-source/VectorSource.js +4 -2
  21. package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -1
  22. package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -1
  23. package/lib/commonjs/components/user-location/UserLocation.js.map +1 -1
  24. package/lib/commonjs/modules/log/LogManager.js +5 -4
  25. package/lib/commonjs/modules/log/LogManager.js.map +1 -1
  26. package/lib/commonjs/modules/network/NetworkManager.js +7 -7
  27. package/lib/commonjs/modules/network/NetworkManager.js.map +1 -1
  28. package/lib/commonjs/modules/offline/OfflineManager.js +63 -47
  29. package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -1
  30. package/lib/commonjs/modules/transform-request/TransformRequestManager.js +50 -45
  31. package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -1
  32. package/lib/commonjs/plugin/ios.js +9 -8
  33. package/lib/commonjs/plugin/ios.js.map +1 -1
  34. package/lib/commonjs/types/Anchor.js +5 -6
  35. package/lib/commonjs/types/Anchor.js.map +1 -1
  36. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  37. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +6 -6
  38. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +2 -1
  39. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -1
  40. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  41. package/lib/commonjs/utils/convertStyleSpec.js +4 -4
  42. package/lib/module/components/annotations/callout/Callout.js +2 -1
  43. package/lib/module/components/annotations/callout/Callout.js.map +1 -1
  44. package/lib/module/components/annotations/marker/Marker.js +4 -2
  45. package/lib/module/components/annotations/marker/Marker.js.map +1 -1
  46. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +6 -5
  47. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  48. package/lib/module/components/camera/Camera.js.map +1 -1
  49. package/lib/module/components/images/Images.js +2 -2
  50. package/lib/module/components/layer/Layer.js +0 -1
  51. package/lib/module/components/layer/Layer.js.map +1 -1
  52. package/lib/module/components/map/Map.js.map +1 -1
  53. package/lib/module/components/sources/geojson-source/GeoJSONSource.js +2 -2
  54. package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  55. package/lib/module/components/sources/image-source/ImageSource.js +3 -2
  56. package/lib/module/components/sources/image-source/ImageSource.js.map +1 -1
  57. package/lib/module/components/sources/raster-source/RasterSource.js +4 -3
  58. package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -1
  59. package/lib/module/components/sources/vector-source/VectorSource.js +4 -2
  60. package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -1
  61. package/lib/module/components/user-location/NativeUserLocation.js.map +1 -1
  62. package/lib/module/components/user-location/UserLocation.js.map +1 -1
  63. package/lib/module/modules/log/LogManager.js +5 -4
  64. package/lib/module/modules/log/LogManager.js.map +1 -1
  65. package/lib/module/modules/network/NetworkManager.js +7 -7
  66. package/lib/module/modules/network/NetworkManager.js.map +1 -1
  67. package/lib/module/modules/offline/OfflineManager.js +63 -47
  68. package/lib/module/modules/offline/OfflineManager.js.map +1 -1
  69. package/lib/module/modules/transform-request/TransformRequestManager.js +50 -45
  70. package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -1
  71. package/lib/module/plugin/ios.js +9 -8
  72. package/lib/module/plugin/ios.js.map +1 -1
  73. package/lib/module/types/Anchor.js +5 -6
  74. package/lib/module/types/Anchor.js.map +1 -1
  75. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  76. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +6 -6
  77. package/lib/module/utils/animated/AnimatedGeoJSON.js +2 -1
  78. package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -1
  79. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  80. package/lib/module/utils/convertStyleSpec.js +4 -4
  81. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts +3 -2
  82. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -1
  83. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts +15 -14
  84. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -1
  85. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts +26 -24
  86. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -1
  87. package/lib/typescript/commonjs/components/camera/Camera.d.ts +10 -24
  88. package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -1
  89. package/lib/typescript/commonjs/components/images/Images.d.ts +12 -12
  90. package/lib/typescript/commonjs/components/layer/Layer.d.ts +0 -1
  91. package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -1
  92. package/lib/typescript/commonjs/components/map/Map.d.ts +54 -51
  93. package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -1
  94. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts +40 -41
  95. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -1
  96. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts +5 -3
  97. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -1
  98. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts +20 -15
  99. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -1
  100. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +23 -20
  101. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -1
  102. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts +9 -6
  103. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -1
  104. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts +4 -2
  105. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -1
  106. package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts +2 -2
  107. package/lib/typescript/commonjs/modules/log/LogManager.d.ts +5 -4
  108. package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -1
  109. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +7 -7
  110. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -1
  111. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts +63 -47
  112. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -1
  113. package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts +2 -2
  114. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +56 -49
  115. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -1
  116. package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts +10 -15
  117. package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts.map +1 -1
  118. package/lib/typescript/commonjs/plugin/ios.d.ts +2 -2
  119. package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -1
  120. package/lib/typescript/commonjs/types/Anchor.d.ts +5 -6
  121. package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/types/LngLatBounds.d.ts +2 -1
  123. package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -1
  124. package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts +243 -93
  125. package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -1
  126. package/lib/typescript/commonjs/types/sources/PressableSourceProps.d.ts +1 -2
  127. package/lib/typescript/commonjs/types/sources/PressableSourceProps.d.ts.map +1 -1
  128. package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  129. package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts +6 -6
  130. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts +2 -1
  131. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  133. package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts +4 -4
  134. package/lib/typescript/module/components/annotations/callout/Callout.d.ts +3 -2
  135. package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -1
  136. package/lib/typescript/module/components/annotations/marker/Marker.d.ts +15 -14
  137. package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -1
  138. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts +26 -24
  139. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -1
  140. package/lib/typescript/module/components/camera/Camera.d.ts +10 -24
  141. package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -1
  142. package/lib/typescript/module/components/images/Images.d.ts +12 -12
  143. package/lib/typescript/module/components/layer/Layer.d.ts +0 -1
  144. package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -1
  145. package/lib/typescript/module/components/map/Map.d.ts +54 -51
  146. package/lib/typescript/module/components/map/Map.d.ts.map +1 -1
  147. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts +40 -41
  148. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -1
  149. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts +5 -3
  150. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -1
  151. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts +20 -15
  152. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -1
  153. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +23 -20
  154. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -1
  155. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts +9 -6
  156. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -1
  157. package/lib/typescript/module/components/user-location/UserLocation.d.ts +4 -2
  158. package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -1
  159. package/lib/typescript/module/hooks/useCurrentPosition.d.ts +2 -2
  160. package/lib/typescript/module/modules/log/LogManager.d.ts +5 -4
  161. package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -1
  162. package/lib/typescript/module/modules/network/NetworkManager.d.ts +7 -7
  163. package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -1
  164. package/lib/typescript/module/modules/offline/OfflineManager.d.ts +63 -47
  165. package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -1
  166. package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts +2 -2
  167. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +56 -49
  168. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -1
  169. package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts +10 -15
  170. package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts.map +1 -1
  171. package/lib/typescript/module/plugin/ios.d.ts +2 -2
  172. package/lib/typescript/module/plugin/ios.d.ts.map +1 -1
  173. package/lib/typescript/module/types/Anchor.d.ts +5 -6
  174. package/lib/typescript/module/types/Anchor.d.ts.map +1 -1
  175. package/lib/typescript/module/types/LngLatBounds.d.ts +2 -1
  176. package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -1
  177. package/lib/typescript/module/types/MapLibreRNStyles.d.ts +243 -93
  178. package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -1
  179. package/lib/typescript/module/types/sources/PressableSourceProps.d.ts +1 -2
  180. package/lib/typescript/module/types/sources/PressableSourceProps.d.ts.map +1 -1
  181. package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  182. package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts +6 -6
  183. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts +2 -1
  184. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -1
  185. package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  186. package/lib/typescript/module/utils/convertStyleSpec.d.ts +4 -4
  187. package/package.json +1 -2
  188. package/src/components/annotations/callout/Callout.tsx +3 -2
  189. package/src/components/annotations/marker/Marker.tsx +15 -14
  190. package/src/components/annotations/view-annotation/ViewAnnotation.tsx +26 -24
  191. package/src/components/camera/Camera.tsx +10 -24
  192. package/src/components/images/Images.tsx +12 -12
  193. package/src/components/layer/Layer.tsx +0 -1
  194. package/src/components/map/Map.tsx +54 -51
  195. package/src/components/sources/geojson-source/GeoJSONSource.tsx +40 -41
  196. package/src/components/sources/image-source/ImageSource.tsx +5 -3
  197. package/src/components/sources/raster-source/RasterSource.tsx +20 -15
  198. package/src/components/sources/vector-source/VectorSource.tsx +23 -20
  199. package/src/components/user-location/NativeUserLocation.tsx +9 -6
  200. package/src/components/user-location/UserLocation.tsx +4 -2
  201. package/src/hooks/useCurrentPosition.ts +2 -2
  202. package/src/modules/log/LogManager.ts +5 -4
  203. package/src/modules/network/NetworkManager.ts +7 -7
  204. package/src/modules/offline/OfflineManager.ts +63 -47
  205. package/src/modules/static-map/StaticMapManager.ts +2 -2
  206. package/src/modules/transform-request/TransformRequestManager.ts +56 -49
  207. package/src/plugin/MapLibrePluginProps.ts +10 -15
  208. package/src/plugin/ios.ts +9 -8
  209. package/src/types/Anchor.ts +5 -6
  210. package/src/types/LngLatBounds.ts +2 -1
  211. package/src/types/MapLibreRNStyles.ts +243 -93
  212. package/src/types/sources/PressableSourceProps.ts +1 -2
  213. package/src/utils/animated/AbstractAnimatedCoordinates.ts +2 -2
  214. package/src/utils/animated/AnimatedCoordinatesArray.ts +6 -6
  215. package/src/utils/animated/AnimatedGeoJSON.ts +2 -1
  216. package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +6 -6
  217. 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,