@maplibre/maplibre-react-native 11.0.0-beta.8 → 11.0.0

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 (722) hide show
  1. package/MapLibreReactNative.podspec +1 -1
  2. package/README.md +0 -5
  3. package/android/build.gradle +3 -1
  4. package/android/gradle.properties +2 -2
  5. package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +14 -1
  6. package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerView.kt +35 -29
  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 +8 -5
  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 +234 -128
  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/sources/geojson-source/MLRNGeoJSONSource.h +0 -3
  47. package/ios/components/sources/image-source/MLRNImageSourceComponentView.mm +1 -1
  48. package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.mm +2 -3
  49. package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.mm +2 -3
  50. package/ios/modules/logging/MLRNLogging.h +4 -0
  51. package/ios/modules/logging/MLRNLogging.m +8 -0
  52. package/ios/modules/network/MLRNNetworkModule.mm +0 -10
  53. package/ios/modules/offline/MLRNOfflineModule.h +1 -2
  54. package/ios/modules/offline/MLRNOfflineModule.mm +9 -9
  55. package/ios/modules/transform-request/MLRNTransformRequest.h +38 -0
  56. package/ios/modules/transform-request/MLRNTransformRequest.m +413 -0
  57. package/ios/modules/transform-request/MLRNTransformRequestModule.h +9 -0
  58. package/ios/modules/transform-request/MLRNTransformRequestModule.mm +72 -0
  59. package/ios/utils/MLRNUtils.h +0 -14
  60. package/ios/utils/MLRNUtils.m +0 -71
  61. package/lib/commonjs/components/annotations/callout/Callout.js +2 -1
  62. package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -1
  63. package/lib/commonjs/components/annotations/marker/Marker.js +17 -3
  64. package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
  65. package/lib/commonjs/components/annotations/marker/MarkerViewNativeComponent.ts +10 -0
  66. package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +3 -2
  67. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +20 -17
  68. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  69. package/lib/commonjs/components/camera/Camera.js +52 -3
  70. package/lib/commonjs/components/camera/Camera.js.map +1 -1
  71. package/lib/commonjs/components/images/Images.js +12 -2
  72. package/lib/commonjs/components/images/Images.js.map +1 -1
  73. package/lib/commonjs/components/images/NativeImagesModule.js +10 -0
  74. package/lib/commonjs/components/images/NativeImagesModule.js.map +1 -0
  75. package/lib/commonjs/components/layer/Layer.js +18 -8
  76. package/lib/commonjs/components/layer/Layer.js.map +1 -1
  77. package/lib/commonjs/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
  78. package/lib/commonjs/components/map/Map.js +29 -4
  79. package/lib/commonjs/components/map/Map.js.map +1 -1
  80. package/lib/commonjs/components/map/MapViewNativeComponent.ts +6 -1
  81. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +6 -5
  82. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  83. package/lib/commonjs/components/sources/image-source/ImageSource.js +3 -2
  84. package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -1
  85. package/lib/commonjs/components/sources/raster-source/RasterSource.js +4 -3
  86. package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -1
  87. package/lib/commonjs/components/sources/vector-source/VectorSource.js +8 -5
  88. package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -1
  89. package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -1
  90. package/lib/commonjs/components/user-location/UserLocation.js.map +1 -1
  91. package/lib/commonjs/index.js +7 -0
  92. package/lib/commonjs/index.js.map +1 -1
  93. package/lib/commonjs/modules/log/LogManager.js +5 -4
  94. package/lib/commonjs/modules/log/LogManager.js.map +1 -1
  95. package/lib/commonjs/modules/network/NativeNetworkModule.js.map +1 -1
  96. package/lib/commonjs/modules/network/NetworkManager.js +6 -44
  97. package/lib/commonjs/modules/network/NetworkManager.js.map +1 -1
  98. package/lib/commonjs/modules/offline/OfflineManager.js +109 -62
  99. package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -1
  100. package/lib/commonjs/modules/static-map/StaticMapManager.js +13 -5
  101. package/lib/commonjs/modules/static-map/StaticMapManager.js.map +1 -1
  102. package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js +9 -0
  103. package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
  104. package/lib/commonjs/modules/transform-request/TransformRequestManager.js +233 -0
  105. package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -0
  106. package/lib/commonjs/plugin/ios.js +28 -15
  107. package/lib/commonjs/plugin/ios.js.map +1 -1
  108. package/lib/commonjs/types/Anchor.js +5 -6
  109. package/lib/commonjs/types/Anchor.js.map +1 -1
  110. package/lib/commonjs/types/PressableSourceProps.js.map +1 -0
  111. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  112. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +6 -6
  113. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +2 -1
  114. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -1
  115. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  116. package/lib/commonjs/utils/convertStyleSpec.js +4 -4
  117. package/lib/commonjs/utils/getStylePropertyType.js +1 -1
  118. package/lib/module/components/annotations/callout/Callout.js +2 -1
  119. package/lib/module/components/annotations/callout/Callout.js.map +1 -1
  120. package/lib/module/components/annotations/marker/Marker.js +17 -3
  121. package/lib/module/components/annotations/marker/Marker.js.map +1 -1
  122. package/lib/module/components/annotations/marker/MarkerViewNativeComponent.ts +10 -0
  123. package/lib/module/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +3 -2
  124. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +20 -17
  125. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  126. package/lib/module/components/camera/Camera.js +53 -4
  127. package/lib/module/components/camera/Camera.js.map +1 -1
  128. package/lib/module/components/images/Images.js +12 -2
  129. package/lib/module/components/images/Images.js.map +1 -1
  130. package/lib/module/components/images/NativeImagesModule.js +7 -0
  131. package/lib/module/components/images/NativeImagesModule.js.map +1 -0
  132. package/lib/module/components/layer/Layer.js +18 -8
  133. package/lib/module/components/layer/Layer.js.map +1 -1
  134. package/lib/module/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
  135. package/lib/module/components/map/Map.js +30 -5
  136. package/lib/module/components/map/Map.js.map +1 -1
  137. package/lib/module/components/map/MapViewNativeComponent.ts +6 -1
  138. package/lib/module/components/sources/geojson-source/GeoJSONSource.js +7 -6
  139. package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  140. package/lib/module/components/sources/image-source/ImageSource.js +3 -2
  141. package/lib/module/components/sources/image-source/ImageSource.js.map +1 -1
  142. package/lib/module/components/sources/raster-source/RasterSource.js +4 -3
  143. package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -1
  144. package/lib/module/components/sources/vector-source/VectorSource.js +9 -6
  145. package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -1
  146. package/lib/module/components/user-location/NativeUserLocation.js.map +1 -1
  147. package/lib/module/components/user-location/UserLocation.js.map +1 -1
  148. package/lib/module/index.js +1 -0
  149. package/lib/module/index.js.map +1 -1
  150. package/lib/module/modules/log/LogManager.js +5 -4
  151. package/lib/module/modules/log/LogManager.js.map +1 -1
  152. package/lib/module/modules/network/NativeNetworkModule.js.map +1 -1
  153. package/lib/module/modules/network/NetworkManager.js +6 -44
  154. package/lib/module/modules/network/NetworkManager.js.map +1 -1
  155. package/lib/module/modules/offline/OfflineManager.js +109 -62
  156. package/lib/module/modules/offline/OfflineManager.js.map +1 -1
  157. package/lib/module/modules/static-map/StaticMapManager.js +13 -5
  158. package/lib/module/modules/static-map/StaticMapManager.js.map +1 -1
  159. package/lib/module/modules/transform-request/NativeTransformRequestModule.js +5 -0
  160. package/lib/module/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
  161. package/lib/module/modules/transform-request/TransformRequestManager.js +230 -0
  162. package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -0
  163. package/lib/module/plugin/ios.js +28 -15
  164. package/lib/module/plugin/ios.js.map +1 -1
  165. package/lib/module/types/Anchor.js +5 -6
  166. package/lib/module/types/Anchor.js.map +1 -1
  167. package/lib/module/types/PressableSourceProps.js.map +1 -0
  168. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  169. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +6 -6
  170. package/lib/module/utils/animated/AnimatedGeoJSON.js +2 -1
  171. package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -1
  172. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  173. package/lib/module/utils/convertStyleSpec.js +4 -4
  174. package/lib/module/utils/getStylePropertyType.js +1 -1
  175. package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts.map +1 -0
  176. package/lib/typescript/commonjs/{src/components → components}/annotations/callout/Callout.d.ts +3 -2
  177. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -0
  178. package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
  179. package/lib/typescript/{module/src → commonjs}/components/annotations/marker/Marker.d.ts +29 -22
  180. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -0
  181. package/lib/typescript/commonjs/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +10 -0
  182. package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
  183. package/lib/typescript/{module/src → commonjs}/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +3 -2
  184. package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
  185. package/lib/typescript/commonjs/{src/components → components}/annotations/view-annotation/ViewAnnotation.d.ts +35 -29
  186. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/{src/components → components}/camera/Camera.d.ts +85 -43
  188. package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts.map +1 -0
  190. package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/{src/components → components}/images/Images.d.ts +20 -12
  192. package/lib/typescript/commonjs/components/images/Images.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/components/images/ImagesNativeComponent.d.ts.map +1 -0
  194. package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts +6 -0
  195. package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts.map +1 -0
  196. package/lib/typescript/commonjs/{src/components → components}/layer/Layer.d.ts +18 -8
  197. package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -0
  198. package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/{src/components → components}/map/AndroidTextureMapViewNativeComponent.d.ts +5 -1
  200. package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/{src/components → components}/map/Map.d.ts +151 -75
  202. package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -0
  203. package/lib/typescript/{module/src → commonjs}/components/map/MapViewNativeComponent.d.ts +5 -1
  204. package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts.map +1 -0
  205. package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts.map +1 -0
  206. package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/GeoJSONSource.d.ts +47 -44
  207. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
  208. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
  209. package/lib/typescript/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
  210. package/lib/typescript/commonjs/{src/components → components}/sources/image-source/ImageSource.d.ts +5 -3
  211. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -0
  212. package/lib/typescript/commonjs/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
  213. package/lib/typescript/commonjs/{src/components → components}/sources/raster-source/RasterSource.d.ts +20 -15
  214. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -0
  215. package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
  216. package/lib/typescript/commonjs/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +75 -0
  218. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
  220. package/lib/typescript/{module/src → commonjs}/components/user-location/NativeUserLocation.d.ts +9 -6
  221. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -0
  222. package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocation.d.ts +4 -2
  223. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts.map +1 -0
  226. package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/{src/hooks → hooks}/useCurrentPosition.d.ts +2 -2
  228. package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts.map +1 -0
  229. package/lib/typescript/commonjs/hooks/useFrozenId.d.ts.map +1 -0
  230. package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/{src/index.d.ts → index.d.ts} +3 -2
  232. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  233. package/lib/typescript/commonjs/modules/location/LocationManager.d.ts.map +1 -0
  234. package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts.map +1 -0
  235. package/lib/typescript/commonjs/{src/modules → modules}/log/LogManager.d.ts +5 -4
  236. package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts.map +1 -0
  238. package/lib/typescript/commonjs/{src/modules → modules}/network/NativeNetworkModule.d.ts +0 -2
  239. package/lib/typescript/commonjs/modules/network/NativeNetworkModule.d.ts.map +1 -0
  240. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +24 -0
  241. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/modules/offline/NativeOfflineModule.d.ts.map +1 -0
  243. package/lib/typescript/commonjs/{src/modules → modules}/offline/OfflineManager.d.ts +110 -63
  244. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
  247. package/lib/typescript/commonjs/{src/modules → modules}/static-map/StaticMapManager.d.ts +15 -7
  248. package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts.map +1 -0
  249. package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
  250. package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +213 -0
  252. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
  253. package/lib/typescript/{module/src → commonjs}/plugin/MapLibrePluginProps.d.ts +10 -15
  254. package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/plugin/android.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/{src/plugin → plugin}/ios.d.ts +2 -2
  257. package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/plugin/withMapLibre.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/types/Anchor.d.ts +16 -0
  260. package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/types/BaseProps.d.ts +7 -0
  262. package/lib/typescript/commonjs/types/BaseProps.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/types/LngLat.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/{src/types → types}/LngLatBounds.d.ts +2 -1
  265. package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -0
  266. package/lib/typescript/commonjs/{src/types → types}/MapLibreRNStyles.d.ts +316 -132
  267. package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -0
  268. package/lib/typescript/commonjs/types/PixelPoint.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/types/PixelPointBounds.d.ts.map +1 -0
  270. package/lib/typescript/{module/src → commonjs}/types/PressEvent.d.ts +3 -0
  271. package/lib/typescript/commonjs/types/PressEvent.d.ts.map +1 -0
  272. package/lib/typescript/commonjs/{src/types → types}/PressEventWithFeatures.d.ts +3 -0
  273. package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts.map +1 -0
  274. package/lib/typescript/{module/src/types/sources → commonjs/types}/PressableSourceProps.d.ts +6 -4
  275. package/lib/typescript/commonjs/types/PressableSourceProps.d.ts.map +1 -0
  276. package/lib/typescript/{module/src → commonjs}/types/ViewPadding.d.ts +3 -0
  277. package/lib/typescript/commonjs/types/ViewPadding.d.ts.map +1 -0
  278. package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/utils/BridgeValue.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/utils/StyleValue.d.ts.map +1 -0
  281. package/lib/typescript/{module/src → commonjs}/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  282. package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  283. package/lib/typescript/{module/src → commonjs}/utils/animated/Animated.d.ts +1 -1
  284. package/lib/typescript/commonjs/utils/animated/Animated.d.ts.map +1 -0
  285. package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedCoordinatesArray.d.ts +6 -6
  286. package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  288. package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedGeoJSON.d.ts +2 -1
  289. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  292. package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  293. package/lib/typescript/{module/src → commonjs}/utils/convertStyleSpec.d.ts +4 -4
  294. package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/utils/findNodeHandle.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/utils/getNativeFilter.d.ts.map +1 -0
  297. package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
  299. package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts.map +1 -0
  300. package/lib/typescript/module/{src/components → components}/annotations/callout/Callout.d.ts +3 -2
  301. package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -0
  302. package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
  303. package/lib/typescript/{commonjs/src → module}/components/annotations/marker/Marker.d.ts +29 -22
  304. package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -0
  305. package/lib/typescript/module/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +10 -0
  306. package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
  307. package/lib/typescript/{commonjs/src → module}/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +3 -2
  308. package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
  309. package/lib/typescript/module/{src/components → components}/annotations/view-annotation/ViewAnnotation.d.ts +35 -29
  310. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
  311. package/lib/typescript/module/{src/components → components}/camera/Camera.d.ts +85 -43
  312. package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -0
  313. package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts.map +1 -0
  314. package/lib/typescript/module/components/camera/NativeCameraModule.d.ts.map +1 -0
  315. package/lib/typescript/module/{src/components → components}/images/Images.d.ts +20 -12
  316. package/lib/typescript/module/components/images/Images.d.ts.map +1 -0
  317. package/lib/typescript/module/components/images/ImagesNativeComponent.d.ts.map +1 -0
  318. package/lib/typescript/module/components/images/NativeImagesModule.d.ts +6 -0
  319. package/lib/typescript/module/components/images/NativeImagesModule.d.ts.map +1 -0
  320. package/lib/typescript/module/{src/components → components}/layer/Layer.d.ts +18 -8
  321. package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -0
  322. package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts.map +1 -0
  323. package/lib/typescript/module/{src/components → components}/map/AndroidTextureMapViewNativeComponent.d.ts +5 -1
  324. package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
  325. package/lib/typescript/module/{src/components → components}/map/Map.d.ts +151 -75
  326. package/lib/typescript/module/components/map/Map.d.ts.map +1 -0
  327. package/lib/typescript/{commonjs/src → module}/components/map/MapViewNativeComponent.d.ts +5 -1
  328. package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts.map +1 -0
  329. package/lib/typescript/module/components/map/NativeMapViewModule.d.ts.map +1 -0
  330. package/lib/typescript/module/{src/components → components}/sources/geojson-source/GeoJSONSource.d.ts +47 -44
  331. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
  332. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
  333. package/lib/typescript/module/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
  334. package/lib/typescript/module/{src/components → components}/sources/image-source/ImageSource.d.ts +5 -3
  335. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -0
  336. package/lib/typescript/module/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
  337. package/lib/typescript/module/{src/components → components}/sources/raster-source/RasterSource.d.ts +20 -15
  338. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -0
  339. package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
  340. package/lib/typescript/module/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
  341. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +75 -0
  342. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -0
  343. package/lib/typescript/module/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
  344. package/lib/typescript/{commonjs/src → module}/components/user-location/NativeUserLocation.d.ts +9 -6
  345. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -0
  346. package/lib/typescript/module/{src/components → components}/user-location/UserLocation.d.ts +4 -2
  347. package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -0
  348. package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
  349. package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts.map +1 -0
  350. package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
  351. package/lib/typescript/module/{src/hooks → hooks}/useCurrentPosition.d.ts +2 -2
  352. package/lib/typescript/module/hooks/useCurrentPosition.d.ts.map +1 -0
  353. package/lib/typescript/module/hooks/useFrozenId.d.ts.map +1 -0
  354. package/lib/typescript/module/hooks/useNativeBridge.d.ts.map +1 -0
  355. package/lib/typescript/module/{src/index.d.ts → index.d.ts} +3 -2
  356. package/lib/typescript/module/index.d.ts.map +1 -0
  357. package/lib/typescript/module/modules/location/LocationManager.d.ts.map +1 -0
  358. package/lib/typescript/module/modules/location/NativeLocationModule.d.ts.map +1 -0
  359. package/lib/typescript/module/{src/modules → modules}/log/LogManager.d.ts +5 -4
  360. package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -0
  361. package/lib/typescript/module/modules/log/NativeLogModule.d.ts.map +1 -0
  362. package/lib/typescript/module/{src/modules → modules}/network/NativeNetworkModule.d.ts +0 -2
  363. package/lib/typescript/module/modules/network/NativeNetworkModule.d.ts.map +1 -0
  364. package/lib/typescript/module/modules/network/NetworkManager.d.ts +24 -0
  365. package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -0
  366. package/lib/typescript/module/modules/offline/NativeOfflineModule.d.ts.map +1 -0
  367. package/lib/typescript/module/{src/modules → modules}/offline/OfflineManager.d.ts +110 -63
  368. package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -0
  369. package/lib/typescript/module/modules/offline/OfflinePack.d.ts.map +1 -0
  370. package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
  371. package/lib/typescript/module/{src/modules → modules}/static-map/StaticMapManager.d.ts +15 -7
  372. package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts.map +1 -0
  373. package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
  374. package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
  375. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +213 -0
  376. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
  377. package/lib/typescript/{commonjs/src → module}/plugin/MapLibrePluginProps.d.ts +10 -15
  378. package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts.map +1 -0
  379. package/lib/typescript/module/plugin/android.d.ts.map +1 -0
  380. package/lib/typescript/module/{src/plugin → plugin}/ios.d.ts +2 -2
  381. package/lib/typescript/module/plugin/ios.d.ts.map +1 -0
  382. package/lib/typescript/module/plugin/withMapLibre.d.ts.map +1 -0
  383. package/lib/typescript/module/types/Anchor.d.ts +16 -0
  384. package/lib/typescript/module/types/Anchor.d.ts.map +1 -0
  385. package/lib/typescript/module/types/BaseProps.d.ts +7 -0
  386. package/lib/typescript/module/types/BaseProps.d.ts.map +1 -0
  387. package/lib/typescript/module/types/LngLat.d.ts.map +1 -0
  388. package/lib/typescript/module/{src/types → types}/LngLatBounds.d.ts +2 -1
  389. package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -0
  390. package/lib/typescript/module/{src/types → types}/MapLibreRNStyles.d.ts +316 -132
  391. package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -0
  392. package/lib/typescript/module/types/PixelPoint.d.ts.map +1 -0
  393. package/lib/typescript/module/types/PixelPointBounds.d.ts.map +1 -0
  394. package/lib/typescript/{commonjs/src → module}/types/PressEvent.d.ts +3 -0
  395. package/lib/typescript/module/types/PressEvent.d.ts.map +1 -0
  396. package/lib/typescript/module/{src/types → types}/PressEventWithFeatures.d.ts +3 -0
  397. package/lib/typescript/module/types/PressEventWithFeatures.d.ts.map +1 -0
  398. package/lib/typescript/{commonjs/src/types/sources → module/types}/PressableSourceProps.d.ts +6 -4
  399. package/lib/typescript/module/types/PressableSourceProps.d.ts.map +1 -0
  400. package/lib/typescript/{commonjs/src → module}/types/ViewPadding.d.ts +3 -0
  401. package/lib/typescript/module/types/ViewPadding.d.ts.map +1 -0
  402. package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts.map +1 -0
  403. package/lib/typescript/module/utils/BridgeValue.d.ts.map +1 -0
  404. package/lib/typescript/module/utils/StyleValue.d.ts.map +1 -0
  405. package/lib/typescript/{commonjs/src → module}/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  406. package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  407. package/lib/typescript/{commonjs/src → module}/utils/animated/Animated.d.ts +1 -1
  408. package/lib/typescript/module/utils/animated/Animated.d.ts.map +1 -0
  409. package/lib/typescript/module/{src/utils → utils}/animated/AnimatedCoordinatesArray.d.ts +6 -6
  410. package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  411. package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  412. package/lib/typescript/module/{src/utils → utils}/animated/AnimatedGeoJSON.d.ts +2 -1
  413. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
  414. package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts.map +1 -0
  415. package/lib/typescript/module/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  416. package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  417. package/lib/typescript/{commonjs/src → module}/utils/convertStyleSpec.d.ts +4 -4
  418. package/lib/typescript/module/utils/convertStyleSpec.d.ts.map +1 -0
  419. package/lib/typescript/module/utils/findNodeHandle.d.ts.map +1 -0
  420. package/lib/typescript/module/utils/getNativeFilter.d.ts.map +1 -0
  421. package/lib/typescript/module/utils/getStylePropertyType.d.ts.map +1 -0
  422. package/lib/typescript/module/utils/index.d.ts.map +1 -0
  423. package/package.json +19 -40
  424. package/src/components/annotations/callout/Callout.tsx +3 -2
  425. package/src/components/annotations/marker/Marker.tsx +47 -30
  426. package/src/components/annotations/marker/MarkerViewNativeComponent.ts +10 -0
  427. package/src/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +3 -2
  428. package/src/components/annotations/view-annotation/ViewAnnotation.tsx +53 -47
  429. package/src/components/camera/Camera.tsx +148 -110
  430. package/src/components/images/Images.tsx +20 -12
  431. package/src/components/images/NativeImagesModule.ts +11 -0
  432. package/src/components/layer/Layer.tsx +18 -8
  433. package/src/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
  434. package/src/components/map/Map.tsx +296 -229
  435. package/src/components/map/MapViewNativeComponent.ts +6 -1
  436. package/src/components/sources/geojson-source/GeoJSONSource.tsx +105 -103
  437. package/src/components/sources/image-source/ImageSource.tsx +5 -3
  438. package/src/components/sources/raster-source/RasterSource.tsx +20 -15
  439. package/src/components/sources/vector-source/VectorSource.tsx +66 -58
  440. package/src/components/user-location/NativeUserLocation.tsx +9 -6
  441. package/src/components/user-location/UserLocation.tsx +4 -2
  442. package/src/hooks/useCurrentPosition.ts +2 -2
  443. package/src/index.ts +12 -3
  444. package/src/modules/log/LogManager.ts +5 -4
  445. package/src/modules/network/NativeNetworkModule.ts +0 -4
  446. package/src/modules/network/NetworkManager.ts +6 -52
  447. package/src/modules/offline/OfflineManager.ts +109 -62
  448. package/src/modules/static-map/StaticMapManager.ts +15 -7
  449. package/src/modules/transform-request/NativeTransformRequestModule.ts +41 -0
  450. package/src/modules/transform-request/TransformRequestManager.ts +304 -0
  451. package/src/plugin/MapLibrePluginProps.ts +10 -15
  452. package/src/plugin/ios.ts +43 -21
  453. package/src/types/Anchor.ts +5 -6
  454. package/src/types/BaseProps.ts +3 -0
  455. package/src/types/LngLatBounds.ts +2 -1
  456. package/src/types/MapLibreRNStyles.ts +326 -192
  457. package/src/types/PressEvent.ts +3 -0
  458. package/src/types/PressEventWithFeatures.ts +3 -0
  459. package/src/types/{sources/PressableSourceProps.ts → PressableSourceProps.ts} +6 -4
  460. package/src/types/ViewPadding.ts +3 -0
  461. package/src/utils/animated/AbstractAnimatedCoordinates.ts +2 -2
  462. package/src/utils/animated/AnimatedCoordinatesArray.ts +6 -6
  463. package/src/utils/animated/AnimatedGeoJSON.ts +2 -1
  464. package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +6 -6
  465. package/src/utils/convertStyleSpec.ts +4 -4
  466. package/src/utils/getStylePropertyType.ts +1 -1
  467. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyle.java +0 -76
  468. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.java +0 -2285
  469. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFunctionParser.java +0 -94
  470. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleValue.java +0 -207
  471. package/android/src/main/java/org/maplibre/reactnative/events/AndroidCallbackEvent.java +0 -34
  472. package/android/src/main/java/org/maplibre/reactnative/http/RequestHeadersInterceptor.kt +0 -65
  473. package/android/src/main/res/layout/annotation.xml +0 -17
  474. package/ios/modules/network/MLRNNetworkHTTPHeaders.h +0 -14
  475. package/ios/modules/network/MLRNNetworkHTTPHeaders.m +0 -97
  476. package/lib/commonjs/types/sources/PressableSourceProps.js.map +0 -1
  477. package/lib/module/types/sources/PressableSourceProps.js.map +0 -1
  478. package/lib/typescript/commonjs/src/components/annotations/LayerAnnotation.d.ts.map +0 -1
  479. package/lib/typescript/commonjs/src/components/annotations/callout/Callout.d.ts.map +0 -1
  480. package/lib/typescript/commonjs/src/components/annotations/callout/CalloutNativeComponent.d.ts.map +0 -1
  481. package/lib/typescript/commonjs/src/components/annotations/marker/Marker.d.ts.map +0 -1
  482. package/lib/typescript/commonjs/src/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +0 -1
  483. package/lib/typescript/commonjs/src/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +0 -1
  484. package/lib/typescript/commonjs/src/components/annotations/view-annotation/ViewAnnotation.d.ts.map +0 -1
  485. package/lib/typescript/commonjs/src/components/camera/Camera.d.ts.map +0 -1
  486. package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts.map +0 -1
  487. package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts.map +0 -1
  488. package/lib/typescript/commonjs/src/components/images/Images.d.ts.map +0 -1
  489. package/lib/typescript/commonjs/src/components/images/ImagesNativeComponent.d.ts.map +0 -1
  490. package/lib/typescript/commonjs/src/components/layer/Layer.d.ts.map +0 -1
  491. package/lib/typescript/commonjs/src/components/layer/LayerNativeComponent.d.ts.map +0 -1
  492. package/lib/typescript/commonjs/src/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +0 -1
  493. package/lib/typescript/commonjs/src/components/map/Map.d.ts.map +0 -1
  494. package/lib/typescript/commonjs/src/components/map/MapViewNativeComponent.d.ts.map +0 -1
  495. package/lib/typescript/commonjs/src/components/map/NativeMapViewModule.d.ts.map +0 -1
  496. package/lib/typescript/commonjs/src/components/sources/geojson-source/GeoJSONSource.d.ts.map +0 -1
  497. package/lib/typescript/commonjs/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +0 -1
  498. package/lib/typescript/commonjs/src/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +0 -1
  499. package/lib/typescript/commonjs/src/components/sources/image-source/ImageSource.d.ts.map +0 -1
  500. package/lib/typescript/commonjs/src/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +0 -1
  501. package/lib/typescript/commonjs/src/components/sources/raster-source/RasterSource.d.ts.map +0 -1
  502. package/lib/typescript/commonjs/src/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +0 -1
  503. package/lib/typescript/commonjs/src/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +0 -1
  504. package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSource.d.ts +0 -66
  505. package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSource.d.ts.map +0 -1
  506. package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +0 -1
  507. package/lib/typescript/commonjs/src/components/user-location/NativeUserLocation.d.ts.map +0 -1
  508. package/lib/typescript/commonjs/src/components/user-location/UserLocation.d.ts.map +0 -1
  509. package/lib/typescript/commonjs/src/components/user-location/UserLocationNativeComponent.d.ts.map +0 -1
  510. package/lib/typescript/commonjs/src/components/user-location/UserLocationPuck.d.ts.map +0 -1
  511. package/lib/typescript/commonjs/src/components/user-location/UserLocationPuckHeading.d.ts.map +0 -1
  512. package/lib/typescript/commonjs/src/hooks/useCurrentPosition.d.ts.map +0 -1
  513. package/lib/typescript/commonjs/src/hooks/useFrozenId.d.ts.map +0 -1
  514. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +0 -1
  515. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  516. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +0 -1
  517. package/lib/typescript/commonjs/src/modules/location/NativeLocationModule.d.ts.map +0 -1
  518. package/lib/typescript/commonjs/src/modules/log/LogManager.d.ts.map +0 -1
  519. package/lib/typescript/commonjs/src/modules/log/NativeLogModule.d.ts.map +0 -1
  520. package/lib/typescript/commonjs/src/modules/network/NativeNetworkModule.d.ts.map +0 -1
  521. package/lib/typescript/commonjs/src/modules/network/NetworkManager.d.ts +0 -56
  522. package/lib/typescript/commonjs/src/modules/network/NetworkManager.d.ts.map +0 -1
  523. package/lib/typescript/commonjs/src/modules/offline/NativeOfflineModule.d.ts.map +0 -1
  524. package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +0 -1
  525. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +0 -1
  526. package/lib/typescript/commonjs/src/modules/static-map/NativeStaticMapModule.d.ts.map +0 -1
  527. package/lib/typescript/commonjs/src/modules/static-map/StaticMapManager.d.ts.map +0 -1
  528. package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +0 -1
  529. package/lib/typescript/commonjs/src/plugin/android.d.ts.map +0 -1
  530. package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +0 -1
  531. package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +0 -1
  532. package/lib/typescript/commonjs/src/types/Anchor.d.ts +0 -17
  533. package/lib/typescript/commonjs/src/types/Anchor.d.ts.map +0 -1
  534. package/lib/typescript/commonjs/src/types/BaseProps.d.ts +0 -4
  535. package/lib/typescript/commonjs/src/types/BaseProps.d.ts.map +0 -1
  536. package/lib/typescript/commonjs/src/types/LngLat.d.ts.map +0 -1
  537. package/lib/typescript/commonjs/src/types/LngLatBounds.d.ts.map +0 -1
  538. package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +0 -1
  539. package/lib/typescript/commonjs/src/types/PixelPoint.d.ts.map +0 -1
  540. package/lib/typescript/commonjs/src/types/PixelPointBounds.d.ts.map +0 -1
  541. package/lib/typescript/commonjs/src/types/PressEvent.d.ts.map +0 -1
  542. package/lib/typescript/commonjs/src/types/PressEventWithFeatures.d.ts.map +0 -1
  543. package/lib/typescript/commonjs/src/types/ViewPadding.d.ts.map +0 -1
  544. package/lib/typescript/commonjs/src/types/codegen/UnsafeMixed.d.ts.map +0 -1
  545. package/lib/typescript/commonjs/src/types/sources/PressableSourceProps.d.ts.map +0 -1
  546. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +0 -1
  547. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +0 -1
  548. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +0 -1
  549. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +0 -1
  550. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +0 -1
  551. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +0 -1
  552. package/lib/typescript/commonjs/src/utils/animated/AnimatedGeoJSON.d.ts.map +0 -1
  553. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +0 -1
  554. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +0 -1
  555. package/lib/typescript/commonjs/src/utils/convertStyleSpec.d.ts.map +0 -1
  556. package/lib/typescript/commonjs/src/utils/findNodeHandle.d.ts.map +0 -1
  557. package/lib/typescript/commonjs/src/utils/getNativeFilter.d.ts.map +0 -1
  558. package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +0 -1
  559. package/lib/typescript/commonjs/src/utils/index.d.ts.map +0 -1
  560. package/lib/typescript/module/src/components/annotations/LayerAnnotation.d.ts.map +0 -1
  561. package/lib/typescript/module/src/components/annotations/callout/Callout.d.ts.map +0 -1
  562. package/lib/typescript/module/src/components/annotations/callout/CalloutNativeComponent.d.ts.map +0 -1
  563. package/lib/typescript/module/src/components/annotations/marker/Marker.d.ts.map +0 -1
  564. package/lib/typescript/module/src/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +0 -1
  565. package/lib/typescript/module/src/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +0 -1
  566. package/lib/typescript/module/src/components/annotations/view-annotation/ViewAnnotation.d.ts.map +0 -1
  567. package/lib/typescript/module/src/components/camera/Camera.d.ts.map +0 -1
  568. package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts.map +0 -1
  569. package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts.map +0 -1
  570. package/lib/typescript/module/src/components/images/Images.d.ts.map +0 -1
  571. package/lib/typescript/module/src/components/images/ImagesNativeComponent.d.ts.map +0 -1
  572. package/lib/typescript/module/src/components/layer/Layer.d.ts.map +0 -1
  573. package/lib/typescript/module/src/components/layer/LayerNativeComponent.d.ts.map +0 -1
  574. package/lib/typescript/module/src/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +0 -1
  575. package/lib/typescript/module/src/components/map/Map.d.ts.map +0 -1
  576. package/lib/typescript/module/src/components/map/MapViewNativeComponent.d.ts.map +0 -1
  577. package/lib/typescript/module/src/components/map/NativeMapViewModule.d.ts.map +0 -1
  578. package/lib/typescript/module/src/components/sources/geojson-source/GeoJSONSource.d.ts.map +0 -1
  579. package/lib/typescript/module/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +0 -1
  580. package/lib/typescript/module/src/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +0 -1
  581. package/lib/typescript/module/src/components/sources/image-source/ImageSource.d.ts.map +0 -1
  582. package/lib/typescript/module/src/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +0 -1
  583. package/lib/typescript/module/src/components/sources/raster-source/RasterSource.d.ts.map +0 -1
  584. package/lib/typescript/module/src/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +0 -1
  585. package/lib/typescript/module/src/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +0 -1
  586. package/lib/typescript/module/src/components/sources/vector-source/VectorSource.d.ts +0 -66
  587. package/lib/typescript/module/src/components/sources/vector-source/VectorSource.d.ts.map +0 -1
  588. package/lib/typescript/module/src/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +0 -1
  589. package/lib/typescript/module/src/components/user-location/NativeUserLocation.d.ts.map +0 -1
  590. package/lib/typescript/module/src/components/user-location/UserLocation.d.ts.map +0 -1
  591. package/lib/typescript/module/src/components/user-location/UserLocationNativeComponent.d.ts.map +0 -1
  592. package/lib/typescript/module/src/components/user-location/UserLocationPuck.d.ts.map +0 -1
  593. package/lib/typescript/module/src/components/user-location/UserLocationPuckHeading.d.ts.map +0 -1
  594. package/lib/typescript/module/src/hooks/useCurrentPosition.d.ts.map +0 -1
  595. package/lib/typescript/module/src/hooks/useFrozenId.d.ts.map +0 -1
  596. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +0 -1
  597. package/lib/typescript/module/src/index.d.ts.map +0 -1
  598. package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +0 -1
  599. package/lib/typescript/module/src/modules/location/NativeLocationModule.d.ts.map +0 -1
  600. package/lib/typescript/module/src/modules/log/LogManager.d.ts.map +0 -1
  601. package/lib/typescript/module/src/modules/log/NativeLogModule.d.ts.map +0 -1
  602. package/lib/typescript/module/src/modules/network/NativeNetworkModule.d.ts.map +0 -1
  603. package/lib/typescript/module/src/modules/network/NetworkManager.d.ts +0 -56
  604. package/lib/typescript/module/src/modules/network/NetworkManager.d.ts.map +0 -1
  605. package/lib/typescript/module/src/modules/offline/NativeOfflineModule.d.ts.map +0 -1
  606. package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +0 -1
  607. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +0 -1
  608. package/lib/typescript/module/src/modules/static-map/NativeStaticMapModule.d.ts.map +0 -1
  609. package/lib/typescript/module/src/modules/static-map/StaticMapManager.d.ts.map +0 -1
  610. package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +0 -1
  611. package/lib/typescript/module/src/plugin/android.d.ts.map +0 -1
  612. package/lib/typescript/module/src/plugin/ios.d.ts.map +0 -1
  613. package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +0 -1
  614. package/lib/typescript/module/src/types/Anchor.d.ts +0 -17
  615. package/lib/typescript/module/src/types/Anchor.d.ts.map +0 -1
  616. package/lib/typescript/module/src/types/BaseProps.d.ts +0 -4
  617. package/lib/typescript/module/src/types/BaseProps.d.ts.map +0 -1
  618. package/lib/typescript/module/src/types/LngLat.d.ts.map +0 -1
  619. package/lib/typescript/module/src/types/LngLatBounds.d.ts.map +0 -1
  620. package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +0 -1
  621. package/lib/typescript/module/src/types/PixelPoint.d.ts.map +0 -1
  622. package/lib/typescript/module/src/types/PixelPointBounds.d.ts.map +0 -1
  623. package/lib/typescript/module/src/types/PressEvent.d.ts.map +0 -1
  624. package/lib/typescript/module/src/types/PressEventWithFeatures.d.ts.map +0 -1
  625. package/lib/typescript/module/src/types/ViewPadding.d.ts.map +0 -1
  626. package/lib/typescript/module/src/types/codegen/UnsafeMixed.d.ts.map +0 -1
  627. package/lib/typescript/module/src/types/sources/PressableSourceProps.d.ts.map +0 -1
  628. package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +0 -1
  629. package/lib/typescript/module/src/utils/StyleValue.d.ts.map +0 -1
  630. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +0 -1
  631. package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +0 -1
  632. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +0 -1
  633. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +0 -1
  634. package/lib/typescript/module/src/utils/animated/AnimatedGeoJSON.d.ts.map +0 -1
  635. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +0 -1
  636. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +0 -1
  637. package/lib/typescript/module/src/utils/convertStyleSpec.d.ts.map +0 -1
  638. package/lib/typescript/module/src/utils/findNodeHandle.d.ts.map +0 -1
  639. package/lib/typescript/module/src/utils/getNativeFilter.d.ts.map +0 -1
  640. package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +0 -1
  641. package/lib/typescript/module/src/utils/index.d.ts.map +0 -1
  642. /package/android/src/main/res/drawable-xxhdpi/{red_marker.png → default_marker.png} +0 -0
  643. /package/ios/{components/images → utils}/MLRNImageUtils.h +0 -0
  644. /package/ios/{components/images → utils}/MLRNImageUtils.m +0 -0
  645. /package/lib/commonjs/types/{sources/PressableSourceProps.js → PressableSourceProps.js} +0 -0
  646. /package/lib/module/types/{sources/PressableSourceProps.js → PressableSourceProps.js} +0 -0
  647. /package/lib/typescript/commonjs/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
  648. /package/lib/typescript/commonjs/{src/components → components}/annotations/callout/CalloutNativeComponent.d.ts +0 -0
  649. /package/lib/typescript/commonjs/{src/components → components}/camera/CameraNativeComponent.d.ts +0 -0
  650. /package/lib/typescript/commonjs/{src/components → components}/camera/NativeCameraModule.d.ts +0 -0
  651. /package/lib/typescript/commonjs/{src/components → components}/images/ImagesNativeComponent.d.ts +0 -0
  652. /package/lib/typescript/commonjs/{src/components → components}/layer/LayerNativeComponent.d.ts +0 -0
  653. /package/lib/typescript/commonjs/{src/components → components}/map/NativeMapViewModule.d.ts +0 -0
  654. /package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +0 -0
  655. /package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +0 -0
  656. /package/lib/typescript/commonjs/{src/components → components}/sources/image-source/ImageSourceNativeComponent.d.ts +0 -0
  657. /package/lib/typescript/commonjs/{src/components → components}/sources/raster-source/RasterSourceNativeComponent.d.ts +0 -0
  658. /package/lib/typescript/commonjs/{src/components → components}/sources/vector-source/NativeVectorSourceModule.d.ts +0 -0
  659. /package/lib/typescript/commonjs/{src/components → components}/sources/vector-source/VectorSourceNativeComponent.d.ts +0 -0
  660. /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationNativeComponent.d.ts +0 -0
  661. /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationPuck.d.ts +0 -0
  662. /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationPuckHeading.d.ts +0 -0
  663. /package/lib/typescript/commonjs/{src/hooks → hooks}/useFrozenId.d.ts +0 -0
  664. /package/lib/typescript/commonjs/{src/hooks → hooks}/useNativeBridge.d.ts +0 -0
  665. /package/lib/typescript/commonjs/{src/modules → modules}/location/LocationManager.d.ts +0 -0
  666. /package/lib/typescript/commonjs/{src/modules → modules}/location/NativeLocationModule.d.ts +0 -0
  667. /package/lib/typescript/commonjs/{src/modules → modules}/log/NativeLogModule.d.ts +0 -0
  668. /package/lib/typescript/commonjs/{src/modules → modules}/offline/NativeOfflineModule.d.ts +0 -0
  669. /package/lib/typescript/commonjs/{src/modules → modules}/offline/OfflinePack.d.ts +0 -0
  670. /package/lib/typescript/commonjs/{src/modules → modules}/static-map/NativeStaticMapModule.d.ts +0 -0
  671. /package/lib/typescript/commonjs/{src/plugin → plugin}/android.d.ts +0 -0
  672. /package/lib/typescript/commonjs/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
  673. /package/lib/typescript/commonjs/{src/types → types}/LngLat.d.ts +0 -0
  674. /package/lib/typescript/commonjs/{src/types → types}/PixelPoint.d.ts +0 -0
  675. /package/lib/typescript/commonjs/{src/types → types}/PixelPointBounds.d.ts +0 -0
  676. /package/lib/typescript/commonjs/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
  677. /package/lib/typescript/commonjs/{src/utils → utils}/BridgeValue.d.ts +0 -0
  678. /package/lib/typescript/commonjs/{src/utils → utils}/StyleValue.d.ts +0 -0
  679. /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -0
  680. /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
  681. /package/lib/typescript/commonjs/{src/utils → utils}/findNodeHandle.d.ts +0 -0
  682. /package/lib/typescript/commonjs/{src/utils → utils}/getNativeFilter.d.ts +0 -0
  683. /package/lib/typescript/commonjs/{src/utils → utils}/getStylePropertyType.d.ts +0 -0
  684. /package/lib/typescript/commonjs/{src/utils → utils}/index.d.ts +0 -0
  685. /package/lib/typescript/module/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
  686. /package/lib/typescript/module/{src/components → components}/annotations/callout/CalloutNativeComponent.d.ts +0 -0
  687. /package/lib/typescript/module/{src/components → components}/camera/CameraNativeComponent.d.ts +0 -0
  688. /package/lib/typescript/module/{src/components → components}/camera/NativeCameraModule.d.ts +0 -0
  689. /package/lib/typescript/module/{src/components → components}/images/ImagesNativeComponent.d.ts +0 -0
  690. /package/lib/typescript/module/{src/components → components}/layer/LayerNativeComponent.d.ts +0 -0
  691. /package/lib/typescript/module/{src/components → components}/map/NativeMapViewModule.d.ts +0 -0
  692. /package/lib/typescript/module/{src/components → components}/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +0 -0
  693. /package/lib/typescript/module/{src/components → components}/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +0 -0
  694. /package/lib/typescript/module/{src/components → components}/sources/image-source/ImageSourceNativeComponent.d.ts +0 -0
  695. /package/lib/typescript/module/{src/components → components}/sources/raster-source/RasterSourceNativeComponent.d.ts +0 -0
  696. /package/lib/typescript/module/{src/components → components}/sources/vector-source/NativeVectorSourceModule.d.ts +0 -0
  697. /package/lib/typescript/module/{src/components → components}/sources/vector-source/VectorSourceNativeComponent.d.ts +0 -0
  698. /package/lib/typescript/module/{src/components → components}/user-location/UserLocationNativeComponent.d.ts +0 -0
  699. /package/lib/typescript/module/{src/components → components}/user-location/UserLocationPuck.d.ts +0 -0
  700. /package/lib/typescript/module/{src/components → components}/user-location/UserLocationPuckHeading.d.ts +0 -0
  701. /package/lib/typescript/module/{src/hooks → hooks}/useFrozenId.d.ts +0 -0
  702. /package/lib/typescript/module/{src/hooks → hooks}/useNativeBridge.d.ts +0 -0
  703. /package/lib/typescript/module/{src/modules → modules}/location/LocationManager.d.ts +0 -0
  704. /package/lib/typescript/module/{src/modules → modules}/location/NativeLocationModule.d.ts +0 -0
  705. /package/lib/typescript/module/{src/modules → modules}/log/NativeLogModule.d.ts +0 -0
  706. /package/lib/typescript/module/{src/modules → modules}/offline/NativeOfflineModule.d.ts +0 -0
  707. /package/lib/typescript/module/{src/modules → modules}/offline/OfflinePack.d.ts +0 -0
  708. /package/lib/typescript/module/{src/modules → modules}/static-map/NativeStaticMapModule.d.ts +0 -0
  709. /package/lib/typescript/module/{src/plugin → plugin}/android.d.ts +0 -0
  710. /package/lib/typescript/module/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
  711. /package/lib/typescript/module/{src/types → types}/LngLat.d.ts +0 -0
  712. /package/lib/typescript/module/{src/types → types}/PixelPoint.d.ts +0 -0
  713. /package/lib/typescript/module/{src/types → types}/PixelPointBounds.d.ts +0 -0
  714. /package/lib/typescript/module/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
  715. /package/lib/typescript/module/{src/utils → utils}/BridgeValue.d.ts +0 -0
  716. /package/lib/typescript/module/{src/utils → utils}/StyleValue.d.ts +0 -0
  717. /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -0
  718. /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
  719. /package/lib/typescript/module/{src/utils → utils}/findNodeHandle.d.ts +0 -0
  720. /package/lib/typescript/module/{src/utils → utils}/getNativeFilter.d.ts +0 -0
  721. /package/lib/typescript/module/{src/utils → utils}/getStylePropertyType.d.ts +0 -0
  722. /package/lib/typescript/module/{src/utils → utils}/index.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import type { FilterSpecification, LightSpecification, StyleSpecification } from "@maplibre/maplibre-gl-style-spec";
2
- import { type ReactNode } from "react";
2
+ import { type Ref } from "react";
3
3
  import { type NativeSyntheticEvent, type ViewProps } from "react-native";
4
- import { type BaseProps } from "../../types/BaseProps";
4
+ import type { BaseProps } from "../../types/BaseProps";
5
5
  import type { LngLat } from "../../types/LngLat";
6
6
  import type { LngLatBounds } from "../../types/LngLatBounds";
7
7
  import type { PixelPoint } from "../../types/PixelPoint";
@@ -9,6 +9,10 @@ import type { PixelPointBounds } from "../../types/PixelPointBounds";
9
9
  import type { PressEvent } from "../../types/PressEvent";
10
10
  import type { PressEventWithFeatures } from "../../types/PressEventWithFeatures";
11
11
  import type { ViewPadding } from "../../types/ViewPadding";
12
+ /**
13
+ * Screen position for map ornaments (logo, compass, scale bar). Exactly one of
14
+ * `top` / `bottom` and one of `left` / `right` must be provided.
15
+ */
12
16
  export type OrnamentViewPosition = {
13
17
  top: number;
14
18
  left: number;
@@ -22,6 +26,9 @@ export type OrnamentViewPosition = {
22
26
  bottom: number;
23
27
  left: number;
24
28
  };
29
+ /**
30
+ * Current viewport state of the map.
31
+ */
25
32
  export type ViewState = {
26
33
  center: LngLat;
27
34
  zoom: number;
@@ -29,10 +36,17 @@ export type ViewState = {
29
36
  pitch: number;
30
37
  bounds: LngLatBounds;
31
38
  };
39
+ /**
40
+ * Event emitted when the map viewport changes (pan, zoom, rotate, pitch).
41
+ */
32
42
  export type ViewStateChangeEvent = ViewState & {
33
43
  animated: boolean;
34
44
  userInteraction: boolean;
35
45
  };
46
+ /**
47
+ * Options for querying rendered features at a screen point or within a bounding
48
+ * box.
49
+ */
36
50
  export type QueryRenderedFeaturesOptions = {
37
51
  /**
38
52
  * Filter expression to filter the queried features
@@ -47,140 +61,155 @@ export interface MapRef {
47
61
  /**
48
62
  * Returns the current center coordinates of the map
49
63
  *
64
+ * @returns Current center coordinates of the map
65
+ *
50
66
  * @example
67
+ * ```ts
51
68
  * await mapRef.current?.getCenter();
52
- *
53
- * @return Current center coordinates of the map
69
+ * ```
54
70
  */
55
71
  getCenter(): Promise<LngLat>;
56
72
  /**
57
73
  * Returns the current zoom level of the map
58
74
  *
75
+ * @returns Current zoom level of the map
76
+ *
59
77
  * @example
78
+ * ```ts
60
79
  * await mapRef.current?.getZoom();
61
- *
62
- * @return Current zoom level of the map
80
+ * ```
63
81
  */
64
82
  getZoom(): Promise<number>;
65
83
  /**
66
84
  * Returns the current bearing of the map
67
85
  *
86
+ * @returns Current bearing of the map
87
+ *
68
88
  * @example
89
+ * ```ts
69
90
  * await mapRef.current?.getBearing();
70
- *
71
- * @return Current bearing of the map
91
+ * ```
72
92
  */
73
93
  getBearing(): Promise<number>;
74
94
  /**
75
95
  * Returns the current pitch of the map
76
96
  *
97
+ * @returns Current pitch of the map
98
+ *
77
99
  * @example
100
+ * ```ts
78
101
  * await mapRef.current?.getPitch();
79
- *
80
- * @return Current pitch of the map
102
+ * ```
81
103
  */
82
104
  getPitch(): Promise<number>;
83
105
  /**
84
106
  * Returns the current bounds of the map
85
107
  *
108
+ * @returns Current bounds of the map
109
+ *
86
110
  * @example
111
+ * ```ts
87
112
  * await mapRef.current?.getBounds();
88
- *
89
- * @return Current bounds of the map
113
+ * ```
90
114
  */
91
115
  getBounds(): Promise<LngLatBounds>;
92
116
  /**
93
117
  * Returns the current view state of the map
94
118
  *
119
+ * @returns Current view state of the map
120
+ *
95
121
  * @example
122
+ * ```ts
96
123
  * await mapRef.current?.getViewState();
97
- *
98
- * @return Current view state of the map
124
+ * ```
99
125
  */
100
126
  getViewState(): Promise<ViewState>;
101
127
  /**
102
128
  * Converts geographic coordinates to pixel point of the view
103
129
  *
130
+ * @param lngLat - Geographic coordinate
131
+ * @returns Pixel point
132
+ *
104
133
  * @example
134
+ * ```ts
105
135
  * await mapRef.current?.project([13.04214014753952, 47.80554907882145]);
106
- *
107
- * @param lngLat Geographic coordinate
108
- * @return Pixel point
136
+ * ```
109
137
  */
110
138
  project(lngLat: LngLat): Promise<PixelPoint>;
111
139
  /**
112
140
  * Converts a pixel point of the view to geographic coordinates.
113
141
  *
142
+ * @param point - Pixel point
143
+ * @returns Geographic coordinate
144
+ *
114
145
  * @example
146
+ * ```ts
115
147
  * await mapRef.current?.unproject([280, 640]);
116
- *
117
- * @param point Pixel point
118
- * @return Geographic coordinate
148
+ * ```
119
149
  */
120
150
  unproject(point: PixelPoint): Promise<LngLat>;
121
151
  /**
122
152
  * Query rendered features at a point
123
153
  *
124
- * @example
125
- * await mapRef.current?.queryRenderedFeatures(
126
- * [240, 640],
127
- * {
128
- * filter: ["==", "type", "Point"],
129
- * layers: ["restaurants", "shops"],
130
- * },
131
- * );
154
+ * @returns Queried features
132
155
  *
133
- * @return Queried features
156
+ * @example
157
+ * ```ts
158
+ * await mapRef.current?.queryRenderedFeatures([240, 640], {
159
+ * filter: ["==", "type", "Point"],
160
+ * layers: ["restaurants", "shops"],
161
+ * });
162
+ * ```
134
163
  */
135
164
  queryRenderedFeatures(pixelPoint: PixelPoint, options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
136
165
  /**
137
166
  * Query rendered features within pixel bounds
138
167
  *
139
- * @example
140
- * await mapRef.current?.queryRenderedFeatures(
141
- * [100, 100, 400, 400],
142
- * {
143
- * filter: ["==", "type", "Point"],
144
- * layers: ["restaurants", "shops"],
145
- * },
146
- * );
168
+ * @returns Queried features
147
169
  *
148
- * @return Queried features
170
+ * @example
171
+ * ```ts
172
+ * await mapRef.current?.queryRenderedFeatures([100, 100, 400, 400], {
173
+ * filter: ["==", "type", "Point"],
174
+ * layers: ["restaurants", "shops"],
175
+ * });
176
+ * ```
149
177
  */
150
178
  queryRenderedFeatures(pixelPointBounds: PixelPointBounds, options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
151
179
  /**
152
180
  * Query rendered features within the current viewport
153
181
  *
154
- * @example
155
- * await mapRef.current?.queryRenderedFeatures(
156
- * {
157
- * filter: ["==", "type", "Point"],
158
- * layers: ["restaurants", "shops"],
159
- * },
160
- * );
182
+ * @returns Queried features
161
183
  *
162
- * @return Queried features
184
+ * @example
185
+ * ```ts
186
+ * await mapRef.current?.queryRenderedFeatures({
187
+ * filter: ["==", "type", "Point"],
188
+ * layers: ["restaurants", "shops"],
189
+ * });
190
+ * ```
163
191
  */
164
192
  queryRenderedFeatures(options?: QueryRenderedFeaturesOptions): Promise<GeoJSON.Feature[]>;
165
193
  /**
166
194
  * Takes static-map image of the currently displayed map
167
195
  *
168
- * @param options.output Use "base64" to get a Base64 encoded string, or "file" to get a URI to an image file saved on disk
169
- *
170
- * @return Base64 encoded image or URI of image file
196
+ * @returns Base64 encoded image or URI of image file
171
197
  */
172
198
  createStaticMapImage(options: {
173
199
  output: "base64" | "file";
174
200
  }): Promise<string>;
175
201
  /**
176
- * Sets the visibility of all the layers referencing the specified `source` and optionally `sourceLayer`
177
- *
178
- * @example
179
- * await mapRef.current?.setSourceVisibility(false, 'composite', 'building')
202
+ * Sets the visibility of all the layers referencing the specified `source` and
203
+ * optionally `sourceLayer`
180
204
  *
181
205
  * @param visible - Visibility of the layers
182
206
  * @param source - Identifier of the target source (e.g. 'composite')
183
207
  * @param sourceLayer - Identifier of the target source-layer (e.g. 'building')
208
+ *
209
+ * @example
210
+ * ```ts
211
+ * await mapRef.current?.setSourceVisibility(false, "composite", "building");
212
+ * ```
184
213
  */
185
214
  setSourceVisibility(visible: boolean, source: string, sourceLayer?: string): Promise<void>;
186
215
  /**
@@ -190,18 +219,17 @@ export interface MapRef {
190
219
  */
191
220
  showAttribution(): Promise<void>;
192
221
  }
193
- export interface MapProps extends BaseProps {
194
- children?: ReactNode;
222
+ export interface MapProps extends BaseProps, ViewProps {
195
223
  /**
196
224
  * Style for wrapping React Native View
197
225
  *
198
- * @default { flex: 1 }
226
+ * @defaultValue { flex: 1 }
199
227
  */
200
228
  style?: ViewProps["style"];
201
229
  /**
202
230
  * Maplibre style - either a URL or a Style JSON.
203
231
  *
204
- * @see https://maplibre.org/maplibre-style-spec/
232
+ * @see {@link https://maplibre.org/maplibre-style-spec/}
205
233
  */
206
234
  mapStyle: string | StyleSpecification;
207
235
  /**
@@ -209,45 +237,65 @@ export interface MapProps extends BaseProps {
209
237
  * Controls the light source for extruded geometries.
210
238
  *
211
239
  * @example
240
+ * ```tsx
212
241
  * light={{ position: [1.5, 90, 80], color: "#ffffff", intensity: 0.5 }}
242
+ * ```
213
243
  */
214
244
  light?: LightSpecification;
215
245
  /**
216
- * The distance from the edges of the map view's frame to the edges of the map view's logical viewport.
246
+ * The distance from the edges of the map view's frame to the edges of the map
247
+ * view's logical viewport.
217
248
  */
218
249
  contentInset?: ViewPadding;
219
250
  /**
220
- * iOS: The preferred frame rate at which the map view is rendered.
221
- * The default value for this property is MLNMapViewPreferredFramesPerSecondDefault,
251
+ * **iOS**: The preferred frame rate at which the map view is rendered. The
252
+ * default value for this property is MLNMapViewPreferredFramesPerSecondDefault,
222
253
  * which will adaptively set the preferred frame rate based on the capability of
223
- * the user’s device to maintain a smooth experience. This property can be set to arbitrary integer values.
254
+ * the user’s device to maintain a smooth experience. This property can be set
255
+ * to arbitrary integer values.
224
256
  *
225
- * Android: The maximum frame rate at which the map view is rendered, but it can't excess the ability of device hardware.
226
- * This property can be set to arbitrary integer values.
257
+ * **Android**: The maximum frame rate at which the map view is rendered, but it
258
+ * can't exceed the ability of device hardware. This property can be set to
259
+ * arbitrary integer values.
227
260
  */
228
261
  preferredFramesPerSecond?: number;
229
262
  /**
230
263
  * Toggle pan interaction of the map
231
264
  *
232
- * @default true
265
+ * @defaultValue true
233
266
  */
234
267
  dragPan?: boolean;
235
268
  /**
236
- * Toggle zoom interaction of the map
269
+ * Toggle pinch/scroll zoom interaction of the map.
270
+ *
271
+ * On Android this also disables {@link doubleTapZoom} and {@link doubleTapHoldZoom}.
272
+ *
273
+ * @defaultValue true
274
+ */
275
+ touchZoom?: boolean;
276
+ /**
277
+ * Toggle double-tap zoom interaction of the map.
278
+ *
279
+ * @defaultValue true
280
+ */
281
+ doubleTapZoom?: boolean;
282
+ /**
283
+ * Toggle double-tap-and-hold zoom interaction of the map (also known as quick
284
+ * zoom and one finger zoom).
237
285
  *
238
- * @default true
286
+ * @defaultValue true
239
287
  */
240
- touchAndDoubleTapZoom?: boolean;
288
+ doubleTapHoldZoom?: boolean;
241
289
  /**
242
290
  * Toggle rotate interaction of the map
243
291
  *
244
- * @default true
292
+ * @defaultValue true
245
293
  */
246
294
  touchRotate?: boolean;
247
295
  /**
248
296
  * Toggle pitch interaction of the map
249
297
  *
250
- * @default true
298
+ * @defaultValue true
251
299
  */
252
300
  touchPitch?: boolean;
253
301
  /**
@@ -262,7 +310,9 @@ export interface MapProps extends BaseProps {
262
310
  * Positions the attribution button
263
311
  *
264
312
  * @example Position in the top-left corner
313
+ * ```ts
265
314
  * { top: 8, left: 8 }
315
+ * ```
266
316
  */
267
317
  attributionPosition?: OrnamentViewPosition;
268
318
  /**
@@ -273,7 +323,9 @@ export interface MapProps extends BaseProps {
273
323
  * Positions the logo
274
324
  *
275
325
  * @example Position in the top-left corner
326
+ * ```ts
276
327
  * { top: 8, left: 8 }
328
+ * ```
277
329
  */
278
330
  logoPosition?: OrnamentViewPosition;
279
331
  /**
@@ -284,28 +336,43 @@ export interface MapProps extends BaseProps {
284
336
  * Positions the compass
285
337
  *
286
338
  * @example Position in the top-left corner
339
+ * ```ts
287
340
  * { top: 8, left: 8 }
341
+ * ```
288
342
  */
289
343
  compassPosition?: OrnamentViewPosition;
290
344
  /**
291
345
  * Toggle the compass from hiding when facing north
292
346
  *
293
- * @default true
347
+ * @defaultValue true
294
348
  */
295
349
  compassHiddenFacingNorth?: boolean;
350
+ /**
351
+ * Toggle the scale bar on the map
352
+ */
353
+ scaleBar?: boolean;
354
+ /**
355
+ * Positions the scale bar. Android only supports top-left corner.
356
+ *
357
+ * @example Position in the bottom-left corner
358
+ * ```ts
359
+ * { bottom: 8, left: 8 }
360
+ * ```
361
+ */
362
+ scaleBarPosition?: OrnamentViewPosition;
296
363
  /**
297
364
  * Android only: Switch between TextureView (default) and GLSurfaceView for
298
365
  * rendering the map
299
366
  *
300
- * @default "surface"
367
+ * @defaultValue "surface"
301
368
  */
302
369
  androidView?: "surface" | "texture";
303
370
  /**
304
371
  * Called when a user presses the map
305
372
  *
306
373
  * If the event bubbles up from a child `Source` with an `onPress` handler the
307
- * `features` will be included. The event will emit on `Map` and `Source`.
308
- * To prevent this use `event.stopPropagation()` in the `Source` handler.
374
+ * `features` will be included. The event will emit on `Map` and `Source` . To
375
+ * prevent this use `event.stopPropagation()` in the `Source` handler.
309
376
  */
310
377
  onPress?: (event: NativeSyntheticEvent<PressEvent> | NativeSyntheticEvent<PressEventWithFeatures>) => void;
311
378
  /**
@@ -364,9 +431,18 @@ export interface MapProps extends BaseProps {
364
431
  * Triggered when a style has finished loading
365
432
  */
366
433
  onDidFinishLoadingStyle?: (event: NativeSyntheticEvent<null>) => void;
434
+ /**
435
+ * Ref to access Map methods.
436
+ */
437
+ ref?: Ref<MapRef>;
367
438
  }
368
439
  /**
369
- * MapLibre Native Map
440
+ * A view of a MapLibre Native Map.
441
+ *
442
+ * @example Rendering a basic Map
443
+ * ```tsx
444
+ * <Map mapStyle="https://demotiles.maplibre.org/style.json" />;
445
+ * ```
370
446
  */
371
- export declare const Map: import("react").NamedExoticComponent<MapProps & import("react").RefAttributes<MapRef>>;
447
+ export declare const Map: import("react").MemoExoticComponent<({ androidView, style, ref, ...props }: MapProps) => import("react/jsx-runtime").JSX.Element>;
372
448
  //# sourceMappingURL=Map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../../src/components/map/Map.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAKL,KAAK,GAAG,EAMT,MAAM,OAAO,CAAC;AACf,OAAO,EACL,KAAK,oBAAoB,EAKzB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MA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AAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAE7E;;OAEG;IACH,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAEtE;;OAEG;IACH,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAEtE;;OAEG;IACH,4BAA4B,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAE3E;;OAEG;IACH,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAEtE;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,8EACsC,QAAQ,6CAgJ7D,CAAC"}
@@ -43,7 +43,9 @@ export interface NativeProps extends ViewProps {
43
43
  contentInset?: NativeViewPadding;
44
44
  preferredFramesPerSecond?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
45
45
  dragPan?: CodegenTypes.WithDefault<boolean, true>;
46
- touchAndDoubleTapZoom?: CodegenTypes.WithDefault<boolean, true>;
46
+ touchZoom?: CodegenTypes.WithDefault<boolean, true>;
47
+ doubleTapZoom?: CodegenTypes.WithDefault<boolean, true>;
48
+ doubleTapHoldZoom?: CodegenTypes.WithDefault<boolean, true>;
47
49
  touchRotate?: CodegenTypes.WithDefault<boolean, true>;
48
50
  touchPitch?: CodegenTypes.WithDefault<boolean, true>;
49
51
  tintColor?: ColorValue | undefined;
@@ -54,6 +56,8 @@ export interface NativeProps extends ViewProps {
54
56
  compass?: CodegenTypes.WithDefault<boolean, false>;
55
57
  compassPosition?: NativeOrnamentViewPosition;
56
58
  compassHiddenFacingNorth?: CodegenTypes.WithDefault<boolean, true>;
59
+ scaleBar?: CodegenTypes.WithDefault<boolean, false>;
60
+ scaleBarPosition?: NativeOrnamentViewPosition;
57
61
  onPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
58
62
  onLongPress?: CodegenTypes.BubblingEventHandler<NativePressEvent>;
59
63
  onRegionWillChange?: CodegenTypes.DirectEventHandler<NativeViewStateEvent>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/map/MapViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,KAAK,iBAAiB,GAAG;IACvB,GAAG,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACtD,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACzD,IAAI,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;CACxD,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,GAAG,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IACvD,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IACzD,MAAM,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,C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,CAAC;IAE/D,SAAS,EAAE,CACT,QAAQ,EAAE,YAAY,CAAC,KAAK,EAC5B,UAAU,EAAE,YAAY,CAAC,MAAM,EAAE,KAC9B,OAAO,CAAC,CAAC,SAAS,EAAE,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAE9E,8BAA8B,EAAE,CAC9B,QAAQ,EAAE,YAAY,CAAC,KAAK,EAC5B,UAAU,EAAE,YAAY,CAAC,MAAM,EAAE,EACjC,MAAM,EAAE,MAAM,EAAE,EAChB,MAAM,EAAE,MAAM,EAAE,KACb,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAEhC,+BAA+B,EAAE,CAC/B,QAAQ,EAAE,YAAY,CAAC,KAAK,EAC5B,gBAAgB,EAAE,YAAY,CAAC,MAAM,EAAE,EAAE,GAAG,IAAI,EAChD,MAAM,EAAE,MAAM,EAAE,EAChB,MAAM,EAAE,MAAM,EAAE,KACb,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAEhC,mBAAmB,EAAE,CACnB,QAAQ,EAAE,YAAY,CAAC,KAAK,EAC5B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAAG,IAAI,KACvB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB,oBAAoB,EAAE,CACpB,QAAQ,EAAE,YAAY,CAAC,KAAK,EAC5B,MAAM,EAAE,QAAQ,GAAG,MAAM,KACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAErB,eAAe,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE;;AAED,wBAA2E"}
@@ -1,45 +1,46 @@
1
1
  import type { FilterSpecification, GeoJSONSourceSpecification } from "@maplibre/maplibre-gl-style-spec";
2
- import { type ReactNode } from "react";
2
+ import { type ReactNode, type Ref } from "react";
3
3
  import { type BaseProps } from "../../../types/BaseProps";
4
- import type { PressableSourceProps } from "../../../types/sources/PressableSourceProps";
4
+ import type { PressableSourceProps } from "../../../types/PressableSourceProps";
5
5
  export interface GeoJSONSourceRef {
6
6
  /**
7
- * Get all features from the source that match the filter, regardless of visibility
7
+ * Get all features from the source that match the filter, regardless of
8
+ * visibility
9
+ *
10
+ * @param filter - Optional filter statement to filter the returned features
8
11
  *
9
12
  * @example
10
13
  * const data = await geoJSONSourceRef.current?.getData(clusterId);
11
- *
12
- * @param filter Optional filter statement to filter the returned features
13
14
  */
14
15
  getData(filter?: FilterSpecification): Promise<GeoJSON.FeatureCollection>;
15
16
  /**
16
17
  * Returns the zoom needed to expand the cluster.
17
18
  *
19
+ * @param clusterId - The feature cluster to expand.
20
+ * @returns Zoom level at which the cluster expands
21
+ *
18
22
  * @example
19
23
  * const zoom = await geoJSONSourceRef.current?.getClusterExpansionZoom(clusterId);
20
- *
21
- * @param clusterId The feature cluster to expand.
22
- * @return Zoom level at which the cluster expands
23
24
  */
24
25
  getClusterExpansionZoom(clusterId: number): Promise<number>;
25
26
  /**
26
27
  * Returns the FeatureCollection from the cluster.
27
28
  *
28
- * @example
29
- * const collection = await geoJSONSourceRef.current?.getClusterLeaves(clusterId, limit, offset);
30
- *
31
- * @param clusterId The feature cluster to expand.
29
+ * @param clusterId - The feature cluster to expand.
32
30
  * @param limit - The number of points to return.
33
31
  * @param offset - The amount of points to skip (for pagination).
32
+ *
33
+ * @example
34
+ * const collection = await geoJSONSourceRef.current?.getClusterLeaves(clusterId, limit, offset);
34
35
  */
35
36
  getClusterLeaves(clusterId: number, limit: number, offset: number): Promise<GeoJSON.Feature[]>;
36
37
  /**
37
38
  * Returns the FeatureCollection from the cluster (on the next zoom level).
38
39
  *
40
+ * @param clusterId - The feature cluster to expand.
41
+ *
39
42
  * @example
40
43
  * const collection = await geoJSONSourceRef.current?.getClusterChildren(clusterId);
41
- *
42
- * @param clusterId - The feature cluster to expand.
43
44
  */
44
45
  getClusterChildren(clusterId: number): Promise<GeoJSON.Feature[]>;
45
46
  }
@@ -50,7 +51,8 @@ export interface GeoJSONSourceProps extends BaseProps, PressableSourceProps {
50
51
  id?: string;
51
52
  /**
52
53
  * Can be provided as one of:
53
- * - An HTTP(S) URL, absolute file URL, or local file URL relative to the current application’s resource bundle
54
+ * - An HTTP(S) URL, absolute file URL, or local file URL relative to the current
55
+ * application’s resource bundle
54
56
  * - Any valid GeoJSON object
55
57
  */
56
58
  data: string | GeoJSON.GeoJSON;
@@ -59,46 +61,44 @@ export interface GeoJSONSourceProps extends BaseProps, PressableSourceProps {
59
61
  */
60
62
  cluster?: boolean;
61
63
  /**
62
- * Specifies the radius of each cluster if clustering is enabled.
63
- * A value of 512 produces a radius equal to the width of a tile.
64
- * The default value is 50.
64
+ * Specifies the radius of each cluster if clustering is enabled. A value of 512
65
+ * produces a radius equal to the width of a tile. The default value is 50.
65
66
  */
66
67
  clusterRadius?: number;
67
68
  /**
68
- * Specifies minimum number of points to form a cluster if clustering is enabled.
69
- * The default value is 2.
69
+ * Specifies minimum number of points to form a cluster if clustering is
70
+ * enabled. The default value is 2.
70
71
  */
71
72
  clusterMinPoints?: number;
72
73
  /**
73
- * Specifies the maximum zoom level at which to cluster points if clustering is enabled.
74
- * Defaults to one zoom level less than the value of maxzoom so that, at the maximum zoom,
75
- * the data is not clustered.
74
+ * Specifies the maximum zoom level at which to cluster points if clustering is
75
+ * enabled. Defaults to one zoom level less than the value of maxzoom so that,
76
+ * at the maximum zoom, the data is not clustered.
76
77
  */
77
78
  clusterMaxZoom?: number;
78
79
  /**
79
- * Specifies custom properties on the generated clusters if clustering
80
- * is enabled, aggregating values from clustered points.
80
+ * Specifies custom properties on the generated clusters if clustering is
81
+ * enabled, aggregating values from clustered points.
81
82
  *
82
- * Has the form `{ "property_name": [operator, map_expression]}`, where
83
- * `operator` is a custom reduce expression that references a special `["accumulated"]` value -
84
- * it accumulates the property value from clusters/points the cluster contains
85
- * `map_expression` produces the value of a single point
83
+ * Has the form `{ "property_name": [operator, map_expression]}` , where
84
+ * `operator` is a custom reduce expression that references a special
85
+ * `["accumulated"]` value - it accumulates the property value from
86
+ * clusters/points the cluster contains `map_expression` produces the value of a
87
+ * single point
86
88
  *
87
89
  * @example `{ "resultingSum": [["+", ["accumulated"], ["get", "resultingSum"]], ["get", "scalerank"]] }`
88
- *
89
90
  */
90
91
  clusterProperties?: GeoJSONSourceSpecification["clusterProperties"];
91
92
  /**
92
- * Specifies the maximum zoom level at which to create vector tiles.
93
- * A greater value produces greater detail at high zoom levels.
94
- * The default value is 18.
93
+ * Specifies the maximum zoom level at which to create vector tiles. A greater
94
+ * value produces greater detail at high zoom levels. The default value is 18.
95
95
  */
96
96
  maxzoom?: number;
97
97
  /**
98
- * Specifies the size of the tile buffer on each side.
99
- * A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself.
100
- * Larger values produce fewer rendering artifacts near tile edges and slower performance.
101
- * The default value is 128.
98
+ * Specifies the size of the tile buffer on each side. A value of 0 produces no
99
+ * buffer. A value of 512 produces a buffer as wide as the tile itself. Larger
100
+ * values produce fewer rendering artifacts near tile edges and slower
101
+ * performance. The default value is 128.
102
102
  */
103
103
  buffer?: number;
104
104
  /**
@@ -106,20 +106,23 @@ export interface GeoJSONSourceProps extends BaseProps, PressableSourceProps {
106
106
  *
107
107
  * Higher means simpler geometries and faster performance.
108
108
  *
109
- * @default 0.375
109
+ * @defaultValue 0.375
110
110
  */
111
111
  tolerance?: number;
112
112
  /**
113
- * Whether to calculate line distance metrics.
114
- * This is required for line layers that specify lineGradient values.
115
- * The default value is false.
113
+ * Whether to calculate line distance metrics. This is required for line layers
114
+ * that specify lineGradient values. The default value is false.
116
115
  */
117
116
  lineMetrics?: boolean;
118
117
  children?: ReactNode;
118
+ /**
119
+ * Ref to access GeoJSONSource methods.
120
+ */
121
+ ref?: Ref<GeoJSONSourceRef>;
119
122
  }
120
123
  /**
121
- * GeoJSONSource is a map content source that supplies GeoJSON to be shown on the map.
122
- * The data may be provided as an url or a GeoJSON object.
124
+ * GeoJSONSource is a map content source that supplies GeoJSON to be shown on
125
+ * the map. The data may be provided as an url or a GeoJSON object.
123
126
  */
124
- export declare const GeoJSONSource: import("react").NamedExoticComponent<GeoJSONSourceProps & import("react").RefAttributes<GeoJSONSourceRef>>;
127
+ export declare const GeoJSONSource: import("react").MemoExoticComponent<({ id, data, ref, ...props }: GeoJSONSourceProps) => import("react/jsx-runtime").JSX.Element>;
125
128
  //# sourceMappingURL=GeoJSONSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeoJSONSource.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sources/geojson-source/GeoJSONSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,GAAG,EAGT,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAKhF,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE1E;;;;;;;;OAQG;IACH,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE5D;;;;;;;;;OASG;IACH,gBAAgB,CACd,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAE9B;;;;;;;OAOG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;CACnE;AA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