@maplibre/maplibre-react-native 11.0.0-beta.3 → 11.0.0-beta.31

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 (739) hide show
  1. package/MapLibreReactNative.podspec +1 -1
  2. package/android/build.gradle +3 -1
  3. package/android/gradle.properties +2 -2
  4. package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +14 -1
  5. package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerView.kt +35 -28
  6. package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerViewContent.kt +9 -14
  7. package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerViewManager.kt +8 -1
  8. package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MarkerViewManager.kt +20 -13
  9. package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotation.kt +45 -25
  10. package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotationManager.kt +2 -1
  11. package/android/src/main/java/org/maplibre/reactnative/components/layer/MLRNLayer.kt +8 -8
  12. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyle.kt +60 -0
  13. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.kt +3005 -0
  14. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleValue.kt +159 -0
  15. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +239 -124
  16. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.kt +37 -3
  17. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewModule.kt +3 -1
  18. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNLogModule.kt +2 -0
  19. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNNetworkModule.kt +0 -42
  20. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNOfflineModule.kt +27 -4
  21. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNTransformRequestModule.kt +144 -0
  22. package/android/src/main/java/org/maplibre/reactnative/modules/TransformRequestInterceptor.kt +184 -0
  23. package/ios/components/annotations/point-annotation/MLRNPointAnnotation.h +3 -2
  24. package/ios/components/annotations/point-annotation/MLRNPointAnnotation.m +65 -2
  25. package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.mm +27 -19
  26. package/ios/components/camera/MLRNCameraComponentView.mm +5 -4
  27. package/ios/components/images/MLRNImageLoader.h +27 -0
  28. package/ios/components/images/MLRNImageLoader.m +85 -0
  29. package/ios/components/images/MLRNImageQueue.h +2 -2
  30. package/ios/components/images/MLRNImageQueue.m +2 -2
  31. package/ios/components/images/MLRNImageQueueOperation.h +2 -2
  32. package/ios/components/images/MLRNImageQueueOperation.m +3 -3
  33. package/ios/components/images/MLRNImages.h +0 -3
  34. package/ios/components/images/MLRNImages.m +6 -6
  35. package/ios/components/images/MLRNImagesComponentView.mm +0 -3
  36. package/ios/components/images/MLRNImagesModule.h +6 -0
  37. package/ios/components/images/MLRNImagesModule.mm +23 -0
  38. package/ios/components/layer/MLRNLayer.h +0 -3
  39. package/ios/components/layer/MLRNLayer.m +0 -1
  40. package/ios/components/layer/MLRNLayerComponentView.mm +12 -11
  41. package/ios/components/layer/style/MLRNStyle.h +1 -3
  42. package/ios/components/layer/style/MLRNStyle.m +68 -71
  43. package/ios/components/map-view/MLRNMapView.h +8 -1
  44. package/ios/components/map-view/MLRNMapView.m +106 -24
  45. package/ios/components/map-view/MLRNMapViewComponentView.mm +29 -5
  46. package/ios/components/map-view/MLRNMapViewModule.mm +1 -1
  47. package/ios/components/sources/geojson-source/MLRNGeoJSONSource.h +0 -3
  48. package/ios/components/sources/image-source/MLRNImageSourceComponentView.mm +1 -1
  49. package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.mm +2 -3
  50. package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.mm +2 -3
  51. package/ios/modules/logging/MLRNLogging.h +4 -0
  52. package/ios/modules/logging/MLRNLogging.m +8 -0
  53. package/ios/modules/network/MLRNNetworkModule.mm +0 -10
  54. package/ios/modules/offline/MLRNOfflineModule.h +1 -2
  55. package/ios/modules/offline/MLRNOfflineModule.mm +9 -9
  56. package/ios/modules/transform-request/MLRNTransformRequest.h +38 -0
  57. package/ios/modules/transform-request/MLRNTransformRequest.m +413 -0
  58. package/ios/modules/transform-request/MLRNTransformRequestModule.h +9 -0
  59. package/ios/modules/transform-request/MLRNTransformRequestModule.mm +72 -0
  60. package/ios/utils/MLRNUtils.h +0 -14
  61. package/ios/utils/MLRNUtils.m +0 -71
  62. package/lib/commonjs/components/annotations/callout/Callout.js +2 -1
  63. package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -1
  64. package/lib/commonjs/components/annotations/marker/Marker.js +21 -3
  65. package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
  66. package/lib/commonjs/components/annotations/marker/MarkerViewNativeComponent.ts +12 -2
  67. package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +5 -4
  68. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +25 -19
  69. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  70. package/lib/commonjs/components/camera/Camera.js +52 -3
  71. package/lib/commonjs/components/camera/Camera.js.map +1 -1
  72. package/lib/commonjs/components/images/Images.js +12 -2
  73. package/lib/commonjs/components/images/Images.js.map +1 -1
  74. package/lib/commonjs/components/images/NativeImagesModule.js +10 -0
  75. package/lib/commonjs/components/images/NativeImagesModule.js.map +1 -0
  76. package/lib/commonjs/components/layer/Layer.js +35 -70
  77. package/lib/commonjs/components/layer/Layer.js.map +1 -1
  78. package/lib/commonjs/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
  79. package/lib/commonjs/components/map/Map.js +29 -4
  80. package/lib/commonjs/components/map/Map.js.map +1 -1
  81. package/lib/commonjs/components/map/MapViewNativeComponent.ts +6 -1
  82. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +6 -5
  83. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  84. package/lib/commonjs/components/sources/image-source/ImageSource.js +3 -2
  85. package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -1
  86. package/lib/commonjs/components/sources/raster-source/RasterSource.js +4 -3
  87. package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -1
  88. package/lib/commonjs/components/sources/vector-source/VectorSource.js +8 -5
  89. package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -1
  90. package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -1
  91. package/lib/commonjs/components/user-location/UserLocation.js +21 -12
  92. package/lib/commonjs/components/user-location/UserLocation.js.map +1 -1
  93. package/lib/commonjs/components/user-location/UserLocationPuck.js +16 -16
  94. package/lib/commonjs/components/user-location/UserLocationPuck.js.map +1 -1
  95. package/lib/commonjs/components/user-location/UserLocationPuckHeading.js +8 -10
  96. package/lib/commonjs/components/user-location/UserLocationPuckHeading.js.map +1 -1
  97. package/lib/commonjs/index.js +7 -0
  98. package/lib/commonjs/index.js.map +1 -1
  99. package/lib/commonjs/modules/log/LogManager.js +5 -4
  100. package/lib/commonjs/modules/log/LogManager.js.map +1 -1
  101. package/lib/commonjs/modules/network/NativeNetworkModule.js.map +1 -1
  102. package/lib/commonjs/modules/network/NetworkManager.js +6 -44
  103. package/lib/commonjs/modules/network/NetworkManager.js.map +1 -1
  104. package/lib/commonjs/modules/offline/OfflineManager.js +109 -62
  105. package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -1
  106. package/lib/commonjs/modules/static-map/StaticMapManager.js +13 -5
  107. package/lib/commonjs/modules/static-map/StaticMapManager.js.map +1 -1
  108. package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js +9 -0
  109. package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
  110. package/lib/commonjs/modules/transform-request/TransformRequestManager.js +233 -0
  111. package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -0
  112. package/lib/commonjs/plugin/ios.js +28 -15
  113. package/lib/commonjs/plugin/ios.js.map +1 -1
  114. package/lib/commonjs/types/Anchor.js +5 -6
  115. package/lib/commonjs/types/Anchor.js.map +1 -1
  116. package/lib/commonjs/types/PressableSourceProps.js.map +1 -0
  117. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  118. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +6 -6
  119. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +2 -1
  120. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -1
  121. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  122. package/lib/commonjs/utils/convertStyleSpec.js +4 -4
  123. package/lib/commonjs/utils/getStylePropertyType.js +1 -1
  124. package/lib/module/components/annotations/callout/Callout.js +2 -1
  125. package/lib/module/components/annotations/callout/Callout.js.map +1 -1
  126. package/lib/module/components/annotations/marker/Marker.js +22 -4
  127. package/lib/module/components/annotations/marker/Marker.js.map +1 -1
  128. package/lib/module/components/annotations/marker/MarkerViewNativeComponent.ts +12 -2
  129. package/lib/module/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +5 -4
  130. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +25 -20
  131. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  132. package/lib/module/components/camera/Camera.js +53 -4
  133. package/lib/module/components/camera/Camera.js.map +1 -1
  134. package/lib/module/components/images/Images.js +12 -2
  135. package/lib/module/components/images/Images.js.map +1 -1
  136. package/lib/module/components/images/NativeImagesModule.js +7 -0
  137. package/lib/module/components/images/NativeImagesModule.js.map +1 -0
  138. package/lib/module/components/layer/Layer.js +35 -70
  139. package/lib/module/components/layer/Layer.js.map +1 -1
  140. package/lib/module/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
  141. package/lib/module/components/map/Map.js +30 -5
  142. package/lib/module/components/map/Map.js.map +1 -1
  143. package/lib/module/components/map/MapViewNativeComponent.ts +6 -1
  144. package/lib/module/components/sources/geojson-source/GeoJSONSource.js +7 -6
  145. package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  146. package/lib/module/components/sources/image-source/ImageSource.js +3 -2
  147. package/lib/module/components/sources/image-source/ImageSource.js.map +1 -1
  148. package/lib/module/components/sources/raster-source/RasterSource.js +4 -3
  149. package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -1
  150. package/lib/module/components/sources/vector-source/VectorSource.js +9 -6
  151. package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -1
  152. package/lib/module/components/user-location/NativeUserLocation.js.map +1 -1
  153. package/lib/module/components/user-location/UserLocation.js +21 -13
  154. package/lib/module/components/user-location/UserLocation.js.map +1 -1
  155. package/lib/module/components/user-location/UserLocationPuck.js +16 -16
  156. package/lib/module/components/user-location/UserLocationPuck.js.map +1 -1
  157. package/lib/module/components/user-location/UserLocationPuckHeading.js +8 -9
  158. package/lib/module/components/user-location/UserLocationPuckHeading.js.map +1 -1
  159. package/lib/module/index.js +1 -0
  160. package/lib/module/index.js.map +1 -1
  161. package/lib/module/modules/log/LogManager.js +5 -4
  162. package/lib/module/modules/log/LogManager.js.map +1 -1
  163. package/lib/module/modules/network/NativeNetworkModule.js.map +1 -1
  164. package/lib/module/modules/network/NetworkManager.js +6 -44
  165. package/lib/module/modules/network/NetworkManager.js.map +1 -1
  166. package/lib/module/modules/offline/OfflineManager.js +109 -62
  167. package/lib/module/modules/offline/OfflineManager.js.map +1 -1
  168. package/lib/module/modules/static-map/StaticMapManager.js +13 -5
  169. package/lib/module/modules/static-map/StaticMapManager.js.map +1 -1
  170. package/lib/module/modules/transform-request/NativeTransformRequestModule.js +5 -0
  171. package/lib/module/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
  172. package/lib/module/modules/transform-request/TransformRequestManager.js +230 -0
  173. package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -0
  174. package/lib/module/plugin/ios.js +28 -15
  175. package/lib/module/plugin/ios.js.map +1 -1
  176. package/lib/module/types/Anchor.js +5 -6
  177. package/lib/module/types/Anchor.js.map +1 -1
  178. package/lib/module/types/PressableSourceProps.js.map +1 -0
  179. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  180. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +6 -6
  181. package/lib/module/utils/animated/AnimatedGeoJSON.js +2 -1
  182. package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -1
  183. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  184. package/lib/module/utils/convertStyleSpec.js +4 -4
  185. package/lib/module/utils/getStylePropertyType.js +1 -1
  186. package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/{src/components → components}/annotations/callout/Callout.d.ts +3 -2
  188. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
  190. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts +79 -0
  191. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -0
  192. package/lib/typescript/commonjs/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +12 -2
  193. package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
  194. package/lib/typescript/commonjs/{src/components → components}/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +5 -4
  195. package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
  196. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts +120 -0
  197. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
  198. package/lib/typescript/commonjs/{src/components → components}/camera/Camera.d.ts +85 -43
  199. package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -0
  200. package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts.map +1 -0
  202. package/lib/typescript/{module/src → commonjs}/components/images/Images.d.ts +20 -12
  203. package/lib/typescript/commonjs/components/images/Images.d.ts.map +1 -0
  204. package/lib/typescript/commonjs/components/images/ImagesNativeComponent.d.ts.map +1 -0
  205. package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts +6 -0
  206. package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts.map +1 -0
  207. package/lib/typescript/{module/src → commonjs}/components/layer/Layer.d.ts +41 -67
  208. package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -0
  209. package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts.map +1 -0
  210. package/lib/typescript/commonjs/{src/components → components}/map/AndroidTextureMapViewNativeComponent.d.ts +5 -1
  211. package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
  212. package/lib/typescript/commonjs/{src/components → components}/map/Map.d.ts +154 -78
  213. package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -0
  214. package/lib/typescript/{module/src → commonjs}/components/map/MapViewNativeComponent.d.ts +5 -1
  215. package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts.map +1 -0
  216. package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/GeoJSONSource.d.ts +47 -44
  218. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
  220. package/lib/typescript/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/{src/components → components}/sources/image-source/ImageSource.d.ts +5 -3
  222. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/{src/components → components}/sources/raster-source/RasterSource.d.ts +20 -15
  225. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -0
  226. package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
  228. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +75 -0
  229. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -0
  230. package/lib/typescript/commonjs/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/{src/components → components}/user-location/NativeUserLocation.d.ts +9 -6
  232. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -0
  233. package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocation.d.ts +4 -2
  234. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -0
  235. package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
  236. package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
  238. package/lib/typescript/commonjs/{src/hooks → hooks}/useCurrentPosition.d.ts +2 -2
  239. package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts.map +1 -0
  240. package/lib/typescript/commonjs/hooks/useFrozenId.d.ts.map +1 -0
  241. package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/{src/index.d.ts → index.d.ts} +4 -3
  243. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  244. package/lib/typescript/commonjs/modules/location/LocationManager.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/{src/modules → modules}/log/LogManager.d.ts +5 -4
  247. package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -0
  248. package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts.map +1 -0
  249. package/lib/typescript/commonjs/{src/modules → modules}/network/NativeNetworkModule.d.ts +0 -2
  250. package/lib/typescript/commonjs/modules/network/NativeNetworkModule.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +24 -0
  252. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -0
  253. package/lib/typescript/commonjs/modules/offline/NativeOfflineModule.d.ts.map +1 -0
  254. package/lib/typescript/commonjs/{src/modules → modules}/offline/OfflineManager.d.ts +110 -63
  255. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/{src/modules → modules}/static-map/StaticMapManager.d.ts +15 -7
  259. package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts.map +1 -0
  260. package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
  261. package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
  262. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +213 -0
  263. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/{src/plugin → plugin}/MapLibrePluginProps.d.ts +10 -15
  265. package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts.map +1 -0
  266. package/lib/typescript/commonjs/plugin/android.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/{src/plugin → plugin}/ios.d.ts +2 -2
  268. package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/plugin/withMapLibre.d.ts.map +1 -0
  270. package/lib/typescript/commonjs/types/Anchor.d.ts +16 -0
  271. package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -0
  272. package/lib/typescript/commonjs/types/BaseProps.d.ts +7 -0
  273. package/lib/typescript/commonjs/types/BaseProps.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/types/LngLat.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/{src/types → types}/LngLatBounds.d.ts +2 -1
  276. package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/{src/types → types}/MapLibreRNStyles.d.ts +326 -142
  278. package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/types/PixelPoint.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/types/PixelPointBounds.d.ts.map +1 -0
  281. package/lib/typescript/{module/src → commonjs}/types/PressEvent.d.ts +3 -0
  282. package/lib/typescript/commonjs/types/PressEvent.d.ts.map +1 -0
  283. package/lib/typescript/commonjs/{src/types → types}/PressEventWithFeatures.d.ts +3 -0
  284. package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts.map +1 -0
  285. package/lib/typescript/{module/src/types/sources → commonjs/types}/PressableSourceProps.d.ts +6 -4
  286. package/lib/typescript/commonjs/types/PressableSourceProps.d.ts.map +1 -0
  287. package/lib/typescript/{module/src → commonjs}/types/ViewPadding.d.ts +3 -0
  288. package/lib/typescript/commonjs/types/ViewPadding.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/utils/BridgeValue.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/utils/StyleValue.d.ts.map +1 -0
  292. package/lib/typescript/commonjs/{src/utils → utils}/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  293. package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  294. package/lib/typescript/{module/src → commonjs}/utils/animated/Animated.d.ts +2 -2
  295. package/lib/typescript/commonjs/utils/animated/Animated.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedCoordinatesArray.d.ts +6 -6
  297. package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  299. package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedGeoJSON.d.ts +2 -1
  300. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
  301. package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts.map +1 -0
  302. package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  303. package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  304. package/lib/typescript/{module/src → commonjs}/utils/convertStyleSpec.d.ts +4 -4
  305. package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts.map +1 -0
  306. package/lib/typescript/commonjs/utils/findNodeHandle.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/utils/getNativeFilter.d.ts.map +1 -0
  308. package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
  310. package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts.map +1 -0
  311. package/lib/typescript/module/{src/components → components}/annotations/callout/Callout.d.ts +3 -2
  312. package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -0
  313. package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
  314. package/lib/typescript/module/components/annotations/marker/Marker.d.ts +79 -0
  315. package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -0
  316. package/lib/typescript/module/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +12 -2
  317. package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
  318. package/lib/typescript/module/{src/components → components}/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +5 -4
  319. package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
  320. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts +120 -0
  321. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
  322. package/lib/typescript/module/{src/components → components}/camera/Camera.d.ts +85 -43
  323. package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -0
  324. package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts.map +1 -0
  325. package/lib/typescript/module/components/camera/NativeCameraModule.d.ts.map +1 -0
  326. package/lib/typescript/{commonjs/src → module}/components/images/Images.d.ts +20 -12
  327. package/lib/typescript/module/components/images/Images.d.ts.map +1 -0
  328. package/lib/typescript/module/components/images/ImagesNativeComponent.d.ts.map +1 -0
  329. package/lib/typescript/module/components/images/NativeImagesModule.d.ts +6 -0
  330. package/lib/typescript/module/components/images/NativeImagesModule.d.ts.map +1 -0
  331. package/lib/typescript/{commonjs/src → module}/components/layer/Layer.d.ts +41 -67
  332. package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -0
  333. package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts.map +1 -0
  334. package/lib/typescript/module/{src/components → components}/map/AndroidTextureMapViewNativeComponent.d.ts +5 -1
  335. package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
  336. package/lib/typescript/module/{src/components → components}/map/Map.d.ts +154 -78
  337. package/lib/typescript/module/components/map/Map.d.ts.map +1 -0
  338. package/lib/typescript/{commonjs/src → module}/components/map/MapViewNativeComponent.d.ts +5 -1
  339. package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts.map +1 -0
  340. package/lib/typescript/module/components/map/NativeMapViewModule.d.ts.map +1 -0
  341. package/lib/typescript/module/{src/components → components}/sources/geojson-source/GeoJSONSource.d.ts +47 -44
  342. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
  343. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
  344. package/lib/typescript/module/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
  345. package/lib/typescript/module/{src/components → components}/sources/image-source/ImageSource.d.ts +5 -3
  346. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -0
  347. package/lib/typescript/module/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
  348. package/lib/typescript/module/{src/components → components}/sources/raster-source/RasterSource.d.ts +20 -15
  349. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -0
  350. package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
  351. package/lib/typescript/module/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
  352. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +75 -0
  353. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -0
  354. package/lib/typescript/module/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
  355. package/lib/typescript/module/{src/components → components}/user-location/NativeUserLocation.d.ts +9 -6
  356. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -0
  357. package/lib/typescript/module/{src/components → components}/user-location/UserLocation.d.ts +4 -2
  358. package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -0
  359. package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
  360. package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts.map +1 -0
  361. package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
  362. package/lib/typescript/module/{src/hooks → hooks}/useCurrentPosition.d.ts +2 -2
  363. package/lib/typescript/module/hooks/useCurrentPosition.d.ts.map +1 -0
  364. package/lib/typescript/module/hooks/useFrozenId.d.ts.map +1 -0
  365. package/lib/typescript/module/hooks/useNativeBridge.d.ts.map +1 -0
  366. package/lib/typescript/module/{src/index.d.ts → index.d.ts} +4 -3
  367. package/lib/typescript/module/index.d.ts.map +1 -0
  368. package/lib/typescript/module/modules/location/LocationManager.d.ts.map +1 -0
  369. package/lib/typescript/module/modules/location/NativeLocationModule.d.ts.map +1 -0
  370. package/lib/typescript/module/{src/modules → modules}/log/LogManager.d.ts +5 -4
  371. package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -0
  372. package/lib/typescript/module/modules/log/NativeLogModule.d.ts.map +1 -0
  373. package/lib/typescript/module/{src/modules → modules}/network/NativeNetworkModule.d.ts +0 -2
  374. package/lib/typescript/module/modules/network/NativeNetworkModule.d.ts.map +1 -0
  375. package/lib/typescript/module/modules/network/NetworkManager.d.ts +24 -0
  376. package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -0
  377. package/lib/typescript/module/modules/offline/NativeOfflineModule.d.ts.map +1 -0
  378. package/lib/typescript/module/{src/modules → modules}/offline/OfflineManager.d.ts +110 -63
  379. package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -0
  380. package/lib/typescript/module/modules/offline/OfflinePack.d.ts.map +1 -0
  381. package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
  382. package/lib/typescript/module/{src/modules → modules}/static-map/StaticMapManager.d.ts +15 -7
  383. package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts.map +1 -0
  384. package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
  385. package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
  386. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +213 -0
  387. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
  388. package/lib/typescript/module/{src/plugin → plugin}/MapLibrePluginProps.d.ts +10 -15
  389. package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts.map +1 -0
  390. package/lib/typescript/module/plugin/android.d.ts.map +1 -0
  391. package/lib/typescript/module/{src/plugin → plugin}/ios.d.ts +2 -2
  392. package/lib/typescript/module/plugin/ios.d.ts.map +1 -0
  393. package/lib/typescript/module/plugin/withMapLibre.d.ts.map +1 -0
  394. package/lib/typescript/module/types/Anchor.d.ts +16 -0
  395. package/lib/typescript/module/types/Anchor.d.ts.map +1 -0
  396. package/lib/typescript/module/types/BaseProps.d.ts +7 -0
  397. package/lib/typescript/module/types/BaseProps.d.ts.map +1 -0
  398. package/lib/typescript/module/types/LngLat.d.ts.map +1 -0
  399. package/lib/typescript/module/{src/types → types}/LngLatBounds.d.ts +2 -1
  400. package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -0
  401. package/lib/typescript/module/{src/types → types}/MapLibreRNStyles.d.ts +326 -142
  402. package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -0
  403. package/lib/typescript/module/types/PixelPoint.d.ts.map +1 -0
  404. package/lib/typescript/module/types/PixelPointBounds.d.ts.map +1 -0
  405. package/lib/typescript/{commonjs/src → module}/types/PressEvent.d.ts +3 -0
  406. package/lib/typescript/module/types/PressEvent.d.ts.map +1 -0
  407. package/lib/typescript/module/{src/types → types}/PressEventWithFeatures.d.ts +3 -0
  408. package/lib/typescript/module/types/PressEventWithFeatures.d.ts.map +1 -0
  409. package/lib/typescript/{commonjs/src/types/sources → module/types}/PressableSourceProps.d.ts +6 -4
  410. package/lib/typescript/module/types/PressableSourceProps.d.ts.map +1 -0
  411. package/lib/typescript/{commonjs/src → module}/types/ViewPadding.d.ts +3 -0
  412. package/lib/typescript/module/types/ViewPadding.d.ts.map +1 -0
  413. package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts.map +1 -0
  414. package/lib/typescript/module/utils/BridgeValue.d.ts.map +1 -0
  415. package/lib/typescript/module/utils/StyleValue.d.ts.map +1 -0
  416. package/lib/typescript/module/{src/utils → utils}/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  417. package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  418. package/lib/typescript/{commonjs/src → module}/utils/animated/Animated.d.ts +2 -2
  419. package/lib/typescript/module/utils/animated/Animated.d.ts.map +1 -0
  420. package/lib/typescript/module/{src/utils → utils}/animated/AnimatedCoordinatesArray.d.ts +6 -6
  421. package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  422. package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  423. package/lib/typescript/module/{src/utils → utils}/animated/AnimatedGeoJSON.d.ts +2 -1
  424. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
  425. package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts.map +1 -0
  426. package/lib/typescript/module/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  427. package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  428. package/lib/typescript/{commonjs/src → module}/utils/convertStyleSpec.d.ts +4 -4
  429. package/lib/typescript/module/utils/convertStyleSpec.d.ts.map +1 -0
  430. package/lib/typescript/module/utils/findNodeHandle.d.ts.map +1 -0
  431. package/lib/typescript/module/utils/getNativeFilter.d.ts.map +1 -0
  432. package/lib/typescript/module/utils/getStylePropertyType.d.ts.map +1 -0
  433. package/lib/typescript/module/utils/index.d.ts.map +1 -0
  434. package/package.json +23 -44
  435. package/src/components/annotations/callout/Callout.tsx +3 -2
  436. package/src/components/annotations/marker/Marker.tsx +70 -18
  437. package/src/components/annotations/marker/MarkerViewNativeComponent.ts +12 -2
  438. package/src/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +5 -4
  439. package/src/components/annotations/view-annotation/ViewAnnotation.tsx +115 -94
  440. package/src/components/camera/Camera.tsx +149 -111
  441. package/src/components/images/Images.tsx +20 -12
  442. package/src/components/images/NativeImagesModule.ts +11 -0
  443. package/src/components/layer/Layer.tsx +50 -86
  444. package/src/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
  445. package/src/components/map/Map.tsx +300 -233
  446. package/src/components/map/MapViewNativeComponent.ts +6 -1
  447. package/src/components/sources/geojson-source/GeoJSONSource.tsx +106 -104
  448. package/src/components/sources/image-source/ImageSource.tsx +5 -3
  449. package/src/components/sources/raster-source/RasterSource.tsx +20 -15
  450. package/src/components/sources/vector-source/VectorSource.tsx +67 -59
  451. package/src/components/user-location/NativeUserLocation.tsx +9 -6
  452. package/src/components/user-location/UserLocation.tsx +34 -20
  453. package/src/components/user-location/UserLocationPuck.tsx +20 -20
  454. package/src/components/user-location/UserLocationPuckHeading.tsx +9 -10
  455. package/src/hooks/useCurrentPosition.ts +2 -2
  456. package/src/index.ts +17 -5
  457. package/src/modules/log/LogManager.ts +5 -4
  458. package/src/modules/network/NativeNetworkModule.ts +0 -4
  459. package/src/modules/network/NetworkManager.ts +6 -52
  460. package/src/modules/offline/OfflineManager.ts +109 -62
  461. package/src/modules/static-map/StaticMapManager.ts +15 -7
  462. package/src/modules/transform-request/NativeTransformRequestModule.ts +41 -0
  463. package/src/modules/transform-request/TransformRequestManager.ts +304 -0
  464. package/src/plugin/MapLibrePluginProps.ts +10 -15
  465. package/src/plugin/ios.ts +43 -21
  466. package/src/types/Anchor.ts +5 -6
  467. package/src/types/BaseProps.ts +3 -0
  468. package/src/types/LngLatBounds.ts +2 -1
  469. package/src/types/MapLibreRNStyles.ts +336 -201
  470. package/src/types/PressEvent.ts +3 -0
  471. package/src/types/PressEventWithFeatures.ts +3 -0
  472. package/src/types/{sources/PressableSourceProps.ts → PressableSourceProps.ts} +6 -4
  473. package/src/types/ViewPadding.ts +3 -0
  474. package/src/utils/animated/AbstractAnimatedCoordinates.ts +2 -2
  475. package/src/utils/animated/AnimatedCoordinatesArray.ts +6 -6
  476. package/src/utils/animated/AnimatedGeoJSON.ts +2 -1
  477. package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +6 -6
  478. package/src/utils/convertStyleSpec.ts +4 -4
  479. package/src/utils/getStylePropertyType.ts +1 -1
  480. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyle.java +0 -76
  481. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.java +0 -2285
  482. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFunctionParser.java +0 -94
  483. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleValue.java +0 -207
  484. package/android/src/main/java/org/maplibre/reactnative/events/AndroidCallbackEvent.java +0 -34
  485. package/android/src/main/java/org/maplibre/reactnative/http/RequestHeadersInterceptor.kt +0 -65
  486. package/android/src/main/res/layout/annotation.xml +0 -17
  487. package/ios/modules/network/MLRNNetworkHTTPHeaders.h +0 -14
  488. package/ios/modules/network/MLRNNetworkHTTPHeaders.m +0 -97
  489. package/lib/commonjs/types/sources/PressableSourceProps.js.map +0 -1
  490. package/lib/module/types/sources/PressableSourceProps.js.map +0 -1
  491. package/lib/typescript/commonjs/src/components/annotations/LayerAnnotation.d.ts.map +0 -1
  492. package/lib/typescript/commonjs/src/components/annotations/callout/Callout.d.ts.map +0 -1
  493. package/lib/typescript/commonjs/src/components/annotations/callout/CalloutNativeComponent.d.ts.map +0 -1
  494. package/lib/typescript/commonjs/src/components/annotations/marker/Marker.d.ts +0 -52
  495. package/lib/typescript/commonjs/src/components/annotations/marker/Marker.d.ts.map +0 -1
  496. package/lib/typescript/commonjs/src/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +0 -1
  497. package/lib/typescript/commonjs/src/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +0 -1
  498. package/lib/typescript/commonjs/src/components/annotations/view-annotation/ViewAnnotation.d.ts +0 -95
  499. package/lib/typescript/commonjs/src/components/annotations/view-annotation/ViewAnnotation.d.ts.map +0 -1
  500. package/lib/typescript/commonjs/src/components/camera/Camera.d.ts.map +0 -1
  501. package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts.map +0 -1
  502. package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts.map +0 -1
  503. package/lib/typescript/commonjs/src/components/images/Images.d.ts.map +0 -1
  504. package/lib/typescript/commonjs/src/components/images/ImagesNativeComponent.d.ts.map +0 -1
  505. package/lib/typescript/commonjs/src/components/layer/Layer.d.ts.map +0 -1
  506. package/lib/typescript/commonjs/src/components/layer/LayerNativeComponent.d.ts.map +0 -1
  507. package/lib/typescript/commonjs/src/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +0 -1
  508. package/lib/typescript/commonjs/src/components/map/Map.d.ts.map +0 -1
  509. package/lib/typescript/commonjs/src/components/map/MapViewNativeComponent.d.ts.map +0 -1
  510. package/lib/typescript/commonjs/src/components/map/NativeMapViewModule.d.ts.map +0 -1
  511. package/lib/typescript/commonjs/src/components/sources/geojson-source/GeoJSONSource.d.ts.map +0 -1
  512. package/lib/typescript/commonjs/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +0 -1
  513. package/lib/typescript/commonjs/src/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +0 -1
  514. package/lib/typescript/commonjs/src/components/sources/image-source/ImageSource.d.ts.map +0 -1
  515. package/lib/typescript/commonjs/src/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +0 -1
  516. package/lib/typescript/commonjs/src/components/sources/raster-source/RasterSource.d.ts.map +0 -1
  517. package/lib/typescript/commonjs/src/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +0 -1
  518. package/lib/typescript/commonjs/src/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +0 -1
  519. package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSource.d.ts +0 -66
  520. package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSource.d.ts.map +0 -1
  521. package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +0 -1
  522. package/lib/typescript/commonjs/src/components/user-location/NativeUserLocation.d.ts.map +0 -1
  523. package/lib/typescript/commonjs/src/components/user-location/UserLocation.d.ts.map +0 -1
  524. package/lib/typescript/commonjs/src/components/user-location/UserLocationNativeComponent.d.ts.map +0 -1
  525. package/lib/typescript/commonjs/src/components/user-location/UserLocationPuck.d.ts.map +0 -1
  526. package/lib/typescript/commonjs/src/components/user-location/UserLocationPuckHeading.d.ts.map +0 -1
  527. package/lib/typescript/commonjs/src/hooks/useCurrentPosition.d.ts.map +0 -1
  528. package/lib/typescript/commonjs/src/hooks/useFrozenId.d.ts.map +0 -1
  529. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +0 -1
  530. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  531. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +0 -1
  532. package/lib/typescript/commonjs/src/modules/location/NativeLocationModule.d.ts.map +0 -1
  533. package/lib/typescript/commonjs/src/modules/log/LogManager.d.ts.map +0 -1
  534. package/lib/typescript/commonjs/src/modules/log/NativeLogModule.d.ts.map +0 -1
  535. package/lib/typescript/commonjs/src/modules/network/NativeNetworkModule.d.ts.map +0 -1
  536. package/lib/typescript/commonjs/src/modules/network/NetworkManager.d.ts +0 -56
  537. package/lib/typescript/commonjs/src/modules/network/NetworkManager.d.ts.map +0 -1
  538. package/lib/typescript/commonjs/src/modules/offline/NativeOfflineModule.d.ts.map +0 -1
  539. package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +0 -1
  540. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +0 -1
  541. package/lib/typescript/commonjs/src/modules/static-map/NativeStaticMapModule.d.ts.map +0 -1
  542. package/lib/typescript/commonjs/src/modules/static-map/StaticMapManager.d.ts.map +0 -1
  543. package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +0 -1
  544. package/lib/typescript/commonjs/src/plugin/android.d.ts.map +0 -1
  545. package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +0 -1
  546. package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +0 -1
  547. package/lib/typescript/commonjs/src/types/Anchor.d.ts +0 -17
  548. package/lib/typescript/commonjs/src/types/Anchor.d.ts.map +0 -1
  549. package/lib/typescript/commonjs/src/types/BaseProps.d.ts +0 -4
  550. package/lib/typescript/commonjs/src/types/BaseProps.d.ts.map +0 -1
  551. package/lib/typescript/commonjs/src/types/LngLat.d.ts.map +0 -1
  552. package/lib/typescript/commonjs/src/types/LngLatBounds.d.ts.map +0 -1
  553. package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +0 -1
  554. package/lib/typescript/commonjs/src/types/PixelPoint.d.ts.map +0 -1
  555. package/lib/typescript/commonjs/src/types/PixelPointBounds.d.ts.map +0 -1
  556. package/lib/typescript/commonjs/src/types/PressEvent.d.ts.map +0 -1
  557. package/lib/typescript/commonjs/src/types/PressEventWithFeatures.d.ts.map +0 -1
  558. package/lib/typescript/commonjs/src/types/ViewPadding.d.ts.map +0 -1
  559. package/lib/typescript/commonjs/src/types/codegen/UnsafeMixed.d.ts.map +0 -1
  560. package/lib/typescript/commonjs/src/types/sources/PressableSourceProps.d.ts.map +0 -1
  561. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +0 -1
  562. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +0 -1
  563. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +0 -1
  564. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +0 -1
  565. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +0 -1
  566. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +0 -1
  567. package/lib/typescript/commonjs/src/utils/animated/AnimatedGeoJSON.d.ts.map +0 -1
  568. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +0 -1
  569. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +0 -1
  570. package/lib/typescript/commonjs/src/utils/convertStyleSpec.d.ts.map +0 -1
  571. package/lib/typescript/commonjs/src/utils/findNodeHandle.d.ts.map +0 -1
  572. package/lib/typescript/commonjs/src/utils/getNativeFilter.d.ts.map +0 -1
  573. package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +0 -1
  574. package/lib/typescript/commonjs/src/utils/index.d.ts.map +0 -1
  575. package/lib/typescript/module/src/components/annotations/LayerAnnotation.d.ts.map +0 -1
  576. package/lib/typescript/module/src/components/annotations/callout/Callout.d.ts.map +0 -1
  577. package/lib/typescript/module/src/components/annotations/callout/CalloutNativeComponent.d.ts.map +0 -1
  578. package/lib/typescript/module/src/components/annotations/marker/Marker.d.ts +0 -52
  579. package/lib/typescript/module/src/components/annotations/marker/Marker.d.ts.map +0 -1
  580. package/lib/typescript/module/src/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +0 -1
  581. package/lib/typescript/module/src/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +0 -1
  582. package/lib/typescript/module/src/components/annotations/view-annotation/ViewAnnotation.d.ts +0 -95
  583. package/lib/typescript/module/src/components/annotations/view-annotation/ViewAnnotation.d.ts.map +0 -1
  584. package/lib/typescript/module/src/components/camera/Camera.d.ts.map +0 -1
  585. package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts.map +0 -1
  586. package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts.map +0 -1
  587. package/lib/typescript/module/src/components/images/Images.d.ts.map +0 -1
  588. package/lib/typescript/module/src/components/images/ImagesNativeComponent.d.ts.map +0 -1
  589. package/lib/typescript/module/src/components/layer/Layer.d.ts.map +0 -1
  590. package/lib/typescript/module/src/components/layer/LayerNativeComponent.d.ts.map +0 -1
  591. package/lib/typescript/module/src/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +0 -1
  592. package/lib/typescript/module/src/components/map/Map.d.ts.map +0 -1
  593. package/lib/typescript/module/src/components/map/MapViewNativeComponent.d.ts.map +0 -1
  594. package/lib/typescript/module/src/components/map/NativeMapViewModule.d.ts.map +0 -1
  595. package/lib/typescript/module/src/components/sources/geojson-source/GeoJSONSource.d.ts.map +0 -1
  596. package/lib/typescript/module/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +0 -1
  597. package/lib/typescript/module/src/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +0 -1
  598. package/lib/typescript/module/src/components/sources/image-source/ImageSource.d.ts.map +0 -1
  599. package/lib/typescript/module/src/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +0 -1
  600. package/lib/typescript/module/src/components/sources/raster-source/RasterSource.d.ts.map +0 -1
  601. package/lib/typescript/module/src/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +0 -1
  602. package/lib/typescript/module/src/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +0 -1
  603. package/lib/typescript/module/src/components/sources/vector-source/VectorSource.d.ts +0 -66
  604. package/lib/typescript/module/src/components/sources/vector-source/VectorSource.d.ts.map +0 -1
  605. package/lib/typescript/module/src/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +0 -1
  606. package/lib/typescript/module/src/components/user-location/NativeUserLocation.d.ts.map +0 -1
  607. package/lib/typescript/module/src/components/user-location/UserLocation.d.ts.map +0 -1
  608. package/lib/typescript/module/src/components/user-location/UserLocationNativeComponent.d.ts.map +0 -1
  609. package/lib/typescript/module/src/components/user-location/UserLocationPuck.d.ts.map +0 -1
  610. package/lib/typescript/module/src/components/user-location/UserLocationPuckHeading.d.ts.map +0 -1
  611. package/lib/typescript/module/src/hooks/useCurrentPosition.d.ts.map +0 -1
  612. package/lib/typescript/module/src/hooks/useFrozenId.d.ts.map +0 -1
  613. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +0 -1
  614. package/lib/typescript/module/src/index.d.ts.map +0 -1
  615. package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +0 -1
  616. package/lib/typescript/module/src/modules/location/NativeLocationModule.d.ts.map +0 -1
  617. package/lib/typescript/module/src/modules/log/LogManager.d.ts.map +0 -1
  618. package/lib/typescript/module/src/modules/log/NativeLogModule.d.ts.map +0 -1
  619. package/lib/typescript/module/src/modules/network/NativeNetworkModule.d.ts.map +0 -1
  620. package/lib/typescript/module/src/modules/network/NetworkManager.d.ts +0 -56
  621. package/lib/typescript/module/src/modules/network/NetworkManager.d.ts.map +0 -1
  622. package/lib/typescript/module/src/modules/offline/NativeOfflineModule.d.ts.map +0 -1
  623. package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +0 -1
  624. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +0 -1
  625. package/lib/typescript/module/src/modules/static-map/NativeStaticMapModule.d.ts.map +0 -1
  626. package/lib/typescript/module/src/modules/static-map/StaticMapManager.d.ts.map +0 -1
  627. package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +0 -1
  628. package/lib/typescript/module/src/plugin/android.d.ts.map +0 -1
  629. package/lib/typescript/module/src/plugin/ios.d.ts.map +0 -1
  630. package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +0 -1
  631. package/lib/typescript/module/src/types/Anchor.d.ts +0 -17
  632. package/lib/typescript/module/src/types/Anchor.d.ts.map +0 -1
  633. package/lib/typescript/module/src/types/BaseProps.d.ts +0 -4
  634. package/lib/typescript/module/src/types/BaseProps.d.ts.map +0 -1
  635. package/lib/typescript/module/src/types/LngLat.d.ts.map +0 -1
  636. package/lib/typescript/module/src/types/LngLatBounds.d.ts.map +0 -1
  637. package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +0 -1
  638. package/lib/typescript/module/src/types/PixelPoint.d.ts.map +0 -1
  639. package/lib/typescript/module/src/types/PixelPointBounds.d.ts.map +0 -1
  640. package/lib/typescript/module/src/types/PressEvent.d.ts.map +0 -1
  641. package/lib/typescript/module/src/types/PressEventWithFeatures.d.ts.map +0 -1
  642. package/lib/typescript/module/src/types/ViewPadding.d.ts.map +0 -1
  643. package/lib/typescript/module/src/types/codegen/UnsafeMixed.d.ts.map +0 -1
  644. package/lib/typescript/module/src/types/sources/PressableSourceProps.d.ts.map +0 -1
  645. package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +0 -1
  646. package/lib/typescript/module/src/utils/StyleValue.d.ts.map +0 -1
  647. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +0 -1
  648. package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +0 -1
  649. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +0 -1
  650. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +0 -1
  651. package/lib/typescript/module/src/utils/animated/AnimatedGeoJSON.d.ts.map +0 -1
  652. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +0 -1
  653. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +0 -1
  654. package/lib/typescript/module/src/utils/convertStyleSpec.d.ts.map +0 -1
  655. package/lib/typescript/module/src/utils/findNodeHandle.d.ts.map +0 -1
  656. package/lib/typescript/module/src/utils/getNativeFilter.d.ts.map +0 -1
  657. package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +0 -1
  658. package/lib/typescript/module/src/utils/index.d.ts.map +0 -1
  659. /package/android/src/main/res/drawable-xxhdpi/{red_marker.png → default_marker.png} +0 -0
  660. /package/ios/{components/images → utils}/MLRNImageUtils.h +0 -0
  661. /package/ios/{components/images → utils}/MLRNImageUtils.m +0 -0
  662. /package/lib/commonjs/types/{sources/PressableSourceProps.js → PressableSourceProps.js} +0 -0
  663. /package/lib/module/types/{sources/PressableSourceProps.js → PressableSourceProps.js} +0 -0
  664. /package/lib/typescript/commonjs/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
  665. /package/lib/typescript/commonjs/{src/components → components}/annotations/callout/CalloutNativeComponent.d.ts +0 -0
  666. /package/lib/typescript/commonjs/{src/components → components}/camera/CameraNativeComponent.d.ts +0 -0
  667. /package/lib/typescript/commonjs/{src/components → components}/camera/NativeCameraModule.d.ts +0 -0
  668. /package/lib/typescript/commonjs/{src/components → components}/images/ImagesNativeComponent.d.ts +0 -0
  669. /package/lib/typescript/commonjs/{src/components → components}/layer/LayerNativeComponent.d.ts +0 -0
  670. /package/lib/typescript/commonjs/{src/components → components}/map/NativeMapViewModule.d.ts +0 -0
  671. /package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +0 -0
  672. /package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +0 -0
  673. /package/lib/typescript/commonjs/{src/components → components}/sources/image-source/ImageSourceNativeComponent.d.ts +0 -0
  674. /package/lib/typescript/commonjs/{src/components → components}/sources/raster-source/RasterSourceNativeComponent.d.ts +0 -0
  675. /package/lib/typescript/commonjs/{src/components → components}/sources/vector-source/NativeVectorSourceModule.d.ts +0 -0
  676. /package/lib/typescript/commonjs/{src/components → components}/sources/vector-source/VectorSourceNativeComponent.d.ts +0 -0
  677. /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationNativeComponent.d.ts +0 -0
  678. /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationPuck.d.ts +0 -0
  679. /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationPuckHeading.d.ts +0 -0
  680. /package/lib/typescript/commonjs/{src/hooks → hooks}/useFrozenId.d.ts +0 -0
  681. /package/lib/typescript/commonjs/{src/hooks → hooks}/useNativeBridge.d.ts +0 -0
  682. /package/lib/typescript/commonjs/{src/modules → modules}/location/LocationManager.d.ts +0 -0
  683. /package/lib/typescript/commonjs/{src/modules → modules}/location/NativeLocationModule.d.ts +0 -0
  684. /package/lib/typescript/commonjs/{src/modules → modules}/log/NativeLogModule.d.ts +0 -0
  685. /package/lib/typescript/commonjs/{src/modules → modules}/offline/NativeOfflineModule.d.ts +0 -0
  686. /package/lib/typescript/commonjs/{src/modules → modules}/offline/OfflinePack.d.ts +0 -0
  687. /package/lib/typescript/commonjs/{src/modules → modules}/static-map/NativeStaticMapModule.d.ts +0 -0
  688. /package/lib/typescript/commonjs/{src/plugin → plugin}/android.d.ts +0 -0
  689. /package/lib/typescript/commonjs/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
  690. /package/lib/typescript/commonjs/{src/types → types}/LngLat.d.ts +0 -0
  691. /package/lib/typescript/commonjs/{src/types → types}/PixelPoint.d.ts +0 -0
  692. /package/lib/typescript/commonjs/{src/types → types}/PixelPointBounds.d.ts +0 -0
  693. /package/lib/typescript/commonjs/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
  694. /package/lib/typescript/commonjs/{src/utils → utils}/BridgeValue.d.ts +0 -0
  695. /package/lib/typescript/commonjs/{src/utils → utils}/StyleValue.d.ts +0 -0
  696. /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -0
  697. /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
  698. /package/lib/typescript/commonjs/{src/utils → utils}/findNodeHandle.d.ts +0 -0
  699. /package/lib/typescript/commonjs/{src/utils → utils}/getNativeFilter.d.ts +0 -0
  700. /package/lib/typescript/commonjs/{src/utils → utils}/getStylePropertyType.d.ts +0 -0
  701. /package/lib/typescript/commonjs/{src/utils → utils}/index.d.ts +0 -0
  702. /package/lib/typescript/module/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
  703. /package/lib/typescript/module/{src/components → components}/annotations/callout/CalloutNativeComponent.d.ts +0 -0
  704. /package/lib/typescript/module/{src/components → components}/camera/CameraNativeComponent.d.ts +0 -0
  705. /package/lib/typescript/module/{src/components → components}/camera/NativeCameraModule.d.ts +0 -0
  706. /package/lib/typescript/module/{src/components → components}/images/ImagesNativeComponent.d.ts +0 -0
  707. /package/lib/typescript/module/{src/components → components}/layer/LayerNativeComponent.d.ts +0 -0
  708. /package/lib/typescript/module/{src/components → components}/map/NativeMapViewModule.d.ts +0 -0
  709. /package/lib/typescript/module/{src/components → components}/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +0 -0
  710. /package/lib/typescript/module/{src/components → components}/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +0 -0
  711. /package/lib/typescript/module/{src/components → components}/sources/image-source/ImageSourceNativeComponent.d.ts +0 -0
  712. /package/lib/typescript/module/{src/components → components}/sources/raster-source/RasterSourceNativeComponent.d.ts +0 -0
  713. /package/lib/typescript/module/{src/components → components}/sources/vector-source/NativeVectorSourceModule.d.ts +0 -0
  714. /package/lib/typescript/module/{src/components → components}/sources/vector-source/VectorSourceNativeComponent.d.ts +0 -0
  715. /package/lib/typescript/module/{src/components → components}/user-location/UserLocationNativeComponent.d.ts +0 -0
  716. /package/lib/typescript/module/{src/components → components}/user-location/UserLocationPuck.d.ts +0 -0
  717. /package/lib/typescript/module/{src/components → components}/user-location/UserLocationPuckHeading.d.ts +0 -0
  718. /package/lib/typescript/module/{src/hooks → hooks}/useFrozenId.d.ts +0 -0
  719. /package/lib/typescript/module/{src/hooks → hooks}/useNativeBridge.d.ts +0 -0
  720. /package/lib/typescript/module/{src/modules → modules}/location/LocationManager.d.ts +0 -0
  721. /package/lib/typescript/module/{src/modules → modules}/location/NativeLocationModule.d.ts +0 -0
  722. /package/lib/typescript/module/{src/modules → modules}/log/NativeLogModule.d.ts +0 -0
  723. /package/lib/typescript/module/{src/modules → modules}/offline/NativeOfflineModule.d.ts +0 -0
  724. /package/lib/typescript/module/{src/modules → modules}/offline/OfflinePack.d.ts +0 -0
  725. /package/lib/typescript/module/{src/modules → modules}/static-map/NativeStaticMapModule.d.ts +0 -0
  726. /package/lib/typescript/module/{src/plugin → plugin}/android.d.ts +0 -0
  727. /package/lib/typescript/module/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
  728. /package/lib/typescript/module/{src/types → types}/LngLat.d.ts +0 -0
  729. /package/lib/typescript/module/{src/types → types}/PixelPoint.d.ts +0 -0
  730. /package/lib/typescript/module/{src/types → types}/PixelPointBounds.d.ts +0 -0
  731. /package/lib/typescript/module/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
  732. /package/lib/typescript/module/{src/utils → utils}/BridgeValue.d.ts +0 -0
  733. /package/lib/typescript/module/{src/utils → utils}/StyleValue.d.ts +0 -0
  734. /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -0
  735. /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
  736. /package/lib/typescript/module/{src/utils → utils}/findNodeHandle.d.ts +0 -0
  737. /package/lib/typescript/module/{src/utils → utils}/getNativeFilter.d.ts +0 -0
  738. /package/lib/typescript/module/{src/utils → utils}/getStylePropertyType.d.ts +0 -0
  739. /package/lib/typescript/module/{src/utils → utils}/index.d.ts +0 -0
@@ -45,7 +45,8 @@ const styles = _reactNative.StyleSheet.create({
45
45
  }
46
46
  });
47
47
  /**
48
- * Callout that displays information about a selected annotation near the annotation.
48
+ * Callout that displays information about a selected annotation near the
49
+ * annotation.
49
50
  */
50
51
  const Callout = ({
51
52
  title,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_CalloutNativeComponent","_interopRequireDefault","_jsxRuntime","e","__esModule","default","styles","StyleSheet","create","animated","alignItems","justifyContent","width","zIndex","content","backgroundColor","borderColor","borderRadius","borderWidth","flex","padding","position","tip","borderBottomColor","borderBottomWidth","borderLeftColor","borderLeftWidth","borderRightColor","borderRightWidth","borderTopColor","borderTopWidth","elevation","marginTop","title","color","textAlign","Callout","style","animatedStyle","contentStyle","tipStyle","titleStyle","children","testID","props","calloutContent","Children","count","jsx","Animated","View","undefined","jsxs","Text","exports"],"sourceRoot":"../../../../../src","sources":["components/annotations/callout/Callout.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,uBA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C,MAAM,EAAEA,MAAO;IACfN,KAAK,EAAE,CACL;MACEhB,QAAQ,EAAE,UAAU;MACpBR,MAAM,EAAE,GAAG;MACXE,eAAe,EAAE;IACnB,CAAC,EACDsB,KAAK,CACL;IAAAK,QAAA,EAEDG;EAAc,CACO,CAAC;AAE7B,CAAC;AAACS,OAAA,CAAAlB,OAAA,GAAAA,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_CalloutNativeComponent","_interopRequireDefault","_jsxRuntime","e","__esModule","default","styles","StyleSheet","create","animated","alignItems","justifyContent","width","zIndex","content","backgroundColor","borderColor","borderRadius","borderWidth","flex","padding","position","tip","borderBottomColor","borderBottomWidth","borderLeftColor","borderLeftWidth","borderRightColor","borderRightWidth","borderTopColor","borderTopWidth","elevation","marginTop","title","color","textAlign","Callout","style","animatedStyle","contentStyle","tipStyle","titleStyle","children","testID","props","calloutContent","Children","count","jsx","Animated","View","undefined","jsxs","Text","exports"],"sourceRoot":"../../../../../src","sources":["components/annotations/callout/Callout.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,uBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAA8D,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9D,MAAMG,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,QAAQ,EAAE;IACRC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE;EACV,CAAC;EACDC,OAAO,EAAE;IACPC,eAAe,EAAE,OAAO;IACxBC,WAAW,EAAE,oBAAoB;IACjCC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,IAAI,EAAE,CAAC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CAAA8C,GAAA,EAACjD,YAAA,CAAAmD,IAAI;MACHP,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,UAAU,GAAGQ,SAAU;MACjDd,KAAK,EAAE,CAAC/B,MAAM,CAACQ,OAAO,EAAEyB,YAAY,CAAE;MAAAG,QAAA,eAEtC,IAAAxC,WAAA,CAAA8C,GAAA,EAACjD,YAAA,CAAAsD,IAAI;QACHV,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,QAAQ,GAAGQ,SAAU;QAC/Cd,KAAK,EAAE,CAAC/B,MAAM,CAAC2B,KAAK,EAAEQ,UAAU,CAAE;QAAAC,QAAA,EAEjCT;MAAK,CACF;IAAC,CACH,CAAC,eACP,IAAA/B,WAAA,CAAA8C,GAAA,EAACjD,YAAA,CAAAmD,IAAI;MACHP,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,MAAM,GAAGQ,SAAU;MAC7Cd,KAAK,EAAE,CAAC/B,MAAM,CAACgB,GAAG,EAAEkB,QAAQ;IAAE,CAC/B,CAAC;EAAA,CACW,CAChB;EAEH,oBACE,IAAAtC,WAAA,CAAA8C,GAAA,EAAChD,uBAAA,CAAAK,OAAsB;IACrBsC,MAAM,EAAEA,MAAO;IACfN,KAAK,EAAE,CACL;MACEhB,QAAQ,EAAE,UAAU;MACpBR,MAAM,EAAE,GAAG;MACXE,eAAe,EAAE;IACnB,CAAC,EACDsB,KAAK,CACL;IAAAK,QAAA,EAEDG;EAAc,CACO,CAAC;AAE7B,CAAC;AAACS,OAAA,CAAAlB,OAAA,GAAAA,OAAA","ignoreList":[]}
@@ -12,29 +12,47 @@ var _Anchor = require("../../../types/Anchor.js");
12
12
  var _ViewAnnotation = require("../view-annotation/ViewAnnotation.js");
13
13
  var _jsxRuntime = require("react/jsx-runtime");
14
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ /**
16
+ * Event emitted by a Marker on press.
17
+ */
18
+
15
19
  /**
16
20
  * Marker allows you to place an interactive React Native View on the map.
17
21
  *
18
- * If you have static view consider using ViewAnnotation or SymbolLayer for better performance.
22
+ * If you have static view consider using ViewAnnotation or SymbolLayer for
23
+ * better performance.
19
24
  *
20
25
  * Implemented through:
21
26
  * - Android: Native Views placed on the map projection
22
- * - iOS: [MLNPointAnnotation](https://maplibre.org/maplibre-native/ios/latest/documentation/maplibre/mlnpointannotation/)
27
+ * - iOS:
28
+ * [MLNPointAnnotation](https://maplibre.org/maplibre-native/ios/latest/documentation/maplibre/mlnpointannotation/)
23
29
  */
24
30
  const Marker = ({
25
31
  id,
26
32
  anchor = "center",
27
33
  offset,
34
+ ref,
28
35
  ...props
29
36
  }) => {
30
37
  const nativeRef = (0, _react.useRef)(null);
38
+ const viewAnnotationRef = (0, _react.useRef)(null);
31
39
  const nativeAnchor = (0, _Anchor.anchorToNative)(anchor);
32
40
  const nativeOffset = offset ? {
33
41
  x: offset[0],
34
42
  y: offset[1]
35
43
  } : undefined;
36
- const viewAnnotationRef = (0, _react.useRef)(null);
37
44
  const frozenId = (0, _useFrozenId.useFrozenId)(id);
45
+ (0, _react.useImperativeHandle)(ref, () => ({
46
+ // Reanimated v4 compatibility: createAnimatedComponent looks for _viewConfig but native has __viewConfig
47
+ getAnimatableRef: () => {
48
+ if (_reactNative.Platform.OS === "ios") {
49
+ return viewAnnotationRef.current?.getAnimatableRef();
50
+ }
51
+ return nativeRef.current ? new Proxy(nativeRef.current, {
52
+ get: (target, prop) => prop === "_viewConfig" ? target.__viewConfig : target[prop]
53
+ }) : null;
54
+ }
55
+ }));
38
56
  if (_reactNative.Platform.OS === "ios") {
39
57
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ViewAnnotation.ViewAnnotation, {
40
58
  ref: viewAnnotationRef,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_MarkerViewNativeComponent","_interopRequireDefault","_useFrozenId","_Anchor","_ViewAnnotation","_jsxRuntime","e","__esModule","default","Marker","id","anchor","offset","props","nativeRef","useRef","nativeAnchor","anchorToNative","nativeOffset","x","y","undefined","viewAnnotationRef","frozenId","useFrozenId","Platform","OS","jsx","ViewAnnotation","ref","style","flex","alignSelf","overflow","children","View","collapsable","exports"],"sourceRoot":"../../../../../src","sources":["components/annotations/marker/Marker.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,0BAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAGA,IAAAM,eAAA,GAAAN,OAAA;AAG2C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAG,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA4C3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,MAAM,GAAGA,CAAC;EACrBC,EAAE;EACFC,MAAM,GAAG,QAAQ;EACjBC,MAAM;EACN,GAAGC;AACQ,CAAC,KAAK;EACjB,MAAMC,SAAS,GAAG,IAAAC,aAAM,EAGtB,IAAI,CAAC;EAEP,MAAMC,YAAY,GAAG,IAAAC,sBAAc,EAACN,MAAM,CAAC;EAC3C,MAAMO,YAAY,GAAGN,MAAM,GAAG;IAAEO,CAAC,EAAEP,MAAM,CAAC,CAAC,CAAC;IAAEQ,CAAC,EAAER,MAAM,CAAC,CAAC;EAAE,CAAC,GAAGS,SAAS;EAExE,MAAMC,iBAAiB,GAAG,IAAAP,aAAM,EAAoB,IAAI,CAAC;EACzD,MAAMQ,QAAQ,GAAG,IAAAC,wBAAW,EAACd,EAAE,CAAC;EAEhC,IAAIe,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IACzB,oBACE,IAAArB,WAAA,CAAAsB,GAAA,EAACvB,eAAA,CAAAwB,cAAc;MACbC,GAAG,EAAEP,iBAAkB;MACvBZ,EAAE,EAAEa,QAAS;MACbZ,MAAM,EAAEA,MAAO;MACfC,MAAM,EAAEA,MAAO;MAAA,GACXC;IAAK,CACV,CAAC;EAEN;EAEA,oBACE,IAAAR,WAAA,CAAAsB,GAAA,EAAC3B,0BAAA,CAAAQ,OAAyB;IACxBqB,GAAG,EAAEf,SAAU;IACfJ,EAAE,EAAEa,QAAS;IACbZ,MAAM,EAAEK,YAAa;IACrBJ,MAAM,EAAEM,YAAa;IAAA,GACjBL,KAAK;IACTiB,KAAK,EAAE,CACL;MAAEC,IAAI,EAAE,CAAC;MAAEC,SAAS,EAAE,YAAY;MAAEC,QAAQ,EAAE;IAAU,CAAC,EACzDpB,KAAK,CAACiB,KAAK,CACX;IAAAI,QAAA,eAEF,IAAA7B,WAAA,CAAAsB,GAAA,EAAC5B,YAAA,CAAAoC,IAAI;MACHC,WAAW,EAAE,KAAM;MACnBN,KAAK,EAAE;QAAEC,IAAI,EAAE,CAAC;QAAEC,SAAS,EAAE,YAAY;QAAEC,QAAQ,EAAE;MAAU,CAAE;MAAAC,QAAA,EAEhErB,KAAK,CAACqB;IAAQ,CACX;EAAC,CACkB,CAAC;AAEhC,CAAC;AAACG,OAAA,CAAA5B,MAAA,GAAAA,MAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_MarkerViewNativeComponent","_interopRequireDefault","_useFrozenId","_Anchor","_ViewAnnotation","_jsxRuntime","e","__esModule","default","Marker","id","anchor","offset","ref","props","nativeRef","useRef","viewAnnotationRef","nativeAnchor","anchorToNative","nativeOffset","x","y","undefined","frozenId","useFrozenId","useImperativeHandle","getAnimatableRef","Platform","OS","current","Proxy","get","target","prop","__viewConfig","jsx","ViewAnnotation","style","flex","alignSelf","overflow","children","View","collapsable","exports"],"sourceRoot":"../../../../../src","sources":["components/annotations/marker/Marker.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,0BAAA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AAY,GAC7DF,MAAM,CAACC,IAAI;MACnB,CAAC,CAAC,GACF,IAAI;IACV;EACF,CAAC,CAAC,CAAC;EAEH,IAAIN,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IACzB,oBACE,IAAAxB,WAAA,CAAA+B,GAAA,EAAChC,eAAA,CAAAiC,cAAc;MACbxB,GAAG,EAAEI,iBAAkB;MACvBP,EAAE,EAAEc,QAAS;MACbb,MAAM,EAAEA,MAAO;MACfC,MAAM,EAAEA,MAAO;MAAA,GACXE;IAAK,CACV,CAAC;EAEN;EAEA,oBACE,IAAAT,WAAA,CAAA+B,GAAA,EAACpC,0BAAA,CAAAQ,OAAyB;IACxBK,GAAG,EAAEE,SAAU;IACfL,EAAE,EAAEc,QAAS;IACbb,MAAM,EAAEO,YAAa;IACrBN,MAAM,EAAEQ,YAAa;IAAA,GACjBN,KAAK;IACTwB,KAAK,EAAE,CACL;MAAEC,IAAI,EAAE,CAAC;MAAEC,SAAS,EAAE,YAAY;MAAEC,QAAQ,EAAE;IAAU,CAAC,EACzD3B,KAAK,CAACwB,KAAK,CACX;IAAAI,QAAA,eAEF,IAAArC,WAAA,CAAA+B,GAAA,EAACrC,YAAA,CAAA4C,IAAI;MACHC,WAAW,EAAE,KAAM;MACnBN,KAAK,EAAE;QAAEC,IAAI,EAAE,CAAC;QAAEC,SAAS,EAAE,YAAY;QAAEC,QAAQ,EAAE;MAAU,CAAE;MAAAC,QAAA,EAEhE5B,KAAK,CAAC4B;IAAQ,CACX;EAAC,CACkB,CAAC;AAEhC,CAAC;AAACG,OAAA,CAAApC,MAAA,GAAAA,MAAA","ignoreList":[]}
@@ -8,8 +8,8 @@ import {
8
8
  import type { UnsafeMixed } from "../../../types/codegen/UnsafeMixed";
9
9
 
10
10
  type NativeAnchor = {
11
- x: CodegenTypes.Double;
12
- y: CodegenTypes.Double;
11
+ x?: CodegenTypes.WithDefault<CodegenTypes.Double, 0.5>;
12
+ y?: CodegenTypes.WithDefault<CodegenTypes.Double, 0.5>;
13
13
  };
14
14
 
15
15
  type NativeOffset = {
@@ -17,12 +17,22 @@ type NativeOffset = {
17
17
  y: CodegenTypes.Double;
18
18
  };
19
19
 
20
+ type NativeMarkerPressEvent = {
21
+ id: string;
22
+ lngLat: UnsafeMixed<
23
+ [longitude: CodegenTypes.Double, latitude: CodegenTypes.Double]
24
+ >;
25
+ point: UnsafeMixed<[x: CodegenTypes.Double, y: CodegenTypes.Double]>;
26
+ };
27
+
20
28
  export interface NativeProps extends ViewProps {
29
+ id: string;
21
30
  lngLat: UnsafeMixed<
22
31
  [longitude: CodegenTypes.Double, latitude: CodegenTypes.Double]
23
32
  >;
24
33
  anchor?: NativeAnchor;
25
34
  offset?: NativeOffset;
35
+ onPress?: CodegenTypes.BubblingEventHandler<NativeMarkerPressEvent>;
26
36
  }
27
37
 
28
38
  export default codegenNativeComponent<NativeProps>(
@@ -9,8 +9,8 @@ import {
9
9
  import type { UnsafeMixed } from "../../../types/codegen/UnsafeMixed";
10
10
 
11
11
  type NativeAnchor = {
12
- x: CodegenTypes.Double;
13
- y: CodegenTypes.Double;
12
+ x?: CodegenTypes.WithDefault<CodegenTypes.Double, 0.5>;
13
+ y?: CodegenTypes.WithDefault<CodegenTypes.Double, 0.5>;
14
14
  };
15
15
 
16
16
  type NativeOffset = {
@@ -38,8 +38,9 @@ export interface NativeProps extends ViewProps {
38
38
  anchor?: NativeAnchor;
39
39
  offset?: NativeOffset;
40
40
 
41
- onSelected?: CodegenTypes.DirectEventHandler<NativeAnnotationEvent>;
42
- onDeselected?: CodegenTypes.DirectEventHandler<NativeAnnotationEvent>;
41
+ onPress?: CodegenTypes.BubblingEventHandler<NativeAnnotationEvent>;
42
+ onSelect?: CodegenTypes.BubblingEventHandler<NativeAnnotationEvent>;
43
+ onDeselect?: CodegenTypes.BubblingEventHandler<NativeAnnotationEvent>;
43
44
  onDragStart?: CodegenTypes.DirectEventHandler<NativeAnnotationEvent>;
44
45
  onDrag?: CodegenTypes.DirectEventHandler<NativeAnnotationEvent>;
45
46
  onDragEnd?: CodegenTypes.DirectEventHandler<NativeAnnotationEvent>;
@@ -19,22 +19,29 @@ const styles = _reactNative.StyleSheet.create({
19
19
  position: "absolute"
20
20
  }
21
21
  });
22
+
23
+ /**
24
+ * Event emitted by a ViewAnnotation on press.
25
+ */
26
+
22
27
  /**
23
- * ViewAnnotation represents a one-dimensional shape located at a single geographical coordinate.
28
+ * ViewAnnotation represents a one-dimensional shape located at a single
29
+ * geographical coordinate.
24
30
  *
25
- * Consider using GeoJSONSource and SymbolLayer instead, if you have many points, and you have static images,
26
- * they'll offer much better performance.
31
+ * Consider using GeoJSONSource and SymbolLayer instead, if you have many
32
+ * points, and you have static images, they'll offer much better performance.
27
33
  *
28
- * If you need interactive views please use Marker,
29
- * as with ViewAnnotation on Android child views are rendered onto a bitmap for better performance.
34
+ * If you need interactive views please use Marker, as with ViewAnnotation on
35
+ * Android child views are rendered onto a bitmap for better performance.
30
36
  */
31
- const ViewAnnotation = exports.ViewAnnotation = /*#__PURE__*/(0, _react.forwardRef)(({
37
+ const ViewAnnotation = ({
32
38
  id,
33
39
  anchor = "center",
34
40
  draggable = false,
35
41
  offset,
42
+ ref,
36
43
  ...props
37
- }, ref) => {
44
+ }) => {
38
45
  const frozenId = (0, _useFrozenId.useFrozenId)(id);
39
46
  const nativeAnchor = (0, _Anchor.anchorToNative)(anchor);
40
47
  const nativeOffset = offset ? {
@@ -43,18 +50,16 @@ const ViewAnnotation = exports.ViewAnnotation = /*#__PURE__*/(0, _react.forwardR
43
50
  } : undefined;
44
51
  const nativeRef = (0, _react.useRef)(null);
45
52
  (0, _react.useImperativeHandle)(ref, () => ({
46
- refresh
53
+ refresh: () => {
54
+ if (_reactNative.Platform.OS === "android" && nativeRef.current) {
55
+ _PointAnnotationNativeComponent.Commands.refresh(nativeRef.current);
56
+ }
57
+ },
58
+ // Reanimated v4 compatibility: createAnimatedComponent looks for _viewConfig but native has __viewConfig
59
+ getAnimatableRef: () => nativeRef.current ? new Proxy(nativeRef.current, {
60
+ get: (target, prop) => prop === "_viewConfig" ? target.__viewConfig : target[prop]
61
+ }) : null
47
62
  }));
48
- function refresh() {
49
- if (_reactNative.Platform.OS === "android" && nativeRef.current) {
50
- _PointAnnotationNativeComponent.Commands.refresh(nativeRef.current);
51
- }
52
- }
53
-
54
- // On Android, wrap children in a non-collapsable View to prevent Fabric
55
- // from flattening the view hierarchy. Without this, Fabric may flatten
56
- // intermediate Views, causing their backgrounds to disappear.
57
- // We need to keep Callout separate so native code can identify it.
58
63
  const wrappedChildren = (() => {
59
64
  if (_reactNative.Platform.OS !== "android") {
60
65
  return props.children;
@@ -84,5 +89,6 @@ const ViewAnnotation = exports.ViewAnnotation = /*#__PURE__*/(0, _react.forwardR
84
89
  style: [props.style, styles.container],
85
90
  children: wrappedChildren
86
91
  });
87
- });
92
+ };
93
+ exports.ViewAnnotation = ViewAnnotation;
88
94
  //# sourceMappingURL=ViewAnnotation.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_PointAnnotationNativeComponent","_interopRequireWildcard","_useFrozenId","_Anchor","_Callout","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","styles","StyleSheet","create","container","alignItems","justifyContent","position","ViewAnnotation","exports","forwardRef","id","anchor","draggable","offset","props","ref","frozenId","useFrozenId","nativeAnchor","anchorToNative","nativeOffset","x","y","undefined","nativeRef","useRef","useImperativeHandle","refresh","Platform","OS","current","Commands","wrappedChildren","children","childArray","Children","toArray","callout","find","child","isValidElement","type","Callout","otherChildren","filter","jsxs","Fragment","jsx","View","collapsable","style","overflow"],"sourceRoot":"../../../../../src","sources":["components/annotations/view-annotation/ViewAnnotation.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,+BAAA,GAAAC,uBAAA,CAAAH,OA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a,GAAGT,UAAU,CAACU,MAAM,CACpCL,KAAK,IAAK,eAAC,IAAAC,qBAAc,EAACD,KAAK,CAAC,IAAIA,KAAK,CAACE,IAAI,KAAKC,gBACtD,CAAC;IAED,oBACE,IAAA9D,WAAA,CAAAiE,IAAA,EAAAjE,WAAA,CAAAkE,QAAA;MAAAb,QAAA,gBACE,IAAArD,WAAA,CAAAmE,GAAA,EAACzE,YAAA,CAAA0E,IAAI;QAACC,WAAW,EAAE,KAAM;QAACC,KAAK,EAAE;UAAEC,QAAQ,EAAE;QAAU,CAAE;QAAAlB,QAAA,EACtDU;MAAa,CACV,CAAC,EACNN,OAAO;IAAA,CACR,CAAC;EAEP,CAAC,EAAE,CAAC;EAEJ,oBACE,IAAAzD,WAAA,CAAAmE,GAAA,EAACxE,+BAAA,CAAAgB,OAA8B;IAC7BwB,GAAG,EAAES,SAAU;IAAA,GACXV,KAAK;IACTJ,EAAE,EAAEM,QAAS;IACbL,MAAM,EAAEO,YAAa;IACrBL,MAAM,EAAEO,YAAa;IACrBR,SAAS,EAAEA,SAAU;IACrBsC,KAAK,EAAE,CAACpC,KAAK,CAACoC,KAAK,EAAElD,MAAM,CAACG,SAAS,CAAE;IAAA8B,QAAA,EAEtCD;EAAe,CACc,CAAC;AAErC,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_PointAnnotationNativeComponent","_interopRequireWildcard","_useFrozenId","_Anchor","_Callout","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","styles","StyleSheet","create","container","alignItems","justifyContent","position","ViewAnnotation","id","anchor","draggable","offset","ref","props","frozenId","useFrozenId","nativeAnchor","anchorToNative","nativeOffset","x","y","undefined","nativeRef","useRef","useImperativeHandle","refresh","Platform","OS","current","Commands","getAnimatableRef","Proxy","target","prop","__viewConfig","wrappedChildren","children","childArray","Children","toArray","callout","find","child","isValidElement","type","Callout","otherChildren","filter","jsxs","Fragment","jsx","View","collapsable","style","overflow","exports"],"sourceRoot":"../../../../../src","sources":["components/annotations/view-annotation/ViewAnnotation.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,+BAAA,GAAAC,uBAAA,CAAAH,OAAA;AAGA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAIA,IAAAM,QAAA,GAAAN,OAAA;AAA6C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAG,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAA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C,CAAC;AAACoB,OAAA,CAAAhD,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -10,7 +10,55 @@ var _CameraNativeComponent = _interopRequireDefault(require("./CameraNativeCompo
10
10
  var _NativeCameraModule = _interopRequireDefault(require("./NativeCameraModule.js"));
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(({
13
+ /**
14
+ * Camera viewport configuration: zoom, bearing, pitch, and padding.
15
+ */
16
+
17
+ /**
18
+ * Easing function used for camera animations.
19
+ */
20
+
21
+ /**
22
+ * Animation timing options for camera transitions.
23
+ */
24
+
25
+ /**
26
+ * Camera center coordinate options.
27
+ */
28
+
29
+ /**
30
+ * Camera bounds options.
31
+ */
32
+
33
+ /**
34
+ * Camera animation stop positioned by a center coordinate.
35
+ */
36
+
37
+ /**
38
+ * Camera animation stop positioned by geographic bounds.
39
+ */
40
+
41
+ /**
42
+ * A single camera animation stop — optionally positioned by center, bounds, or
43
+ * neither.
44
+ */
45
+
46
+ /**
47
+ * Initial camera state when the map first loads.
48
+ */
49
+
50
+ /**
51
+ * User location tracking mode.
52
+ */
53
+
54
+ /**
55
+ * Event emitted when the user location tracking mode changes.
56
+ */
57
+
58
+ /**
59
+ * Controls the viewport of the Map.
60
+ */
61
+ const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(({
14
62
  testID,
15
63
  initialViewState,
16
64
  minZoom,
@@ -18,8 +66,9 @@ const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _
18
66
  maxBounds,
19
67
  trackUserLocation,
20
68
  onTrackUserLocationChange,
69
+ ref,
21
70
  ...stop
22
- }, ref) => {
71
+ }) => {
23
72
  const nativeRef = (0, _react.useRef)(null);
24
73
  const setStop = stop => {
25
74
  const nodeHandle = (0, _reactNative.findNodeHandle)(nativeRef.current);
@@ -93,5 +142,5 @@ const Camera = exports.Camera = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _
93
142
  trackUserLocation: trackUserLocation,
94
143
  onTrackUserLocationChange: onTrackUserLocationChange
95
144
  });
96
- }));
145
+ });
97
146
  //# sourceMappingURL=Camera.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_CameraNativeComponent","_interopRequireDefault","_NativeCameraModule","_jsxRuntime","e","__esModule","default","Camera","exports","memo","forwardRef","testID","initialViewState","minZoom","maxZoom","maxBounds","trackUserLocation","onTrackUserLocationChange","stop","ref","nativeRef","useRef","setStop","nodeHandle","findNodeHandle","current","Error","NativeCameraModule","useImperativeHandle","jumpTo","center","options","duration","easing","undefined","easeTo","flyTo","fitBounds","bounds","zoomTo","zoom","jsx"],"sourceRoot":"../../../../src","sources":["components/camera/Camera.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAsD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA8N/C,MAAMG,MAAM,GAAAC,OAAA,CAAAD,MAAA,gBAAG,IAAAE,WAAI,eACxB,IAAAC,iBAAU,EACR,CACE;EACEC,MAAM;EACNC,gBAAgB;EAChBC,OAAO;EACPC,OAAO;EACPC,SAAS;EACTC,iBAAiB;EACjBC,yBAAyB;EACzB,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAMC,SAAS,GAAG,IAAAC,aAAM,EAGtB,IAAI,CAAC;EAEP,MAAMC,OAA6B,GAAIJ,IAAI,IAAK;IAC9C,MAAMK,UAAU,GAAG,IAAAC,2BAAc,EA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AAGS,OAAO;MAAES,IAAI;MAAER,QAAQ;MAAEC;IAAO,CAAC;EAClD,CAAC,CAAC,CAAC;EAEH,oBACE,IAAA9B,WAAA,CAAAsC,GAAA,EAACzC,sBAAA,CAAAM,OAAqB;IACpBa,GAAG,EAAEC,SAAU;IACfT,MAAM,EAAEA,MAAO;IACfO,IAAI,EAAEA,IAAK;IACXN,gBAAgB,EAAEA,gBAAiB;IACnCC,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBC,SAAS,EAAEA,SAAU;IACrBC,iBAAiB,EAAEA,iBAAkB;IACrCC,yBAAyB,EAAEA;EAA0B,CACtD,CAAC;AAEN,CACF,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_CameraNativeComponent","_interopRequireDefault","_NativeCameraModule","_jsxRuntime","e","__esModule","default","Camera","exports","memo","testID","initialViewState","minZoom","maxZoom","maxBounds","trackUserLocation","onTrackUserLocationChange","ref","stop","nativeRef","useRef","setStop","nodeHandle","findNodeHandle","current","Error","NativeCameraModule","useImperativeHandle","jumpTo","center","options","duration","easing","undefined","easeTo","flyTo","fitBounds","bounds","zoomTo","zoom","jsx"],"sourceRoot":"../../../../src","sources":["components/camera/Camera.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAsD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMtD;AACA;AACA;;AAuBA;AACA;AACA;;AAGA;AACA;AACA;;AAaA;AACA;AACA;;AAQA;AACA;AACA;;AAQA;AACA;AACA;;AAKA;AACA;AACA;;AAKA;AACA;AACA;AACA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AAEE,QAAQ;MAAEC;IAAO,CAAC,CAAC;IAEnDI,SAAS,EAAEA,CACTC,MAAM,EACN;MAAEN,QAAQ,GAAG,IAAI;MAAEC,MAAM,GAAG,KAAK;MAAE,GAAGF;IAAQ,CAAC,GAAG,CAAC,CAAC,KACjDT,OAAO,CAAC;MAAE,GAAGS,OAAO;MAAEO,MAAM;MAAEN,QAAQ;MAAEC;IAAO,CAAC,CAAC;IAEtDM,MAAM,EAAEA,CAACC,IAAI,EAAE;MAAER,QAAQ,GAAG,GAAG;MAAEC,MAAM,GAAG,MAAM;MAAE,GAAGF;IAAQ,CAAC,GAAG,CAAC,CAAC,KACjET,OAAO,CAAC;MAAE,GAAGS,OAAO;MAAES,IAAI;MAAER,QAAQ;MAAEC;IAAO,CAAC;EAClD,CAAC,CAAC,CAAC;EAEH,oBACE,IAAA7B,WAAA,CAAAqC,GAAA,EAACxC,sBAAA,CAAAM,OAAqB;IACpBW,GAAG,EAAEE,SAAU;IACfT,MAAM,EAAEA,MAAO;IACfQ,IAAI,EAAEA,IAAK;IACXP,gBAAgB,EAAEA,gBAAiB;IACnCC,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBC,SAAS,EAAEA,SAAU;IACrBC,iBAAiB,EAAEA,iBAAkB;IACrCC,yBAAyB,EAAEA;EAA0B,CACtD,CAAC;AAEN,CACF,CAAC","ignoreList":[]}
@@ -7,13 +7,23 @@ exports.Images = void 0;
7
7
  var _react = require("react");
8
8
  var _reactNative = require("react-native");
9
9
  var _ImagesNativeComponent = _interopRequireDefault(require("./ImagesNativeComponent"));
10
+ require("./NativeImagesModule.js");
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ /**
14
+ * An image source with optional SDF (Signed Distance Field) rendering mode.
15
+ */
16
+
17
+ /**
18
+ * A map image entry: a URL string, a native asset require, or an
19
+ * {@link ImageSourceWithSdf} object.
20
+ */
21
+
12
22
  /**
13
23
  * Images defines the images used in Symbol layers.
14
24
  *
15
- * Use this component to add images to the map style that can be referenced
16
- * by symbol layers using the `iconImage` property.
25
+ * Use this component to add images to the map style that can be referenced by
26
+ * symbol layers using the `iconImage` property.
17
27
  */
18
28
  const Images = ({
19
29
  testID,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_ImagesNativeComponent","_interopRequireDefault","_jsxRuntime","e","__esModule","default","Images","testID","images","onImageMissing","nativeImages","useMemo","result","Object","entries","forEach","imageName","value","uri","resolved","Image","resolveAssetSource","source","scale","sdf","jsx","exports"],"sourceRoot":"../../../../src","sources":["components/images/Images.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEiC,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAsDjC;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,MAAM,GAAGA,CAAC;EAAEC,MAAM;EAAEC,MAAM;EAAEC;AAA4B,CAAC,KAAK;EACzE,MAAMC,YAAY,GAAG,IAAAC,cAAO,EAAC,MAAM;IACjC,MAAMC,MAAwC,GAAG,CAAC,CAAC;IAEnDC,MAAM,CAACC,OAAO,CAACN,MAAM,CAAC,CAACO,OAAO,CAAC,CAAC,CAACC,SAAS,EAAEC,KAAK,CAAC,KAAK;MACrD,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;QAC7BL,MAAM,CAACI,SAAS,CAAC,GAAG;UAClBE,GAAG,EAAED;QACP,CAAC;MACH,CAAC,MAAM;QACL,MAAME,QAAQ,GAAGC,kBAAK,CAACC,kBAAkB,CACvC,OAAOJ,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGA,KAAK,CAACK,MAC5C,CAAC;QAEDV,MAAM,CAACI,SAAS,CAAC,GAAG;UAClBE,GAAG,EAAEC,QAAQ,CAACD,GAAG;UACjBK,KAAK,EAAEJ,QAAQ,CAACI,KAAK;UACrBC,GAAG,EAAE,OAAOP,KAAK,KAAK,QAAQ,GAAGA,KAAK,CAACO,GAAG,GAAG;QAC/C,CAAC;MACH;IACF,CAAC,CAAC;IAEF,OAAOZ,MAAM;EACf,CAAC,EAAE,CAACJ,MAAM,CAAC,CAAC;EAEZ,oBACE,IAAAN,WAAA,CAAAuB,GAAA,EAACzB,sBAAA,CAAAK,OAAqB;IACpBE,MAAM,EAAEA,MAAO;IACfC,MAAM,EAAEE,YAAa;IACrBD,cAAc,EAAEA;EAAe,CAChC,CAAC;AAEN,CAAC;AAACiB,OAAA,CAAApB,MAAA,GAAAA,MAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_ImagesNativeComponent","_interopRequireDefault","_jsxRuntime","e","__esModule","default","Images","testID","images","onImageMissing","nativeImages","useMemo","result","Object","entries","forEach","imageName","value","uri","resolved","Image","resolveAssetSource","source","scale","sdf","jsx","exports"],"sourceRoot":"../../../../src","sources":["components/images/Images.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAGAA,OAAA;AAA8B,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG9B;AACA;AACA;;AAMA;AACA;AACA;AACA;;AA+CA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,MAAM,GAAGA,CAAC;EAAEC,MAAM;EAAEC,MAAM;EAAEC;AAA4B,CAAC,KAAK;EACzE,MAAMC,YAAY,GAAG,IAAAC,cAAO,EAAC,MAAM;IACjC,MAAMC,MAAwC,GAAG,CAAC,CAAC;IAEnDC,MAAM,CAACC,OAAO,CAACN,MAAM,CAAC,CAACO,OAAO,CAAC,CAAC,CAACC,SAAS,EAAEC,KAAK,CAAC,KAAK;MACrD,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;QAC7BL,MAAM,CAACI,SAAS,CAAC,GAAG;UAClBE,GAAG,EAAED;QACP,CAAC;MACH,CAAC,MAAM;QACL,MAAME,QAAQ,GAAGC,kBAAK,CAACC,kBAAkB,CACvC,OAAOJ,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGA,KAAK,CAACK,MAC5C,CAAC;QAEDV,MAAM,CAACI,SAAS,CAAC,GAAG;UAClBE,GAAG,EAAEC,QAAQ,CAACD,GAAG;UACjBK,KAAK,EAAEJ,QAAQ,CAACI,KAAK;UACrBC,GAAG,EAAE,OAAOP,KAAK,KAAK,QAAQ,GAAGA,KAAK,CAACO,GAAG,GAAG;QAC/C,CAAC;MACH;IACF,CAAC,CAAC;IAEF,OAAOZ,MAAM;EACf,CAAC,EAAE,CAACJ,MAAM,CAAC,CAAC;EAEZ,oBACE,IAAAN,WAAA,CAAAuB,GAAA,EAACzB,sBAAA,CAAAK,OAAqB;IACpBE,MAAM,EAAEA,MAAO;IACfC,MAAM,EAAEE,YAAa;IACrBD,cAAc,EAAEA;EAAe,CAChC,CAAC;AAEN,CAAC;AAACiB,OAAA,CAAApB,MAAA,GAAAA,MAAA","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ const imagesModule = _reactNative.Platform.OS === "ios" ? _reactNative.TurboModuleRegistry.getEnforcing("MLRNImagesModule") : null;
9
+ var _default = exports.default = imagesModule;
10
+ //# sourceMappingURL=NativeImagesModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","imagesModule","Platform","OS","TurboModuleRegistry","getEnforcing","_default","exports","default"],"sourceRoot":"../../../../src","sources":["components/images/NativeImagesModule.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,MAAMC,YAAY,GAChBC,qBAAQ,CAACC,EAAE,KAAK,KAAK,GACjBC,gCAAmB,CAACC,YAAY,CAAO,kBAAkB,CAAC,GAC1D,IAAI;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEIP,YAAY","ignoreList":[]}
@@ -12,127 +12,97 @@ var _convertStyleSpec = require("../../utils/convertStyleSpec.js");
12
12
  var _getNativeFilter = require("../../utils/getNativeFilter.js");
13
13
  var _jsxRuntime = require("react/jsx-runtime");
14
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ let deprecationWarned = false;
16
+
15
17
  /**
16
- * Additional props specific to maplibre-react-native.
18
+ * Additional props specific to @maplibre/maplibre-react-native.
17
19
  */
18
20
 
19
21
  // Utility types following react-map-gl pattern
20
22
  // See: https://github.com/microsoft/TypeScript/issues/39556#issuecomment-656925230
21
23
 
22
24
  /**
23
- * Base layer props from style spec with optional id/source.
24
- * Matches react-map-gl's LayerProps pattern.
25
+ * Base layer props from style spec with optional `id`/`source`.
25
26
  */
26
27
 
27
28
  /**
28
29
  * Common props shared by all layer types.
29
30
  *
30
- * @deprecated Use `paint` and `layout` props instead of `style`. Will be removed in v12.
31
+ * @deprecated Use `paint` and `layout` props instead of `style`. The `style` prop be removed in v12.
31
32
  */
32
33
 
33
34
  /**
34
- * @deprecated Use LayerProps instead.
35
+ * @deprecated Use `LayerProps` instead.
35
36
  */
36
37
 
37
- // ============================================================================
38
- // DEPRECATED: Legacy type exports for backwards compatibility
39
- // These will be removed in v12. Use LayerProps with paint/layout instead.
40
- // ============================================================================
41
-
42
38
  /**
43
- * @deprecated Use LayerProps with type="background" instead.
39
+ * @deprecated Use `layout`/`paint` instead of `style` prop.
44
40
  */
45
41
 
46
42
  /**
47
- * @deprecated Use LayerProps with type="fill" instead.
43
+ * @deprecated Use `layout`/`paint` instead of `style` prop.
48
44
  */
49
45
 
50
46
  /**
51
- * @deprecated Use LayerProps with type="line" instead.
47
+ * @deprecated Use `layout`/`paint` instead of `style` prop.
52
48
  */
53
49
 
54
50
  /**
55
- * @deprecated Use LayerProps with type="symbol" instead.
51
+ * @deprecated Use `layout`/`paint` instead of `style` prop.
56
52
  */
57
53
 
58
54
  /**
59
- * @deprecated Use LayerProps with type="circle" instead.
55
+ * @deprecated Use `layout`/`paint` instead of `style` prop.
60
56
  */
61
57
 
62
58
  /**
63
- * @deprecated Use LayerProps with type="heatmap" instead.
59
+ * @deprecated Use `layout`/`paint` instead of `style` prop.
64
60
  */
65
61
 
66
62
  /**
67
- * @deprecated Use LayerProps with type="fill-extrusion" instead.
63
+ * @deprecated Use `layout`/`paint` instead of `style` prop.
68
64
  */
69
65
 
70
66
  /**
71
- * @deprecated Use LayerProps with type="raster" instead.
72
- */
73
-
74
- /**
75
- * Layer component props.
76
- * Combines style spec LayerSpecification with MLRN-specific props.
77
- *
78
- * The `paint` and `layout` props come directly from LayerSpecification
79
- * and use kebab-case property names per the MapLibre Style Spec.
80
- *
81
- * @example
82
- * ```tsx
83
- * // Style spec compliant (recommended)
84
- * <Layer
85
- * type="fill"
86
- * id="parks"
87
- * source="parks-source"
88
- * paint={{ "fill-color": "green", "fill-opacity": 0.5 }}
89
- * layout={{ "visibility": "visible" }}
90
- * />
91
- *
92
- * // Deprecated (still works)
93
- * <Layer
94
- * type="fill"
95
- * id="parks"
96
- * source="parks-source"
97
- * style={{ fillColor: "green", fillOpacity: 0.5 }}
98
- * />
99
- * ```
67
+ * @deprecated Use `layout`/`paint` instead of `style` prop.
100
68
  */
101
69
 
102
70
  /**
103
71
  * Layer is a style layer that renders geospatial data on the map.
104
72
  *
105
- * This is a unified, type-safe layer component that supports all layer types.
106
- * Use the style-spec compliant `paint` and `layout` props with kebab-case keys.
73
+ * Follow the [MapLibre Style
74
+ * Spec](https://maplibre.org/maplibre-style-spec/layers/) for Layer
75
+ * definitions.
107
76
  *
108
- * @example
77
+ * @example Basic Usage
109
78
  * ```tsx
110
- * // Style spec compliant (recommended)
111
79
  * <Layer
112
80
  * type="fill"
113
81
  * id="parks"
114
82
  * source="parks-source"
115
83
  * paint={{ "fill-color": "green", "fill-opacity": 0.5 }}
116
84
  * layout={{ visibility: "visible" }}
117
- * />
85
+ * />;
86
+ * ```
118
87
  *
119
- * // With expressions
88
+ * @example Using Expressions
89
+ * ```tsx
120
90
  * <Layer
121
91
  * type="fill"
122
92
  * id="parks"
123
93
  * source="parks-source"
124
94
  * paint={{
125
- * "fill-color": ["interpolate", ["linear"], ["get", "elevation"], 0, "blue", 100, "red"],
95
+ * "fill-color": [
96
+ * "interpolate",
97
+ * ["linear"],
98
+ * ["get", "elevation"],
99
+ * 0,
100
+ * "blue",
101
+ * 100,
102
+ * "red",
103
+ * ],
126
104
  * }}
127
- * />
128
- *
129
- * // Deprecated style prop (still works but will be removed in v12)
130
- * <Layer
131
- * type="fill"
132
- * id="parks"
133
- * source="parks-source"
134
- * style={{ fillColor: "green", fillOpacity: 0.5 }}
135
- * />
105
+ * />;
136
106
  * ```
137
107
  */
138
108
  const Layer = ({
@@ -159,14 +129,9 @@ const Layer = ({
159
129
  layout: undefined,
160
130
  ...props
161
131
  };
162
-
163
- // Warn if using deprecated style prop (only in development)
164
- if (__DEV__ && style) {
165
- if (paint || layout) {
166
- console.warn("@maplibre/maplibre-react-native: Using both `style` and `paint`/`layout` props. " + "The `style` prop is deprecated and will be removed in v12. " + "Properties from `paint`/`layout` take precedence.");
167
- } else {
168
- console.warn("@maplibre/maplibre-react-native: The `style` prop is deprecated. " + "Use `paint` and `layout` props instead. Will be removed in v12.");
169
- }
132
+ if (__DEV__ && style && !deprecationWarned) {
133
+ deprecationWarned = true;
134
+ console.warn("[@maplibre/maplibre-react-native] The `style` prop is deprecated. " + "Use `paint` and `layout` props instead. `style` will be removed in v12.");
170
135
  }
171
136
 
172
137
  // Merge paint/layout (new API) with style (deprecated API)
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_LayerNativeComponent","_interopRequireDefault","_useFrozenId","_StyleValue","_convertStyleSpec","_getNativeFilter","_jsxRuntime","e","__esModule","default","Layer","id","props","frozenId","useFrozenId","nativeProps","useMemo","type","layerType","sourceLayer","filter","style","paint","layout","beforeId","afterId","layerIndex","rest","undefined","__DEV__","console","warn","mergedStyle","mergeStyleProps","getNativeFilter","reactStyle","transformStyle","jsx","testID","exports"],"sourceRoot":"../../../../src","sources":["components/layer/Layer.tsx"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAYA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAA8D,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9D;AACA;AACA;;AAkBA;AACA;;AAQA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;;AAsBA;AACA;AACA;;AAOA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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,EAAE,QAAQ1B,KAAK,CAACK,IAAI,QAAS;IAAA,GAC/BF;EAAW,CAChB,CAAC;AAEN,CAAC;AAACwB,OAAA,CAAA7B,KAAA,GAAAA,KAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_LayerNativeComponent","_interopRequireDefault","_useFrozenId","_StyleValue","_convertStyleSpec","_getNativeFilter","_jsxRuntime","e","__esModule","default","deprecationWarned","Layer","id","props","frozenId","useFrozenId","nativeProps","useMemo","type","layerType","sourceLayer","filter","style","paint","layout","beforeId","afterId","layerIndex","rest","undefined","__DEV__","console","warn","mergedStyle","mergeStyleProps","getNativeFilter","reactStyle","transformStyle","jsx","testID","exports"],"sourceRoot":"../../../../src","sources":["components/layer/Layer.tsx"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAYA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAA8D,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9D,IAAIG,iBAAiB,GAAG,KAAK;;AAE7B;AACA;AACA;;AAkBA;AACA;;AAQA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;;AAsBA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAOA;AACA;AACA;;AAkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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7B,KAAA,GAAAA,KAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  // DO NOT MODIFY
2
- // This file is auto-generated from src/components/map/MapViewNativeComponent.ts
2
+ // This file is auto-generated from package/src/components/map/MapViewNativeComponent.ts
3
3
 
4
4
  import {
5
5
  codegenNativeComponent,
@@ -60,7 +60,9 @@ export interface NativeProps extends ViewProps {
60
60
  preferredFramesPerSecond?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
61
61
 
62
62
  dragPan?: CodegenTypes.WithDefault<boolean, true>;
63
- touchAndDoubleTapZoom?: CodegenTypes.WithDefault<boolean, true>;
63
+ touchZoom?: CodegenTypes.WithDefault<boolean, true>;
64
+ doubleTapZoom?: CodegenTypes.WithDefault<boolean, true>;
65
+ doubleTapHoldZoom?: CodegenTypes.WithDefault<boolean, true>;
64
66
  touchRotate?: CodegenTypes.WithDefault<boolean, true>;
65
67
  touchPitch?: CodegenTypes.WithDefault<boolean, true>;
66
68
 
@@ -76,6 +78,9 @@ export interface NativeProps extends ViewProps {
76
78
  compassPosition?: NativeOrnamentViewPosition;
77
79
  compassHiddenFacingNorth?: CodegenTypes.WithDefault<boolean, true>;
78
80
 
81
+ scaleBar?: CodegenTypes.WithDefault<boolean, false>;
82
+ scaleBarPosition?: NativeOrnamentViewPosition;
83
+
79
84
  onPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
80
85
  onLongPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
81
86