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

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 (584) hide show
  1. package/README.md +12 -56
  2. package/android/build.gradle +120 -50
  3. package/android/gradle.properties +15 -0
  4. package/android/src/main/AndroidManifest.xml +4 -2
  5. package/android/src/main/AndroidManifestNew.xml +5 -0
  6. package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.java +0 -5
  7. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.java +37 -48
  8. package/android/src/main/java/org/maplibre/reactnative/components/location/LocationComponentManager.java +16 -9
  9. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.java +11 -13
  10. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.java +4 -11
  11. package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyle.java +1 -4
  12. package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyleFactory.java +10 -11
  13. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSource.java +0 -66
  14. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSourceManager.java +0 -28
  15. package/android/src/main/java/org/maplibre/reactnative/location/LocationManager.java +7 -11
  16. package/android/src/main/java/org/maplibre/reactnative/location/engine/DefaultLocationEngineProvider.java +18 -0
  17. package/android/src/main/java/org/maplibre/reactnative/location/engine/LocationEngineProvidable.java +9 -0
  18. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNModule.java +27 -148
  19. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNOfflineModule.java +1 -3
  20. package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.java +123 -18
  21. package/android/src/main/location-engine-default/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
  22. package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineImpl.java +151 -0
  23. package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineProvider.java +24 -0
  24. package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
  25. package/app.plugin.js +1 -1
  26. package/ios/MLRN/MLRNBackgroundLayer.h +0 -1
  27. package/ios/MLRN/MLRNCamera.m +6 -7
  28. package/ios/MLRN/MLRNFillExtrusionLayer.h +0 -1
  29. package/ios/MLRN/MLRNFillLayer.h +0 -1
  30. package/ios/MLRN/MLRNFillLayer.m +1 -0
  31. package/ios/MLRN/MLRNLineLayer.h +0 -1
  32. package/ios/MLRN/MLRNMapView.h +1 -1
  33. package/ios/MLRN/MLRNMapView.m +7 -7
  34. package/ios/MLRN/MLRNMapViewManager.m +1 -1
  35. package/ios/MLRN/MLRNModule.m +8 -139
  36. package/ios/MLRN/MLRNRasterLayer.h +0 -1
  37. package/ios/MLRN/MLRNShapeSource.h +0 -11
  38. package/ios/MLRN/MLRNShapeSource.m +0 -38
  39. package/ios/MLRN/MLRNShapeSourceManager.m +0 -68
  40. package/ios/MLRN/MLRNStyle.m +0 -40
  41. package/ios/MLRN/MLRNSymbolLayer.h +1 -7
  42. package/ios/MLRN/MLRNSymbolLayer.m +1 -89
  43. package/ios/MLRN/MLRNSymbolLayerManager.m +0 -1
  44. package/lib/commonjs/MLRNModule.js +7 -5
  45. package/lib/commonjs/MLRNModule.js.map +1 -1
  46. package/lib/commonjs/MapLibreRN.js +74 -68
  47. package/lib/commonjs/MapLibreRN.js.map +1 -1
  48. package/lib/commonjs/components/Annotation.js +7 -9
  49. package/lib/commonjs/components/Annotation.js.map +1 -1
  50. package/lib/commonjs/components/BackgroundLayer.js +6 -8
  51. package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
  52. package/lib/commonjs/components/Callout.js +2 -2
  53. package/lib/commonjs/components/Callout.js.map +1 -1
  54. package/lib/commonjs/components/Camera.js +111 -63
  55. package/lib/commonjs/components/Camera.js.map +1 -1
  56. package/lib/commonjs/components/CircleLayer.js +6 -8
  57. package/lib/commonjs/components/CircleLayer.js.map +1 -1
  58. package/lib/commonjs/components/FillExtrusionLayer.js +6 -8
  59. package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
  60. package/lib/commonjs/components/FillLayer.js +6 -8
  61. package/lib/commonjs/components/FillLayer.js.map +1 -1
  62. package/lib/commonjs/components/HeadingIndicator.js +4 -4
  63. package/lib/commonjs/components/HeadingIndicator.js.map +1 -1
  64. package/lib/commonjs/components/HeatmapLayer.js +6 -8
  65. package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
  66. package/lib/commonjs/components/ImageSource.js +4 -5
  67. package/lib/commonjs/components/ImageSource.js.map +1 -1
  68. package/lib/commonjs/components/Images.js +3 -7
  69. package/lib/commonjs/components/Images.js.map +1 -1
  70. package/lib/commonjs/components/Light.js +4 -6
  71. package/lib/commonjs/components/Light.js.map +1 -1
  72. package/lib/commonjs/components/LineLayer.js +6 -8
  73. package/lib/commonjs/components/LineLayer.js.map +1 -1
  74. package/lib/commonjs/components/MapView.js +69 -83
  75. package/lib/commonjs/components/MapView.js.map +1 -1
  76. package/lib/commonjs/components/MarkerView.js +4 -5
  77. package/lib/commonjs/components/MarkerView.js.map +1 -1
  78. package/lib/commonjs/components/NativeUserLocation.js +2 -2
  79. package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
  80. package/lib/commonjs/components/PointAnnotation.js +7 -10
  81. package/lib/commonjs/components/PointAnnotation.js.map +1 -1
  82. package/lib/commonjs/components/RasterLayer.js +6 -8
  83. package/lib/commonjs/components/RasterLayer.js.map +1 -1
  84. package/lib/commonjs/components/RasterSource.js +8 -10
  85. package/lib/commonjs/components/RasterSource.js.map +1 -1
  86. package/lib/commonjs/components/ShapeSource.js +11 -45
  87. package/lib/commonjs/components/ShapeSource.js.map +1 -1
  88. package/lib/commonjs/components/SymbolLayer.js +8 -24
  89. package/lib/commonjs/components/SymbolLayer.js.map +1 -1
  90. package/lib/commonjs/components/UserLocation.js +21 -23
  91. package/lib/commonjs/components/UserLocation.js.map +1 -1
  92. package/lib/commonjs/components/VectorSource.js +9 -21
  93. package/lib/commonjs/components/VectorSource.js.map +1 -1
  94. package/lib/commonjs/hooks/useAbstractLayer.js +1 -1
  95. package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -1
  96. package/lib/commonjs/hooks/useAbstractSource.js +1 -1
  97. package/lib/commonjs/hooks/useAbstractSource.js.map +1 -1
  98. package/lib/commonjs/hooks/useNativeBridge.js +2 -2
  99. package/lib/commonjs/hooks/useNativeBridge.js.map +1 -1
  100. package/lib/commonjs/hooks/useOnce.js +2 -2
  101. package/lib/commonjs/hooks/useOnce.js.map +1 -1
  102. package/lib/commonjs/index.js +3 -0
  103. package/lib/commonjs/index.js.map +1 -1
  104. package/lib/commonjs/modules/location/{locationManager.js → LocationManager.js} +10 -10
  105. package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
  106. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +2 -2
  107. package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
  108. package/lib/commonjs/modules/offline/{offlineManager.js → OfflineManager.js} +34 -36
  109. package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
  110. package/lib/commonjs/modules/offline/OfflinePack.js +2 -2
  111. package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
  112. package/lib/commonjs/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +12 -14
  113. package/lib/commonjs/modules/snapshot/SnapshotManager.js.map +1 -0
  114. package/lib/commonjs/modules/snapshot/SnapshotOptions.js +3 -4
  115. package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
  116. package/lib/commonjs/plugin/MapLibrePluginProps.js +2 -0
  117. package/lib/commonjs/plugin/MapLibrePluginProps.js.map +1 -0
  118. package/lib/commonjs/plugin/android.js +41 -0
  119. package/lib/commonjs/plugin/android.js.map +1 -0
  120. package/lib/commonjs/plugin/ios.js +131 -0
  121. package/lib/commonjs/plugin/ios.js.map +1 -0
  122. package/lib/commonjs/plugin/withMapLibre.js +31 -0
  123. package/lib/commonjs/plugin/withMapLibre.js.map +1 -0
  124. package/lib/commonjs/types/MapLibreRNStyles.js +6 -0
  125. package/lib/commonjs/types/MapLibreRNStyles.js.map +1 -0
  126. package/lib/commonjs/utils/BridgeValue.js +2 -2
  127. package/lib/commonjs/utils/BridgeValue.js.map +1 -1
  128. package/lib/commonjs/utils/Logger.js +2 -2
  129. package/lib/commonjs/utils/Logger.js.map +1 -1
  130. package/lib/commonjs/utils/StyleValue.js +4 -5
  131. package/lib/commonjs/utils/StyleValue.js.map +1 -1
  132. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  133. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
  134. package/lib/commonjs/utils/animated/Animated.js +29 -31
  135. package/lib/commonjs/utils/animated/Animated.js.map +1 -1
  136. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +4 -5
  137. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
  138. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +2 -2
  139. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
  140. package/lib/commonjs/utils/animated/AnimatedPoint.js +1 -2
  141. package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -1
  142. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +4 -4
  143. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
  144. package/lib/commonjs/utils/animated/AnimatedShape.js +2 -2
  145. package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -1
  146. package/lib/commonjs/utils/getStylePropertyType.js +252 -0
  147. package/lib/commonjs/utils/getStylePropertyType.js.map +1 -0
  148. package/lib/module/MLRNModule.js +3 -2
  149. package/lib/module/MLRNModule.js.map +1 -1
  150. package/lib/module/MapLibreRN.js +40 -32
  151. package/lib/module/MapLibreRN.js.map +1 -1
  152. package/lib/module/components/Annotation.js +5 -6
  153. package/lib/module/components/Annotation.js.map +1 -1
  154. package/lib/module/components/BackgroundLayer.js +4 -6
  155. package/lib/module/components/BackgroundLayer.js.map +1 -1
  156. package/lib/module/components/Callout.js +2 -3
  157. package/lib/module/components/Callout.js.map +1 -1
  158. package/lib/module/components/Camera.js +112 -64
  159. package/lib/module/components/Camera.js.map +1 -1
  160. package/lib/module/components/CircleLayer.js +4 -6
  161. package/lib/module/components/CircleLayer.js.map +1 -1
  162. package/lib/module/components/FillExtrusionLayer.js +4 -6
  163. package/lib/module/components/FillExtrusionLayer.js.map +1 -1
  164. package/lib/module/components/FillLayer.js +4 -6
  165. package/lib/module/components/FillLayer.js.map +1 -1
  166. package/lib/module/components/HeadingIndicator.js +2 -3
  167. package/lib/module/components/HeadingIndicator.js.map +1 -1
  168. package/lib/module/components/HeatmapLayer.js +4 -6
  169. package/lib/module/components/HeatmapLayer.js.map +1 -1
  170. package/lib/module/components/ImageSource.js +2 -3
  171. package/lib/module/components/ImageSource.js.map +1 -1
  172. package/lib/module/components/Images.js +3 -8
  173. package/lib/module/components/Images.js.map +1 -1
  174. package/lib/module/components/Light.js +2 -4
  175. package/lib/module/components/Light.js.map +1 -1
  176. package/lib/module/components/LineLayer.js +4 -6
  177. package/lib/module/components/LineLayer.js.map +1 -1
  178. package/lib/module/components/MapView.js +65 -79
  179. package/lib/module/components/MapView.js.map +1 -1
  180. package/lib/module/components/MarkerView.js +2 -3
  181. package/lib/module/components/MarkerView.js.map +1 -1
  182. package/lib/module/components/NativeUserLocation.js +1 -2
  183. package/lib/module/components/NativeUserLocation.js.map +1 -1
  184. package/lib/module/components/PointAnnotation.js +5 -7
  185. package/lib/module/components/PointAnnotation.js.map +1 -1
  186. package/lib/module/components/RasterLayer.js +4 -6
  187. package/lib/module/components/RasterLayer.js.map +1 -1
  188. package/lib/module/components/RasterSource.js +5 -7
  189. package/lib/module/components/RasterSource.js.map +1 -1
  190. package/lib/module/components/ShapeSource.js +9 -42
  191. package/lib/module/components/ShapeSource.js.map +1 -1
  192. package/lib/module/components/SymbolLayer.js +7 -23
  193. package/lib/module/components/SymbolLayer.js.map +1 -1
  194. package/lib/module/components/UserLocation.js +14 -15
  195. package/lib/module/components/UserLocation.js.map +1 -1
  196. package/lib/module/components/VectorSource.js +6 -17
  197. package/lib/module/components/VectorSource.js.map +1 -1
  198. package/lib/module/hooks/useAbstractLayer.js +1 -1
  199. package/lib/module/hooks/useAbstractLayer.js.map +1 -1
  200. package/lib/module/hooks/useAbstractSource.js +1 -1
  201. package/lib/module/hooks/useAbstractSource.js.map +1 -1
  202. package/lib/module/hooks/useNativeBridge.js +1 -2
  203. package/lib/module/hooks/useNativeBridge.js.map +1 -1
  204. package/lib/module/hooks/useNativeRef.js.map +1 -1
  205. package/lib/module/hooks/useOnce.js +1 -2
  206. package/lib/module/hooks/useOnce.js.map +1 -1
  207. package/lib/module/index.js +4 -0
  208. package/lib/module/index.js.map +1 -1
  209. package/lib/module/modules/location/{locationManager.js → LocationManager.js} +10 -9
  210. package/lib/module/modules/location/LocationManager.js.map +1 -0
  211. package/lib/module/modules/offline/OfflineCreatePackOptions.js +1 -2
  212. package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
  213. package/lib/module/modules/offline/{offlineManager.js → OfflineManager.js} +30 -30
  214. package/lib/module/modules/offline/OfflineManager.js.map +1 -0
  215. package/lib/module/modules/offline/OfflinePack.js +1 -2
  216. package/lib/module/modules/offline/OfflinePack.js.map +1 -1
  217. package/lib/module/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +10 -10
  218. package/lib/module/modules/snapshot/{snapshotManager.js.map → SnapshotManager.js.map} +1 -1
  219. package/lib/module/modules/snapshot/SnapshotOptions.js +2 -3
  220. package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
  221. package/lib/module/plugin/MapLibrePluginProps.js +2 -0
  222. package/lib/module/plugin/MapLibrePluginProps.js.map +1 -0
  223. package/lib/module/plugin/android.js +34 -0
  224. package/lib/module/plugin/android.js.map +1 -0
  225. package/lib/module/plugin/ios.js +123 -0
  226. package/lib/module/plugin/ios.js.map +1 -0
  227. package/lib/module/plugin/withMapLibre.js +27 -0
  228. package/lib/module/plugin/withMapLibre.js.map +1 -0
  229. package/lib/module/types/MapLibreRNStyles.js +4 -0
  230. package/lib/module/types/MapLibreRNStyles.js.map +1 -0
  231. package/lib/module/utils/BridgeValue.js +1 -1
  232. package/lib/module/utils/BridgeValue.js.map +1 -1
  233. package/lib/module/utils/Logger.js +1 -2
  234. package/lib/module/utils/Logger.js.map +1 -1
  235. package/lib/module/utils/StyleValue.js +3 -3
  236. package/lib/module/utils/StyleValue.js.map +1 -1
  237. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +1 -2
  238. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
  239. package/lib/module/utils/animated/Animated.js +14 -15
  240. package/lib/module/utils/animated/Animated.js.map +1 -1
  241. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +2 -3
  242. package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
  243. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +1 -1
  244. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
  245. package/lib/module/utils/animated/AnimatedPoint.js +0 -1
  246. package/lib/module/utils/animated/AnimatedPoint.js.map +1 -1
  247. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +2 -2
  248. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
  249. package/lib/module/utils/animated/AnimatedShape.js +1 -2
  250. package/lib/module/utils/animated/AnimatedShape.js.map +1 -1
  251. package/lib/module/utils/getStylePropertyType.js +248 -0
  252. package/lib/module/utils/getStylePropertyType.js.map +1 -0
  253. package/lib/typescript/commonjs/src/MLRNModule.d.ts +3 -7
  254. package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/src/MapLibreRN.d.ts +44 -34
  256. package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/src/components/Annotation.d.ts +6 -6
  258. package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +3 -5
  260. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/src/components/Callout.d.ts +3 -4
  262. package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/src/components/Camera.d.ts +4 -4
  264. package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +3 -5
  266. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -1
  267. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +3 -5
  268. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/src/components/FillLayer.d.ts +3 -5
  270. package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +2 -3
  272. package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +3 -5
  274. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/src/components/ImageSource.d.ts +3 -4
  276. package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/src/components/Images.d.ts +5 -5
  278. package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
  279. package/lib/typescript/commonjs/src/components/Light.d.ts +4 -5
  280. package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/src/components/LineLayer.d.ts +3 -5
  282. package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -1
  283. package/lib/typescript/commonjs/src/components/MapView.d.ts +12 -16
  284. package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/src/components/MarkerView.d.ts +3 -3
  286. package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -1
  287. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +2 -3
  288. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -1
  289. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +7 -8
  290. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -1
  291. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +3 -5
  292. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -1
  293. package/lib/typescript/commonjs/src/components/RasterSource.d.ts +4 -4
  294. package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +8 -16
  296. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +3 -10
  298. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/src/components/UserLocation.d.ts +6 -6
  300. package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/src/components/VectorSource.d.ts +4 -8
  302. package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +5 -4
  304. package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +4 -3
  306. package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +5 -5
  308. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +2 -2
  310. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +1 -2
  312. package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/src/index.d.ts +3 -0
  314. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  315. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts +33 -0
  316. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +1 -0
  317. package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
  318. package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
  319. package/lib/typescript/{module/src/modules/offline/offlineManager.d.ts → commonjs/src/modules/offline/OfflineManager.d.ts} +27 -37
  320. package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +3 -4
  322. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -1
  323. package/lib/typescript/{module/src/modules/snapshot/snapshotManager.d.ts → commonjs/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
  324. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
  325. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
  326. package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
  327. package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts +77 -0
  328. package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
  329. package/lib/typescript/commonjs/src/plugin/android.d.ts +16 -0
  330. package/lib/typescript/commonjs/src/plugin/android.d.ts.map +1 -0
  331. package/lib/typescript/commonjs/src/plugin/ios.d.ts +17 -0
  332. package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +1 -0
  333. package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts +5 -0
  334. package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +1 -0
  335. package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts +960 -0
  336. package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +1 -0
  337. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +1 -1
  338. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -1
  339. package/lib/typescript/commonjs/src/utils/Logger.d.ts +2 -2
  340. package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -1
  341. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts +2 -2
  342. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -1
  343. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  344. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
  345. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +19 -19
  346. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -1
  347. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
  348. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
  349. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
  350. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
  351. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +1 -1
  352. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
  353. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
  354. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
  355. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +5 -5
  356. package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
  357. package/lib/typescript/commonjs/src/utils/filterUtils.d.ts +1 -1
  358. package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +1 -1
  359. package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts +35 -0
  360. package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +1 -0
  361. package/lib/typescript/module/src/MLRNModule.d.ts +3 -7
  362. package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
  363. package/lib/typescript/module/src/MapLibreRN.d.ts +44 -34
  364. package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -1
  365. package/lib/typescript/module/src/components/Annotation.d.ts +6 -6
  366. package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -1
  367. package/lib/typescript/module/src/components/BackgroundLayer.d.ts +3 -5
  368. package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -1
  369. package/lib/typescript/module/src/components/Callout.d.ts +3 -4
  370. package/lib/typescript/module/src/components/Callout.d.ts.map +1 -1
  371. package/lib/typescript/module/src/components/Camera.d.ts +4 -4
  372. package/lib/typescript/module/src/components/Camera.d.ts.map +1 -1
  373. package/lib/typescript/module/src/components/CircleLayer.d.ts +3 -5
  374. package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -1
  375. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +3 -5
  376. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -1
  377. package/lib/typescript/module/src/components/FillLayer.d.ts +3 -5
  378. package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -1
  379. package/lib/typescript/module/src/components/HeadingIndicator.d.ts +2 -3
  380. package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -1
  381. package/lib/typescript/module/src/components/HeatmapLayer.d.ts +3 -5
  382. package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -1
  383. package/lib/typescript/module/src/components/ImageSource.d.ts +3 -4
  384. package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -1
  385. package/lib/typescript/module/src/components/Images.d.ts +5 -5
  386. package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
  387. package/lib/typescript/module/src/components/Light.d.ts +4 -5
  388. package/lib/typescript/module/src/components/Light.d.ts.map +1 -1
  389. package/lib/typescript/module/src/components/LineLayer.d.ts +3 -5
  390. package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -1
  391. package/lib/typescript/module/src/components/MapView.d.ts +12 -16
  392. package/lib/typescript/module/src/components/MapView.d.ts.map +1 -1
  393. package/lib/typescript/module/src/components/MarkerView.d.ts +3 -3
  394. package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -1
  395. package/lib/typescript/module/src/components/NativeUserLocation.d.ts +2 -3
  396. package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -1
  397. package/lib/typescript/module/src/components/PointAnnotation.d.ts +7 -8
  398. package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -1
  399. package/lib/typescript/module/src/components/RasterLayer.d.ts +3 -5
  400. package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -1
  401. package/lib/typescript/module/src/components/RasterSource.d.ts +4 -4
  402. package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -1
  403. package/lib/typescript/module/src/components/ShapeSource.d.ts +8 -16
  404. package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
  405. package/lib/typescript/module/src/components/SymbolLayer.d.ts +3 -10
  406. package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -1
  407. package/lib/typescript/module/src/components/UserLocation.d.ts +6 -6
  408. package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -1
  409. package/lib/typescript/module/src/components/VectorSource.d.ts +4 -8
  410. package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -1
  411. package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +5 -4
  412. package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -1
  413. package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +4 -3
  414. package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -1
  415. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +5 -5
  416. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -1
  417. package/lib/typescript/module/src/hooks/useNativeRef.d.ts +2 -2
  418. package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -1
  419. package/lib/typescript/module/src/hooks/useOnce.d.ts +1 -2
  420. package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -1
  421. package/lib/typescript/module/src/index.d.ts +3 -0
  422. package/lib/typescript/module/src/index.d.ts.map +1 -1
  423. package/lib/typescript/module/src/modules/location/LocationManager.d.ts +33 -0
  424. package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +1 -0
  425. package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
  426. package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
  427. package/lib/typescript/{commonjs/src/modules/offline/offlineManager.d.ts → module/src/modules/offline/OfflineManager.d.ts} +27 -37
  428. package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +1 -0
  429. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +3 -4
  430. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -1
  431. package/lib/typescript/{commonjs/src/modules/snapshot/snapshotManager.d.ts → module/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
  432. package/lib/typescript/module/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
  433. package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
  434. package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
  435. package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts +77 -0
  436. package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
  437. package/lib/typescript/module/src/plugin/android.d.ts +16 -0
  438. package/lib/typescript/module/src/plugin/android.d.ts.map +1 -0
  439. package/lib/typescript/module/src/plugin/ios.d.ts +17 -0
  440. package/lib/typescript/module/src/plugin/ios.d.ts.map +1 -0
  441. package/lib/typescript/module/src/plugin/withMapLibre.d.ts +5 -0
  442. package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +1 -0
  443. package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts +960 -0
  444. package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +1 -0
  445. package/lib/typescript/module/src/utils/BridgeValue.d.ts +1 -1
  446. package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -1
  447. package/lib/typescript/module/src/utils/Logger.d.ts +2 -2
  448. package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -1
  449. package/lib/typescript/module/src/utils/StyleValue.d.ts +2 -2
  450. package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -1
  451. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  452. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
  453. package/lib/typescript/module/src/utils/animated/Animated.d.ts +19 -19
  454. package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -1
  455. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
  456. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
  457. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
  458. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
  459. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +1 -1
  460. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
  461. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
  462. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
  463. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +5 -5
  464. package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
  465. package/lib/typescript/module/src/utils/filterUtils.d.ts +1 -1
  466. package/lib/typescript/module/src/utils/filterUtils.d.ts.map +1 -1
  467. package/lib/typescript/module/src/utils/getStylePropertyType.d.ts +35 -0
  468. package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +1 -0
  469. package/maplibre-react-native.podspec +15 -14
  470. package/package.json +17 -14
  471. package/src/MLRNModule.ts +24 -10
  472. package/src/MapLibreRN.ts +66 -49
  473. package/src/components/Annotation.tsx +12 -14
  474. package/src/components/BackgroundLayer.tsx +7 -9
  475. package/src/components/Callout.tsx +8 -10
  476. package/src/components/Camera.tsx +154 -78
  477. package/src/components/CircleLayer.tsx +7 -9
  478. package/src/components/FillExtrusionLayer.tsx +7 -9
  479. package/src/components/FillLayer.tsx +7 -9
  480. package/src/components/HeadingIndicator.tsx +2 -6
  481. package/src/components/HeatmapLayer.tsx +7 -9
  482. package/src/components/ImageSource.tsx +4 -6
  483. package/src/components/Images.tsx +8 -19
  484. package/src/components/Light.tsx +5 -7
  485. package/src/components/LineLayer.tsx +7 -9
  486. package/src/components/MapView.tsx +85 -105
  487. package/src/components/MarkerView.tsx +4 -6
  488. package/src/components/NativeUserLocation.tsx +1 -4
  489. package/src/components/PointAnnotation.tsx +10 -11
  490. package/src/components/RasterLayer.tsx +7 -9
  491. package/src/components/RasterSource.tsx +7 -9
  492. package/src/components/ShapeSource.tsx +22 -95
  493. package/src/components/SymbolLayer.tsx +12 -41
  494. package/src/components/UserLocation.tsx +21 -22
  495. package/src/components/VectorSource.tsx +12 -35
  496. package/src/hooks/useAbstractLayer.ts +8 -8
  497. package/src/hooks/useAbstractSource.ts +6 -6
  498. package/src/hooks/useNativeBridge.ts +9 -6
  499. package/src/hooks/useNativeRef.ts +2 -2
  500. package/src/hooks/useOnce.ts +3 -3
  501. package/src/index.ts +3 -0
  502. package/src/modules/location/{locationManager.ts → LocationManager.ts} +16 -15
  503. package/src/modules/offline/OfflineCreatePackOptions.ts +1 -3
  504. package/src/modules/offline/{offlineManager.ts → OfflineManager.ts} +32 -45
  505. package/src/modules/offline/OfflinePack.ts +3 -5
  506. package/src/modules/snapshot/{snapshotManager.ts → SnapshotManager.ts} +9 -9
  507. package/src/modules/snapshot/SnapshotOptions.ts +2 -4
  508. package/src/plugin/MapLibrePluginProps.ts +83 -0
  509. package/src/plugin/android.ts +64 -0
  510. package/src/plugin/ios.ts +166 -0
  511. package/src/plugin/withMapLibre.ts +30 -0
  512. package/src/{utils/MapLibreRNStyles.d.ts → types/MapLibreRNStyles.ts} +86 -406
  513. package/src/utils/BridgeValue.ts +1 -1
  514. package/src/utils/Logger.ts +1 -3
  515. package/src/utils/StyleValue.ts +6 -5
  516. package/src/utils/animated/AbstractAnimatedCoordinates.ts +3 -3
  517. package/src/utils/animated/Animated.ts +23 -21
  518. package/src/utils/animated/AnimatedCoordinatesArray.ts +3 -4
  519. package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +1 -1
  520. package/src/utils/animated/AnimatedPoint.ts +0 -2
  521. package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +3 -2
  522. package/src/utils/animated/AnimatedShape.ts +4 -6
  523. package/src/utils/filterUtils.ts +1 -1
  524. package/src/utils/getStylePropertyType.ts +265 -0
  525. package/android/src/main/res/values/strings.xml +0 -3
  526. package/lib/commonjs/components/Style.js +0 -266
  527. package/lib/commonjs/components/Style.js.map +0 -1
  528. package/lib/commonjs/modules/location/locationManager.js.map +0 -1
  529. package/lib/commonjs/modules/offline/offlineManager.js.map +0 -1
  530. package/lib/commonjs/modules/snapshot/snapshotManager.js.map +0 -1
  531. package/lib/commonjs/types/StyleURL.js +0 -11
  532. package/lib/commonjs/types/StyleURL.js.map +0 -1
  533. package/lib/commonjs/utils/MapLibreRNStyles.d.js +0 -181
  534. package/lib/commonjs/utils/MapLibreRNStyles.d.js.map +0 -1
  535. package/lib/commonjs/utils/deprecation.js +0 -31
  536. package/lib/commonjs/utils/deprecation.js.map +0 -1
  537. package/lib/commonjs/utils/styleMap.js +0 -255
  538. package/lib/commonjs/utils/styleMap.js.map +0 -1
  539. package/lib/module/components/Style.js +0 -261
  540. package/lib/module/components/Style.js.map +0 -1
  541. package/lib/module/modules/location/locationManager.js.map +0 -1
  542. package/lib/module/modules/offline/offlineManager.js.map +0 -1
  543. package/lib/module/types/StyleURL.js +0 -7
  544. package/lib/module/types/StyleURL.js.map +0 -1
  545. package/lib/module/utils/MapLibreRNStyles.d.js +0 -180
  546. package/lib/module/utils/MapLibreRNStyles.d.js.map +0 -1
  547. package/lib/module/utils/deprecation.js +0 -27
  548. package/lib/module/utils/deprecation.js.map +0 -1
  549. package/lib/module/utils/styleMap.js +0 -249
  550. package/lib/module/utils/styleMap.js.map +0 -1
  551. package/lib/typescript/commonjs/jest.config.d.ts +0 -2
  552. package/lib/typescript/commonjs/jest.config.d.ts.map +0 -1
  553. package/lib/typescript/commonjs/src/components/Style.d.ts +0 -81
  554. package/lib/typescript/commonjs/src/components/Style.d.ts.map +0 -1
  555. package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +0 -64
  556. package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +0 -1
  557. package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +0 -1
  558. package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
  559. package/lib/typescript/commonjs/src/types/StyleURL.d.ts +0 -4
  560. package/lib/typescript/commonjs/src/types/StyleURL.d.ts.map +0 -1
  561. package/lib/typescript/commonjs/src/utils/deprecation.d.ts +0 -6
  562. package/lib/typescript/commonjs/src/utils/deprecation.d.ts.map +0 -1
  563. package/lib/typescript/commonjs/src/utils/styleMap.d.ts +0 -231
  564. package/lib/typescript/commonjs/src/utils/styleMap.d.ts.map +0 -1
  565. package/lib/typescript/module/jest.config.d.ts +0 -2
  566. package/lib/typescript/module/jest.config.d.ts.map +0 -1
  567. package/lib/typescript/module/src/components/Style.d.ts +0 -81
  568. package/lib/typescript/module/src/components/Style.d.ts.map +0 -1
  569. package/lib/typescript/module/src/modules/location/locationManager.d.ts +0 -64
  570. package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +0 -1
  571. package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +0 -1
  572. package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
  573. package/lib/typescript/module/src/types/StyleURL.d.ts +0 -4
  574. package/lib/typescript/module/src/types/StyleURL.d.ts.map +0 -1
  575. package/lib/typescript/module/src/utils/deprecation.d.ts +0 -6
  576. package/lib/typescript/module/src/utils/deprecation.d.ts.map +0 -1
  577. package/lib/typescript/module/src/utils/styleMap.d.ts +0 -231
  578. package/lib/typescript/module/src/utils/styleMap.d.ts.map +0 -1
  579. package/plugin/build/withMapLibre.d.ts +0 -12
  580. package/plugin/build/withMapLibre.js +0 -148
  581. package/src/components/Style.tsx +0 -371
  582. package/src/types/StyleURL.ts +0 -3
  583. package/src/utils/deprecation.ts +0 -31
  584. package/src/utils/styleMap.ts +0 -265
@@ -1,180 +0,0 @@
1
- "use strict";
2
-
3
- // DO NOT MODIFY
4
- // This file is auto-generated from scripts/templates/MapLibreRNStyles.ts.ejs
5
-
6
- /* TODO */
7
-
8
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
9
-
10
- export let VisibilityEnum = /*#__PURE__*/function (VisibilityEnum) {
11
- VisibilityEnum["Visible"] = "visible";
12
- VisibilityEnum["None"] = "none";
13
- return VisibilityEnum;
14
- }({});
15
- export let FillTranslateAnchorEnum = /*#__PURE__*/function (FillTranslateAnchorEnum) {
16
- FillTranslateAnchorEnum["Map"] = "map";
17
- FillTranslateAnchorEnum["Viewport"] = "viewport";
18
- return FillTranslateAnchorEnum;
19
- }({});
20
- export let LineCapEnum = /*#__PURE__*/function (LineCapEnum) {
21
- LineCapEnum["Butt"] = "butt";
22
- LineCapEnum["Round"] = "round";
23
- LineCapEnum["Square"] = "square";
24
- return LineCapEnum;
25
- }({});
26
- export let LineJoinEnum = /*#__PURE__*/function (LineJoinEnum) {
27
- LineJoinEnum["Bevel"] = "bevel";
28
- LineJoinEnum["Round"] = "round";
29
- LineJoinEnum["Miter"] = "miter";
30
- return LineJoinEnum;
31
- }({});
32
- export let LineTranslateAnchorEnum = /*#__PURE__*/function (LineTranslateAnchorEnum) {
33
- LineTranslateAnchorEnum["Map"] = "map";
34
- LineTranslateAnchorEnum["Viewport"] = "viewport";
35
- return LineTranslateAnchorEnum;
36
- }({});
37
- export let SymbolPlacementEnum = /*#__PURE__*/function (SymbolPlacementEnum) {
38
- SymbolPlacementEnum["Point"] = "point";
39
- SymbolPlacementEnum["Line"] = "line";
40
- SymbolPlacementEnum["LineCenter"] = "line-center";
41
- return SymbolPlacementEnum;
42
- }({});
43
- export let SymbolZOrderEnum = /*#__PURE__*/function (SymbolZOrderEnum) {
44
- SymbolZOrderEnum["Auto"] = "auto";
45
- SymbolZOrderEnum["ViewportY"] = "viewport-y";
46
- SymbolZOrderEnum["Source"] = "source";
47
- return SymbolZOrderEnum;
48
- }({});
49
- export let IconRotationAlignmentEnum = /*#__PURE__*/function (IconRotationAlignmentEnum) {
50
- IconRotationAlignmentEnum["Map"] = "map";
51
- IconRotationAlignmentEnum["Viewport"] = "viewport";
52
- IconRotationAlignmentEnum["Auto"] = "auto";
53
- return IconRotationAlignmentEnum;
54
- }({});
55
- export let IconTextFitEnum = /*#__PURE__*/function (IconTextFitEnum) {
56
- IconTextFitEnum["None"] = "none";
57
- IconTextFitEnum["Width"] = "width";
58
- IconTextFitEnum["Height"] = "height";
59
- IconTextFitEnum["Both"] = "both";
60
- return IconTextFitEnum;
61
- }({});
62
- export let IconAnchorEnum = /*#__PURE__*/function (IconAnchorEnum) {
63
- IconAnchorEnum["Center"] = "center";
64
- IconAnchorEnum["Left"] = "left";
65
- IconAnchorEnum["Right"] = "right";
66
- IconAnchorEnum["Top"] = "top";
67
- IconAnchorEnum["Bottom"] = "bottom";
68
- IconAnchorEnum["TopLeft"] = "top-left";
69
- IconAnchorEnum["TopRight"] = "top-right";
70
- IconAnchorEnum["BottomLeft"] = "bottom-left";
71
- IconAnchorEnum["BottomRight"] = "bottom-right";
72
- return IconAnchorEnum;
73
- }({});
74
- export let IconPitchAlignmentEnum = /*#__PURE__*/function (IconPitchAlignmentEnum) {
75
- IconPitchAlignmentEnum["Map"] = "map";
76
- IconPitchAlignmentEnum["Viewport"] = "viewport";
77
- IconPitchAlignmentEnum["Auto"] = "auto";
78
- return IconPitchAlignmentEnum;
79
- }({});
80
- export let TextPitchAlignmentEnum = /*#__PURE__*/function (TextPitchAlignmentEnum) {
81
- TextPitchAlignmentEnum["Map"] = "map";
82
- TextPitchAlignmentEnum["Viewport"] = "viewport";
83
- TextPitchAlignmentEnum["Auto"] = "auto";
84
- return TextPitchAlignmentEnum;
85
- }({});
86
- export let TextRotationAlignmentEnum = /*#__PURE__*/function (TextRotationAlignmentEnum) {
87
- TextRotationAlignmentEnum["Map"] = "map";
88
- TextRotationAlignmentEnum["Viewport"] = "viewport";
89
- TextRotationAlignmentEnum["ViewportGlyph"] = "viewport-glyph";
90
- TextRotationAlignmentEnum["Auto"] = "auto";
91
- return TextRotationAlignmentEnum;
92
- }({});
93
- export let TextJustifyEnum = /*#__PURE__*/function (TextJustifyEnum) {
94
- TextJustifyEnum["Auto"] = "auto";
95
- TextJustifyEnum["Left"] = "left";
96
- TextJustifyEnum["Center"] = "center";
97
- TextJustifyEnum["Right"] = "right";
98
- return TextJustifyEnum;
99
- }({});
100
- export let TextVariableAnchorEnum = /*#__PURE__*/function (TextVariableAnchorEnum) {
101
- TextVariableAnchorEnum["Center"] = "center";
102
- TextVariableAnchorEnum["Left"] = "left";
103
- TextVariableAnchorEnum["Right"] = "right";
104
- TextVariableAnchorEnum["Top"] = "top";
105
- TextVariableAnchorEnum["Bottom"] = "bottom";
106
- TextVariableAnchorEnum["TopLeft"] = "top-left";
107
- TextVariableAnchorEnum["TopRight"] = "top-right";
108
- TextVariableAnchorEnum["BottomLeft"] = "bottom-left";
109
- TextVariableAnchorEnum["BottomRight"] = "bottom-right";
110
- return TextVariableAnchorEnum;
111
- }({});
112
- export let TextAnchorEnum = /*#__PURE__*/function (TextAnchorEnum) {
113
- TextAnchorEnum["Center"] = "center";
114
- TextAnchorEnum["Left"] = "left";
115
- TextAnchorEnum["Right"] = "right";
116
- TextAnchorEnum["Top"] = "top";
117
- TextAnchorEnum["Bottom"] = "bottom";
118
- TextAnchorEnum["TopLeft"] = "top-left";
119
- TextAnchorEnum["TopRight"] = "top-right";
120
- TextAnchorEnum["BottomLeft"] = "bottom-left";
121
- TextAnchorEnum["BottomRight"] = "bottom-right";
122
- return TextAnchorEnum;
123
- }({});
124
- export let TextWritingModeEnum = /*#__PURE__*/function (TextWritingModeEnum) {
125
- TextWritingModeEnum["Horizontal"] = "horizontal";
126
- TextWritingModeEnum["Vertical"] = "vertical";
127
- return TextWritingModeEnum;
128
- }({});
129
- export let TextTransformEnum = /*#__PURE__*/function (TextTransformEnum) {
130
- TextTransformEnum["None"] = "none";
131
- TextTransformEnum["Uppercase"] = "uppercase";
132
- TextTransformEnum["Lowercase"] = "lowercase";
133
- return TextTransformEnum;
134
- }({});
135
- export let IconTranslateAnchorEnum = /*#__PURE__*/function (IconTranslateAnchorEnum) {
136
- IconTranslateAnchorEnum["Map"] = "map";
137
- IconTranslateAnchorEnum["Viewport"] = "viewport";
138
- return IconTranslateAnchorEnum;
139
- }({});
140
- export let TextTranslateAnchorEnum = /*#__PURE__*/function (TextTranslateAnchorEnum) {
141
- TextTranslateAnchorEnum["Map"] = "map";
142
- TextTranslateAnchorEnum["Viewport"] = "viewport";
143
- return TextTranslateAnchorEnum;
144
- }({});
145
- export let CircleTranslateAnchorEnum = /*#__PURE__*/function (CircleTranslateAnchorEnum) {
146
- CircleTranslateAnchorEnum["Map"] = "map";
147
- CircleTranslateAnchorEnum["Viewport"] = "viewport";
148
- return CircleTranslateAnchorEnum;
149
- }({});
150
- export let CirclePitchScaleEnum = /*#__PURE__*/function (CirclePitchScaleEnum) {
151
- CirclePitchScaleEnum["Map"] = "map";
152
- CirclePitchScaleEnum["Viewport"] = "viewport";
153
- return CirclePitchScaleEnum;
154
- }({});
155
- export let CirclePitchAlignmentEnum = /*#__PURE__*/function (CirclePitchAlignmentEnum) {
156
- CirclePitchAlignmentEnum["Map"] = "map";
157
- CirclePitchAlignmentEnum["Viewport"] = "viewport";
158
- return CirclePitchAlignmentEnum;
159
- }({});
160
- export let FillExtrusionTranslateAnchorEnum = /*#__PURE__*/function (FillExtrusionTranslateAnchorEnum) {
161
- FillExtrusionTranslateAnchorEnum["Map"] = "map";
162
- FillExtrusionTranslateAnchorEnum["Viewport"] = "viewport";
163
- return FillExtrusionTranslateAnchorEnum;
164
- }({});
165
- export let RasterResamplingEnum = /*#__PURE__*/function (RasterResamplingEnum) {
166
- RasterResamplingEnum["Linear"] = "linear";
167
- RasterResamplingEnum["Nearest"] = "nearest";
168
- return RasterResamplingEnum;
169
- }({});
170
- export let HillshadeIlluminationAnchorEnum = /*#__PURE__*/function (HillshadeIlluminationAnchorEnum) {
171
- HillshadeIlluminationAnchorEnum["Map"] = "map";
172
- HillshadeIlluminationAnchorEnum["Viewport"] = "viewport";
173
- return HillshadeIlluminationAnchorEnum;
174
- }({});
175
- export let AnchorEnum = /*#__PURE__*/function (AnchorEnum) {
176
- AnchorEnum["Map"] = "map";
177
- AnchorEnum["Viewport"] = "viewport";
178
- return AnchorEnum;
179
- }({});
180
- //# sourceMappingURL=MapLibreRNStyles.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["VisibilityEnum","FillTranslateAnchorEnum","LineCapEnum","LineJoinEnum","LineTranslateAnchorEnum","SymbolPlacementEnum","SymbolZOrderEnum","IconRotationAlignmentEnum","IconTextFitEnum","IconAnchorEnum","IconPitchAlignmentEnum","TextPitchAlignmentEnum","TextRotationAlignmentEnum","TextJustifyEnum","TextVariableAnchorEnum","TextAnchorEnum","TextWritingModeEnum","TextTransformEnum","IconTranslateAnchorEnum","TextTranslateAnchorEnum","CircleTranslateAnchorEnum","CirclePitchScaleEnum","CirclePitchAlignmentEnum","FillExtrusionTranslateAnchorEnum","RasterResamplingEnum","HillshadeIlluminationAnchorEnum","AnchorEnum"],"sourceRoot":"../../../src","sources":["utils/MapLibreRNStyles.d.ts"],"mappings":";;AAAA;AACA;;AAWsC;;AAuHtC;;AAKA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAO1B,WAAYC,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA;AAOnC,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AASvB,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AASxB,WAAYC,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA;AAOnC,WAAYC,mBAAmB,0BAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;AAS/B,WAAYC,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAS5B,WAAYC,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,y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,mBAAmB,0BAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;AAO/B,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAS7B,WAAYC,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA;AAOnC,WAAYC,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA;AAOnC,WAAYC,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA;AAOrC,WAAYC,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA;AAOhC,WAAYC,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;AAOpC,WAAYC,gCAAgC,0BAAhCA,gCAAgC;EAAhCA,gCAAgC;EAAhCA,gCAAgC;EAAA,OAAhCA,gCAAgC;AAAA;AAO5C,WAAYC,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA;AAOhC,WAAYC,+BAA+B,0BAA/BA,+BAA+B;EAA/BA,+BAA+B;EAA/BA,+BAA+B;EAAA,OAA/BA,+BAA+B;AAAA;AAO3C,WAAYC,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * Copy properties from origObject to newObject, which not exists in newObject,
5
- * calls onDeprecatedCalled callback in case a copied property is invoked.
6
- */
7
-
8
- export function copyPropertiesAsDeprecated(origObject, newObject, onDeprecatedCalled, accessors = {}) {
9
- const result = {
10
- ...newObject
11
- };
12
- for (const [key, value] of Object.entries(origObject)) {
13
- if (!(key in newObject)) {
14
- Object.defineProperty(result, key, {
15
- get() {
16
- onDeprecatedCalled(key);
17
- return accessors[key] ? accessors[key](value) : value;
18
- },
19
- enumerable: true,
20
- // Ensure the property is enumerable
21
- configurable: true // Ensure the property can be reconfigured
22
- });
23
- }
24
- }
25
- return result;
26
- }
27
- //# sourceMappingURL=deprecation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["copyPropertiesAsDeprecated","origObject","newObject","onDeprecatedCalled","accessors","result","key","value","Object","entries","defineProperty","get","enumerable","configurable"],"sourceRoot":"../../../src","sources":["utils/deprecation.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAO,SAASA,0BAA0BA,CAIxCC,UAA0B,EAC1BC,SAA6B,EAC7BC,kBAAyC,EACzCC,SAAkD,GAAG,CAAC,CAAC,EACnC;EACpB,MAAMC,MAAM,GAAG;IAAE,GAAGH;EAAU,CAAC;EAE/B,KAAK,MAAM,CAACI,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACR,UAAU,CAAC,EAAE;IACrD,IAAI,EAAEK,GAAG,IAAIJ,SAAS,CAAC,EAAE;MACvBM,MAAM,CAACE,cAAc,CAACL,MAAM,EAAEC,GAAG,EAAE;QACjCK,GAAGA,CAAA,EAAG;UACJR,kBAAkB,CAACG,GAAG,CAAC;UACvB,OAAOF,SAAS,CAACE,GAAG,CAAC,GAAGF,SAAS,CAACE,GAAG,CAAC,CAACC,KAAK,CAAC,GAAGA,KAAK;QACvD,CAAC;QACDK,UAAU,EAAE,IAAI;QAAE;QAClBC,YAAY,EAAE,IAAI,CAAE;MACtB,CAAC,CAAC;IACJ;EACF;EAEA,OAAOR,MAAM;AACf","ignoreList":[]}
@@ -1,249 +0,0 @@
1
- "use strict";
2
-
3
- /* eslint-disable */
4
- // DO NOT MODIFY
5
- // This file is auto-generated from scripts/templates/styleMap.ts.ejs
6
-
7
- import { isAndroid } from "./index.js";
8
- export const StyleTypes = {
9
- Constant: "constant",
10
- Color: "color",
11
- Transition: "transition",
12
- Translation: "translation",
13
- Function: "function",
14
- Image: "image",
15
- Enum: "enum"
16
- };
17
- export function getStyleType(styleProp) {
18
- if (!isAndroid() && styleExtras[styleProp]) {
19
- return styleExtras[styleProp].iosType;
20
- }
21
- if (styleMap[styleProp]) {
22
- return styleMap[styleProp];
23
- }
24
- throw new Error(`${styleProp} is not a valid MapLibre layer style`);
25
- }
26
- const styleMap = {
27
- fillSortKey: StyleTypes.Constant,
28
- fillAntialias: StyleTypes.Constant,
29
- fillOpacity: StyleTypes.Constant,
30
- fillOpacityTransition: StyleTypes.Transition,
31
- fillColor: StyleTypes.Color,
32
- fillColorTransition: StyleTypes.Transition,
33
- fillOutlineColor: StyleTypes.Color,
34
- fillOutlineColorTransition: StyleTypes.Transition,
35
- fillTranslate: StyleTypes.Translation,
36
- fillTranslateTransition: StyleTypes.Transition,
37
- fillTranslateAnchor: StyleTypes.Enum,
38
- fillPattern: StyleTypes.Image,
39
- fillPatternTransition: StyleTypes.Transition,
40
- lineCap: StyleTypes.Enum,
41
- lineJoin: StyleTypes.Enum,
42
- lineMiterLimit: StyleTypes.Constant,
43
- lineRoundLimit: StyleTypes.Constant,
44
- lineSortKey: StyleTypes.Constant,
45
- lineOpacity: StyleTypes.Constant,
46
- lineOpacityTransition: StyleTypes.Transition,
47
- lineColor: StyleTypes.Color,
48
- lineColorTransition: StyleTypes.Transition,
49
- lineTranslate: StyleTypes.Translation,
50
- lineTranslateTransition: StyleTypes.Transition,
51
- lineTranslateAnchor: StyleTypes.Enum,
52
- lineWidth: StyleTypes.Constant,
53
- lineWidthTransition: StyleTypes.Transition,
54
- lineGapWidth: StyleTypes.Constant,
55
- lineGapWidthTransition: StyleTypes.Transition,
56
- lineOffset: StyleTypes.Constant,
57
- lineOffsetTransition: StyleTypes.Transition,
58
- lineBlur: StyleTypes.Constant,
59
- lineBlurTransition: StyleTypes.Transition,
60
- lineDasharray: StyleTypes.Constant,
61
- lineDasharrayTransition: StyleTypes.Transition,
62
- linePattern: StyleTypes.Image,
63
- linePatternTransition: StyleTypes.Transition,
64
- lineGradient: StyleTypes.Color,
65
- symbolPlacement: StyleTypes.Enum,
66
- symbolSpacing: StyleTypes.Constant,
67
- symbolAvoidEdges: StyleTypes.Constant,
68
- symbolSortKey: StyleTypes.Constant,
69
- symbolZOrder: StyleTypes.Enum,
70
- iconAllowOverlap: StyleTypes.Constant,
71
- iconIgnorePlacement: StyleTypes.Constant,
72
- iconOptional: StyleTypes.Constant,
73
- iconRotationAlignment: StyleTypes.Enum,
74
- iconSize: StyleTypes.Constant,
75
- iconTextFit: StyleTypes.Enum,
76
- iconTextFitPadding: StyleTypes.Constant,
77
- iconImage: StyleTypes.Image,
78
- iconRotate: StyleTypes.Constant,
79
- iconPadding: StyleTypes.Constant,
80
- iconKeepUpright: StyleTypes.Constant,
81
- iconOffset: StyleTypes.Constant,
82
- iconAnchor: StyleTypes.Enum,
83
- iconPitchAlignment: StyleTypes.Enum,
84
- textPitchAlignment: StyleTypes.Enum,
85
- textRotationAlignment: StyleTypes.Enum,
86
- textField: StyleTypes.Constant,
87
- textFont: StyleTypes.Constant,
88
- textSize: StyleTypes.Constant,
89
- textMaxWidth: StyleTypes.Constant,
90
- textLineHeight: StyleTypes.Constant,
91
- textLetterSpacing: StyleTypes.Constant,
92
- textJustify: StyleTypes.Enum,
93
- textRadialOffset: StyleTypes.Constant,
94
- textVariableAnchor: StyleTypes.Constant,
95
- textAnchor: StyleTypes.Enum,
96
- textMaxAngle: StyleTypes.Constant,
97
- textWritingMode: StyleTypes.Constant,
98
- textRotate: StyleTypes.Constant,
99
- textPadding: StyleTypes.Constant,
100
- textKeepUpright: StyleTypes.Constant,
101
- textTransform: StyleTypes.Enum,
102
- textOffset: StyleTypes.Constant,
103
- textAllowOverlap: StyleTypes.Constant,
104
- textIgnorePlacement: StyleTypes.Constant,
105
- textOptional: StyleTypes.Constant,
106
- iconOpacity: StyleTypes.Constant,
107
- iconOpacityTransition: StyleTypes.Transition,
108
- iconColor: StyleTypes.Color,
109
- iconColorTransition: StyleTypes.Transition,
110
- iconHaloColor: StyleTypes.Color,
111
- iconHaloColorTransition: StyleTypes.Transition,
112
- iconHaloWidth: StyleTypes.Constant,
113
- iconHaloWidthTransition: StyleTypes.Transition,
114
- iconHaloBlur: StyleTypes.Constant,
115
- iconHaloBlurTransition: StyleTypes.Transition,
116
- iconTranslate: StyleTypes.Translation,
117
- iconTranslateTransition: StyleTypes.Transition,
118
- iconTranslateAnchor: StyleTypes.Enum,
119
- textOpacity: StyleTypes.Constant,
120
- textOpacityTransition: StyleTypes.Transition,
121
- textColor: StyleTypes.Color,
122
- textColorTransition: StyleTypes.Transition,
123
- textHaloColor: StyleTypes.Color,
124
- textHaloColorTransition: StyleTypes.Transition,
125
- textHaloWidth: StyleTypes.Constant,
126
- textHaloWidthTransition: StyleTypes.Transition,
127
- textHaloBlur: StyleTypes.Constant,
128
- textHaloBlurTransition: StyleTypes.Transition,
129
- textTranslate: StyleTypes.Translation,
130
- textTranslateTransition: StyleTypes.Transition,
131
- textTranslateAnchor: StyleTypes.Enum,
132
- circleSortKey: StyleTypes.Constant,
133
- circleRadius: StyleTypes.Constant,
134
- circleRadiusTransition: StyleTypes.Transition,
135
- circleColor: StyleTypes.Color,
136
- circleColorTransition: StyleTypes.Transition,
137
- circleBlur: StyleTypes.Constant,
138
- circleBlurTransition: StyleTypes.Transition,
139
- circleOpacity: StyleTypes.Constant,
140
- circleOpacityTransition: StyleTypes.Transition,
141
- circleTranslate: StyleTypes.Translation,
142
- circleTranslateTransition: StyleTypes.Transition,
143
- circleTranslateAnchor: StyleTypes.Enum,
144
- circlePitchScale: StyleTypes.Enum,
145
- circlePitchAlignment: StyleTypes.Enum,
146
- circleStrokeWidth: StyleTypes.Constant,
147
- circleStrokeWidthTransition: StyleTypes.Transition,
148
- circleStrokeColor: StyleTypes.Color,
149
- circleStrokeColorTransition: StyleTypes.Transition,
150
- circleStrokeOpacity: StyleTypes.Constant,
151
- circleStrokeOpacityTransition: StyleTypes.Transition,
152
- heatmapRadius: StyleTypes.Constant,
153
- heatmapRadiusTransition: StyleTypes.Transition,
154
- heatmapWeight: StyleTypes.Constant,
155
- heatmapIntensity: StyleTypes.Constant,
156
- heatmapIntensityTransition: StyleTypes.Transition,
157
- heatmapColor: StyleTypes.Color,
158
- heatmapOpacity: StyleTypes.Constant,
159
- heatmapOpacityTransition: StyleTypes.Transition,
160
- fillExtrusionOpacity: StyleTypes.Constant,
161
- fillExtrusionOpacityTransition: StyleTypes.Transition,
162
- fillExtrusionColor: StyleTypes.Color,
163
- fillExtrusionColorTransition: StyleTypes.Transition,
164
- fillExtrusionTranslate: StyleTypes.Translation,
165
- fillExtrusionTranslateTransition: StyleTypes.Transition,
166
- fillExtrusionTranslateAnchor: StyleTypes.Enum,
167
- fillExtrusionPattern: StyleTypes.Image,
168
- fillExtrusionPatternTransition: StyleTypes.Transition,
169
- fillExtrusionHeight: StyleTypes.Constant,
170
- fillExtrusionHeightTransition: StyleTypes.Transition,
171
- fillExtrusionBase: StyleTypes.Constant,
172
- fillExtrusionBaseTransition: StyleTypes.Transition,
173
- fillExtrusionVerticalGradient: StyleTypes.Constant,
174
- rasterOpacity: StyleTypes.Constant,
175
- rasterOpacityTransition: StyleTypes.Transition,
176
- rasterHueRotate: StyleTypes.Constant,
177
- rasterHueRotateTransition: StyleTypes.Transition,
178
- rasterBrightnessMin: StyleTypes.Constant,
179
- rasterBrightnessMinTransition: StyleTypes.Transition,
180
- rasterBrightnessMax: StyleTypes.Constant,
181
- rasterBrightnessMaxTransition: StyleTypes.Transition,
182
- rasterSaturation: StyleTypes.Constant,
183
- rasterSaturationTransition: StyleTypes.Transition,
184
- rasterContrast: StyleTypes.Constant,
185
- rasterContrastTransition: StyleTypes.Transition,
186
- rasterResampling: StyleTypes.Enum,
187
- rasterFadeDuration: StyleTypes.Constant,
188
- hillshadeIlluminationDirection: StyleTypes.Constant,
189
- hillshadeIlluminationAnchor: StyleTypes.Enum,
190
- hillshadeExaggeration: StyleTypes.Constant,
191
- hillshadeExaggerationTransition: StyleTypes.Transition,
192
- hillshadeShadowColor: StyleTypes.Color,
193
- hillshadeShadowColorTransition: StyleTypes.Transition,
194
- hillshadeHighlightColor: StyleTypes.Color,
195
- hillshadeHighlightColorTransition: StyleTypes.Transition,
196
- hillshadeAccentColor: StyleTypes.Color,
197
- hillshadeAccentColorTransition: StyleTypes.Transition,
198
- backgroundColor: StyleTypes.Color,
199
- backgroundColorTransition: StyleTypes.Transition,
200
- backgroundPattern: StyleTypes.Image,
201
- backgroundPatternTransition: StyleTypes.Transition,
202
- backgroundOpacity: StyleTypes.Constant,
203
- backgroundOpacityTransition: StyleTypes.Transition,
204
- anchor: StyleTypes.Enum,
205
- position: StyleTypes.Constant,
206
- positionTransition: StyleTypes.Transition,
207
- color: StyleTypes.Color,
208
- colorTransition: StyleTypes.Transition,
209
- intensity: StyleTypes.Constant,
210
- intensityTransition: StyleTypes.Transition,
211
- visibility: StyleTypes.Constant
212
- };
213
- export const styleExtras = {
214
- // padding
215
- iconTextFitPadding: {
216
- iosType: "edgeinsets"
217
- },
218
- // offsets
219
- iconOffset: {
220
- iosType: "vector"
221
- },
222
- textOffset: {
223
- iosType: "vector"
224
- },
225
- lineOffset: {
226
- iosType: "vector"
227
- },
228
- // translates
229
- fillTranslate: {
230
- iosType: "vector"
231
- },
232
- lineTranslate: {
233
- iosType: "vector"
234
- },
235
- iconTranslate: {
236
- iosType: "vector"
237
- },
238
- textTranslate: {
239
- iosType: "vector"
240
- },
241
- circleTranslate: {
242
- iosType: "vector"
243
- },
244
- fillExtrusionTranslate: {
245
- iosType: "vector"
246
- }
247
- };
248
- export default styleMap;
249
- //# sourceMappingURL=styleMap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["isAndroid","StyleTypes","Constant","Color","Transition","Translation","Function","Image","Enum","getStyleType","styleProp","styleExtras","iosType","styleMap","Error","fillSortKey","fillAntialias","fillOpacity","fillOpacityTransition","fillColor","fillColorTransition","fillOutlineColor","fillOutlineColorTransition","fillTranslate","fillTranslateTransition","fillTranslateAnchor","fillPattern","fillPatternTransition","lineCap","lineJoin","lineMiterLimit","lineRoundLimit","lineSortKey","lineOpacity","lineOpacityTransition","lineColor","lineColorTransition","lineTranslate","lineTranslateTransition","lineTranslateAnchor","lineWidth","lineWidthTransition","lineGapWidth","lineGapWidthTransition","lineOffset","lineOffsetTransition","lineBlur","lineBlurTransition","lineDasharray","lineDasharrayTransition","linePattern","linePatternTransition","lineGradient","symbolPlacement","symbolSpacing","symbolAvoidEdges","symbolSortKey","symbolZOrder","iconAllowOverlap","iconIgnorePlacement","iconOptional","iconRotationAlignment","iconSize","iconTextFit","iconTextFitPadding","iconImage","iconRotate","iconPadding","iconKeepUpright","iconOffset","iconAnchor","iconPitchAlignment","textPitchAlignment","textRotationAlignment","textField","textFont","textSize","textMaxWidth","textLineHeight","textLetterSpacing","textJustify","textRadialOffset","textVariableAnchor","textAnchor","textMaxAngle","textWritingMode","textRotate","textPadding","textKeepUpright","textTransform","textOffset","textAllowOverlap","textIgnorePlacement","textOptional","iconOpacity","iconOpacityTransition","iconColor","iconColorTransition","iconHaloColor","iconHaloColorTransition","iconHaloWidth","iconHaloWidthTransition","iconHaloBlur","iconHaloBlurTransition","iconTranslate","iconTranslateTransition","iconTranslateAnchor","textOpacity","textOpacityTransition","textColor","textColorTransition","textHaloColor","textHaloColorTransition","textHaloWidth","textHaloWidthTransition","textHaloBlur","textHaloBlurTransition","textTranslate","textTranslateTransition","textTranslateAnchor","circleSortKey","circleRadius","circleRadiusTransition","circleColor","circleColorTransition","circleBlur","circleBlurTransition","circleOpacity","circleOpacityTransition","circleTranslate","circleTranslateTransition","circleTranslateAnchor","circlePitchScale","circlePitchAlignment","circleStrokeWidth","circleStrokeWidthTransition","circleStrokeColor","circleStrokeColorTransition","circleStrokeOpacity","circleStrokeOpacityTransition","heatmapRadius","heatmapRadiusTransition","heatmapWeight","heatmapIntensity","heatmapIntensityTransition","heatmapColor","heatmapOpacity","heatmapOpacityTransition","fillExtrusionOpacity","fillExtrusionOpacityTransition","fillExtrusionColor","fillExtrusionColorTransition","fillExtrusionTranslate","fillExtrusionTranslateTransition","fillExtrusionTranslateAnchor","fillExtrusionPattern","fillExtrusionPatternTransition","fillExtrusionHeight","fillExtrusionHeightTransition","fillExtrusionBase","fillExtrusionBaseTransition","fillExtrusionVerticalGradient","rasterOpacity","rasterOpacityTransition","rasterHueRotate","rasterHueRotateTransition","rasterBrightnessMin","rasterBrightnessMinTransition","rasterBrightnessMax","rasterBrightnessMaxTransition","rasterSaturation","rasterSaturationTransition","rasterContrast","rasterContrastTransition","rasterResampling","rasterFadeDuration","hillshadeIlluminationDirection","hillshadeIlluminationAnchor","hillshadeExaggeration","hillshadeExaggerationTransition","hillshadeShadowColor","hillshadeShadowColorTransition","hillshadeHighlightColor","hillshadeHighlightColorTransition","hillshadeAccentColor","hillshadeAccentColorTransition","backgroundColor","backgroundColorTransition","backgroundPattern","backgroundPatternTransition","backgroundOpacity","backgroundOpacityTransition","anchor","position","positionTransition","color","colorTransition","intensity","intensityTransition","visibility"],"sourceRoot":"../../../src","sources":["utils/styleMap.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA,SAASA,SAAS,QAAQ,YAAS;AAEnC,OAAO,MAAMC,UAAU,GAAG;EACxBC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,OAAO;EACdC,UAAU,EAAE,YAAY;EACxBC,WAAW,EAAE,aAAa;EAC1BC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,SAASC,YAAYA,CAACC,SAAmC,EAAU;EACxE,IAAI,CAACV,SAAS,CAAC,CAAC,IAAI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O,EAAE;EACX,CAAC;EACDyG,aAAa,EAAE;IACbzG,OAAO,EAAE;EACX,CAAC;EACDqH,eAAe,EAAE;IACfrH,OAAO,EAAE;EACX,CAAC;EACD4I,sBAAsB,EAAE;IACtB5I,OAAO,EAAE;EACX;AACF,CAAC;AAED,eAAeC,QAAQ","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=jest.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jest.config.d.ts","sourceRoot":"","sources":["../../../jest.config.ts"],"names":[],"mappings":""}
@@ -1,81 +0,0 @@
1
- import { type ReactElement } from "react";
2
- import { type ExpressionField, type FilterExpression } from "../utils/MapLibreRNStyles";
3
- interface MapLibreJSONLayer {
4
- type: string;
5
- paint: {
6
- [k: string]: unknown;
7
- };
8
- layout: {
9
- [k: string]: unknown;
10
- };
11
- source?: string;
12
- "source-layer"?: string;
13
- minzoom?: number;
14
- maxzoom?: number;
15
- filter?: FilterExpression;
16
- id: string;
17
- }
18
- interface MapLibreJSONSource {
19
- type: string;
20
- url?: string;
21
- tiles?: string[];
22
- minzoom?: number;
23
- maxzoom?: number;
24
- attribution?: string;
25
- scheme?: "xyz" | "tms";
26
- bounds?: number[];
27
- buffer?: number;
28
- tileSize?: number;
29
- coordinates?: [
30
- [
31
- number,
32
- number
33
- ],
34
- [
35
- number,
36
- number
37
- ],
38
- [
39
- number,
40
- number
41
- ],
42
- [
43
- number,
44
- number
45
- ]
46
- ];
47
- cluster?: boolean;
48
- clusterMaxZoom?: number;
49
- clusterMinPoints?: number;
50
- clusterRadius?: number;
51
- clusterProperties?: {
52
- [propertyName: string]: ExpressionField;
53
- };
54
- data?: string | object;
55
- filter?: FilterExpression;
56
- generateId?: boolean;
57
- lineMetrics?: boolean;
58
- tolerance?: number;
59
- }
60
- interface MapLibreJSON {
61
- layers?: MapLibreJSONLayer[];
62
- sources?: {
63
- [key: string]: MapLibreJSONSource;
64
- };
65
- }
66
- interface StyleProps {
67
- /**
68
- * A JSON object conforming to the schema described in the MapLibre Style Specification, or a URL to such JSON.
69
- */
70
- json?: MapLibreJSON | URL;
71
- }
72
- /**
73
- * Style is a component that automatically adds sources / layers to the map using MapLibre Style Spec.
74
- * Only [`sources`](https://maplibre.org/maplibre-gl-js-docs/style-spec/sources/) & [`layers`](https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/) are supported.
75
- * Other fields such as `sprites`, `glyphs` etc. will be ignored. Not all layer / source attributes from the style spec are supported, in general the supported attributes will be mentioned under https://github.com/maplibre/maplibre-react-native/tree/main/docs.
76
- *
77
- * TODO: Maintainer forking this project does not understand the above comment regarding what is supported.
78
- */
79
- declare const Style: (props: StyleProps) => ReactElement;
80
- export default Style;
81
- //# sourceMappingURL=Style.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["../../../../../src/components/Style.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AAgBf,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AAmEnC,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAChC,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAwCD,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,C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AEF,eAAe,KAAK,CAAC"}
@@ -1,64 +0,0 @@
1
- import { NativeEventEmitter, type EmitterSubscription } from "react-native";
2
- export declare const LocationModuleEventEmitter: NativeEventEmitter;
3
- /**
4
- * Location sent by locationManager
5
- */
6
- export interface Location {
7
- coords: Coordinates;
8
- timestamp?: number;
9
- }
10
- /**
11
- * Coorinates sent by locationManager
12
- */
13
- interface Coordinates {
14
- /**
15
- * The heading (measured in degrees) relative to true north.
16
- * Heading is used to describe the direction the device is pointing to (the value of the compass).
17
- * Note that on Android this is incorrectly reporting the course value as mentioned in issue https://github.com/rnmapbox/maps/issues/1213
18
- * and will be corrected in a future update.
19
- */
20
- heading?: number;
21
- /**
22
- * The direction in which the device is traveling, measured in degrees and relative to due north.
23
- * The course refers to the direction the device is actually moving (not the same as heading).
24
- */
25
- course?: number;
26
- /**
27
- * The instantaneous speed of the device, measured in meters per second.
28
- */
29
- speed?: number;
30
- /**
31
- * The latitude in degrees.
32
- */
33
- latitude: number;
34
- /**
35
- * The longitude in degrees.
36
- */
37
- longitude: number;
38
- /**
39
- * The radius of uncertainty for the location, measured in meters.
40
- */
41
- accuracy?: number;
42
- /**
43
- * The altitude, measured in meters.
44
- */
45
- altitude?: number;
46
- }
47
- declare class LocationManager {
48
- _listeners: ((location: Location) => void)[];
49
- _lastKnownLocation: Location | null;
50
- _isListening: boolean;
51
- subscription: EmitterSubscription | null;
52
- constructor();
53
- getLastKnownLocation(): Promise<Location | null>;
54
- addListener(listener: (location: Location) => void): void;
55
- removeListener(listener: (location: Location) => void): void;
56
- removeAllListeners(): void;
57
- start(displacement?: number): void;
58
- stop(): void;
59
- setMinDisplacement(minDisplacement: number): void;
60
- onUpdate(location: Location): void;
61
- }
62
- declare const _default: LocationManager;
63
- export default _default;
64
- //# sourceMappingURL=locationManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"locationManager.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/location/locationManager.ts"],"names":[],"mappings":"AAAA,OAAO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