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

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