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

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 (731) hide show
  1. package/MapLibreReactNative.podspec +1 -1
  2. package/android/build.gradle +3 -1
  3. package/android/gradle.properties +2 -2
  4. package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +14 -1
  5. package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerView.kt +35 -28
  6. package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerViewContent.kt +9 -14
  7. package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MLRNMarkerViewManager.kt +8 -1
  8. package/android/src/main/java/org/maplibre/reactnative/components/annotations/markerview/MarkerViewManager.kt +20 -13
  9. package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotation.kt +45 -25
  10. package/android/src/main/java/org/maplibre/reactnative/components/annotations/pointannotation/MLRNPointAnnotationManager.kt +2 -1
  11. package/android/src/main/java/org/maplibre/reactnative/components/layer/style/MLRNStyleFactory.java +4 -4
  12. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +236 -123
  13. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.kt +37 -3
  14. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewModule.kt +3 -1
  15. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNLogModule.kt +2 -0
  16. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNNetworkModule.kt +0 -42
  17. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNOfflineModule.kt +27 -4
  18. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNTransformRequestModule.kt +144 -0
  19. package/android/src/main/java/org/maplibre/reactnative/modules/TransformRequestInterceptor.kt +184 -0
  20. package/ios/components/annotations/point-annotation/MLRNPointAnnotation.h +3 -2
  21. package/ios/components/annotations/point-annotation/MLRNPointAnnotation.m +65 -2
  22. package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.mm +27 -19
  23. package/ios/components/camera/MLRNCameraComponentView.mm +5 -4
  24. package/ios/components/images/MLRNImageLoader.h +27 -0
  25. package/ios/components/images/MLRNImageLoader.m +85 -0
  26. package/ios/components/images/MLRNImageQueue.h +2 -2
  27. package/ios/components/images/MLRNImageQueue.m +2 -2
  28. package/ios/components/images/MLRNImageQueueOperation.h +2 -2
  29. package/ios/components/images/MLRNImageQueueOperation.m +3 -3
  30. package/ios/components/images/MLRNImages.h +0 -3
  31. package/ios/components/images/MLRNImages.m +6 -6
  32. package/ios/components/images/MLRNImagesComponentView.mm +0 -3
  33. package/ios/components/images/MLRNImagesModule.h +6 -0
  34. package/ios/components/images/MLRNImagesModule.mm +23 -0
  35. package/ios/components/layer/MLRNLayer.h +0 -3
  36. package/ios/components/layer/MLRNLayer.m +0 -1
  37. package/ios/components/layer/MLRNLayerComponentView.mm +12 -11
  38. package/ios/components/layer/style/MLRNStyle.h +1 -3
  39. package/ios/components/layer/style/MLRNStyle.m +68 -71
  40. package/ios/components/map-view/MLRNMapView.h +8 -1
  41. package/ios/components/map-view/MLRNMapView.m +106 -24
  42. package/ios/components/map-view/MLRNMapViewComponentView.mm +29 -5
  43. package/ios/components/map-view/MLRNMapViewModule.mm +1 -1
  44. package/ios/components/sources/geojson-source/MLRNGeoJSONSource.h +0 -3
  45. package/ios/components/sources/image-source/MLRNImageSourceComponentView.mm +1 -1
  46. package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.mm +2 -3
  47. package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.mm +2 -3
  48. package/ios/modules/logging/MLRNLogging.h +4 -0
  49. package/ios/modules/logging/MLRNLogging.m +8 -0
  50. package/ios/modules/network/MLRNNetworkModule.mm +0 -10
  51. package/ios/modules/offline/MLRNOfflineModule.h +1 -2
  52. package/ios/modules/offline/MLRNOfflineModule.mm +9 -9
  53. package/ios/modules/transform-request/MLRNTransformRequest.h +38 -0
  54. package/ios/modules/transform-request/MLRNTransformRequest.m +413 -0
  55. package/ios/modules/transform-request/MLRNTransformRequestModule.h +9 -0
  56. package/ios/modules/transform-request/MLRNTransformRequestModule.mm +72 -0
  57. package/ios/utils/MLRNUtils.h +0 -14
  58. package/ios/utils/MLRNUtils.m +0 -71
  59. package/lib/commonjs/components/annotations/callout/Callout.js +2 -1
  60. package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -1
  61. package/lib/commonjs/components/annotations/marker/Marker.js +21 -3
  62. package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -1
  63. package/lib/commonjs/components/annotations/marker/MarkerViewNativeComponent.ts +12 -2
  64. package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +5 -4
  65. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +25 -19
  66. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  67. package/lib/commonjs/components/camera/Camera.js +52 -3
  68. package/lib/commonjs/components/camera/Camera.js.map +1 -1
  69. package/lib/commonjs/components/images/Images.js +12 -2
  70. package/lib/commonjs/components/images/Images.js.map +1 -1
  71. package/lib/commonjs/components/images/NativeImagesModule.js +10 -0
  72. package/lib/commonjs/components/images/NativeImagesModule.js.map +1 -0
  73. package/lib/commonjs/components/layer/Layer.js +35 -70
  74. package/lib/commonjs/components/layer/Layer.js.map +1 -1
  75. package/lib/commonjs/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
  76. package/lib/commonjs/components/map/Map.js +29 -4
  77. package/lib/commonjs/components/map/Map.js.map +1 -1
  78. package/lib/commonjs/components/map/MapViewNativeComponent.ts +6 -1
  79. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +6 -5
  80. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  81. package/lib/commonjs/components/sources/image-source/ImageSource.js +3 -2
  82. package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -1
  83. package/lib/commonjs/components/sources/raster-source/RasterSource.js +4 -3
  84. package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -1
  85. package/lib/commonjs/components/sources/vector-source/VectorSource.js +8 -5
  86. package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -1
  87. package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -1
  88. package/lib/commonjs/components/user-location/UserLocation.js +21 -12
  89. package/lib/commonjs/components/user-location/UserLocation.js.map +1 -1
  90. package/lib/commonjs/components/user-location/UserLocationPuck.js +16 -16
  91. package/lib/commonjs/components/user-location/UserLocationPuck.js.map +1 -1
  92. package/lib/commonjs/components/user-location/UserLocationPuckHeading.js +8 -10
  93. package/lib/commonjs/components/user-location/UserLocationPuckHeading.js.map +1 -1
  94. package/lib/commonjs/index.js +7 -0
  95. package/lib/commonjs/index.js.map +1 -1
  96. package/lib/commonjs/modules/log/LogManager.js +5 -4
  97. package/lib/commonjs/modules/log/LogManager.js.map +1 -1
  98. package/lib/commonjs/modules/network/NativeNetworkModule.js.map +1 -1
  99. package/lib/commonjs/modules/network/NetworkManager.js +6 -44
  100. package/lib/commonjs/modules/network/NetworkManager.js.map +1 -1
  101. package/lib/commonjs/modules/offline/OfflineManager.js +109 -62
  102. package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -1
  103. package/lib/commonjs/modules/static-map/StaticMapManager.js +13 -5
  104. package/lib/commonjs/modules/static-map/StaticMapManager.js.map +1 -1
  105. package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js +9 -0
  106. package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
  107. package/lib/commonjs/modules/transform-request/TransformRequestManager.js +233 -0
  108. package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -0
  109. package/lib/commonjs/plugin/ios.js +28 -15
  110. package/lib/commonjs/plugin/ios.js.map +1 -1
  111. package/lib/commonjs/types/Anchor.js +5 -6
  112. package/lib/commonjs/types/Anchor.js.map +1 -1
  113. package/lib/commonjs/types/PressableSourceProps.js.map +1 -0
  114. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  115. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +6 -6
  116. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +2 -1
  117. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -1
  118. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  119. package/lib/commonjs/utils/convertStyleSpec.js +4 -4
  120. package/lib/commonjs/utils/getStylePropertyType.js +1 -1
  121. package/lib/module/components/annotations/callout/Callout.js +2 -1
  122. package/lib/module/components/annotations/callout/Callout.js.map +1 -1
  123. package/lib/module/components/annotations/marker/Marker.js +22 -4
  124. package/lib/module/components/annotations/marker/Marker.js.map +1 -1
  125. package/lib/module/components/annotations/marker/MarkerViewNativeComponent.ts +12 -2
  126. package/lib/module/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +5 -4
  127. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +25 -20
  128. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -1
  129. package/lib/module/components/camera/Camera.js +53 -4
  130. package/lib/module/components/camera/Camera.js.map +1 -1
  131. package/lib/module/components/images/Images.js +12 -2
  132. package/lib/module/components/images/Images.js.map +1 -1
  133. package/lib/module/components/images/NativeImagesModule.js +7 -0
  134. package/lib/module/components/images/NativeImagesModule.js.map +1 -0
  135. package/lib/module/components/layer/Layer.js +35 -70
  136. package/lib/module/components/layer/Layer.js.map +1 -1
  137. package/lib/module/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
  138. package/lib/module/components/map/Map.js +30 -5
  139. package/lib/module/components/map/Map.js.map +1 -1
  140. package/lib/module/components/map/MapViewNativeComponent.ts +6 -1
  141. package/lib/module/components/sources/geojson-source/GeoJSONSource.js +7 -6
  142. package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -1
  143. package/lib/module/components/sources/image-source/ImageSource.js +3 -2
  144. package/lib/module/components/sources/image-source/ImageSource.js.map +1 -1
  145. package/lib/module/components/sources/raster-source/RasterSource.js +4 -3
  146. package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -1
  147. package/lib/module/components/sources/vector-source/VectorSource.js +9 -6
  148. package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -1
  149. package/lib/module/components/user-location/NativeUserLocation.js.map +1 -1
  150. package/lib/module/components/user-location/UserLocation.js +21 -13
  151. package/lib/module/components/user-location/UserLocation.js.map +1 -1
  152. package/lib/module/components/user-location/UserLocationPuck.js +16 -16
  153. package/lib/module/components/user-location/UserLocationPuck.js.map +1 -1
  154. package/lib/module/components/user-location/UserLocationPuckHeading.js +8 -9
  155. package/lib/module/components/user-location/UserLocationPuckHeading.js.map +1 -1
  156. package/lib/module/index.js +1 -0
  157. package/lib/module/index.js.map +1 -1
  158. package/lib/module/modules/log/LogManager.js +5 -4
  159. package/lib/module/modules/log/LogManager.js.map +1 -1
  160. package/lib/module/modules/network/NativeNetworkModule.js.map +1 -1
  161. package/lib/module/modules/network/NetworkManager.js +6 -44
  162. package/lib/module/modules/network/NetworkManager.js.map +1 -1
  163. package/lib/module/modules/offline/OfflineManager.js +109 -62
  164. package/lib/module/modules/offline/OfflineManager.js.map +1 -1
  165. package/lib/module/modules/static-map/StaticMapManager.js +13 -5
  166. package/lib/module/modules/static-map/StaticMapManager.js.map +1 -1
  167. package/lib/module/modules/transform-request/NativeTransformRequestModule.js +5 -0
  168. package/lib/module/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
  169. package/lib/module/modules/transform-request/TransformRequestManager.js +230 -0
  170. package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -0
  171. package/lib/module/plugin/ios.js +28 -15
  172. package/lib/module/plugin/ios.js.map +1 -1
  173. package/lib/module/types/Anchor.js +5 -6
  174. package/lib/module/types/Anchor.js.map +1 -1
  175. package/lib/module/types/PressableSourceProps.js.map +1 -0
  176. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +2 -2
  177. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +6 -6
  178. package/lib/module/utils/animated/AnimatedGeoJSON.js +2 -1
  179. package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -1
  180. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +6 -6
  181. package/lib/module/utils/convertStyleSpec.js +4 -4
  182. package/lib/module/utils/getStylePropertyType.js +1 -1
  183. package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts.map +1 -0
  184. package/lib/typescript/commonjs/{src/components → components}/annotations/callout/Callout.d.ts +3 -2
  185. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts +79 -0
  188. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +12 -2
  190. package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/{src/components → components}/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +5 -4
  192. package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts +120 -0
  194. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/{src/components → components}/camera/Camera.d.ts +85 -43
  196. package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts.map +1 -0
  198. package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts.map +1 -0
  199. package/lib/typescript/{module/src → commonjs}/components/images/Images.d.ts +20 -12
  200. package/lib/typescript/commonjs/components/images/Images.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/components/images/ImagesNativeComponent.d.ts.map +1 -0
  202. package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts +6 -0
  203. package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts.map +1 -0
  204. package/lib/typescript/commonjs/{src/components → components}/layer/Layer.d.ts +41 -67
  205. package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -0
  206. package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts.map +1 -0
  207. package/lib/typescript/commonjs/{src/components → components}/map/AndroidTextureMapViewNativeComponent.d.ts +5 -1
  208. package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
  209. package/lib/typescript/commonjs/{src/components → components}/map/Map.d.ts +154 -78
  210. package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -0
  211. package/lib/typescript/{module/src → commonjs}/components/map/MapViewNativeComponent.d.ts +5 -1
  212. package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts.map +1 -0
  213. package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts.map +1 -0
  214. package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/GeoJSONSource.d.ts +47 -44
  215. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
  216. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
  218. package/lib/typescript/commonjs/{src/components → components}/sources/image-source/ImageSource.d.ts +5 -3
  219. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -0
  220. package/lib/typescript/commonjs/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/{src/components → components}/sources/raster-source/RasterSource.d.ts +20 -15
  222. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +75 -0
  226. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
  228. package/lib/typescript/commonjs/{src/components → components}/user-location/NativeUserLocation.d.ts +9 -6
  229. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -0
  230. package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocation.d.ts +4 -2
  231. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -0
  232. package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
  233. package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts.map +1 -0
  234. package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
  235. package/lib/typescript/commonjs/{src/hooks → hooks}/useCurrentPosition.d.ts +2 -2
  236. package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/hooks/useFrozenId.d.ts.map +1 -0
  238. package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts.map +1 -0
  239. package/lib/typescript/{module/src → commonjs}/index.d.ts +4 -3
  240. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  241. package/lib/typescript/commonjs/modules/location/LocationManager.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts.map +1 -0
  243. package/lib/typescript/{module/src → commonjs}/modules/log/LogManager.d.ts +5 -4
  244. package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/{src/modules → modules}/network/NativeNetworkModule.d.ts +0 -2
  247. package/lib/typescript/commonjs/modules/network/NativeNetworkModule.d.ts.map +1 -0
  248. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +24 -0
  249. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -0
  250. package/lib/typescript/commonjs/modules/offline/NativeOfflineModule.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/{src/modules → modules}/offline/OfflineManager.d.ts +110 -63
  252. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -0
  253. package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts.map +1 -0
  254. package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
  255. package/lib/typescript/{module/src → commonjs}/modules/static-map/StaticMapManager.d.ts +15 -7
  256. package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
  258. package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +213 -0
  260. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/{src/plugin → plugin}/MapLibrePluginProps.d.ts +10 -15
  262. package/lib/typescript/commonjs/plugin/MapLibrePluginProps.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/plugin/android.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/{src/plugin → plugin}/ios.d.ts +2 -2
  265. package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -0
  266. package/lib/typescript/commonjs/plugin/withMapLibre.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/types/Anchor.d.ts +16 -0
  268. package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/types/BaseProps.d.ts +7 -0
  270. package/lib/typescript/commonjs/types/BaseProps.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/types/LngLat.d.ts.map +1 -0
  272. package/lib/typescript/commonjs/{src/types → types}/LngLatBounds.d.ts +2 -1
  273. package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/{src/types → types}/MapLibreRNStyles.d.ts +257 -106
  275. package/lib/typescript/commonjs/types/MapLibreRNStyles.d.ts.map +1 -0
  276. package/lib/typescript/commonjs/types/PixelPoint.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/types/PixelPointBounds.d.ts.map +1 -0
  278. package/lib/typescript/{module/src → commonjs}/types/PressEvent.d.ts +3 -0
  279. package/lib/typescript/commonjs/types/PressEvent.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/{src/types → types}/PressEventWithFeatures.d.ts +3 -0
  281. package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts.map +1 -0
  282. package/lib/typescript/{module/src/types/sources → commonjs/types}/PressableSourceProps.d.ts +6 -4
  283. package/lib/typescript/commonjs/types/PressableSourceProps.d.ts.map +1 -0
  284. package/lib/typescript/{module/src → commonjs}/types/ViewPadding.d.ts +3 -0
  285. package/lib/typescript/commonjs/types/ViewPadding.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/utils/BridgeValue.d.ts.map +1 -0
  288. package/lib/typescript/commonjs/utils/StyleValue.d.ts.map +1 -0
  289. package/lib/typescript/{module/src → commonjs}/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  290. package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  291. package/lib/typescript/{module/src → commonjs}/utils/animated/Animated.d.ts +2 -2
  292. package/lib/typescript/commonjs/utils/animated/Animated.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedCoordinatesArray.d.ts +6 -6
  294. package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedGeoJSON.d.ts +2 -1
  297. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts.map +1 -0
  299. package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  300. package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  301. package/lib/typescript/{module/src → commonjs}/utils/convertStyleSpec.d.ts +4 -4
  302. package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/utils/findNodeHandle.d.ts.map +1 -0
  304. package/lib/typescript/commonjs/utils/getNativeFilter.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts.map +1 -0
  306. package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
  307. package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts.map +1 -0
  308. package/lib/typescript/module/{src/components → components}/annotations/callout/Callout.d.ts +3 -2
  309. package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -0
  310. package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
  311. package/lib/typescript/module/components/annotations/marker/Marker.d.ts +79 -0
  312. package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -0
  313. package/lib/typescript/module/{src/components → components}/annotations/marker/MarkerViewNativeComponent.d.ts +12 -2
  314. package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
  315. package/lib/typescript/module/{src/components → components}/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +5 -4
  316. package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
  317. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts +120 -0
  318. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
  319. package/lib/typescript/module/{src/components → components}/camera/Camera.d.ts +85 -43
  320. package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -0
  321. package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts.map +1 -0
  322. package/lib/typescript/module/components/camera/NativeCameraModule.d.ts.map +1 -0
  323. package/lib/typescript/{commonjs/src → module}/components/images/Images.d.ts +20 -12
  324. package/lib/typescript/module/components/images/Images.d.ts.map +1 -0
  325. package/lib/typescript/module/components/images/ImagesNativeComponent.d.ts.map +1 -0
  326. package/lib/typescript/module/components/images/NativeImagesModule.d.ts +6 -0
  327. package/lib/typescript/module/components/images/NativeImagesModule.d.ts.map +1 -0
  328. package/lib/typescript/module/{src/components → components}/layer/Layer.d.ts +41 -67
  329. package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -0
  330. package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts.map +1 -0
  331. package/lib/typescript/module/{src/components → components}/map/AndroidTextureMapViewNativeComponent.d.ts +5 -1
  332. package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
  333. package/lib/typescript/module/{src/components → components}/map/Map.d.ts +154 -78
  334. package/lib/typescript/module/components/map/Map.d.ts.map +1 -0
  335. package/lib/typescript/{commonjs/src → module}/components/map/MapViewNativeComponent.d.ts +5 -1
  336. package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts.map +1 -0
  337. package/lib/typescript/module/components/map/NativeMapViewModule.d.ts.map +1 -0
  338. package/lib/typescript/module/{src/components → components}/sources/geojson-source/GeoJSONSource.d.ts +47 -44
  339. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
  340. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
  341. package/lib/typescript/module/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
  342. package/lib/typescript/module/{src/components → components}/sources/image-source/ImageSource.d.ts +5 -3
  343. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -0
  344. package/lib/typescript/module/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
  345. package/lib/typescript/module/{src/components → components}/sources/raster-source/RasterSource.d.ts +20 -15
  346. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -0
  347. package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
  348. package/lib/typescript/module/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
  349. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +75 -0
  350. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -0
  351. package/lib/typescript/module/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
  352. package/lib/typescript/module/{src/components → components}/user-location/NativeUserLocation.d.ts +9 -6
  353. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -0
  354. package/lib/typescript/module/{src/components → components}/user-location/UserLocation.d.ts +4 -2
  355. package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -0
  356. package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
  357. package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts.map +1 -0
  358. package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
  359. package/lib/typescript/module/{src/hooks → hooks}/useCurrentPosition.d.ts +2 -2
  360. package/lib/typescript/module/hooks/useCurrentPosition.d.ts.map +1 -0
  361. package/lib/typescript/module/hooks/useFrozenId.d.ts.map +1 -0
  362. package/lib/typescript/module/hooks/useNativeBridge.d.ts.map +1 -0
  363. package/lib/typescript/{commonjs/src → module}/index.d.ts +4 -3
  364. package/lib/typescript/module/index.d.ts.map +1 -0
  365. package/lib/typescript/module/modules/location/LocationManager.d.ts.map +1 -0
  366. package/lib/typescript/module/modules/location/NativeLocationModule.d.ts.map +1 -0
  367. package/lib/typescript/{commonjs/src → module}/modules/log/LogManager.d.ts +5 -4
  368. package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -0
  369. package/lib/typescript/module/modules/log/NativeLogModule.d.ts.map +1 -0
  370. package/lib/typescript/module/{src/modules → modules}/network/NativeNetworkModule.d.ts +0 -2
  371. package/lib/typescript/module/modules/network/NativeNetworkModule.d.ts.map +1 -0
  372. package/lib/typescript/module/modules/network/NetworkManager.d.ts +24 -0
  373. package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -0
  374. package/lib/typescript/module/modules/offline/NativeOfflineModule.d.ts.map +1 -0
  375. package/lib/typescript/module/{src/modules → modules}/offline/OfflineManager.d.ts +110 -63
  376. package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -0
  377. package/lib/typescript/module/modules/offline/OfflinePack.d.ts.map +1 -0
  378. package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
  379. package/lib/typescript/{commonjs/src → module}/modules/static-map/StaticMapManager.d.ts +15 -7
  380. package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts.map +1 -0
  381. package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
  382. package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
  383. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +213 -0
  384. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
  385. package/lib/typescript/module/{src/plugin → plugin}/MapLibrePluginProps.d.ts +10 -15
  386. package/lib/typescript/module/plugin/MapLibrePluginProps.d.ts.map +1 -0
  387. package/lib/typescript/module/plugin/android.d.ts.map +1 -0
  388. package/lib/typescript/module/{src/plugin → plugin}/ios.d.ts +2 -2
  389. package/lib/typescript/module/plugin/ios.d.ts.map +1 -0
  390. package/lib/typescript/module/plugin/withMapLibre.d.ts.map +1 -0
  391. package/lib/typescript/module/types/Anchor.d.ts +16 -0
  392. package/lib/typescript/module/types/Anchor.d.ts.map +1 -0
  393. package/lib/typescript/module/types/BaseProps.d.ts +7 -0
  394. package/lib/typescript/module/types/BaseProps.d.ts.map +1 -0
  395. package/lib/typescript/module/types/LngLat.d.ts.map +1 -0
  396. package/lib/typescript/module/{src/types → types}/LngLatBounds.d.ts +2 -1
  397. package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -0
  398. package/lib/typescript/module/{src/types → types}/MapLibreRNStyles.d.ts +257 -106
  399. package/lib/typescript/module/types/MapLibreRNStyles.d.ts.map +1 -0
  400. package/lib/typescript/module/types/PixelPoint.d.ts.map +1 -0
  401. package/lib/typescript/module/types/PixelPointBounds.d.ts.map +1 -0
  402. package/lib/typescript/{commonjs/src → module}/types/PressEvent.d.ts +3 -0
  403. package/lib/typescript/module/types/PressEvent.d.ts.map +1 -0
  404. package/lib/typescript/module/{src/types → types}/PressEventWithFeatures.d.ts +3 -0
  405. package/lib/typescript/module/types/PressEventWithFeatures.d.ts.map +1 -0
  406. package/lib/typescript/{commonjs/src/types/sources → module/types}/PressableSourceProps.d.ts +6 -4
  407. package/lib/typescript/module/types/PressableSourceProps.d.ts.map +1 -0
  408. package/lib/typescript/{commonjs/src → module}/types/ViewPadding.d.ts +3 -0
  409. package/lib/typescript/module/types/ViewPadding.d.ts.map +1 -0
  410. package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts.map +1 -0
  411. package/lib/typescript/module/utils/BridgeValue.d.ts.map +1 -0
  412. package/lib/typescript/module/utils/StyleValue.d.ts.map +1 -0
  413. package/lib/typescript/{commonjs/src → module}/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
  414. package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  415. package/lib/typescript/{commonjs/src → module}/utils/animated/Animated.d.ts +2 -2
  416. package/lib/typescript/module/utils/animated/Animated.d.ts.map +1 -0
  417. package/lib/typescript/module/{src/utils → utils}/animated/AnimatedCoordinatesArray.d.ts +6 -6
  418. package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  419. package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  420. package/lib/typescript/module/{src/utils → utils}/animated/AnimatedGeoJSON.d.ts +2 -1
  421. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
  422. package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts.map +1 -0
  423. package/lib/typescript/module/{src/utils → utils}/animated/AnimatedRouteCoordinatesArray.d.ts +6 -6
  424. package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  425. package/lib/typescript/{commonjs/src → module}/utils/convertStyleSpec.d.ts +4 -4
  426. package/lib/typescript/module/utils/convertStyleSpec.d.ts.map +1 -0
  427. package/lib/typescript/module/utils/findNodeHandle.d.ts.map +1 -0
  428. package/lib/typescript/module/utils/getNativeFilter.d.ts.map +1 -0
  429. package/lib/typescript/module/utils/getStylePropertyType.d.ts.map +1 -0
  430. package/lib/typescript/module/utils/index.d.ts.map +1 -0
  431. package/package.json +23 -44
  432. package/src/components/annotations/callout/Callout.tsx +3 -2
  433. package/src/components/annotations/marker/Marker.tsx +70 -18
  434. package/src/components/annotations/marker/MarkerViewNativeComponent.ts +12 -2
  435. package/src/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +5 -4
  436. package/src/components/annotations/view-annotation/ViewAnnotation.tsx +115 -94
  437. package/src/components/camera/Camera.tsx +149 -111
  438. package/src/components/images/Images.tsx +20 -12
  439. package/src/components/images/NativeImagesModule.ts +11 -0
  440. package/src/components/layer/Layer.tsx +50 -86
  441. package/src/components/map/AndroidTextureMapViewNativeComponent.ts +7 -2
  442. package/src/components/map/Map.tsx +300 -233
  443. package/src/components/map/MapViewNativeComponent.ts +6 -1
  444. package/src/components/sources/geojson-source/GeoJSONSource.tsx +106 -104
  445. package/src/components/sources/image-source/ImageSource.tsx +5 -3
  446. package/src/components/sources/raster-source/RasterSource.tsx +20 -15
  447. package/src/components/sources/vector-source/VectorSource.tsx +67 -59
  448. package/src/components/user-location/NativeUserLocation.tsx +9 -6
  449. package/src/components/user-location/UserLocation.tsx +34 -20
  450. package/src/components/user-location/UserLocationPuck.tsx +20 -20
  451. package/src/components/user-location/UserLocationPuckHeading.tsx +9 -10
  452. package/src/hooks/useCurrentPosition.ts +2 -2
  453. package/src/index.ts +17 -5
  454. package/src/modules/log/LogManager.ts +5 -4
  455. package/src/modules/network/NativeNetworkModule.ts +0 -4
  456. package/src/modules/network/NetworkManager.ts +6 -52
  457. package/src/modules/offline/OfflineManager.ts +109 -62
  458. package/src/modules/static-map/StaticMapManager.ts +15 -7
  459. package/src/modules/transform-request/NativeTransformRequestModule.ts +41 -0
  460. package/src/modules/transform-request/TransformRequestManager.ts +304 -0
  461. package/src/plugin/MapLibrePluginProps.ts +10 -15
  462. package/src/plugin/ios.ts +43 -21
  463. package/src/types/Anchor.ts +5 -6
  464. package/src/types/BaseProps.ts +3 -0
  465. package/src/types/LngLatBounds.ts +2 -1
  466. package/src/types/MapLibreRNStyles.ts +258 -106
  467. package/src/types/PressEvent.ts +3 -0
  468. package/src/types/PressEventWithFeatures.ts +3 -0
  469. package/src/types/{sources/PressableSourceProps.ts → PressableSourceProps.ts} +6 -4
  470. package/src/types/ViewPadding.ts +3 -0
  471. package/src/utils/animated/AbstractAnimatedCoordinates.ts +2 -2
  472. package/src/utils/animated/AnimatedCoordinatesArray.ts +6 -6
  473. package/src/utils/animated/AnimatedGeoJSON.ts +2 -1
  474. package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +6 -6
  475. package/src/utils/convertStyleSpec.ts +4 -4
  476. package/src/utils/getStylePropertyType.ts +1 -1
  477. package/android/src/main/java/org/maplibre/reactnative/http/RequestHeadersInterceptor.kt +0 -65
  478. package/android/src/main/res/layout/annotation.xml +0 -17
  479. package/ios/modules/network/MLRNNetworkHTTPHeaders.h +0 -14
  480. package/ios/modules/network/MLRNNetworkHTTPHeaders.m +0 -97
  481. package/lib/commonjs/types/sources/PressableSourceProps.js.map +0 -1
  482. package/lib/module/types/sources/PressableSourceProps.js.map +0 -1
  483. package/lib/typescript/commonjs/src/components/annotations/LayerAnnotation.d.ts.map +0 -1
  484. package/lib/typescript/commonjs/src/components/annotations/callout/Callout.d.ts.map +0 -1
  485. package/lib/typescript/commonjs/src/components/annotations/callout/CalloutNativeComponent.d.ts.map +0 -1
  486. package/lib/typescript/commonjs/src/components/annotations/marker/Marker.d.ts +0 -52
  487. package/lib/typescript/commonjs/src/components/annotations/marker/Marker.d.ts.map +0 -1
  488. package/lib/typescript/commonjs/src/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +0 -1
  489. package/lib/typescript/commonjs/src/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +0 -1
  490. package/lib/typescript/commonjs/src/components/annotations/view-annotation/ViewAnnotation.d.ts +0 -95
  491. package/lib/typescript/commonjs/src/components/annotations/view-annotation/ViewAnnotation.d.ts.map +0 -1
  492. package/lib/typescript/commonjs/src/components/camera/Camera.d.ts.map +0 -1
  493. package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts.map +0 -1
  494. package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts.map +0 -1
  495. package/lib/typescript/commonjs/src/components/images/Images.d.ts.map +0 -1
  496. package/lib/typescript/commonjs/src/components/images/ImagesNativeComponent.d.ts.map +0 -1
  497. package/lib/typescript/commonjs/src/components/layer/Layer.d.ts.map +0 -1
  498. package/lib/typescript/commonjs/src/components/layer/LayerNativeComponent.d.ts.map +0 -1
  499. package/lib/typescript/commonjs/src/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +0 -1
  500. package/lib/typescript/commonjs/src/components/map/Map.d.ts.map +0 -1
  501. package/lib/typescript/commonjs/src/components/map/MapViewNativeComponent.d.ts.map +0 -1
  502. package/lib/typescript/commonjs/src/components/map/NativeMapViewModule.d.ts.map +0 -1
  503. package/lib/typescript/commonjs/src/components/sources/geojson-source/GeoJSONSource.d.ts.map +0 -1
  504. package/lib/typescript/commonjs/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +0 -1
  505. package/lib/typescript/commonjs/src/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +0 -1
  506. package/lib/typescript/commonjs/src/components/sources/image-source/ImageSource.d.ts.map +0 -1
  507. package/lib/typescript/commonjs/src/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +0 -1
  508. package/lib/typescript/commonjs/src/components/sources/raster-source/RasterSource.d.ts.map +0 -1
  509. package/lib/typescript/commonjs/src/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +0 -1
  510. package/lib/typescript/commonjs/src/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +0 -1
  511. package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSource.d.ts +0 -66
  512. package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSource.d.ts.map +0 -1
  513. package/lib/typescript/commonjs/src/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +0 -1
  514. package/lib/typescript/commonjs/src/components/user-location/NativeUserLocation.d.ts.map +0 -1
  515. package/lib/typescript/commonjs/src/components/user-location/UserLocation.d.ts.map +0 -1
  516. package/lib/typescript/commonjs/src/components/user-location/UserLocationNativeComponent.d.ts.map +0 -1
  517. package/lib/typescript/commonjs/src/components/user-location/UserLocationPuck.d.ts.map +0 -1
  518. package/lib/typescript/commonjs/src/components/user-location/UserLocationPuckHeading.d.ts.map +0 -1
  519. package/lib/typescript/commonjs/src/hooks/useCurrentPosition.d.ts.map +0 -1
  520. package/lib/typescript/commonjs/src/hooks/useFrozenId.d.ts.map +0 -1
  521. package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +0 -1
  522. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  523. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +0 -1
  524. package/lib/typescript/commonjs/src/modules/location/NativeLocationModule.d.ts.map +0 -1
  525. package/lib/typescript/commonjs/src/modules/log/LogManager.d.ts.map +0 -1
  526. package/lib/typescript/commonjs/src/modules/log/NativeLogModule.d.ts.map +0 -1
  527. package/lib/typescript/commonjs/src/modules/network/NativeNetworkModule.d.ts.map +0 -1
  528. package/lib/typescript/commonjs/src/modules/network/NetworkManager.d.ts +0 -56
  529. package/lib/typescript/commonjs/src/modules/network/NetworkManager.d.ts.map +0 -1
  530. package/lib/typescript/commonjs/src/modules/offline/NativeOfflineModule.d.ts.map +0 -1
  531. package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +0 -1
  532. package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +0 -1
  533. package/lib/typescript/commonjs/src/modules/static-map/NativeStaticMapModule.d.ts.map +0 -1
  534. package/lib/typescript/commonjs/src/modules/static-map/StaticMapManager.d.ts.map +0 -1
  535. package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +0 -1
  536. package/lib/typescript/commonjs/src/plugin/android.d.ts.map +0 -1
  537. package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +0 -1
  538. package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +0 -1
  539. package/lib/typescript/commonjs/src/types/Anchor.d.ts +0 -17
  540. package/lib/typescript/commonjs/src/types/Anchor.d.ts.map +0 -1
  541. package/lib/typescript/commonjs/src/types/BaseProps.d.ts +0 -4
  542. package/lib/typescript/commonjs/src/types/BaseProps.d.ts.map +0 -1
  543. package/lib/typescript/commonjs/src/types/LngLat.d.ts.map +0 -1
  544. package/lib/typescript/commonjs/src/types/LngLatBounds.d.ts.map +0 -1
  545. package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +0 -1
  546. package/lib/typescript/commonjs/src/types/PixelPoint.d.ts.map +0 -1
  547. package/lib/typescript/commonjs/src/types/PixelPointBounds.d.ts.map +0 -1
  548. package/lib/typescript/commonjs/src/types/PressEvent.d.ts.map +0 -1
  549. package/lib/typescript/commonjs/src/types/PressEventWithFeatures.d.ts.map +0 -1
  550. package/lib/typescript/commonjs/src/types/ViewPadding.d.ts.map +0 -1
  551. package/lib/typescript/commonjs/src/types/codegen/UnsafeMixed.d.ts.map +0 -1
  552. package/lib/typescript/commonjs/src/types/sources/PressableSourceProps.d.ts.map +0 -1
  553. package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +0 -1
  554. package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +0 -1
  555. package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +0 -1
  556. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +0 -1
  557. package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +0 -1
  558. package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +0 -1
  559. package/lib/typescript/commonjs/src/utils/animated/AnimatedGeoJSON.d.ts.map +0 -1
  560. package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +0 -1
  561. package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +0 -1
  562. package/lib/typescript/commonjs/src/utils/convertStyleSpec.d.ts.map +0 -1
  563. package/lib/typescript/commonjs/src/utils/findNodeHandle.d.ts.map +0 -1
  564. package/lib/typescript/commonjs/src/utils/getNativeFilter.d.ts.map +0 -1
  565. package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +0 -1
  566. package/lib/typescript/commonjs/src/utils/index.d.ts.map +0 -1
  567. package/lib/typescript/module/src/components/annotations/LayerAnnotation.d.ts.map +0 -1
  568. package/lib/typescript/module/src/components/annotations/callout/Callout.d.ts.map +0 -1
  569. package/lib/typescript/module/src/components/annotations/callout/CalloutNativeComponent.d.ts.map +0 -1
  570. package/lib/typescript/module/src/components/annotations/marker/Marker.d.ts +0 -52
  571. package/lib/typescript/module/src/components/annotations/marker/Marker.d.ts.map +0 -1
  572. package/lib/typescript/module/src/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +0 -1
  573. package/lib/typescript/module/src/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +0 -1
  574. package/lib/typescript/module/src/components/annotations/view-annotation/ViewAnnotation.d.ts +0 -95
  575. package/lib/typescript/module/src/components/annotations/view-annotation/ViewAnnotation.d.ts.map +0 -1
  576. package/lib/typescript/module/src/components/camera/Camera.d.ts.map +0 -1
  577. package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts.map +0 -1
  578. package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts.map +0 -1
  579. package/lib/typescript/module/src/components/images/Images.d.ts.map +0 -1
  580. package/lib/typescript/module/src/components/images/ImagesNativeComponent.d.ts.map +0 -1
  581. package/lib/typescript/module/src/components/layer/Layer.d.ts.map +0 -1
  582. package/lib/typescript/module/src/components/layer/LayerNativeComponent.d.ts.map +0 -1
  583. package/lib/typescript/module/src/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +0 -1
  584. package/lib/typescript/module/src/components/map/Map.d.ts.map +0 -1
  585. package/lib/typescript/module/src/components/map/MapViewNativeComponent.d.ts.map +0 -1
  586. package/lib/typescript/module/src/components/map/NativeMapViewModule.d.ts.map +0 -1
  587. package/lib/typescript/module/src/components/sources/geojson-source/GeoJSONSource.d.ts.map +0 -1
  588. package/lib/typescript/module/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +0 -1
  589. package/lib/typescript/module/src/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +0 -1
  590. package/lib/typescript/module/src/components/sources/image-source/ImageSource.d.ts.map +0 -1
  591. package/lib/typescript/module/src/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +0 -1
  592. package/lib/typescript/module/src/components/sources/raster-source/RasterSource.d.ts.map +0 -1
  593. package/lib/typescript/module/src/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +0 -1
  594. package/lib/typescript/module/src/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +0 -1
  595. package/lib/typescript/module/src/components/sources/vector-source/VectorSource.d.ts +0 -66
  596. package/lib/typescript/module/src/components/sources/vector-source/VectorSource.d.ts.map +0 -1
  597. package/lib/typescript/module/src/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +0 -1
  598. package/lib/typescript/module/src/components/user-location/NativeUserLocation.d.ts.map +0 -1
  599. package/lib/typescript/module/src/components/user-location/UserLocation.d.ts.map +0 -1
  600. package/lib/typescript/module/src/components/user-location/UserLocationNativeComponent.d.ts.map +0 -1
  601. package/lib/typescript/module/src/components/user-location/UserLocationPuck.d.ts.map +0 -1
  602. package/lib/typescript/module/src/components/user-location/UserLocationPuckHeading.d.ts.map +0 -1
  603. package/lib/typescript/module/src/hooks/useCurrentPosition.d.ts.map +0 -1
  604. package/lib/typescript/module/src/hooks/useFrozenId.d.ts.map +0 -1
  605. package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +0 -1
  606. package/lib/typescript/module/src/index.d.ts.map +0 -1
  607. package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +0 -1
  608. package/lib/typescript/module/src/modules/location/NativeLocationModule.d.ts.map +0 -1
  609. package/lib/typescript/module/src/modules/log/LogManager.d.ts.map +0 -1
  610. package/lib/typescript/module/src/modules/log/NativeLogModule.d.ts.map +0 -1
  611. package/lib/typescript/module/src/modules/network/NativeNetworkModule.d.ts.map +0 -1
  612. package/lib/typescript/module/src/modules/network/NetworkManager.d.ts +0 -56
  613. package/lib/typescript/module/src/modules/network/NetworkManager.d.ts.map +0 -1
  614. package/lib/typescript/module/src/modules/offline/NativeOfflineModule.d.ts.map +0 -1
  615. package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +0 -1
  616. package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +0 -1
  617. package/lib/typescript/module/src/modules/static-map/NativeStaticMapModule.d.ts.map +0 -1
  618. package/lib/typescript/module/src/modules/static-map/StaticMapManager.d.ts.map +0 -1
  619. package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +0 -1
  620. package/lib/typescript/module/src/plugin/android.d.ts.map +0 -1
  621. package/lib/typescript/module/src/plugin/ios.d.ts.map +0 -1
  622. package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +0 -1
  623. package/lib/typescript/module/src/types/Anchor.d.ts +0 -17
  624. package/lib/typescript/module/src/types/Anchor.d.ts.map +0 -1
  625. package/lib/typescript/module/src/types/BaseProps.d.ts +0 -4
  626. package/lib/typescript/module/src/types/BaseProps.d.ts.map +0 -1
  627. package/lib/typescript/module/src/types/LngLat.d.ts.map +0 -1
  628. package/lib/typescript/module/src/types/LngLatBounds.d.ts.map +0 -1
  629. package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +0 -1
  630. package/lib/typescript/module/src/types/PixelPoint.d.ts.map +0 -1
  631. package/lib/typescript/module/src/types/PixelPointBounds.d.ts.map +0 -1
  632. package/lib/typescript/module/src/types/PressEvent.d.ts.map +0 -1
  633. package/lib/typescript/module/src/types/PressEventWithFeatures.d.ts.map +0 -1
  634. package/lib/typescript/module/src/types/ViewPadding.d.ts.map +0 -1
  635. package/lib/typescript/module/src/types/codegen/UnsafeMixed.d.ts.map +0 -1
  636. package/lib/typescript/module/src/types/sources/PressableSourceProps.d.ts.map +0 -1
  637. package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +0 -1
  638. package/lib/typescript/module/src/utils/StyleValue.d.ts.map +0 -1
  639. package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +0 -1
  640. package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +0 -1
  641. package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +0 -1
  642. package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +0 -1
  643. package/lib/typescript/module/src/utils/animated/AnimatedGeoJSON.d.ts.map +0 -1
  644. package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +0 -1
  645. package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +0 -1
  646. package/lib/typescript/module/src/utils/convertStyleSpec.d.ts.map +0 -1
  647. package/lib/typescript/module/src/utils/findNodeHandle.d.ts.map +0 -1
  648. package/lib/typescript/module/src/utils/getNativeFilter.d.ts.map +0 -1
  649. package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +0 -1
  650. package/lib/typescript/module/src/utils/index.d.ts.map +0 -1
  651. /package/android/src/main/res/drawable-xxhdpi/{red_marker.png → default_marker.png} +0 -0
  652. /package/ios/{components/images → utils}/MLRNImageUtils.h +0 -0
  653. /package/ios/{components/images → utils}/MLRNImageUtils.m +0 -0
  654. /package/lib/commonjs/types/{sources/PressableSourceProps.js → PressableSourceProps.js} +0 -0
  655. /package/lib/module/types/{sources/PressableSourceProps.js → PressableSourceProps.js} +0 -0
  656. /package/lib/typescript/commonjs/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
  657. /package/lib/typescript/commonjs/{src/components → components}/annotations/callout/CalloutNativeComponent.d.ts +0 -0
  658. /package/lib/typescript/commonjs/{src/components → components}/camera/CameraNativeComponent.d.ts +0 -0
  659. /package/lib/typescript/commonjs/{src/components → components}/camera/NativeCameraModule.d.ts +0 -0
  660. /package/lib/typescript/commonjs/{src/components → components}/images/ImagesNativeComponent.d.ts +0 -0
  661. /package/lib/typescript/commonjs/{src/components → components}/layer/LayerNativeComponent.d.ts +0 -0
  662. /package/lib/typescript/commonjs/{src/components → components}/map/NativeMapViewModule.d.ts +0 -0
  663. /package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +0 -0
  664. /package/lib/typescript/commonjs/{src/components → components}/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +0 -0
  665. /package/lib/typescript/commonjs/{src/components → components}/sources/image-source/ImageSourceNativeComponent.d.ts +0 -0
  666. /package/lib/typescript/commonjs/{src/components → components}/sources/raster-source/RasterSourceNativeComponent.d.ts +0 -0
  667. /package/lib/typescript/commonjs/{src/components → components}/sources/vector-source/NativeVectorSourceModule.d.ts +0 -0
  668. /package/lib/typescript/commonjs/{src/components → components}/sources/vector-source/VectorSourceNativeComponent.d.ts +0 -0
  669. /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationNativeComponent.d.ts +0 -0
  670. /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationPuck.d.ts +0 -0
  671. /package/lib/typescript/commonjs/{src/components → components}/user-location/UserLocationPuckHeading.d.ts +0 -0
  672. /package/lib/typescript/commonjs/{src/hooks → hooks}/useFrozenId.d.ts +0 -0
  673. /package/lib/typescript/commonjs/{src/hooks → hooks}/useNativeBridge.d.ts +0 -0
  674. /package/lib/typescript/commonjs/{src/modules → modules}/location/LocationManager.d.ts +0 -0
  675. /package/lib/typescript/commonjs/{src/modules → modules}/location/NativeLocationModule.d.ts +0 -0
  676. /package/lib/typescript/commonjs/{src/modules → modules}/log/NativeLogModule.d.ts +0 -0
  677. /package/lib/typescript/commonjs/{src/modules → modules}/offline/NativeOfflineModule.d.ts +0 -0
  678. /package/lib/typescript/commonjs/{src/modules → modules}/offline/OfflinePack.d.ts +0 -0
  679. /package/lib/typescript/commonjs/{src/modules → modules}/static-map/NativeStaticMapModule.d.ts +0 -0
  680. /package/lib/typescript/commonjs/{src/plugin → plugin}/android.d.ts +0 -0
  681. /package/lib/typescript/commonjs/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
  682. /package/lib/typescript/commonjs/{src/types → types}/LngLat.d.ts +0 -0
  683. /package/lib/typescript/commonjs/{src/types → types}/PixelPoint.d.ts +0 -0
  684. /package/lib/typescript/commonjs/{src/types → types}/PixelPointBounds.d.ts +0 -0
  685. /package/lib/typescript/commonjs/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
  686. /package/lib/typescript/commonjs/{src/utils → utils}/BridgeValue.d.ts +0 -0
  687. /package/lib/typescript/commonjs/{src/utils → utils}/StyleValue.d.ts +0 -0
  688. /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -0
  689. /package/lib/typescript/commonjs/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
  690. /package/lib/typescript/commonjs/{src/utils → utils}/findNodeHandle.d.ts +0 -0
  691. /package/lib/typescript/commonjs/{src/utils → utils}/getNativeFilter.d.ts +0 -0
  692. /package/lib/typescript/commonjs/{src/utils → utils}/getStylePropertyType.d.ts +0 -0
  693. /package/lib/typescript/commonjs/{src/utils → utils}/index.d.ts +0 -0
  694. /package/lib/typescript/module/{src/components → components}/annotations/LayerAnnotation.d.ts +0 -0
  695. /package/lib/typescript/module/{src/components → components}/annotations/callout/CalloutNativeComponent.d.ts +0 -0
  696. /package/lib/typescript/module/{src/components → components}/camera/CameraNativeComponent.d.ts +0 -0
  697. /package/lib/typescript/module/{src/components → components}/camera/NativeCameraModule.d.ts +0 -0
  698. /package/lib/typescript/module/{src/components → components}/images/ImagesNativeComponent.d.ts +0 -0
  699. /package/lib/typescript/module/{src/components → components}/layer/LayerNativeComponent.d.ts +0 -0
  700. /package/lib/typescript/module/{src/components → components}/map/NativeMapViewModule.d.ts +0 -0
  701. /package/lib/typescript/module/{src/components → components}/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +0 -0
  702. /package/lib/typescript/module/{src/components → components}/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +0 -0
  703. /package/lib/typescript/module/{src/components → components}/sources/image-source/ImageSourceNativeComponent.d.ts +0 -0
  704. /package/lib/typescript/module/{src/components → components}/sources/raster-source/RasterSourceNativeComponent.d.ts +0 -0
  705. /package/lib/typescript/module/{src/components → components}/sources/vector-source/NativeVectorSourceModule.d.ts +0 -0
  706. /package/lib/typescript/module/{src/components → components}/sources/vector-source/VectorSourceNativeComponent.d.ts +0 -0
  707. /package/lib/typescript/module/{src/components → components}/user-location/UserLocationNativeComponent.d.ts +0 -0
  708. /package/lib/typescript/module/{src/components → components}/user-location/UserLocationPuck.d.ts +0 -0
  709. /package/lib/typescript/module/{src/components → components}/user-location/UserLocationPuckHeading.d.ts +0 -0
  710. /package/lib/typescript/module/{src/hooks → hooks}/useFrozenId.d.ts +0 -0
  711. /package/lib/typescript/module/{src/hooks → hooks}/useNativeBridge.d.ts +0 -0
  712. /package/lib/typescript/module/{src/modules → modules}/location/LocationManager.d.ts +0 -0
  713. /package/lib/typescript/module/{src/modules → modules}/location/NativeLocationModule.d.ts +0 -0
  714. /package/lib/typescript/module/{src/modules → modules}/log/NativeLogModule.d.ts +0 -0
  715. /package/lib/typescript/module/{src/modules → modules}/offline/NativeOfflineModule.d.ts +0 -0
  716. /package/lib/typescript/module/{src/modules → modules}/offline/OfflinePack.d.ts +0 -0
  717. /package/lib/typescript/module/{src/modules → modules}/static-map/NativeStaticMapModule.d.ts +0 -0
  718. /package/lib/typescript/module/{src/plugin → plugin}/android.d.ts +0 -0
  719. /package/lib/typescript/module/{src/plugin → plugin}/withMapLibre.d.ts +0 -0
  720. /package/lib/typescript/module/{src/types → types}/LngLat.d.ts +0 -0
  721. /package/lib/typescript/module/{src/types → types}/PixelPoint.d.ts +0 -0
  722. /package/lib/typescript/module/{src/types → types}/PixelPointBounds.d.ts +0 -0
  723. /package/lib/typescript/module/{src/types → types}/codegen/UnsafeMixed.d.ts +0 -0
  724. /package/lib/typescript/module/{src/utils → utils}/BridgeValue.d.ts +0 -0
  725. /package/lib/typescript/module/{src/utils → utils}/StyleValue.d.ts +0 -0
  726. /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedExtractCoordinateFromArray.d.ts +0 -0
  727. /package/lib/typescript/module/{src/utils → utils}/animated/AnimatedPoint.d.ts +0 -0
  728. /package/lib/typescript/module/{src/utils → utils}/findNodeHandle.d.ts +0 -0
  729. /package/lib/typescript/module/{src/utils → utils}/getNativeFilter.d.ts +0 -0
  730. /package/lib/typescript/module/{src/utils → utils}/getStylePropertyType.d.ts +0 -0
  731. /package/lib/typescript/module/{src/utils → utils}/index.d.ts +0 -0
@@ -13,24 +13,26 @@ export type ExpressionField = string | number | boolean | Expression | Expressio
13
13
  [key: string]: ExpressionField;
14
14
  };
15
15
  export type Expression = [ExpressionName, ...ExpressionField[]];
16
- type ExpressionParameters = "zoom" | "feature" | "feature-state" | "sky-radial-progress" | "line-progress" | "heatmap-density";
16
+ type ExpressionParameters = "zoom" | "feature" | "feature-state" | "global-state" | "sky-radial-progress" | "line-progress" | "heatmap-density";
17
17
  type ResolvedImageType = ImageSourcePropType | string;
18
18
  export type Value<T, AllowedParameters extends ExpressionParameters[] = []> = T | Expression;
19
19
  export interface FillLayerStyle {
20
20
  /**
21
- * Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
21
+ * Sorts features in ascending order based on this value. Features with a higher
22
+ * sort key will appear above features with a lower sort key.
22
23
  */
23
24
  fillSortKey?: Value<number, ["zoom", "feature"]>;
24
25
  /**
25
26
  * Whether this layer is displayed.
26
27
  */
27
- visibility?: "visible" | "none";
28
+ visibility?: Value<"visible" | "none", ["global-state"]>;
28
29
  /**
29
30
  * Whether or not the fill should be antialiased.
30
31
  */
31
32
  fillAntialias?: Value<boolean, ["zoom"]>;
32
33
  /**
33
- * The opacity of the entire fill layer. In contrast to the `fillColor`, this value will also affect the 1px stroke around the fill, if the stroke is used.
34
+ * The opacity of the entire fill layer. In contrast to the `fillColor` , this
35
+ * value will also affect the 1px stroke around the fill, if the stroke is used.
34
36
  */
35
37
  fillOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
36
38
  /**
@@ -38,7 +40,9 @@ export interface FillLayerStyle {
38
40
  */
39
41
  fillOpacityTransition?: Transition;
40
42
  /**
41
- * The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.
43
+ * The color of the filled part of this layer. This color can be specified as
44
+ * `rgba` with an alpha component and the color's opacity will not affect the
45
+ * opacity of the 1px stroke, if it is used.
42
46
  *
43
47
  * @disabledBy fillPattern
44
48
  */
@@ -48,17 +52,20 @@ export interface FillLayerStyle {
48
52
  */
49
53
  fillColorTransition?: Transition;
50
54
  /**
51
- * The outline color of the fill. Matches the value of `fillColor` if unspecified.
55
+ * The outline color of the fill. Matches the value of `fillColor` if
56
+ * unspecified.
52
57
  *
53
58
  * @disabledBy fillPattern
54
59
  */
55
60
  fillOutlineColor?: Value<string, ["zoom", "feature", "feature-state"]>;
56
61
  /**
57
- * The transition affecting any changes to this layer’s fillOutlineColor property.
62
+ * The transition affecting any changes to this layer’s fillOutlineColor
63
+ * property.
58
64
  */
59
65
  fillOutlineColorTransition?: Transition;
60
66
  /**
61
- * The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
67
+ * The geometry's offset. Values are [x, y] where negatives indicate left and
68
+ * up, respectively.
62
69
  */
63
70
  fillTranslate?: Value<Translation, ["zoom"]>;
64
71
  /**
@@ -72,7 +79,10 @@ export interface FillLayerStyle {
72
79
  */
73
80
  fillTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
74
81
  /**
75
- * Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
82
+ * Name of image in sprite to use for drawing image fills. For seamless
83
+ * patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
84
+ * Note that zoomDependent expressions will be evaluated only at integer zoom
85
+ * levels.
76
86
  */
77
87
  fillPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
78
88
  /**
@@ -84,7 +94,7 @@ export interface LineLayerStyle {
84
94
  /**
85
95
  * The display of line endings.
86
96
  */
87
- lineCap?: Value<"butt" | "round" | "square", ["zoom"]>;
97
+ lineCap?: Value<"butt" | "round" | "square", ["zoom", "feature"]>;
88
98
  /**
89
99
  * The display of lines when joining.
90
100
  */
@@ -92,19 +102,20 @@ export interface LineLayerStyle {
92
102
  /**
93
103
  * Used to automatically convert miter joins to bevel joins for sharp angles.
94
104
  */
95
- lineMiterLimit?: Value<number, ["zoom"]>;
105
+ lineMiterLimit?: Value<number, ["zoom", "feature"]>;
96
106
  /**
97
107
  * Used to automatically convert round joins to miter joins for shallow angles.
98
108
  */
99
- lineRoundLimit?: Value<number, ["zoom"]>;
109
+ lineRoundLimit?: Value<number, ["zoom", "feature"]>;
100
110
  /**
101
- * Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
111
+ * Sorts features in ascending order based on this value. Features with a higher
112
+ * sort key will appear above features with a lower sort key.
102
113
  */
103
114
  lineSortKey?: Value<number, ["zoom", "feature"]>;
104
115
  /**
105
116
  * Whether this layer is displayed.
106
117
  */
107
- visibility?: "visible" | "none";
118
+ visibility?: Value<"visible" | "none", ["global-state"]>;
108
119
  /**
109
120
  * The opacity at which the line will be drawn.
110
121
  */
@@ -124,7 +135,8 @@ export interface LineLayerStyle {
124
135
  */
125
136
  lineColorTransition?: Transition;
126
137
  /**
127
- * The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
138
+ * The geometry's offset. Values are [x, y] where negatives indicate left and
139
+ * up, respectively.
128
140
  */
129
141
  lineTranslate?: Value<Translation, ["zoom"]>;
130
142
  /**
@@ -146,7 +158,8 @@ export interface LineLayerStyle {
146
158
  */
147
159
  lineWidthTransition?: Transition;
148
160
  /**
149
- * Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
161
+ * Draws a line casing outside of a line's actual path. Value indicates the
162
+ * width of the inner gap.
150
163
  */
151
164
  lineGapWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
152
165
  /**
@@ -154,7 +167,10 @@ export interface LineLayerStyle {
154
167
  */
155
168
  lineGapWidthTransition?: Transition;
156
169
  /**
157
- * The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.
170
+ * The line's offset. For linear features, a positive value offsets the line to
171
+ * the right, relative to the direction of the line, and a negative value to the
172
+ * left. For polygon features, a positive value results in an inset, and a
173
+ * negative value results in an outset.
158
174
  */
159
175
  lineOffset?: Value<number, ["zoom", "feature", "feature-state"]>;
160
176
  /**
@@ -170,7 +186,14 @@ export interface LineLayerStyle {
170
186
  */
171
187
  lineBlurTransition?: Transition;
172
188
  /**
173
- * Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. ZoomDependent expressions will be evaluated only at integer zoom levels. The only way to create an array value is using `["literal", [...]]`; arrays cannot be read from or derived from feature properties.
189
+ * Specifies the lengths of the alternating dashes and gaps that form the dash
190
+ * pattern. The lengths are later scaled by the line width. To convert a dash
191
+ * length to pixels, multiply the length by the current line width. GeoJSON
192
+ * sources with `lineMetrics: true` specified won't render dashed lines to the
193
+ * expected scale. ZoomDependent expressions will be evaluated only at integer
194
+ * zoom levels. The only way to create an array value is using
195
+ * `["literal", [...]]` ; arrays cannot be read from or derived from feature
196
+ * properties.
174
197
  *
175
198
  * @disabledBy linePattern
176
199
  */
@@ -180,7 +203,9 @@ export interface LineLayerStyle {
180
203
  */
181
204
  lineDasharrayTransition?: Transition;
182
205
  /**
183
- * Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
206
+ * Name of image in sprite to use for drawing image lines. For seamless
207
+ * patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that
208
+ * zoomDependent expressions will be evaluated only at integer zoom levels.
184
209
  */
185
210
  linePattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
186
211
  /**
@@ -188,7 +213,8 @@ export interface LineLayerStyle {
188
213
  */
189
214
  linePatternTransition?: Transition;
190
215
  /**
191
- * Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.
216
+ * Defines a gradient with which to color a line feature. Can only be used with
217
+ * GeoJSON sources that specify `"lineMetrics": true` .
192
218
  *
193
219
  * @disabledBy lineDasharray, linePattern
194
220
  */
@@ -204,19 +230,33 @@ export interface SymbolLayerStyle {
204
230
  */
205
231
  symbolSpacing?: Value<number, ["zoom"]>;
206
232
  /**
207
- * If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like MapLibre GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.
233
+ * If true, the symbols will not cross tile edges to avoid mutual collisions.
234
+ * Recommended in layers that don't have enough padding in the vector tile to
235
+ * prevent collisions, or if it is a point symbol layer placed after a line
236
+ * symbol layer. When using a client that supports global collision detection,
237
+ * like MapLibre GL JS version 0.42.0 or greater, enabling this property is not
238
+ * needed to prevent clipped labels at tile boundaries.
208
239
  */
209
240
  symbolAvoidEdges?: Value<boolean, ["zoom"]>;
210
241
  /**
211
- * Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When `iconAllowOverlap` or `textAllowOverlap` is `false`, features with a lower sort key will have priority during placement. When `iconAllowOverlap` or `textAllowOverlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.
242
+ * Sorts features in ascending order based on this value. Features with lower
243
+ * sort keys are drawn and placed first. When `iconAllowOverlap` or
244
+ * `textAllowOverlap` is `false` , features with a lower sort key will have
245
+ * priority during placement. When `iconAllowOverlap` or `textAllowOverlap` is
246
+ * set to `true` , features with a higher sort key will overlap over features
247
+ * with a lower sort key.
212
248
  */
213
249
  symbolSortKey?: Value<number, ["zoom", "feature"]>;
214
250
  /**
215
- * Determines whether overlapping symbols in the same layer are rendered in the order that they appear in the data source or by their yPosition relative to the viewport. To control the order and prioritization of symbols otherwise, use `symbolSortKey`.
251
+ * Determines whether overlapping symbols in the same layer are rendered in the
252
+ * order that they appear in the data source or by their yPosition relative to
253
+ * the viewport. To control the order and prioritization of symbols otherwise,
254
+ * use `symbolSortKey` .
216
255
  */
217
256
  symbolZOrder?: Value<"auto" | "viewport-y" | "source", ["zoom"]>;
218
257
  /**
219
- * If true, the icon will be visible even if it collides with other previously drawn symbols.
258
+ * If true, the icon will be visible even if it collides with other previously
259
+ * drawn symbols.
220
260
  *
221
261
  * @requires iconImage
222
262
  *
@@ -230,19 +270,23 @@ export interface SymbolLayerStyle {
230
270
  */
231
271
  iconIgnorePlacement?: Value<boolean, ["zoom"]>;
232
272
  /**
233
- * If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.
273
+ * If true, text will display without their corresponding icons when the icon
274
+ * collides with other symbols and the text does not.
234
275
  *
235
276
  * @requires iconImage, textField
236
277
  */
237
278
  iconOptional?: Value<boolean, ["zoom"]>;
238
279
  /**
239
- * In combination with `symbolPlacement`, determines the rotation behavior of icons.
280
+ * In combination with `symbolPlacement` , determines the rotation behavior of
281
+ * icons.
240
282
  *
241
283
  * @requires iconImage
242
284
  */
243
285
  iconRotationAlignment?: Value<"map" | "viewport" | "auto", ["zoom"]>;
244
286
  /**
245
- * Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `iconSize`. 1 is the original size; 3 triples the size of the image.
287
+ * Scales the original size of the icon by the provided factor. The new pixel
288
+ * size of the image will be the original pixel size multiplied by `iconSize` .
289
+ * 1 is the original size; 3 triples the size of the image.
246
290
  *
247
291
  * @requires iconImage
248
292
  */
@@ -254,7 +298,8 @@ export interface SymbolLayerStyle {
254
298
  */
255
299
  iconTextFit?: Value<"none" | "width" | "height" | "both", ["zoom"]>;
256
300
  /**
257
- * Size of the additional area added to dimensions determined by `iconTextFit`, in clockwise order: top, right, bottom, left.
301
+ * Size of the additional area added to dimensions determined by `iconTextFit` ,
302
+ * in clockwise order: top, right, bottom, left.
258
303
  *
259
304
  * @requires iconImage, textField
260
305
  */
@@ -270,19 +315,25 @@ export interface SymbolLayerStyle {
270
315
  */
271
316
  iconRotate?: Value<number, ["zoom", "feature"]>;
272
317
  /**
273
- * Size of additional area round the icon bounding box used for detecting symbol collisions.
318
+ * Size of additional area round the icon bounding box used for detecting symbol
319
+ * collisions.
274
320
  *
275
321
  * @requires iconImage
276
322
  */
277
323
  iconPadding?: Value<number[], ["zoom", "feature"]>;
278
324
  /**
279
- * If true, the icon may be flipped to prevent it from being rendered upsideDown.
325
+ * If true, the icon may be flipped to prevent it from being rendered
326
+ * upsideDown.
280
327
  *
281
328
  * @requires iconImage
282
329
  */
283
330
  iconKeepUpright?: Value<boolean, ["zoom"]>;
284
331
  /**
285
- * Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `iconSize` to obtain the final offset in pixels. When combined with `iconRotate` the offset will be as if the rotated direction was up.
332
+ * Offset distance of icon from its anchor. Positive values indicate right and
333
+ * down, while negative values indicate left and up. Each component is
334
+ * multiplied by the value of `iconSize` to obtain the final offset in pixels.
335
+ * When combined with `iconRotate` the offset will be as if the rotated
336
+ * direction was up.
286
337
  *
287
338
  * @requires iconImage
288
339
  */
@@ -309,7 +360,8 @@ export interface SymbolLayerStyle {
309
360
  */
310
361
  textPitchAlignment?: Value<"map" | "viewport" | "auto", ["zoom"]>;
311
362
  /**
312
- * In combination with `symbolPlacement`, determines the rotation behavior of the individual glyphs forming the text.
363
+ * In combination with `symbolPlacement` , determines the rotation behavior of
364
+ * the individual glyphs forming the text.
313
365
  *
314
366
  * @requires textField
315
367
  */
@@ -317,11 +369,15 @@ export interface SymbolLayerStyle {
317
369
  "zoom"
318
370
  ]>;
319
371
  /**
320
- * Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.
372
+ * Value to use for a text label. If a plain `string` is provided, it will be
373
+ * treated as a `formatted` with default/inherited formatting options.
321
374
  */
322
375
  textField?: Value<FormattedString, ["zoom", "feature"]>;
323
376
  /**
324
- * Fonts to use for displaying text. If the `glyphs` root property is specified, this array is joined together and interpreted as a font stack name. Otherwise, it is interpreted as a cascading fallback list of local font names.
377
+ * Fonts to use for displaying text. If the `glyphs` root property is specified,
378
+ * this array is joined together and interpreted as a font stack name.
379
+ * Otherwise, it is interpreted as a cascading fallback list of local font
380
+ * names.
325
381
  *
326
382
  * @requires textField
327
383
  */
@@ -360,13 +416,20 @@ export interface SymbolLayerStyle {
360
416
  "feature"
361
417
  ]>;
362
418
  /**
363
- * Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `textVariableAnchor`, which defaults to using the twoDimensional `textOffset` if present.
419
+ * Radial offset of text, in the direction of the symbol's anchor. Useful in
420
+ * combination with `textVariableAnchor` , which defaults to using the
421
+ * twoDimensional `textOffset` if present.
364
422
  *
365
423
  * @requires textField
366
424
  */
367
425
  textRadialOffset?: Value<number, ["zoom", "feature"]>;
368
426
  /**
369
- * To increase the chance of placing highPriority labels on the map, you can provide an array of `textAnchor` locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use `textJustify: auto` to choose justification based on anchor position. To apply an offset, use the `textRadialOffset` or the twoDimensional `textOffset`.
427
+ * To increase the chance of placing highPriority labels on the map, you can
428
+ * provide an array of `textAnchor` locations: the renderer will attempt to
429
+ * place the label at each location, in order, before moving onto the next
430
+ * label. Use `textJustify: auto` to choose justification based on anchor
431
+ * position. To apply an offset, use the `textRadialOffset` or the
432
+ * twoDimensional `textOffset` .
370
433
  *
371
434
  * @requires textField
372
435
  */
@@ -391,7 +454,12 @@ export interface SymbolLayerStyle {
391
454
  */
392
455
  textMaxAngle?: Value<number, ["zoom"]>;
393
456
  /**
394
- * The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.
457
+ * The property allows control over a symbol's orientation. Note that the
458
+ * property values act as a hint, so that a symbol whose language doesn’t
459
+ * support the provided orientation will be laid out in its natural orientation.
460
+ * Example: English point symbol will be rendered horizontally even if array
461
+ * value contains single 'vertical' enum value. The order of elements in an
462
+ * array define priority order for the placement of an orientation variant.
395
463
  *
396
464
  * @requires textField
397
465
  */
@@ -403,19 +471,22 @@ export interface SymbolLayerStyle {
403
471
  */
404
472
  textRotate?: Value<number, ["zoom", "feature"]>;
405
473
  /**
406
- * Size of the additional area around the text bounding box used for detecting symbol collisions.
474
+ * Size of the additional area around the text bounding box used for detecting
475
+ * symbol collisions.
407
476
  *
408
477
  * @requires textField
409
478
  */
410
479
  textPadding?: Value<number, ["zoom"]>;
411
480
  /**
412
- * If true, the text may be flipped vertically to prevent it from being rendered upsideDown.
481
+ * If true, the text may be flipped vertically to prevent it from being rendered
482
+ * upsideDown.
413
483
  *
414
484
  * @requires textField
415
485
  */
416
486
  textKeepUpright?: Value<boolean, ["zoom"]>;
417
487
  /**
418
- * Specifies how to capitalize text, similar to the CSS `textTransform` property.
488
+ * Specifies how to capitalize text, similar to the CSS `textTransform`
489
+ * property.
419
490
  *
420
491
  * @requires textField
421
492
  */
@@ -424,7 +495,11 @@ export interface SymbolLayerStyle {
424
495
  "feature"
425
496
  ]>;
426
497
  /**
427
- * Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with textVariableAnchor, input values will be taken as absolute values. Offsets along the x and yAxis will be applied automatically based on the anchor position.
498
+ * Offset distance of text from its anchor. Positive values indicate right and
499
+ * down, while negative values indicate left and up. If used with
500
+ * textVariableAnchor, input values will be taken as absolute values. Offsets
501
+ * along the x and yAxis will be applied automatically based on the anchor
502
+ * position.
428
503
  *
429
504
  * @requires textField
430
505
  *
@@ -432,7 +507,8 @@ export interface SymbolLayerStyle {
432
507
  */
433
508
  textOffset?: Value<number[], ["zoom", "feature"]>;
434
509
  /**
435
- * If true, the text will be visible even if it collides with other previously drawn symbols.
510
+ * If true, the text will be visible even if it collides with other previously
511
+ * drawn symbols.
436
512
  *
437
513
  * @requires textField
438
514
  *
@@ -446,7 +522,8 @@ export interface SymbolLayerStyle {
446
522
  */
447
523
  textIgnorePlacement?: Value<boolean, ["zoom"]>;
448
524
  /**
449
- * If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.
525
+ * If true, icons will display without their corresponding text when the text
526
+ * collides with other symbols and the icon does not.
450
527
  *
451
528
  * @requires textField, iconImage
452
529
  */
@@ -454,7 +531,7 @@ export interface SymbolLayerStyle {
454
531
  /**
455
532
  * Whether this layer is displayed.
456
533
  */
457
- visibility?: "visible" | "none";
534
+ visibility?: Value<"visible" | "none", ["global-state"]>;
458
535
  /**
459
536
  * The opacity at which the icon will be drawn.
460
537
  *
@@ -486,12 +563,14 @@ export interface SymbolLayerStyle {
486
563
  */
487
564
  iconHaloColorTransition?: Transition;
488
565
  /**
489
- * Distance of halo to the icon outline.
490
-
491
- The unit is in pixels only for SDF sprites that were created with a blur radius of 8, multiplied by the display density. I.e., the radius needs to be 16 for `@2x` sprites, etc.
492
- *
493
- * @requires iconImage
494
- */
566
+ * Distance of halo to the icon outline.
567
+ *
568
+ * The unit is in pixels only for SDF sprites that were created with a blur
569
+ * radius of 8, multiplied by the display density. I.e., the radius needs to be
570
+ * 16 for `@2x` sprites, etc.
571
+ *
572
+ * @requires iconImage
573
+ */
495
574
  iconHaloWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
496
575
  /**
497
576
  * The transition affecting any changes to this layer’s iconHaloWidth property.
@@ -508,7 +587,9 @@ export interface SymbolLayerStyle {
508
587
  */
509
588
  iconHaloBlurTransition?: Transition;
510
589
  /**
511
- * Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
590
+ * Distance that the icon's anchor is moved from its original placement.
591
+ * Positive values indicate right and down, while negative values indicate left
592
+ * and up.
512
593
  *
513
594
  * @requires iconImage
514
595
  */
@@ -554,7 +635,8 @@ export interface SymbolLayerStyle {
554
635
  */
555
636
  textHaloColorTransition?: Transition;
556
637
  /**
557
- * Distance of halo to the font outline. Max text halo width is 1/4 of the fontSize.
638
+ * Distance of halo to the font outline. Max text halo width is 1/4 of the
639
+ * fontSize.
558
640
  *
559
641
  * @requires textField
560
642
  */
@@ -574,7 +656,9 @@ export interface SymbolLayerStyle {
574
656
  */
575
657
  textHaloBlurTransition?: Transition;
576
658
  /**
577
- * Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
659
+ * Distance that the text's anchor is moved from its original placement.
660
+ * Positive values indicate right and down, while negative values indicate left
661
+ * and up.
578
662
  *
579
663
  * @requires textField
580
664
  */
@@ -592,13 +676,14 @@ export interface SymbolLayerStyle {
592
676
  }
593
677
  export interface CircleLayerStyle {
594
678
  /**
595
- * Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
679
+ * Sorts features in ascending order based on this value. Features with a higher
680
+ * sort key will appear above features with a lower sort key.
596
681
  */
597
682
  circleSortKey?: Value<number, ["zoom", "feature"]>;
598
683
  /**
599
684
  * Whether this layer is displayed.
600
685
  */
601
- visibility?: "visible" | "none";
686
+ visibility?: Value<"visible" | "none", ["global-state"]>;
602
687
  /**
603
688
  * Circle radius.
604
689
  */
@@ -616,7 +701,8 @@ export interface CircleLayerStyle {
616
701
  */
617
702
  circleColorTransition?: Transition;
618
703
  /**
619
- * Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
704
+ * Amount to blur the circle. 1 blurs the circle such that only the centerpoint
705
+ * is full opacity.
620
706
  */
621
707
  circleBlur?: Value<number, ["zoom", "feature", "feature-state"]>;
622
708
  /**
@@ -632,11 +718,13 @@ export interface CircleLayerStyle {
632
718
  */
633
719
  circleOpacityTransition?: Transition;
634
720
  /**
635
- * The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
721
+ * The geometry's offset. Values are [x, y] where negatives indicate left and
722
+ * up, respectively.
636
723
  */
637
724
  circleTranslate?: Value<Translation, ["zoom"]>;
638
725
  /**
639
- * The transition affecting any changes to this layer’s circleTranslate property.
726
+ * The transition affecting any changes to this layer’s circleTranslate
727
+ * property.
640
728
  */
641
729
  circleTranslateTransition?: Transition;
642
730
  /**
@@ -654,11 +742,13 @@ export interface CircleLayerStyle {
654
742
  */
655
743
  circlePitchAlignment?: Value<"map" | "viewport", ["zoom"]>;
656
744
  /**
657
- * The width of the circle's stroke. Strokes are placed outside of the `circleRadius`.
745
+ * The width of the circle's stroke. Strokes are placed outside of the
746
+ * `circleRadius` .
658
747
  */
659
748
  circleStrokeWidth?: Value<number, ["zoom", "feature", "feature-state"]>;
660
749
  /**
661
- * The transition affecting any changes to this layer’s circleStrokeWidth property.
750
+ * The transition affecting any changes to this layer’s circleStrokeWidth
751
+ * property.
662
752
  */
663
753
  circleStrokeWidthTransition?: Transition;
664
754
  /**
@@ -666,7 +756,8 @@ export interface CircleLayerStyle {
666
756
  */
667
757
  circleStrokeColor?: Value<string, ["zoom", "feature", "feature-state"]>;
668
758
  /**
669
- * The transition affecting any changes to this layer’s circleStrokeColor property.
759
+ * The transition affecting any changes to this layer’s circleStrokeColor
760
+ * property.
670
761
  */
671
762
  circleStrokeColorTransition?: Transition;
672
763
  /**
@@ -674,7 +765,8 @@ export interface CircleLayerStyle {
674
765
  */
675
766
  circleStrokeOpacity?: Value<number, ["zoom", "feature", "feature-state"]>;
676
767
  /**
677
- * The transition affecting any changes to this layer’s circleStrokeOpacity property.
768
+ * The transition affecting any changes to this layer’s circleStrokeOpacity
769
+ * property.
678
770
  */
679
771
  circleStrokeOpacityTransition?: Transition;
680
772
  }
@@ -682,9 +774,10 @@ export interface HeatmapLayerStyle {
682
774
  /**
683
775
  * Whether this layer is displayed.
684
776
  */
685
- visibility?: "visible" | "none";
777
+ visibility?: Value<"visible" | "none", ["global-state"]>;
686
778
  /**
687
- * Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.
779
+ * Radius of influence of one heatmap point in pixels. Increasing the value
780
+ * makes the heatmap smoother, but less detailed.
688
781
  */
689
782
  heatmapRadius?: Value<number, ["zoom", "feature", "feature-state"]>;
690
783
  /**
@@ -692,19 +785,24 @@ export interface HeatmapLayerStyle {
692
785
  */
693
786
  heatmapRadiusTransition?: Transition;
694
787
  /**
695
- * A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.
788
+ * A measure of how much an individual point contributes to the heatmap. A value
789
+ * of 10 would be equivalent to having 10 points of weight 1 in the same spot.
790
+ * Especially useful when combined with clustering.
696
791
  */
697
792
  heatmapWeight?: Value<number, ["zoom", "feature", "feature-state"]>;
698
793
  /**
699
- * Similar to `heatmapWeight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.
794
+ * Similar to `heatmapWeight` but controls the intensity of the heatmap
795
+ * globally. Primarily used for adjusting the heatmap based on zoom level.
700
796
  */
701
797
  heatmapIntensity?: Value<number, ["zoom"]>;
702
798
  /**
703
- * The transition affecting any changes to this layer’s heatmapIntensity property.
799
+ * The transition affecting any changes to this layer’s heatmapIntensity
800
+ * property.
704
801
  */
705
802
  heatmapIntensityTransition?: Transition;
706
803
  /**
707
- * Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmapDensity"]` as input.
804
+ * Defines the color of each pixel based on its density value in a heatmap.
805
+ * Should be an expression that uses `["heatmapDensity"]` as input.
708
806
  */
709
807
  heatmapColor?: Value<string, ["heatmap-density"]>;
710
808
  /**
@@ -720,31 +818,40 @@ export interface FillExtrusionLayerStyle {
720
818
  /**
721
819
  * Whether this layer is displayed.
722
820
  */
723
- visibility?: "visible" | "none";
821
+ visibility?: Value<"visible" | "none", ["global-state"]>;
724
822
  /**
725
- * The opacity of the entire fill extrusion layer. This is rendered on a perLayer, not perFeature, basis, and dataDriven styling is not available.
823
+ * The opacity of the entire fill extrusion layer. This is rendered on a
824
+ * perLayer, not perFeature, basis, and dataDriven styling is not available.
726
825
  */
727
826
  fillExtrusionOpacity?: Value<number, ["zoom"]>;
728
827
  /**
729
- * The transition affecting any changes to this layer’s fillExtrusionOpacity property.
828
+ * The transition affecting any changes to this layer’s fillExtrusionOpacity
829
+ * property.
730
830
  */
731
831
  fillExtrusionOpacityTransition?: Transition;
732
832
  /**
733
- * The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fillExtrusionOpacity` to set layer opacity.
833
+ * The base color of the extruded fill. The extrusion's surfaces will be shaded
834
+ * differently based on this color in combination with the root `light`
835
+ * settings. If this color is specified as `rgba` with an alpha component, the
836
+ * alpha component will be ignored; use `fillExtrusionOpacity` to set layer
837
+ * opacity.
734
838
  *
735
839
  * @disabledBy fillExtrusionPattern
736
840
  */
737
841
  fillExtrusionColor?: Value<string, ["zoom", "feature", "feature-state"]>;
738
842
  /**
739
- * The transition affecting any changes to this layer’s fillExtrusionColor property.
843
+ * The transition affecting any changes to this layer’s fillExtrusionColor
844
+ * property.
740
845
  */
741
846
  fillExtrusionColorTransition?: Transition;
742
847
  /**
743
- * The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.
848
+ * The geometry's offset. Values are [x, y] where negatives indicate left and up
849
+ * (on the flat plane), respectively.
744
850
  */
745
851
  fillExtrusionTranslate?: Value<Translation, ["zoom"]>;
746
852
  /**
747
- * The transition affecting any changes to this layer’s fillExtrusionTranslate property.
853
+ * The transition affecting any changes to this layer’s fillExtrusionTranslate
854
+ * property.
748
855
  */
749
856
  fillExtrusionTranslateTransition?: Transition;
750
857
  /**
@@ -754,11 +861,15 @@ export interface FillExtrusionLayerStyle {
754
861
  */
755
862
  fillExtrusionTranslateAnchor?: Value<"map" | "viewport", ["zoom"]>;
756
863
  /**
757
- * Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
864
+ * Name of image in sprite to use for drawing images on extruded fills. For
865
+ * seamless patterns, image width and height must be a factor of two (2, 4, 8,
866
+ * ..., 512). Note that zoomDependent expressions will be evaluated only at
867
+ * integer zoom levels.
758
868
  */
759
869
  fillExtrusionPattern?: Value<ResolvedImageType, ["zoom", "feature"]>;
760
870
  /**
761
- * The transition affecting any changes to this layer’s fillExtrusionPattern property.
871
+ * The transition affecting any changes to this layer’s fillExtrusionPattern
872
+ * property.
762
873
  */
763
874
  fillExtrusionPatternTransition?: Transition;
764
875
  /**
@@ -766,21 +877,25 @@ export interface FillExtrusionLayerStyle {
766
877
  */
767
878
  fillExtrusionHeight?: Value<number, ["zoom", "feature", "feature-state"]>;
768
879
  /**
769
- * The transition affecting any changes to this layer’s fillExtrusionHeight property.
880
+ * The transition affecting any changes to this layer’s fillExtrusionHeight
881
+ * property.
770
882
  */
771
883
  fillExtrusionHeightTransition?: Transition;
772
884
  /**
773
- * The height with which to extrude the base of this layer. Must be less than or equal to `fillExtrusionHeight`.
885
+ * The height with which to extrude the base of this layer. Must be less than or
886
+ * equal to `fillExtrusionHeight` .
774
887
  *
775
888
  * @requires fillExtrusionHeight
776
889
  */
777
890
  fillExtrusionBase?: Value<number, ["zoom", "feature", "feature-state"]>;
778
891
  /**
779
- * The transition affecting any changes to this layer’s fillExtrusionBase property.
892
+ * The transition affecting any changes to this layer’s fillExtrusionBase
893
+ * property.
780
894
  */
781
895
  fillExtrusionBaseTransition?: Transition;
782
896
  /**
783
- * Whether to apply a vertical gradient to the sides of a fillExtrusion layer. If true, sides will be shaded slightly darker farther down.
897
+ * Whether to apply a vertical gradient to the sides of a fillExtrusion layer.
898
+ * If true, sides will be shaded slightly darker farther down.
784
899
  */
785
900
  fillExtrusionVerticalGradient?: Value<boolean, ["zoom"]>;
786
901
  }
@@ -788,7 +903,7 @@ export interface RasterLayerStyle {
788
903
  /**
789
904
  * Whether this layer is displayed.
790
905
  */
791
- visibility?: "visible" | "none";
906
+ visibility?: Value<"visible" | "none", ["global-state"]>;
792
907
  /**
793
908
  * The opacity at which the image will be drawn.
794
909
  */
@@ -802,23 +917,28 @@ export interface RasterLayerStyle {
802
917
  */
803
918
  rasterHueRotate?: Value<number, ["zoom"]>;
804
919
  /**
805
- * The transition affecting any changes to this layer’s rasterHueRotate property.
920
+ * The transition affecting any changes to this layer’s rasterHueRotate
921
+ * property.
806
922
  */
807
923
  rasterHueRotateTransition?: Transition;
808
924
  /**
809
- * Increase or reduce the brightness of the image. The value is the minimum brightness.
925
+ * Increase or reduce the brightness of the image. The value is the minimum
926
+ * brightness.
810
927
  */
811
928
  rasterBrightnessMin?: Value<number, ["zoom"]>;
812
929
  /**
813
- * The transition affecting any changes to this layer’s rasterBrightnessMin property.
930
+ * The transition affecting any changes to this layer’s rasterBrightnessMin
931
+ * property.
814
932
  */
815
933
  rasterBrightnessMinTransition?: Transition;
816
934
  /**
817
- * Increase or reduce the brightness of the image. The value is the maximum brightness.
935
+ * Increase or reduce the brightness of the image. The value is the maximum
936
+ * brightness.
818
937
  */
819
938
  rasterBrightnessMax?: Value<number, ["zoom"]>;
820
939
  /**
821
- * The transition affecting any changes to this layer’s rasterBrightnessMax property.
940
+ * The transition affecting any changes to this layer’s rasterBrightnessMax
941
+ * property.
822
942
  */
823
943
  rasterBrightnessMaxTransition?: Transition;
824
944
  /**
@@ -826,7 +946,8 @@ export interface RasterLayerStyle {
826
946
  */
827
947
  rasterSaturation?: Value<number, ["zoom"]>;
828
948
  /**
829
- * The transition affecting any changes to this layer’s rasterSaturation property.
949
+ * The transition affecting any changes to this layer’s rasterSaturation
950
+ * property.
830
951
  */
831
952
  rasterSaturationTransition?: Transition;
832
953
  /**
@@ -838,11 +959,14 @@ export interface RasterLayerStyle {
838
959
  */
839
960
  rasterContrastTransition?: Transition;
840
961
  /**
841
- * The resampling/interpolation method to use for overscaling, also known as texture magnification filter
962
+ * The resampling/interpolation method to use for overscaling, also known as
963
+ * texture magnification filter. It is advised to use the generic `resampling`
964
+ * paint property instead.
842
965
  */
843
966
  rasterResampling?: Value<"linear" | "nearest", ["zoom"]>;
844
967
  /**
845
- * Fade duration when a new tile is added, or when a video is started or its coordinates are updated.
968
+ * Fade duration when a new tile is added, or when a video is started or its
969
+ * coordinates are updated.
846
970
  */
847
971
  rasterFadeDuration?: Value<number, ["zoom"]>;
848
972
  }
@@ -850,9 +974,13 @@ export interface HillshadeLayerStyle {
850
974
  /**
851
975
  * Whether this layer is displayed.
852
976
  */
853
- visibility?: "visible" | "none";
977
+ visibility?: Value<"visible" | "none", ["global-state"]>;
854
978
  /**
855
- * The direction of the light source(s) used to generate the hillshading with 0 as the top of the viewport if `hillshadeIlluminationAnchor` is set to `viewport` and due north if `hillshadeIlluminationAnchor` is set to `map`. Only when `hillshadeMethod` is set to `multidirectional` can you specify multiple light sources.
979
+ * The direction of the light source(s) used to generate the hillshading with 0
980
+ * as the top of the viewport if `hillshadeIlluminationAnchor` is set to
981
+ * `viewport` and due north if `hillshadeIlluminationAnchor` is set to `map` .
982
+ * Only when `hillshadeMethod` is set to `multidirectional` can you specify
983
+ * multiple light sources.
856
984
  */
857
985
  hillshadeIlluminationDirection?: Value<number, ["zoom"]>;
858
986
  /**
@@ -864,31 +992,40 @@ export interface HillshadeLayerStyle {
864
992
  */
865
993
  hillshadeExaggeration?: Value<number, ["zoom"]>;
866
994
  /**
867
- * The transition affecting any changes to this layer’s hillshadeExaggeration property.
995
+ * The transition affecting any changes to this layer’s hillshadeExaggeration
996
+ * property.
868
997
  */
869
998
  hillshadeExaggerationTransition?: Transition;
870
999
  /**
871
- * The shading color of areas that face away from the light source(s). Only when `hillshadeMethod` is set to `multidirectional` can you specify multiple light sources.
1000
+ * The shading color of areas that face away from the light source(s). Only when
1001
+ * `hillshadeMethod` is set to `multidirectional` can you specify multiple light
1002
+ * sources.
872
1003
  */
873
1004
  hillshadeShadowColor?: Value<string, ["zoom"]>;
874
1005
  /**
875
- * The transition affecting any changes to this layer’s hillshadeShadowColor property.
1006
+ * The transition affecting any changes to this layer’s hillshadeShadowColor
1007
+ * property.
876
1008
  */
877
1009
  hillshadeShadowColorTransition?: Transition;
878
1010
  /**
879
- * The shading color of areas that faces towards the light source(s). Only when `hillshadeMethod` is set to `multidirectional` can you specify multiple light sources.
1011
+ * The shading color of areas that faces towards the light source(s). Only when
1012
+ * `hillshadeMethod` is set to `multidirectional` can you specify multiple light
1013
+ * sources.
880
1014
  */
881
1015
  hillshadeHighlightColor?: Value<string, ["zoom"]>;
882
1016
  /**
883
- * The transition affecting any changes to this layer’s hillshadeHighlightColor property.
1017
+ * The transition affecting any changes to this layer’s hillshadeHighlightColor
1018
+ * property.
884
1019
  */
885
1020
  hillshadeHighlightColorTransition?: Transition;
886
1021
  /**
887
- * The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
1022
+ * The shading color used to accentuate rugged terrain like sharp cliffs and
1023
+ * gorges.
888
1024
  */
889
1025
  hillshadeAccentColor?: Value<string, ["zoom"]>;
890
1026
  /**
891
- * The transition affecting any changes to this layer’s hillshadeAccentColor property.
1027
+ * The transition affecting any changes to this layer’s hillshadeAccentColor
1028
+ * property.
892
1029
  */
893
1030
  hillshadeAccentColorTransition?: Transition;
894
1031
  }
@@ -896,7 +1033,7 @@ export interface BackgroundLayerStyle {
896
1033
  /**
897
1034
  * Whether this layer is displayed.
898
1035
  */
899
- visibility?: "visible" | "none";
1036
+ visibility?: Value<"visible" | "none", ["global-state"]>;
900
1037
  /**
901
1038
  * The color with which the background will be drawn.
902
1039
  *
@@ -904,15 +1041,20 @@ export interface BackgroundLayerStyle {
904
1041
  */
905
1042
  backgroundColor?: Value<string, ["zoom"]>;
906
1043
  /**
907
- * The transition affecting any changes to this layer’s backgroundColor property.
1044
+ * The transition affecting any changes to this layer’s backgroundColor
1045
+ * property.
908
1046
  */
909
1047
  backgroundColorTransition?: Transition;
910
1048
  /**
911
- * Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
1049
+ * Name of image in sprite to use for drawing an image background. For seamless
1050
+ * patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
1051
+ * Note that zoomDependent expressions will be evaluated only at integer zoom
1052
+ * levels.
912
1053
  */
913
1054
  backgroundPattern?: Value<ResolvedImageType, ["zoom"]>;
914
1055
  /**
915
- * The transition affecting any changes to this layer’s backgroundPattern property.
1056
+ * The transition affecting any changes to this layer’s backgroundPattern
1057
+ * property.
916
1058
  */
917
1059
  backgroundPatternTransition?: Transition;
918
1060
  /**
@@ -920,7 +1062,8 @@ export interface BackgroundLayerStyle {
920
1062
  */
921
1063
  backgroundOpacity?: Value<number, ["zoom"]>;
922
1064
  /**
923
- * The transition affecting any changes to this layer’s backgroundOpacity property.
1065
+ * The transition affecting any changes to this layer’s backgroundOpacity
1066
+ * property.
924
1067
  */
925
1068
  backgroundOpacityTransition?: Transition;
926
1069
  }
@@ -930,7 +1073,14 @@ export interface LightLayerStyle {
930
1073
  */
931
1074
  anchor?: Value<"map" | "viewport", ["zoom"]>;
932
1075
  /**
933
- * Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).
1076
+ * Position of the light source relative to lit (extruded) geometries, in [r
1077
+ * radial coordinate, a azimuthal angle, p polar angle] where r indicates the
1078
+ * distance from the center of the base of an object to its light, a indicates
1079
+ * the position of the light relative to 0° (0° when `light.anchor` is set to
1080
+ * `viewport` corresponds to the top of the viewport, or 0° when `light.anchor`
1081
+ * is set to `map` corresponds to due north, and degrees proceed clockwise),
1082
+ * and p indicates the height of the light (from 0°, directly above, to 180°,
1083
+ * directly below).
934
1084
  */
935
1085
  position?: Value<number[], ["zoom"]>;
936
1086
  /**
@@ -946,7 +1096,8 @@ export interface LightLayerStyle {
946
1096
  */
947
1097
  colorTransition?: Transition;
948
1098
  /**
949
- * Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
1099
+ * Intensity of lighting (on a scale from 0 to 1). Higher numbers will present
1100
+ * as more extreme contrast.
950
1101
  */
951
1102
  intensity?: Value<number, ["zoom"]>;
952
1103
  /**