@maplibre/maplibre-react-native 11.0.0-alpha.2 → 11.0.0-alpha.20

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 (1018) hide show
  1. package/MapLibreReactNative.podspec +3 -3
  2. package/README.md +15 -2
  3. package/android/build.gradle +3 -6
  4. package/android/gradle.properties +2 -2
  5. package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +87 -50
  6. package/android/src/main/java/org/maplibre/reactnative/components/AbstractEvent.kt +24 -0
  7. package/android/src/main/java/org/maplibre/reactnative/components/AbstractEventEmitter.kt +71 -0
  8. package/android/src/main/java/org/maplibre/reactnative/components/annotations/MLRNCallout.java +11 -0
  9. package/android/src/main/java/org/maplibre/reactnative/components/annotations/MLRNCalloutManager.java +18 -0
  10. package/android/src/main/java/org/maplibre/reactnative/components/annotations/MLRNMarkerView.java +112 -0
  11. package/android/src/main/java/org/maplibre/reactnative/components/annotations/MLRNMarkerViewManager.java +45 -0
  12. package/android/src/main/java/org/maplibre/reactnative/components/annotations/MLRNPointAnnotation.java +361 -0
  13. package/android/src/main/java/org/maplibre/reactnative/components/annotations/MLRNPointAnnotationManager.java +84 -0
  14. package/android/src/main/java/org/maplibre/reactnative/components/annotations/MarkerView.java +23 -0
  15. package/android/src/main/java/org/maplibre/reactnative/components/annotations/MarkerViewManager.java +69 -0
  16. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraStop.kt +203 -0
  17. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraUpdateItem.kt +109 -0
  18. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraUpdateQueue.kt +60 -0
  19. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.kt +397 -0
  20. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCameraManager.kt +67 -0
  21. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCameraModule.kt +34 -0
  22. package/android/src/main/java/org/maplibre/reactnative/components/camera/constants/CameraEasing.kt +24 -0
  23. package/android/src/main/java/org/maplibre/reactnative/components/images/MLRNImages.java +1 -2
  24. package/android/src/main/java/org/maplibre/reactnative/components/images/MLRNImagesManager.java +3 -3
  25. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNBackgroundLayer.java +23 -0
  26. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNBackgroundLayerManager.java +60 -0
  27. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNCircleLayer.java +51 -0
  28. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNCircleLayerManager.java +71 -0
  29. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNFillExtrusionLayer.java +51 -0
  30. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNFillExtrusionLayerManager.java +71 -0
  31. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNFillLayer.java +51 -0
  32. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNFillLayerManager.java +71 -0
  33. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNHeatmapLayer.java +51 -0
  34. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNHeatmapLayerManager.java +71 -0
  35. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNLayer.java +279 -0
  36. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNLineLayer.java +51 -0
  37. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNLineLayerManager.java +71 -0
  38. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNRasterLayer.java +23 -0
  39. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNRasterLayerManager.java +60 -0
  40. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNSymbolLayer.java +51 -0
  41. package/android/src/main/java/org/maplibre/reactnative/components/layers/MLRNSymbolLayerManager.java +71 -0
  42. package/android/src/main/java/org/maplibre/reactnative/components/layers/style/MLRNStyle.java +76 -0
  43. package/android/src/main/java/org/maplibre/reactnative/components/layers/style/MLRNStyleFactory.java +2285 -0
  44. package/android/src/main/java/org/maplibre/reactnative/components/layers/style/MLRNStyleFunctionParser.java +94 -0
  45. package/android/src/main/java/org/maplibre/reactnative/components/layers/style/MLRNStyleValue.java +207 -0
  46. package/android/src/main/java/org/maplibre/reactnative/components/location/LocationComponentManager.kt +154 -0
  47. package/android/src/main/java/org/maplibre/reactnative/components/location/MLRNNativeUserLocation.kt +70 -0
  48. package/android/src/main/java/org/maplibre/reactnative/components/location/MLRNNativeUserLocationManager.kt +50 -0
  49. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNAndroidTextureMapView.kt +23 -0
  50. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNAndroidTextureMapViewManager.kt +23 -0
  51. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +1350 -0
  52. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.kt +193 -0
  53. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewModule.kt +159 -0
  54. package/android/src/main/java/org/maplibre/reactnative/components/mapview/helpers/CameraChangeTracker.kt +26 -0
  55. package/android/src/main/java/org/maplibre/reactnative/components/mapview/helpers/LayerSourceInfo.kt +74 -0
  56. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNImageSource.java +75 -0
  57. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNImageSourceManager.java +66 -0
  58. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNRasterSource.java +40 -0
  59. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNRasterSourceManager.java +39 -0
  60. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNShapeSource.java +248 -0
  61. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNShapeSourceManager.java +216 -0
  62. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNSource.java +240 -0
  63. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNTileSource.java +97 -0
  64. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNTileSourceManager.java +80 -0
  65. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNVectorSource.java +60 -0
  66. package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNVectorSourceManager.java +80 -0
  67. package/android/src/main/java/org/maplibre/reactnative/events/AbstractEvent.java +2 -5
  68. package/android/src/main/java/org/maplibre/reactnative/events/FeatureClickEvent.java +1 -2
  69. package/android/src/main/java/org/maplibre/reactnative/events/MapChangeEvent.kt +18 -0
  70. package/android/src/main/java/org/maplibre/reactnative/events/MapClickEvent.java +4 -0
  71. package/android/src/main/java/org/maplibre/reactnative/events/MapPressEvent.kt +27 -0
  72. package/android/src/main/java/org/maplibre/reactnative/events/PointAnnotationClickEvent.java +2 -4
  73. package/android/src/main/java/org/maplibre/reactnative/events/PointAnnotationDragEvent.java +2 -4
  74. package/android/src/main/java/org/maplibre/reactnative/events/constants/EventKeys.java +0 -5
  75. package/android/src/main/java/org/maplibre/reactnative/events/constants/EventTypes.java +0 -20
  76. package/android/src/main/java/org/maplibre/reactnative/location/LocationManager.kt +165 -0
  77. package/android/src/main/java/org/maplibre/reactnative/location/TrackUserLocationMode.kt +42 -0
  78. package/android/src/main/java/org/maplibre/reactnative/location/TrackUserLocationState.kt +15 -0
  79. package/android/src/main/java/org/maplibre/reactnative/location/UserLocation.kt +40 -0
  80. package/android/src/main/java/org/maplibre/reactnative/location/engine/DefaultLocationEngineProvider.kt +18 -0
  81. package/android/src/main/java/org/maplibre/reactnative/location/engine/LocationEngineProvidable.kt +8 -0
  82. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNLocationModule.kt +174 -0
  83. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNLogModule.kt +99 -0
  84. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNModule.java +2 -55
  85. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNSnapshotModule.kt +2 -16
  86. package/android/src/main/java/org/maplibre/reactnative/utils/ConvertUtils.java +2 -9
  87. package/android/src/main/java/org/maplibre/reactnative/utils/DownloadMapImageTask.java +8 -10
  88. package/android/src/main/java/org/maplibre/reactnative/utils/DownloadedImage.java +6 -0
  89. package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.kt +322 -0
  90. package/android/src/main/java/org/maplibre/reactnative/utils/ImageEntry.java +1 -0
  91. package/android/src/main/java/org/maplibre/reactnative/utils/ReactTagResolver.kt +85 -0
  92. package/android/src/main/location-engine-default/org/maplibre/reactnative/location/engine/LocationEngineProvider.kt +10 -0
  93. package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineImpl.kt +131 -0
  94. package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineProvider.kt +28 -0
  95. package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/LocationEngineProvider.kt +10 -0
  96. package/ios/components/annotations/MLRNCallout.h +7 -0
  97. package/ios/components/annotations/MLRNPointAnnotation.h +33 -0
  98. package/ios/components/camera/CameraEasing.h +8 -0
  99. package/ios/components/camera/CameraStop.h +22 -0
  100. package/ios/components/camera/CameraStop.m +75 -0
  101. package/ios/components/camera/CameraUpdateItem.m +167 -0
  102. package/ios/components/camera/MLRNCamera.h +26 -0
  103. package/ios/components/camera/MLRNCamera.m +195 -0
  104. package/ios/components/camera/MLRNCameraComponentView.h +10 -0
  105. package/ios/components/camera/MLRNCameraComponentView.mm +196 -0
  106. package/ios/components/camera/MLRNCameraManager.h +11 -0
  107. package/ios/components/camera/MLRNCameraManager.m +20 -0
  108. package/ios/components/camera/MLRNCameraModule.h +4 -0
  109. package/ios/components/camera/MLRNCameraModule.mm +111 -0
  110. package/ios/components/images/MLRNImageQueue.h +15 -0
  111. package/ios/components/images/MLRNImageQueue.m +48 -0
  112. package/ios/components/images/MLRNImageQueueOperation.h +11 -0
  113. package/ios/components/images/MLRNImageQueueOperation.m +133 -0
  114. package/ios/components/images/MLRNImages.h +24 -0
  115. package/ios/components/images/MLRNImages.m +124 -0
  116. package/ios/components/layers/MLRNLayer.h +42 -0
  117. package/ios/components/layers/MLRNLayer.m +216 -0
  118. package/ios/components/layers/style/MLRNStyle.m +1642 -0
  119. package/ios/components/layers/style/MLRNStyleValue.h +20 -0
  120. package/ios/components/layers/style/MLRNStyleValue.m +172 -0
  121. package/ios/components/map-view/MLRNMapTouchEvent.h +18 -0
  122. package/ios/components/map-view/MLRNMapTouchEvent.m +72 -0
  123. package/ios/components/map-view/MLRNMapView.h +111 -0
  124. package/ios/components/map-view/MLRNMapView.m +820 -0
  125. package/ios/components/map-view/MLRNMapViewComponentView.h +13 -0
  126. package/ios/components/map-view/MLRNMapViewComponentView.mm +415 -0
  127. package/ios/components/map-view/MLRNMapViewManager.h +70 -0
  128. package/ios/components/map-view/MLRNMapViewManager.m +163 -0
  129. package/ios/components/map-view/MLRNMapViewModule.h +4 -0
  130. package/ios/components/map-view/MLRNMapViewModule.mm +254 -0
  131. package/ios/components/sources/MLRNShapeSource.h +36 -0
  132. package/ios/components/sources/MLRNShapeSource.m +144 -0
  133. package/ios/components/sources/MLRNShapeSourceManager.m +128 -0
  134. package/ios/components/sources/MLRNSource.h +29 -0
  135. package/ios/components/user-location/MLRNNativeUserLocation.h +11 -0
  136. package/ios/components/user-location/MLRNNativeUserLocation.m +38 -0
  137. package/ios/components/user-location/MLRNNativeUserLocationComponentView.h +10 -0
  138. package/ios/components/user-location/MLRNNativeUserLocationComponentView.mm +51 -0
  139. package/ios/modules/location/MLRNLocation.h +10 -0
  140. package/ios/modules/location/MLRNLocation.m +26 -0
  141. package/ios/modules/location/MLRNLocationManager.h +20 -0
  142. package/ios/modules/location/MLRNLocationManager.m +167 -0
  143. package/ios/modules/location/MLRNLocationManagerDelegate.h +10 -0
  144. package/ios/modules/location/MLRNLocationModule.h +7 -0
  145. package/ios/modules/location/MLRNLocationModule.mm +67 -0
  146. package/ios/modules/logging/MLRNLogModule.h +10 -0
  147. package/ios/modules/logging/MLRNLogModule.mm +39 -0
  148. package/ios/modules/logging/MLRNLogging.h +23 -0
  149. package/ios/modules/logging/MLRNLogging.m +94 -0
  150. package/ios/modules/mlrn/MLRNModule.m +58 -0
  151. package/ios/modules/offline/MLRNOfflineModule.h +11 -0
  152. package/ios/modules/offline/MLRNOfflineModule.m +524 -0
  153. package/ios/modules/snapshot/MLRNSnapshotModule.mm +77 -0
  154. package/ios/utils/MLRNEvent.m +36 -0
  155. package/ios/utils/MLRNEventTypes.h +19 -0
  156. package/ios/utils/MLRNEventTypes.m +19 -0
  157. package/ios/utils/MLRNUtils.h +45 -0
  158. package/ios/utils/MLRNUtils.m +250 -0
  159. package/lib/commonjs/MLRNModule.js +1 -3
  160. package/lib/commonjs/MLRNModule.js.map +1 -1
  161. package/lib/commonjs/components/Images.js +32 -46
  162. package/lib/commonjs/components/Images.js.map +1 -1
  163. package/lib/commonjs/components/annotations/Annotation.js +96 -0
  164. package/lib/commonjs/components/annotations/Annotation.js.map +1 -0
  165. package/lib/commonjs/components/annotations/Callout.js.map +1 -0
  166. package/lib/commonjs/components/annotations/MarkerView.js +60 -0
  167. package/lib/commonjs/components/annotations/MarkerView.js.map +1 -0
  168. package/lib/commonjs/components/annotations/PointAnnotation.js +118 -0
  169. package/lib/commonjs/components/annotations/PointAnnotation.js.map +1 -0
  170. package/lib/commonjs/components/camera/Camera.js +97 -0
  171. package/lib/commonjs/components/camera/Camera.js.map +1 -0
  172. package/lib/commonjs/components/camera/CameraNativeComponent.ts +66 -0
  173. package/lib/commonjs/components/camera/NativeCameraModule.js +11 -0
  174. package/lib/commonjs/components/camera/NativeCameraModule.js.map +1 -0
  175. package/lib/commonjs/components/layers/BackgroundLayer.js +31 -0
  176. package/lib/commonjs/components/layers/BackgroundLayer.js.map +1 -0
  177. package/lib/commonjs/components/layers/CircleLayer.js +35 -0
  178. package/lib/commonjs/components/layers/CircleLayer.js.map +1 -0
  179. package/lib/commonjs/components/layers/FillExtrusionLayer.js +34 -0
  180. package/lib/commonjs/components/layers/FillExtrusionLayer.js.map +1 -0
  181. package/lib/commonjs/components/layers/FillLayer.js +34 -0
  182. package/lib/commonjs/components/layers/FillLayer.js.map +1 -0
  183. package/lib/commonjs/components/layers/HeatmapLayer.js +33 -0
  184. package/lib/commonjs/components/layers/HeatmapLayer.js.map +1 -0
  185. package/lib/commonjs/components/layers/LineLayer.js +34 -0
  186. package/lib/commonjs/components/layers/LineLayer.js.map +1 -0
  187. package/lib/commonjs/components/layers/RasterLayer.js +30 -0
  188. package/lib/commonjs/components/layers/RasterLayer.js.map +1 -0
  189. package/lib/commonjs/components/layers/SymbolLayer.js +37 -0
  190. package/lib/commonjs/components/layers/SymbolLayer.js.map +1 -0
  191. package/lib/commonjs/components/map-view/MapView.js +119 -0
  192. package/lib/commonjs/components/map-view/MapView.js.map +1 -0
  193. package/lib/commonjs/components/map-view/MapViewNativeComponent.ts +98 -0
  194. package/lib/commonjs/components/map-view/NativeMapViewModule.js +9 -0
  195. package/lib/commonjs/components/map-view/NativeMapViewModule.js.map +1 -0
  196. package/lib/commonjs/components/sources/ImageSource.js +41 -0
  197. package/lib/commonjs/components/sources/ImageSource.js.map +1 -0
  198. package/lib/commonjs/components/sources/RasterSource.js +65 -0
  199. package/lib/commonjs/components/sources/RasterSource.js.map +1 -0
  200. package/lib/commonjs/components/sources/ShapeSource.js +153 -0
  201. package/lib/commonjs/components/sources/ShapeSource.js.map +1 -0
  202. package/lib/commonjs/components/sources/VectorSource.js +94 -0
  203. package/lib/commonjs/components/sources/VectorSource.js.map +1 -0
  204. package/lib/commonjs/components/user-location/NativeUserLocation.js +16 -0
  205. package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -0
  206. package/lib/commonjs/components/user-location/UserLocation.js +46 -0
  207. package/lib/commonjs/components/user-location/UserLocation.js.map +1 -0
  208. package/lib/commonjs/components/user-location/UserLocationNativeComponent.ts +19 -0
  209. package/lib/commonjs/components/user-location/UserLocationPuck.js +64 -0
  210. package/lib/commonjs/components/user-location/UserLocationPuck.js.map +1 -0
  211. package/lib/commonjs/components/user-location/UserLocationPuckHeading.js +32 -0
  212. package/lib/commonjs/components/user-location/UserLocationPuckHeading.js.map +1 -0
  213. package/lib/commonjs/hooks/useCurrentPosition.js +34 -0
  214. package/lib/commonjs/hooks/useCurrentPosition.js.map +1 -0
  215. package/lib/commonjs/index.js +239 -4
  216. package/lib/commonjs/index.js.map +1 -1
  217. package/lib/commonjs/modules/location/LocationManager.js +64 -57
  218. package/lib/commonjs/modules/location/LocationManager.js.map +1 -1
  219. package/lib/commonjs/modules/location/NativeLocationModule.js +9 -0
  220. package/lib/commonjs/modules/location/NativeLocationModule.js.map +1 -0
  221. package/lib/commonjs/modules/log/LogManager.js +99 -0
  222. package/lib/commonjs/modules/log/LogManager.js.map +1 -0
  223. package/lib/commonjs/modules/log/NativeLogModule.js +9 -0
  224. package/lib/commonjs/modules/log/NativeLogModule.js.map +1 -0
  225. package/lib/commonjs/modules/snapshot/NativeSnapshotModule.js +2 -2
  226. package/lib/commonjs/modules/snapshot/NativeSnapshotModule.js.map +1 -1
  227. package/lib/commonjs/modules/snapshot/SnapshotManager.js +3 -2
  228. package/lib/commonjs/modules/snapshot/SnapshotManager.js.map +1 -1
  229. package/lib/commonjs/types/Bounds.js +2 -0
  230. package/lib/commonjs/types/Bounds.js.map +1 -0
  231. package/lib/commonjs/types/PressEvent.js +2 -0
  232. package/lib/commonjs/types/PressEvent.js.map +1 -0
  233. package/lib/commonjs/types/ViewPadding.js +2 -0
  234. package/lib/commonjs/types/ViewPadding.js.map +1 -0
  235. package/lib/commonjs/types/codegen/UnsafeMixed.js +2 -0
  236. package/lib/commonjs/types/codegen/UnsafeMixed.js.map +1 -0
  237. package/lib/commonjs/utils/animated/Animated.js +10 -16
  238. package/lib/commonjs/utils/animated/Animated.js.map +1 -1
  239. package/lib/commonjs/utils/index.js +0 -11
  240. package/lib/commonjs/utils/index.js.map +1 -1
  241. package/lib/module/MLRNModule.js +0 -1
  242. package/lib/module/MLRNModule.js.map +1 -1
  243. package/lib/module/components/Images.js +32 -46
  244. package/lib/module/components/Images.js.map +1 -1
  245. package/lib/module/components/annotations/Annotation.js +92 -0
  246. package/lib/module/components/annotations/Annotation.js.map +1 -0
  247. package/lib/module/components/annotations/Callout.js.map +1 -0
  248. package/lib/module/components/annotations/MarkerView.js +55 -0
  249. package/lib/module/components/annotations/MarkerView.js.map +1 -0
  250. package/lib/module/components/annotations/PointAnnotation.js +114 -0
  251. package/lib/module/components/annotations/PointAnnotation.js.map +1 -0
  252. package/lib/module/components/camera/Camera.js +92 -0
  253. package/lib/module/components/camera/Camera.js.map +1 -0
  254. package/lib/module/components/camera/CameraNativeComponent.ts +66 -0
  255. package/lib/module/components/camera/NativeCameraModule.js +10 -0
  256. package/lib/module/components/camera/NativeCameraModule.js.map +1 -0
  257. package/lib/module/components/layers/BackgroundLayer.js +26 -0
  258. package/lib/module/components/layers/BackgroundLayer.js.map +1 -0
  259. package/lib/module/components/layers/CircleLayer.js +30 -0
  260. package/lib/module/components/layers/CircleLayer.js.map +1 -0
  261. package/lib/module/components/layers/FillExtrusionLayer.js +29 -0
  262. package/lib/module/components/layers/FillExtrusionLayer.js.map +1 -0
  263. package/lib/module/components/layers/FillLayer.js +29 -0
  264. package/lib/module/components/layers/FillLayer.js.map +1 -0
  265. package/lib/module/components/layers/HeatmapLayer.js +28 -0
  266. package/lib/module/components/layers/HeatmapLayer.js.map +1 -0
  267. package/lib/module/components/layers/LineLayer.js +29 -0
  268. package/lib/module/components/layers/LineLayer.js.map +1 -0
  269. package/lib/module/components/layers/RasterLayer.js +25 -0
  270. package/lib/module/components/layers/RasterLayer.js.map +1 -0
  271. package/lib/module/components/layers/SymbolLayer.js +32 -0
  272. package/lib/module/components/layers/SymbolLayer.js.map +1 -0
  273. package/lib/module/components/map-view/MapView.js +114 -0
  274. package/lib/module/components/map-view/MapView.js.map +1 -0
  275. package/lib/module/components/map-view/MapViewNativeComponent.ts +98 -0
  276. package/lib/module/components/map-view/NativeMapViewModule.js +5 -0
  277. package/lib/module/components/map-view/NativeMapViewModule.js.map +1 -0
  278. package/lib/module/components/sources/ImageSource.js +36 -0
  279. package/lib/module/components/sources/ImageSource.js.map +1 -0
  280. package/lib/module/components/sources/RasterSource.js +60 -0
  281. package/lib/module/components/sources/RasterSource.js.map +1 -0
  282. package/lib/module/components/sources/ShapeSource.js +149 -0
  283. package/lib/module/components/sources/ShapeSource.js.map +1 -0
  284. package/lib/module/components/sources/VectorSource.js +90 -0
  285. package/lib/module/components/sources/VectorSource.js.map +1 -0
  286. package/lib/module/components/user-location/NativeUserLocation.js +10 -0
  287. package/lib/module/components/user-location/NativeUserLocation.js.map +1 -0
  288. package/lib/module/components/user-location/UserLocation.js +42 -0
  289. package/lib/module/components/user-location/UserLocation.js.map +1 -0
  290. package/lib/module/components/user-location/UserLocationNativeComponent.ts +19 -0
  291. package/lib/module/components/user-location/UserLocationPuck.js +60 -0
  292. package/lib/module/components/user-location/UserLocationPuck.js.map +1 -0
  293. package/lib/module/components/user-location/UserLocationPuckHeading.js +27 -0
  294. package/lib/module/components/user-location/UserLocationPuckHeading.js.map +1 -0
  295. package/lib/module/hooks/useCurrentPosition.js +30 -0
  296. package/lib/module/hooks/useCurrentPosition.js.map +1 -0
  297. package/lib/module/index.js +30 -1
  298. package/lib/module/index.js.map +1 -1
  299. package/lib/module/modules/location/LocationManager.js +63 -57
  300. package/lib/module/modules/location/LocationManager.js.map +1 -1
  301. package/lib/module/modules/location/NativeLocationModule.js +5 -0
  302. package/lib/module/modules/location/NativeLocationModule.js.map +1 -0
  303. package/lib/module/modules/log/LogManager.js +96 -0
  304. package/lib/module/modules/log/LogManager.js.map +1 -0
  305. package/lib/module/modules/log/NativeLogModule.js +5 -0
  306. package/lib/module/modules/log/NativeLogModule.js.map +1 -0
  307. package/lib/module/modules/snapshot/NativeSnapshotModule.js +1 -1
  308. package/lib/module/modules/snapshot/NativeSnapshotModule.js.map +1 -1
  309. package/lib/module/modules/snapshot/SnapshotManager.js +1 -1
  310. package/lib/module/modules/snapshot/SnapshotManager.js.map +1 -1
  311. package/lib/module/types/Bounds.js +2 -0
  312. package/lib/module/types/Bounds.js.map +1 -0
  313. package/lib/module/types/PressEvent.js +2 -0
  314. package/lib/module/types/PressEvent.js.map +1 -0
  315. package/lib/module/types/ViewPadding.js +2 -0
  316. package/lib/module/types/ViewPadding.js.map +1 -0
  317. package/lib/module/types/codegen/UnsafeMixed.js +2 -0
  318. package/lib/module/types/codegen/UnsafeMixed.js.map +1 -0
  319. package/lib/module/utils/animated/Animated.js +9 -15
  320. package/lib/module/utils/animated/Animated.js.map +1 -1
  321. package/lib/module/utils/index.js +0 -9
  322. package/lib/module/utils/index.js.map +1 -1
  323. package/lib/typescript/commonjs/src/MLRNModule.d.ts +1 -7
  324. package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
  325. package/lib/typescript/commonjs/src/components/Images.d.ts +11 -3
  326. package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
  327. package/lib/typescript/commonjs/src/components/annotations/Annotation.d.ts +22 -0
  328. package/lib/typescript/commonjs/src/components/annotations/Annotation.d.ts.map +1 -0
  329. package/lib/typescript/commonjs/src/components/annotations/Callout.d.ts.map +1 -0
  330. package/lib/typescript/commonjs/src/components/annotations/MarkerView.d.ts.map +1 -0
  331. package/lib/typescript/commonjs/src/components/annotations/PointAnnotation.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/src/components/camera/Camera.d.ts +180 -0
  333. package/lib/typescript/commonjs/src/components/camera/Camera.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts +38 -0
  335. package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts +27 -0
  337. package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/src/components/layers/BackgroundLayer.d.ts +12 -0
  339. package/lib/typescript/commonjs/src/components/layers/BackgroundLayer.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/src/components/layers/CircleLayer.d.ts +15 -0
  341. package/lib/typescript/commonjs/src/components/layers/CircleLayer.d.ts.map +1 -0
  342. package/lib/typescript/commonjs/src/components/layers/FillExtrusionLayer.d.ts +15 -0
  343. package/lib/typescript/commonjs/src/components/layers/FillExtrusionLayer.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/src/components/layers/FillLayer.d.ts +15 -0
  345. package/lib/typescript/commonjs/src/components/layers/FillLayer.d.ts.map +1 -0
  346. package/lib/typescript/commonjs/src/components/layers/HeatmapLayer.d.ts +15 -0
  347. package/lib/typescript/commonjs/src/components/layers/HeatmapLayer.d.ts.map +1 -0
  348. package/lib/typescript/commonjs/src/components/layers/LineLayer.d.ts +15 -0
  349. package/lib/typescript/commonjs/src/components/layers/LineLayer.d.ts.map +1 -0
  350. package/lib/typescript/commonjs/src/components/layers/RasterLayer.d.ts +12 -0
  351. package/lib/typescript/commonjs/src/components/layers/RasterLayer.d.ts.map +1 -0
  352. package/lib/typescript/commonjs/src/components/layers/SymbolLayer.d.ts +15 -0
  353. package/lib/typescript/commonjs/src/components/layers/SymbolLayer.d.ts.map +1 -0
  354. package/lib/typescript/commonjs/src/components/map-view/MapView.d.ts +333 -0
  355. package/lib/typescript/commonjs/src/components/map-view/MapView.d.ts.map +1 -0
  356. package/lib/typescript/commonjs/src/components/map-view/MapViewNativeComponent.d.ts +71 -0
  357. package/lib/typescript/commonjs/src/components/map-view/MapViewNativeComponent.d.ts.map +1 -0
  358. package/lib/typescript/commonjs/src/components/map-view/NativeMapViewModule.d.ts +45 -0
  359. package/lib/typescript/commonjs/src/components/map-view/NativeMapViewModule.d.ts.map +1 -0
  360. package/lib/typescript/commonjs/src/components/sources/ImageSource.d.ts +30 -0
  361. package/lib/typescript/commonjs/src/components/sources/ImageSource.d.ts.map +1 -0
  362. package/lib/typescript/commonjs/src/components/sources/RasterSource.d.ts +53 -0
  363. package/lib/typescript/commonjs/src/components/sources/RasterSource.d.ts.map +1 -0
  364. package/lib/typescript/commonjs/src/components/sources/ShapeSource.d.ts +118 -0
  365. package/lib/typescript/commonjs/src/components/sources/ShapeSource.d.ts.map +1 -0
  366. package/lib/typescript/commonjs/src/components/sources/VectorSource.d.ts +67 -0
  367. package/lib/typescript/commonjs/src/components/sources/VectorSource.d.ts.map +1 -0
  368. package/lib/typescript/commonjs/src/components/user-location/NativeUserLocation.d.ts +24 -0
  369. package/lib/typescript/commonjs/src/components/user-location/NativeUserLocation.d.ts.map +1 -0
  370. package/lib/typescript/commonjs/src/components/user-location/UserLocation.d.ts +29 -0
  371. package/lib/typescript/commonjs/src/components/user-location/UserLocation.d.ts.map +1 -0
  372. package/lib/typescript/commonjs/src/components/user-location/UserLocationNativeComponent.d.ts +8 -0
  373. package/lib/typescript/commonjs/src/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
  374. package/lib/typescript/commonjs/src/components/user-location/UserLocationPuck.d.ts +10 -0
  375. package/lib/typescript/commonjs/src/components/user-location/UserLocationPuck.d.ts.map +1 -0
  376. package/lib/typescript/commonjs/src/components/user-location/UserLocationPuckHeading.d.ts +9 -0
  377. package/lib/typescript/commonjs/src/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
  378. package/lib/typescript/commonjs/src/hooks/useCurrentPosition.d.ts +18 -0
  379. package/lib/typescript/commonjs/src/hooks/useCurrentPosition.d.ts.map +1 -0
  380. package/lib/typescript/commonjs/src/index.d.ts +40 -1
  381. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  382. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts +51 -22
  383. package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +1 -1
  384. package/lib/typescript/commonjs/src/modules/location/NativeLocationModule.d.ts +25 -0
  385. package/lib/typescript/commonjs/src/modules/location/NativeLocationModule.d.ts.map +1 -0
  386. package/lib/typescript/commonjs/src/modules/log/LogManager.d.ts +45 -0
  387. package/lib/typescript/commonjs/src/modules/log/LogManager.d.ts.map +1 -0
  388. package/lib/typescript/commonjs/src/modules/log/NativeLogModule.d.ts +13 -0
  389. package/lib/typescript/commonjs/src/modules/log/NativeLogModule.d.ts.map +1 -0
  390. package/lib/typescript/commonjs/src/modules/snapshot/NativeSnapshotModule.d.ts +2 -1
  391. package/lib/typescript/commonjs/src/modules/snapshot/NativeSnapshotModule.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/src/plugin/android.d.ts.map +1 -1
  393. package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/src/types/Bounds.d.ts +2 -0
  395. package/lib/typescript/commonjs/src/types/Bounds.d.ts.map +1 -0
  396. package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts +6 -6
  397. package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/src/types/PressEvent.d.ts +16 -0
  399. package/lib/typescript/commonjs/src/types/PressEvent.d.ts.map +1 -0
  400. package/lib/typescript/commonjs/src/types/ViewPadding.d.ts +7 -0
  401. package/lib/typescript/commonjs/src/types/ViewPadding.d.ts.map +1 -0
  402. package/lib/typescript/commonjs/src/types/codegen/UnsafeMixed.d.ts +10 -0
  403. package/lib/typescript/commonjs/src/types/codegen/UnsafeMixed.d.ts.map +1 -0
  404. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +9 -21
  405. package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -1
  406. package/lib/typescript/commonjs/src/utils/index.d.ts +1 -3
  407. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
  408. package/lib/typescript/module/src/MLRNModule.d.ts +1 -7
  409. package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
  410. package/lib/typescript/module/src/components/Images.d.ts +11 -3
  411. package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
  412. package/lib/typescript/module/src/components/annotations/Annotation.d.ts +22 -0
  413. package/lib/typescript/module/src/components/annotations/Annotation.d.ts.map +1 -0
  414. package/lib/typescript/module/src/components/annotations/Callout.d.ts.map +1 -0
  415. package/lib/typescript/module/src/components/annotations/MarkerView.d.ts.map +1 -0
  416. package/lib/typescript/module/src/components/annotations/PointAnnotation.d.ts.map +1 -0
  417. package/lib/typescript/module/src/components/camera/Camera.d.ts +180 -0
  418. package/lib/typescript/module/src/components/camera/Camera.d.ts.map +1 -0
  419. package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts +38 -0
  420. package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts.map +1 -0
  421. package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts +27 -0
  422. package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts.map +1 -0
  423. package/lib/typescript/module/src/components/layers/BackgroundLayer.d.ts +12 -0
  424. package/lib/typescript/module/src/components/layers/BackgroundLayer.d.ts.map +1 -0
  425. package/lib/typescript/module/src/components/layers/CircleLayer.d.ts +15 -0
  426. package/lib/typescript/module/src/components/layers/CircleLayer.d.ts.map +1 -0
  427. package/lib/typescript/module/src/components/layers/FillExtrusionLayer.d.ts +15 -0
  428. package/lib/typescript/module/src/components/layers/FillExtrusionLayer.d.ts.map +1 -0
  429. package/lib/typescript/module/src/components/layers/FillLayer.d.ts +15 -0
  430. package/lib/typescript/module/src/components/layers/FillLayer.d.ts.map +1 -0
  431. package/lib/typescript/module/src/components/layers/HeatmapLayer.d.ts +15 -0
  432. package/lib/typescript/module/src/components/layers/HeatmapLayer.d.ts.map +1 -0
  433. package/lib/typescript/module/src/components/layers/LineLayer.d.ts +15 -0
  434. package/lib/typescript/module/src/components/layers/LineLayer.d.ts.map +1 -0
  435. package/lib/typescript/module/src/components/layers/RasterLayer.d.ts +12 -0
  436. package/lib/typescript/module/src/components/layers/RasterLayer.d.ts.map +1 -0
  437. package/lib/typescript/module/src/components/layers/SymbolLayer.d.ts +15 -0
  438. package/lib/typescript/module/src/components/layers/SymbolLayer.d.ts.map +1 -0
  439. package/lib/typescript/module/src/components/map-view/MapView.d.ts +333 -0
  440. package/lib/typescript/module/src/components/map-view/MapView.d.ts.map +1 -0
  441. package/lib/typescript/module/src/components/map-view/MapViewNativeComponent.d.ts +71 -0
  442. package/lib/typescript/module/src/components/map-view/MapViewNativeComponent.d.ts.map +1 -0
  443. package/lib/typescript/module/src/components/map-view/NativeMapViewModule.d.ts +45 -0
  444. package/lib/typescript/module/src/components/map-view/NativeMapViewModule.d.ts.map +1 -0
  445. package/lib/typescript/module/src/components/sources/ImageSource.d.ts +30 -0
  446. package/lib/typescript/module/src/components/sources/ImageSource.d.ts.map +1 -0
  447. package/lib/typescript/module/src/components/sources/RasterSource.d.ts +53 -0
  448. package/lib/typescript/module/src/components/sources/RasterSource.d.ts.map +1 -0
  449. package/lib/typescript/module/src/components/sources/ShapeSource.d.ts +118 -0
  450. package/lib/typescript/module/src/components/sources/ShapeSource.d.ts.map +1 -0
  451. package/lib/typescript/module/src/components/sources/VectorSource.d.ts +67 -0
  452. package/lib/typescript/module/src/components/sources/VectorSource.d.ts.map +1 -0
  453. package/lib/typescript/module/src/components/user-location/NativeUserLocation.d.ts +24 -0
  454. package/lib/typescript/module/src/components/user-location/NativeUserLocation.d.ts.map +1 -0
  455. package/lib/typescript/module/src/components/user-location/UserLocation.d.ts +29 -0
  456. package/lib/typescript/module/src/components/user-location/UserLocation.d.ts.map +1 -0
  457. package/lib/typescript/module/src/components/user-location/UserLocationNativeComponent.d.ts +8 -0
  458. package/lib/typescript/module/src/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
  459. package/lib/typescript/module/src/components/user-location/UserLocationPuck.d.ts +10 -0
  460. package/lib/typescript/module/src/components/user-location/UserLocationPuck.d.ts.map +1 -0
  461. package/lib/typescript/module/src/components/user-location/UserLocationPuckHeading.d.ts +9 -0
  462. package/lib/typescript/module/src/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
  463. package/lib/typescript/module/src/hooks/useCurrentPosition.d.ts +18 -0
  464. package/lib/typescript/module/src/hooks/useCurrentPosition.d.ts.map +1 -0
  465. package/lib/typescript/module/src/index.d.ts +40 -1
  466. package/lib/typescript/module/src/index.d.ts.map +1 -1
  467. package/lib/typescript/module/src/modules/location/LocationManager.d.ts +51 -22
  468. package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +1 -1
  469. package/lib/typescript/module/src/modules/location/NativeLocationModule.d.ts +25 -0
  470. package/lib/typescript/module/src/modules/location/NativeLocationModule.d.ts.map +1 -0
  471. package/lib/typescript/module/src/modules/log/LogManager.d.ts +45 -0
  472. package/lib/typescript/module/src/modules/log/LogManager.d.ts.map +1 -0
  473. package/lib/typescript/module/src/modules/log/NativeLogModule.d.ts +13 -0
  474. package/lib/typescript/module/src/modules/log/NativeLogModule.d.ts.map +1 -0
  475. package/lib/typescript/module/src/modules/snapshot/NativeSnapshotModule.d.ts +2 -1
  476. package/lib/typescript/module/src/modules/snapshot/NativeSnapshotModule.d.ts.map +1 -1
  477. package/lib/typescript/module/src/plugin/android.d.ts.map +1 -1
  478. package/lib/typescript/module/src/plugin/ios.d.ts.map +1 -1
  479. package/lib/typescript/module/src/types/Bounds.d.ts +2 -0
  480. package/lib/typescript/module/src/types/Bounds.d.ts.map +1 -0
  481. package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts +6 -6
  482. package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +1 -1
  483. package/lib/typescript/module/src/types/PressEvent.d.ts +16 -0
  484. package/lib/typescript/module/src/types/PressEvent.d.ts.map +1 -0
  485. package/lib/typescript/module/src/types/ViewPadding.d.ts +7 -0
  486. package/lib/typescript/module/src/types/ViewPadding.d.ts.map +1 -0
  487. package/lib/typescript/module/src/types/codegen/UnsafeMixed.d.ts +10 -0
  488. package/lib/typescript/module/src/types/codegen/UnsafeMixed.d.ts.map +1 -0
  489. package/lib/typescript/module/src/utils/animated/Animated.d.ts +9 -21
  490. package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -1
  491. package/lib/typescript/module/src/utils/index.d.ts +1 -3
  492. package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
  493. package/package.json +45 -31
  494. package/src/MLRNModule.ts +0 -10
  495. package/src/components/Images.tsx +59 -66
  496. package/src/components/annotations/Annotation.tsx +149 -0
  497. package/src/components/annotations/MarkerView.tsx +86 -0
  498. package/src/components/annotations/PointAnnotation.tsx +244 -0
  499. package/src/components/camera/Camera.tsx +307 -0
  500. package/src/components/camera/CameraNativeComponent.ts +66 -0
  501. package/src/components/camera/NativeCameraModule.ts +39 -0
  502. package/src/components/layers/BackgroundLayer.tsx +48 -0
  503. package/src/components/layers/CircleLayer.tsx +50 -0
  504. package/src/components/layers/FillExtrusionLayer.tsx +45 -0
  505. package/src/components/layers/FillLayer.tsx +42 -0
  506. package/src/components/layers/HeatmapLayer.tsx +44 -0
  507. package/src/components/layers/LineLayer.tsx +43 -0
  508. package/src/components/layers/RasterLayer.tsx +41 -0
  509. package/src/components/layers/SymbolLayer.tsx +48 -0
  510. package/src/components/map-view/MapView.tsx +602 -0
  511. package/src/components/map-view/MapViewNativeComponent.ts +98 -0
  512. package/src/components/map-view/NativeMapViewModule.ts +83 -0
  513. package/src/components/sources/ImageSource.tsx +68 -0
  514. package/src/components/sources/RasterSource.tsx +112 -0
  515. package/src/components/sources/ShapeSource.tsx +366 -0
  516. package/src/components/sources/VectorSource.tsx +172 -0
  517. package/src/components/user-location/NativeUserLocation.tsx +28 -0
  518. package/src/components/user-location/UserLocation.tsx +86 -0
  519. package/src/components/user-location/UserLocationNativeComponent.ts +19 -0
  520. package/src/components/user-location/UserLocationPuck.tsx +81 -0
  521. package/src/components/user-location/UserLocationPuckHeading.tsx +34 -0
  522. package/src/hooks/useCurrentPosition.ts +53 -0
  523. package/src/index.ts +85 -1
  524. package/src/modules/location/LocationManager.ts +109 -97
  525. package/src/modules/location/NativeLocationModule.ts +33 -0
  526. package/src/modules/log/LogManager.ts +114 -0
  527. package/src/modules/log/NativeLogModule.ts +16 -0
  528. package/src/modules/snapshot/NativeSnapshotModule.ts +1 -2
  529. package/src/modules/snapshot/SnapshotManager.ts +1 -1
  530. package/src/types/Bounds.ts +1 -0
  531. package/src/types/MapLibreRNStyles.ts +6 -6
  532. package/src/types/PressEvent.ts +19 -0
  533. package/src/types/ViewPadding.ts +6 -0
  534. package/src/types/codegen/UnsafeMixed.ts +9 -0
  535. package/src/utils/animated/Animated.ts +9 -36
  536. package/src/utils/index.ts +1 -14
  537. package/android/src/main/java/org/maplibre/reactnative/components/AbstractEvent.java +0 -35
  538. package/android/src/main/java/org/maplibre/reactnative/components/AbstractEventEmitter.java +0 -80
  539. package/android/src/main/java/org/maplibre/reactnative/components/annotation/MLRNCallout.java +0 -11
  540. package/android/src/main/java/org/maplibre/reactnative/components/annotation/MLRNCalloutManager.java +0 -18
  541. package/android/src/main/java/org/maplibre/reactnative/components/annotation/MLRNMarkerView.java +0 -112
  542. package/android/src/main/java/org/maplibre/reactnative/components/annotation/MLRNMarkerViewManager.java +0 -45
  543. package/android/src/main/java/org/maplibre/reactnative/components/annotation/MLRNPointAnnotation.java +0 -361
  544. package/android/src/main/java/org/maplibre/reactnative/components/annotation/MLRNPointAnnotationManager.java +0 -84
  545. package/android/src/main/java/org/maplibre/reactnative/components/annotation/MarkerView.java +0 -23
  546. package/android/src/main/java/org/maplibre/reactnative/components/annotation/MarkerViewManager.java +0 -69
  547. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraStop.java +0 -245
  548. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraUpdateItem.java +0 -121
  549. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraUpdateQueue.java +0 -68
  550. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.java +0 -519
  551. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCameraManager.java +0 -101
  552. package/android/src/main/java/org/maplibre/reactnative/components/camera/constants/CameraMode.java +0 -18
  553. package/android/src/main/java/org/maplibre/reactnative/components/location/LocationComponentManager.java +0 -165
  554. package/android/src/main/java/org/maplibre/reactnative/components/location/MLRNNativeUserLocation.java +0 -76
  555. package/android/src/main/java/org/maplibre/reactnative/components/location/MLRNNativeUserLocationManager.java +0 -40
  556. package/android/src/main/java/org/maplibre/reactnative/components/mapview/LayerSourceInfo.java +0 -59
  557. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNAndroidTextureMapView.java +0 -13
  558. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNAndroidTextureMapViewManager.java +0 -27
  559. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.java +0 -1521
  560. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.java +0 -342
  561. package/android/src/main/java/org/maplibre/reactnative/components/mapview/helpers/CameraChangeTracker.java +0 -37
  562. package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyle.java +0 -76
  563. package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyleFactory.java +0 -2285
  564. package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyleFunctionParser.java +0 -103
  565. package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyleValue.java +0 -208
  566. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNBackgroundLayer.java +0 -23
  567. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNBackgroundLayerManager.java +0 -60
  568. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNCircleLayer.java +0 -51
  569. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNCircleLayerManager.java +0 -73
  570. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNFillExtrusionLayer.java +0 -51
  571. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNFillExtrusionLayerManager.java +0 -76
  572. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNFillLayer.java +0 -51
  573. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNFillLayerManager.java +0 -76
  574. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNHeatmapLayer.java +0 -51
  575. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNHeatmapLayerManager.java +0 -73
  576. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNLayer.java +0 -283
  577. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNLineLayer.java +0 -51
  578. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNLineLayerManager.java +0 -75
  579. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNRasterLayer.java +0 -23
  580. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNRasterLayerManager.java +0 -60
  581. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNSymbolLayer.java +0 -51
  582. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNSymbolLayerManager.java +0 -71
  583. package/android/src/main/java/org/maplibre/reactnative/components/styles/light/MLRNLight.java +0 -61
  584. package/android/src/main/java/org/maplibre/reactnative/components/styles/light/MLRNLightManager.java +0 -25
  585. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNImageSource.java +0 -77
  586. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNImageSourceManager.java +0 -68
  587. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNRasterSource.java +0 -41
  588. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNRasterSourceManager.java +0 -39
  589. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSource.java +0 -246
  590. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSourceManager.java +0 -221
  591. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNSource.java +0 -240
  592. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNTileSource.java +0 -97
  593. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNTileSourceManager.java +0 -80
  594. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNVectorSource.java +0 -60
  595. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNVectorSourceManager.java +0 -80
  596. package/android/src/main/java/org/maplibre/reactnative/events/LocationEvent.java +0 -100
  597. package/android/src/main/java/org/maplibre/reactnative/events/MapChangeEvent.java +0 -43
  598. package/android/src/main/java/org/maplibre/reactnative/events/MapUserTrackingModeEvent.java +0 -32
  599. package/android/src/main/java/org/maplibre/reactnative/location/LocationManager.java +0 -160
  600. package/android/src/main/java/org/maplibre/reactnative/location/UserLocation.java +0 -59
  601. package/android/src/main/java/org/maplibre/reactnative/location/UserLocationVerticalAlignment.java +0 -7
  602. package/android/src/main/java/org/maplibre/reactnative/location/UserTrackingMode.java +0 -59
  603. package/android/src/main/java/org/maplibre/reactnative/location/UserTrackingState.java +0 -15
  604. package/android/src/main/java/org/maplibre/reactnative/location/engine/DefaultLocationEngineProvider.java +0 -18
  605. package/android/src/main/java/org/maplibre/reactnative/location/engine/LocationEngineProvidable.java +0 -9
  606. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNLocationModule.java +0 -158
  607. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNLogging.java +0 -140
  608. package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.java +0 -310
  609. package/android/src/main/location-engine-default/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +0 -12
  610. package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineImpl.java +0 -151
  611. package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineProvider.java +0 -24
  612. package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +0 -12
  613. package/ios/CameraMode.h +0 -10
  614. package/ios/CameraMode.m +0 -10
  615. package/ios/CameraStop.h +0 -18
  616. package/ios/CameraStop.m +0 -73
  617. package/ios/CameraUpdateItem.m +0 -168
  618. package/ios/MLRN.h +0 -5
  619. package/ios/MLRN.m +0 -5
  620. package/ios/MLRNCallout.h +0 -7
  621. package/ios/MLRNCamera.h +0 -29
  622. package/ios/MLRNCamera.m +0 -236
  623. package/ios/MLRNCameraManager.h +0 -5
  624. package/ios/MLRNCameraManager.m +0 -39
  625. package/ios/MLRNEvent.m +0 -34
  626. package/ios/MLRNEventTypes.h +0 -42
  627. package/ios/MLRNEventTypes.m +0 -41
  628. package/ios/MLRNImageQueue.h +0 -14
  629. package/ios/MLRNImageQueue.m +0 -46
  630. package/ios/MLRNImageQueueOperation.h +0 -10
  631. package/ios/MLRNImageQueueOperation.m +0 -131
  632. package/ios/MLRNImages.h +0 -24
  633. package/ios/MLRNImages.m +0 -124
  634. package/ios/MLRNLayer.h +0 -42
  635. package/ios/MLRNLayer.m +0 -216
  636. package/ios/MLRNLight.h +0 -9
  637. package/ios/MLRNLight.m +0 -36
  638. package/ios/MLRNLightManager.h +0 -5
  639. package/ios/MLRNLightManager.m +0 -14
  640. package/ios/MLRNLocation.h +0 -11
  641. package/ios/MLRNLocation.m +0 -23
  642. package/ios/MLRNLocationManager.h +0 -22
  643. package/ios/MLRNLocationManager.m +0 -157
  644. package/ios/MLRNLocationManagerDelegate.h +0 -12
  645. package/ios/MLRNLocationModule.h +0 -7
  646. package/ios/MLRNLocationModule.m +0 -76
  647. package/ios/MLRNLogging.h +0 -15
  648. package/ios/MLRNLogging.m +0 -127
  649. package/ios/MLRNMapTouchEvent.h +0 -17
  650. package/ios/MLRNMapTouchEvent.m +0 -70
  651. package/ios/MLRNMapView.h +0 -90
  652. package/ios/MLRNMapView.m +0 -497
  653. package/ios/MLRNMapViewManager.h +0 -9
  654. package/ios/MLRNMapViewManager.m +0 -604
  655. package/ios/MLRNModule.m +0 -110
  656. package/ios/MLRNNativeUserLocation.h +0 -11
  657. package/ios/MLRNNativeUserLocation.m +0 -38
  658. package/ios/MLRNNativeUserLocationManager.h +0 -5
  659. package/ios/MLRNNativeUserLocationManager.m +0 -21
  660. package/ios/MLRNOfflineModule.h +0 -11
  661. package/ios/MLRNOfflineModule.m +0 -524
  662. package/ios/MLRNPointAnnotation.h +0 -33
  663. package/ios/MLRNShapeSource.h +0 -35
  664. package/ios/MLRNShapeSource.m +0 -140
  665. package/ios/MLRNShapeSourceManager.m +0 -127
  666. package/ios/MLRNSnapshotModule/MLRNSnapshotModule.mm +0 -78
  667. package/ios/MLRNSource.h +0 -27
  668. package/ios/MLRNStyle.m +0 -1642
  669. package/ios/MLRNStyleValue.h +0 -19
  670. package/ios/MLRNStyleValue.m +0 -159
  671. package/ios/MLRNUtils.h +0 -29
  672. package/ios/MLRNUtils.m +0 -218
  673. package/lib/commonjs/MapLibreRN.js +0 -266
  674. package/lib/commonjs/MapLibreRN.js.map +0 -1
  675. package/lib/commonjs/components/Annotation.js +0 -107
  676. package/lib/commonjs/components/Annotation.js.map +0 -1
  677. package/lib/commonjs/components/BackgroundLayer.js +0 -31
  678. package/lib/commonjs/components/BackgroundLayer.js.map +0 -1
  679. package/lib/commonjs/components/Callout.js.map +0 -1
  680. package/lib/commonjs/components/Camera.js +0 -333
  681. package/lib/commonjs/components/Camera.js.map +0 -1
  682. package/lib/commonjs/components/CircleLayer.js +0 -35
  683. package/lib/commonjs/components/CircleLayer.js.map +0 -1
  684. package/lib/commonjs/components/FillExtrusionLayer.js +0 -34
  685. package/lib/commonjs/components/FillExtrusionLayer.js.map +0 -1
  686. package/lib/commonjs/components/FillLayer.js +0 -34
  687. package/lib/commonjs/components/FillLayer.js.map +0 -1
  688. package/lib/commonjs/components/HeatmapLayer.js +0 -33
  689. package/lib/commonjs/components/HeatmapLayer.js.map +0 -1
  690. package/lib/commonjs/components/ImageSource.js +0 -41
  691. package/lib/commonjs/components/ImageSource.js.map +0 -1
  692. package/lib/commonjs/components/Light.js +0 -30
  693. package/lib/commonjs/components/Light.js.map +0 -1
  694. package/lib/commonjs/components/LineLayer.js +0 -34
  695. package/lib/commonjs/components/LineLayer.js.map +0 -1
  696. package/lib/commonjs/components/MapView.js +0 -449
  697. package/lib/commonjs/components/MapView.js.map +0 -1
  698. package/lib/commonjs/components/MarkerView.js +0 -60
  699. package/lib/commonjs/components/MarkerView.js.map +0 -1
  700. package/lib/commonjs/components/NativeUserLocation.js +0 -17
  701. package/lib/commonjs/components/NativeUserLocation.js.map +0 -1
  702. package/lib/commonjs/components/PointAnnotation.js +0 -118
  703. package/lib/commonjs/components/PointAnnotation.js.map +0 -1
  704. package/lib/commonjs/components/RasterLayer.js +0 -30
  705. package/lib/commonjs/components/RasterLayer.js.map +0 -1
  706. package/lib/commonjs/components/RasterSource.js +0 -65
  707. package/lib/commonjs/components/RasterSource.js.map +0 -1
  708. package/lib/commonjs/components/ShapeSource.js +0 -170
  709. package/lib/commonjs/components/ShapeSource.js.map +0 -1
  710. package/lib/commonjs/components/SymbolLayer.js +0 -37
  711. package/lib/commonjs/components/SymbolLayer.js.map +0 -1
  712. package/lib/commonjs/components/UserLocation.js +0 -156
  713. package/lib/commonjs/components/UserLocation.js.map +0 -1
  714. package/lib/commonjs/components/UserLocationPuck.js +0 -52
  715. package/lib/commonjs/components/UserLocationPuck.js.map +0 -1
  716. package/lib/commonjs/components/UserLocationPuckHeading.js +0 -31
  717. package/lib/commonjs/components/UserLocationPuckHeading.js.map +0 -1
  718. package/lib/commonjs/components/VectorSource.js +0 -117
  719. package/lib/commonjs/components/VectorSource.js.map +0 -1
  720. package/lib/commonjs/hooks/useNativeRef.js +0 -14
  721. package/lib/commonjs/hooks/useNativeRef.js.map +0 -1
  722. package/lib/commonjs/requestAndroidLocationPermissions.js +0 -25
  723. package/lib/commonjs/requestAndroidLocationPermissions.js.map +0 -1
  724. package/lib/commonjs/types/CameraMode.js +0 -14
  725. package/lib/commonjs/types/CameraMode.js.map +0 -1
  726. package/lib/commonjs/types/MapLibreRNEvent.js +0 -6
  727. package/lib/commonjs/types/MapLibreRNEvent.js.map +0 -1
  728. package/lib/commonjs/types/OnPressEvent.js +0 -2
  729. package/lib/commonjs/types/OnPressEvent.js.map +0 -1
  730. package/lib/commonjs/utils/Logger.js +0 -116
  731. package/lib/commonjs/utils/Logger.js.map +0 -1
  732. package/lib/module/MapLibreRN.js +0 -33
  733. package/lib/module/MapLibreRN.js.map +0 -1
  734. package/lib/module/components/Annotation.js +0 -103
  735. package/lib/module/components/Annotation.js.map +0 -1
  736. package/lib/module/components/BackgroundLayer.js +0 -26
  737. package/lib/module/components/BackgroundLayer.js.map +0 -1
  738. package/lib/module/components/Callout.js.map +0 -1
  739. package/lib/module/components/Camera.js +0 -328
  740. package/lib/module/components/Camera.js.map +0 -1
  741. package/lib/module/components/CircleLayer.js +0 -30
  742. package/lib/module/components/CircleLayer.js.map +0 -1
  743. package/lib/module/components/FillExtrusionLayer.js +0 -29
  744. package/lib/module/components/FillExtrusionLayer.js.map +0 -1
  745. package/lib/module/components/FillLayer.js +0 -29
  746. package/lib/module/components/FillLayer.js.map +0 -1
  747. package/lib/module/components/HeatmapLayer.js +0 -28
  748. package/lib/module/components/HeatmapLayer.js.map +0 -1
  749. package/lib/module/components/ImageSource.js +0 -36
  750. package/lib/module/components/ImageSource.js.map +0 -1
  751. package/lib/module/components/Light.js +0 -25
  752. package/lib/module/components/Light.js.map +0 -1
  753. package/lib/module/components/LineLayer.js +0 -29
  754. package/lib/module/components/LineLayer.js.map +0 -1
  755. package/lib/module/components/MapView.js +0 -444
  756. package/lib/module/components/MapView.js.map +0 -1
  757. package/lib/module/components/MarkerView.js +0 -55
  758. package/lib/module/components/MarkerView.js.map +0 -1
  759. package/lib/module/components/NativeUserLocation.js +0 -12
  760. package/lib/module/components/NativeUserLocation.js.map +0 -1
  761. package/lib/module/components/PointAnnotation.js +0 -114
  762. package/lib/module/components/PointAnnotation.js.map +0 -1
  763. package/lib/module/components/RasterLayer.js +0 -25
  764. package/lib/module/components/RasterLayer.js.map +0 -1
  765. package/lib/module/components/RasterSource.js +0 -60
  766. package/lib/module/components/RasterSource.js.map +0 -1
  767. package/lib/module/components/ShapeSource.js +0 -166
  768. package/lib/module/components/ShapeSource.js.map +0 -1
  769. package/lib/module/components/SymbolLayer.js +0 -32
  770. package/lib/module/components/SymbolLayer.js.map +0 -1
  771. package/lib/module/components/UserLocation.js +0 -152
  772. package/lib/module/components/UserLocation.js.map +0 -1
  773. package/lib/module/components/UserLocationPuck.js +0 -48
  774. package/lib/module/components/UserLocationPuck.js.map +0 -1
  775. package/lib/module/components/UserLocationPuckHeading.js +0 -26
  776. package/lib/module/components/UserLocationPuckHeading.js.map +0 -1
  777. package/lib/module/components/VectorSource.js +0 -113
  778. package/lib/module/components/VectorSource.js.map +0 -1
  779. package/lib/module/hooks/useNativeRef.js +0 -10
  780. package/lib/module/hooks/useNativeRef.js.map +0 -1
  781. package/lib/module/requestAndroidLocationPermissions.js +0 -21
  782. package/lib/module/requestAndroidLocationPermissions.js.map +0 -1
  783. package/lib/module/types/CameraMode.js +0 -10
  784. package/lib/module/types/CameraMode.js.map +0 -1
  785. package/lib/module/types/MapLibreRNEvent.js +0 -4
  786. package/lib/module/types/MapLibreRNEvent.js.map +0 -1
  787. package/lib/module/types/OnPressEvent.js +0 -2
  788. package/lib/module/types/OnPressEvent.js.map +0 -1
  789. package/lib/module/utils/Logger.js +0 -111
  790. package/lib/module/utils/Logger.js.map +0 -1
  791. package/lib/typescript/commonjs/src/MapLibreRN.d.ts +0 -41
  792. package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +0 -1
  793. package/lib/typescript/commonjs/src/components/Annotation.d.ts +0 -21
  794. package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +0 -1
  795. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +0 -12
  796. package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +0 -1
  797. package/lib/typescript/commonjs/src/components/Callout.d.ts.map +0 -1
  798. package/lib/typescript/commonjs/src/components/Camera.d.ts +0 -134
  799. package/lib/typescript/commonjs/src/components/Camera.d.ts.map +0 -1
  800. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +0 -15
  801. package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +0 -1
  802. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +0 -15
  803. package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +0 -1
  804. package/lib/typescript/commonjs/src/components/FillLayer.d.ts +0 -15
  805. package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +0 -1
  806. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +0 -15
  807. package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +0 -1
  808. package/lib/typescript/commonjs/src/components/ImageSource.d.ts +0 -30
  809. package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +0 -1
  810. package/lib/typescript/commonjs/src/components/Light.d.ts +0 -16
  811. package/lib/typescript/commonjs/src/components/Light.d.ts.map +0 -1
  812. package/lib/typescript/commonjs/src/components/LineLayer.d.ts +0 -15
  813. package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +0 -1
  814. package/lib/typescript/commonjs/src/components/MapView.d.ts +0 -223
  815. package/lib/typescript/commonjs/src/components/MapView.d.ts.map +0 -1
  816. package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +0 -1
  817. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +0 -25
  818. package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +0 -1
  819. package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +0 -1
  820. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +0 -12
  821. package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +0 -1
  822. package/lib/typescript/commonjs/src/components/RasterSource.d.ts +0 -53
  823. package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +0 -1
  824. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +0 -116
  825. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +0 -1
  826. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +0 -15
  827. package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +0 -1
  828. package/lib/typescript/commonjs/src/components/UserLocation.d.ts +0 -69
  829. package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +0 -1
  830. package/lib/typescript/commonjs/src/components/UserLocationPuck.d.ts +0 -9
  831. package/lib/typescript/commonjs/src/components/UserLocationPuck.d.ts.map +0 -1
  832. package/lib/typescript/commonjs/src/components/UserLocationPuckHeading.d.ts +0 -9
  833. package/lib/typescript/commonjs/src/components/UserLocationPuckHeading.d.ts.map +0 -1
  834. package/lib/typescript/commonjs/src/components/VectorSource.d.ts +0 -66
  835. package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +0 -1
  836. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +0 -8
  837. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +0 -1
  838. package/lib/typescript/commonjs/src/requestAndroidLocationPermissions.d.ts +0 -2
  839. package/lib/typescript/commonjs/src/requestAndroidLocationPermissions.d.ts.map +0 -1
  840. package/lib/typescript/commonjs/src/types/CameraMode.d.ts +0 -7
  841. package/lib/typescript/commonjs/src/types/CameraMode.d.ts.map +0 -1
  842. package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts +0 -6
  843. package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts.map +0 -1
  844. package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts +0 -12
  845. package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts.map +0 -1
  846. package/lib/typescript/commonjs/src/utils/Logger.d.ts +0 -52
  847. package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +0 -1
  848. package/lib/typescript/module/src/MapLibreRN.d.ts +0 -41
  849. package/lib/typescript/module/src/MapLibreRN.d.ts.map +0 -1
  850. package/lib/typescript/module/src/components/Annotation.d.ts +0 -21
  851. package/lib/typescript/module/src/components/Annotation.d.ts.map +0 -1
  852. package/lib/typescript/module/src/components/BackgroundLayer.d.ts +0 -12
  853. package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +0 -1
  854. package/lib/typescript/module/src/components/Callout.d.ts.map +0 -1
  855. package/lib/typescript/module/src/components/Camera.d.ts +0 -134
  856. package/lib/typescript/module/src/components/Camera.d.ts.map +0 -1
  857. package/lib/typescript/module/src/components/CircleLayer.d.ts +0 -15
  858. package/lib/typescript/module/src/components/CircleLayer.d.ts.map +0 -1
  859. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +0 -15
  860. package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +0 -1
  861. package/lib/typescript/module/src/components/FillLayer.d.ts +0 -15
  862. package/lib/typescript/module/src/components/FillLayer.d.ts.map +0 -1
  863. package/lib/typescript/module/src/components/HeatmapLayer.d.ts +0 -15
  864. package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +0 -1
  865. package/lib/typescript/module/src/components/ImageSource.d.ts +0 -30
  866. package/lib/typescript/module/src/components/ImageSource.d.ts.map +0 -1
  867. package/lib/typescript/module/src/components/Light.d.ts +0 -16
  868. package/lib/typescript/module/src/components/Light.d.ts.map +0 -1
  869. package/lib/typescript/module/src/components/LineLayer.d.ts +0 -15
  870. package/lib/typescript/module/src/components/LineLayer.d.ts.map +0 -1
  871. package/lib/typescript/module/src/components/MapView.d.ts +0 -223
  872. package/lib/typescript/module/src/components/MapView.d.ts.map +0 -1
  873. package/lib/typescript/module/src/components/MarkerView.d.ts.map +0 -1
  874. package/lib/typescript/module/src/components/NativeUserLocation.d.ts +0 -25
  875. package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +0 -1
  876. package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +0 -1
  877. package/lib/typescript/module/src/components/RasterLayer.d.ts +0 -12
  878. package/lib/typescript/module/src/components/RasterLayer.d.ts.map +0 -1
  879. package/lib/typescript/module/src/components/RasterSource.d.ts +0 -53
  880. package/lib/typescript/module/src/components/RasterSource.d.ts.map +0 -1
  881. package/lib/typescript/module/src/components/ShapeSource.d.ts +0 -116
  882. package/lib/typescript/module/src/components/ShapeSource.d.ts.map +0 -1
  883. package/lib/typescript/module/src/components/SymbolLayer.d.ts +0 -15
  884. package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +0 -1
  885. package/lib/typescript/module/src/components/UserLocation.d.ts +0 -69
  886. package/lib/typescript/module/src/components/UserLocation.d.ts.map +0 -1
  887. package/lib/typescript/module/src/components/UserLocationPuck.d.ts +0 -9
  888. package/lib/typescript/module/src/components/UserLocationPuck.d.ts.map +0 -1
  889. package/lib/typescript/module/src/components/UserLocationPuckHeading.d.ts +0 -9
  890. package/lib/typescript/module/src/components/UserLocationPuckHeading.d.ts.map +0 -1
  891. package/lib/typescript/module/src/components/VectorSource.d.ts +0 -66
  892. package/lib/typescript/module/src/components/VectorSource.d.ts.map +0 -1
  893. package/lib/typescript/module/src/hooks/useNativeRef.d.ts +0 -8
  894. package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +0 -1
  895. package/lib/typescript/module/src/requestAndroidLocationPermissions.d.ts +0 -2
  896. package/lib/typescript/module/src/requestAndroidLocationPermissions.d.ts.map +0 -1
  897. package/lib/typescript/module/src/types/CameraMode.d.ts +0 -7
  898. package/lib/typescript/module/src/types/CameraMode.d.ts.map +0 -1
  899. package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts +0 -6
  900. package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts.map +0 -1
  901. package/lib/typescript/module/src/types/OnPressEvent.d.ts +0 -12
  902. package/lib/typescript/module/src/types/OnPressEvent.d.ts.map +0 -1
  903. package/lib/typescript/module/src/utils/Logger.d.ts +0 -52
  904. package/lib/typescript/module/src/utils/Logger.d.ts.map +0 -1
  905. package/src/MapLibreRN.ts +0 -74
  906. package/src/components/Annotation.tsx +0 -162
  907. package/src/components/BackgroundLayer.tsx +0 -48
  908. package/src/components/Camera.tsx +0 -568
  909. package/src/components/CircleLayer.tsx +0 -50
  910. package/src/components/FillExtrusionLayer.tsx +0 -45
  911. package/src/components/FillLayer.tsx +0 -42
  912. package/src/components/HeatmapLayer.tsx +0 -44
  913. package/src/components/ImageSource.tsx +0 -68
  914. package/src/components/Light.tsx +0 -38
  915. package/src/components/LineLayer.tsx +0 -43
  916. package/src/components/MapView.tsx +0 -838
  917. package/src/components/MarkerView.tsx +0 -86
  918. package/src/components/NativeUserLocation.tsx +0 -32
  919. package/src/components/PointAnnotation.tsx +0 -244
  920. package/src/components/RasterLayer.tsx +0 -41
  921. package/src/components/RasterSource.tsx +0 -112
  922. package/src/components/ShapeSource.tsx +0 -368
  923. package/src/components/SymbolLayer.tsx +0 -48
  924. package/src/components/UserLocation.tsx +0 -268
  925. package/src/components/UserLocationPuck.tsx +0 -62
  926. package/src/components/UserLocationPuckHeading.tsx +0 -33
  927. package/src/components/VectorSource.tsx +0 -195
  928. package/src/hooks/useNativeRef.ts +0 -14
  929. package/src/requestAndroidLocationPermissions.ts +0 -29
  930. package/src/types/CameraMode.ts +0 -6
  931. package/src/types/MapLibreRNEvent.ts +0 -7
  932. package/src/types/OnPressEvent.ts +0 -11
  933. package/src/utils/Logger.ts +0 -131
  934. /package/ios/{ViewManager.h → components/ViewManager.h} +0 -0
  935. /package/ios/{ViewManager.m → components/ViewManager.m} +0 -0
  936. /package/ios/{MLRNCallout.m → components/annotations/MLRNCallout.m} +0 -0
  937. /package/ios/{MLRNCalloutManager.h → components/annotations/MLRNCalloutManager.h} +0 -0
  938. /package/ios/{MLRNCalloutManager.m → components/annotations/MLRNCalloutManager.m} +0 -0
  939. /package/ios/{MLRNPointAnnotation.m → components/annotations/MLRNPointAnnotation.m} +0 -0
  940. /package/ios/{MLRNPointAnnotationManager.h → components/annotations/MLRNPointAnnotationManager.h} +0 -0
  941. /package/ios/{MLRNPointAnnotationManager.m → components/annotations/MLRNPointAnnotationManager.m} +0 -0
  942. /package/ios/{CameraUpdateItem.h → components/camera/CameraUpdateItem.h} +0 -0
  943. /package/ios/{CameraUpdateQueue.h → components/camera/CameraUpdateQueue.h} +0 -0
  944. /package/ios/{CameraUpdateQueue.m → components/camera/CameraUpdateQueue.m} +0 -0
  945. /package/ios/{MLRNImageUtils.h → components/images/MLRNImageUtils.h} +0 -0
  946. /package/ios/{MLRNImageUtils.m → components/images/MLRNImageUtils.m} +0 -0
  947. /package/ios/{MLRNImagesManager.h → components/images/MLRNImagesManager.h} +0 -0
  948. /package/ios/{MLRNImagesManager.m → components/images/MLRNImagesManager.m} +0 -0
  949. /package/ios/{MLRNBackgroundLayer.h → components/layers/MLRNBackgroundLayer.h} +0 -0
  950. /package/ios/{MLRNBackgroundLayer.m → components/layers/MLRNBackgroundLayer.m} +0 -0
  951. /package/ios/{MLRNBackgroundLayerManager.h → components/layers/MLRNBackgroundLayerManager.h} +0 -0
  952. /package/ios/{MLRNBackgroundLayerManager.m → components/layers/MLRNBackgroundLayerManager.m} +0 -0
  953. /package/ios/{MLRNCircleLayer.h → components/layers/MLRNCircleLayer.h} +0 -0
  954. /package/ios/{MLRNCircleLayer.m → components/layers/MLRNCircleLayer.m} +0 -0
  955. /package/ios/{MLRNCircleLayerManager.h → components/layers/MLRNCircleLayerManager.h} +0 -0
  956. /package/ios/{MLRNCircleLayerManager.m → components/layers/MLRNCircleLayerManager.m} +0 -0
  957. /package/ios/{MLRNFillExtrusionLayer.h → components/layers/MLRNFillExtrusionLayer.h} +0 -0
  958. /package/ios/{MLRNFillExtrusionLayer.m → components/layers/MLRNFillExtrusionLayer.m} +0 -0
  959. /package/ios/{MLRNFillExtrusionLayerManager.h → components/layers/MLRNFillExtrusionLayerManager.h} +0 -0
  960. /package/ios/{MLRNFillExtrusionLayerManager.m → components/layers/MLRNFillExtrusionLayerManager.m} +0 -0
  961. /package/ios/{MLRNFillLayer.h → components/layers/MLRNFillLayer.h} +0 -0
  962. /package/ios/{MLRNFillLayer.m → components/layers/MLRNFillLayer.m} +0 -0
  963. /package/ios/{MLRNFillLayerManager.h → components/layers/MLRNFillLayerManager.h} +0 -0
  964. /package/ios/{MLRNFillLayerManager.m → components/layers/MLRNFillLayerManager.m} +0 -0
  965. /package/ios/{MLRNHeatmapLayer.h → components/layers/MLRNHeatmapLayer.h} +0 -0
  966. /package/ios/{MLRNHeatmapLayer.m → components/layers/MLRNHeatmapLayer.m} +0 -0
  967. /package/ios/{MLRNHeatmapLayerManager.h → components/layers/MLRNHeatmapLayerManager.h} +0 -0
  968. /package/ios/{MLRNHeatmapLayerManager.m → components/layers/MLRNHeatmapLayerManager.m} +0 -0
  969. /package/ios/{MLRNLineLayer.h → components/layers/MLRNLineLayer.h} +0 -0
  970. /package/ios/{MLRNLineLayer.m → components/layers/MLRNLineLayer.m} +0 -0
  971. /package/ios/{MLRNLineLayerManager.h → components/layers/MLRNLineLayerManager.h} +0 -0
  972. /package/ios/{MLRNLineLayerManager.m → components/layers/MLRNLineLayerManager.m} +0 -0
  973. /package/ios/{MLRNRasterLayer.h → components/layers/MLRNRasterLayer.h} +0 -0
  974. /package/ios/{MLRNRasterLayer.m → components/layers/MLRNRasterLayer.m} +0 -0
  975. /package/ios/{MLRNRasterLayerManager.h → components/layers/MLRNRasterLayerManager.h} +0 -0
  976. /package/ios/{MLRNRasterLayerManager.m → components/layers/MLRNRasterLayerManager.m} +0 -0
  977. /package/ios/{MLRNSymbolLayer.h → components/layers/MLRNSymbolLayer.h} +0 -0
  978. /package/ios/{MLRNSymbolLayer.m → components/layers/MLRNSymbolLayer.m} +0 -0
  979. /package/ios/{MLRNSymbolLayerManager.h → components/layers/MLRNSymbolLayerManager.h} +0 -0
  980. /package/ios/{MLRNSymbolLayerManager.m → components/layers/MLRNSymbolLayerManager.m} +0 -0
  981. /package/ios/{MLRNVectorLayer.h → components/layers/MLRNVectorLayer.h} +0 -0
  982. /package/ios/{MLRNVectorLayer.m → components/layers/MLRNVectorLayer.m} +0 -0
  983. /package/ios/{MLRNStyle.h → components/layers/style/MLRNStyle.h} +0 -0
  984. /package/ios/{MLRNImageSource.h → components/sources/MLRNImageSource.h} +0 -0
  985. /package/ios/{MLRNImageSource.m → components/sources/MLRNImageSource.m} +0 -0
  986. /package/ios/{MLRNImageSourceManager.h → components/sources/MLRNImageSourceManager.h} +0 -0
  987. /package/ios/{MLRNImageSourceManager.m → components/sources/MLRNImageSourceManager.m} +0 -0
  988. /package/ios/{MLRNRasterSource.h → components/sources/MLRNRasterSource.h} +0 -0
  989. /package/ios/{MLRNRasterSource.m → components/sources/MLRNRasterSource.m} +0 -0
  990. /package/ios/{MLRNRasterSourceManager.h → components/sources/MLRNRasterSourceManager.h} +0 -0
  991. /package/ios/{MLRNRasterSourceManager.m → components/sources/MLRNRasterSourceManager.m} +0 -0
  992. /package/ios/{MLRNShapeSourceManager.h → components/sources/MLRNShapeSourceManager.h} +0 -0
  993. /package/ios/{MLRNSource.m → components/sources/MLRNSource.m} +0 -0
  994. /package/ios/{MLRNTileSource.h → components/sources/MLRNTileSource.h} +0 -0
  995. /package/ios/{MLRNTileSource.m → components/sources/MLRNTileSource.m} +0 -0
  996. /package/ios/{MLRNVectorSource.h → components/sources/MLRNVectorSource.h} +0 -0
  997. /package/ios/{MLRNVectorSource.m → components/sources/MLRNVectorSource.m} +0 -0
  998. /package/ios/{MLRNVectorSourceManager.h → components/sources/MLRNVectorSourceManager.h} +0 -0
  999. /package/ios/{MLRNVectorSourceManager.m → components/sources/MLRNVectorSourceManager.m} +0 -0
  1000. /package/ios/{MLRNUserLocation.h → components/user-location/MLRNUserLocation.h} +0 -0
  1001. /package/ios/{MLRNUserLocation.m → components/user-location/MLRNUserLocation.m} +0 -0
  1002. /package/ios/{MLRNCustomHeaders.h → modules/mlrn/MLRNCustomHeaders.h} +0 -0
  1003. /package/ios/{MLRNCustomHeaders.m → modules/mlrn/MLRNCustomHeaders.m} +0 -0
  1004. /package/ios/{MLRNModule.h → modules/mlrn/MLRNModule.h} +0 -0
  1005. /package/ios/{MLRNSnapshotModule → modules/snapshot}/MLRNSnapshotModule.h +0 -0
  1006. /package/ios/{FilterParser.h → utils/FilterParser.h} +0 -0
  1007. /package/ios/{FilterParser.m → utils/FilterParser.m} +0 -0
  1008. /package/ios/{MLRNEvent.h → utils/MLRNEvent.h} +0 -0
  1009. /package/ios/{MLRNEventProtocol.h → utils/MLRNEventProtocol.h} +0 -0
  1010. /package/lib/commonjs/components/{Callout.js → annotations/Callout.js} +0 -0
  1011. /package/lib/module/components/{Callout.js → annotations/Callout.js} +0 -0
  1012. /package/lib/typescript/commonjs/src/components/{Callout.d.ts → annotations/Callout.d.ts} +0 -0
  1013. /package/lib/typescript/commonjs/src/components/{MarkerView.d.ts → annotations/MarkerView.d.ts} +0 -0
  1014. /package/lib/typescript/commonjs/src/components/{PointAnnotation.d.ts → annotations/PointAnnotation.d.ts} +0 -0
  1015. /package/lib/typescript/module/src/components/{Callout.d.ts → annotations/Callout.d.ts} +0 -0
  1016. /package/lib/typescript/module/src/components/{MarkerView.d.ts → annotations/MarkerView.d.ts} +0 -0
  1017. /package/lib/typescript/module/src/components/{PointAnnotation.d.ts → annotations/PointAnnotation.d.ts} +0 -0
  1018. /package/src/components/{Callout.tsx → annotations/Callout.tsx} +0 -0
@@ -0,0 +1,2285 @@
1
+ // DO NOT MODIFY
2
+ // This file is auto-generated from scripts/templates/MLRNStyleFactory.java.ejs
3
+
4
+ package org.maplibre.reactnative.components.layers.style;
5
+
6
+ import org.maplibre.android.style.layers.BackgroundLayer;
7
+ import org.maplibre.android.style.layers.CircleLayer;
8
+ import org.maplibre.android.style.layers.FillExtrusionLayer;
9
+ import org.maplibre.android.style.layers.FillLayer;
10
+ import org.maplibre.android.style.layers.LineLayer;
11
+ import org.maplibre.android.style.layers.PropertyFactory;
12
+ import org.maplibre.android.style.layers.RasterLayer;
13
+ import org.maplibre.android.style.layers.SymbolLayer;
14
+ import org.maplibre.android.style.layers.HeatmapLayer;
15
+ import org.maplibre.android.style.layers.HillshadeLayer;
16
+ import org.maplibre.android.style.layers.TransitionOptions;
17
+ import org.maplibre.android.style.light.Light;
18
+ import org.maplibre.android.style.light.Position;
19
+ import org.maplibre.reactnative.utils.DownloadMapImageTask;
20
+
21
+ import java.util.List;
22
+
23
+ public class MLRNStyleFactory {
24
+ public static final String VALUE_KEY = "value";
25
+ public static final String SHOULD_ADD_IMAGE_KEY = "shouldAddImage";
26
+
27
+ public static void setFillLayerStyle(final FillLayer layer, MLRNStyle style) {
28
+ List<String> styleKeys = style.getAllStyleKeys();
29
+
30
+ if (styleKeys.isEmpty()) {
31
+ return;
32
+ }
33
+
34
+ for (String styleKey : styleKeys) {
35
+ final MLRNStyleValue styleValue = style.getStyleValueForKey(styleKey);
36
+
37
+ switch (styleKey) {
38
+ case "fillSortKey":
39
+ MLRNStyleFactory.setFillSortKey(layer, styleValue);
40
+ break;
41
+ case "visibility":
42
+ MLRNStyleFactory.setVisibility(layer, styleValue);
43
+ break;
44
+ case "fillAntialias":
45
+ MLRNStyleFactory.setFillAntialias(layer, styleValue);
46
+ break;
47
+ case "fillOpacity":
48
+ MLRNStyleFactory.setFillOpacity(layer, styleValue);
49
+ break;
50
+ case "fillOpacityTransition":
51
+ MLRNStyleFactory.setFillOpacityTransition(layer, styleValue);
52
+ break;
53
+ case "fillColor":
54
+ MLRNStyleFactory.setFillColor(layer, styleValue);
55
+ break;
56
+ case "fillColorTransition":
57
+ MLRNStyleFactory.setFillColorTransition(layer, styleValue);
58
+ break;
59
+ case "fillOutlineColor":
60
+ MLRNStyleFactory.setFillOutlineColor(layer, styleValue);
61
+ break;
62
+ case "fillOutlineColorTransition":
63
+ MLRNStyleFactory.setFillOutlineColorTransition(layer, styleValue);
64
+ break;
65
+ case "fillTranslate":
66
+ MLRNStyleFactory.setFillTranslate(layer, styleValue);
67
+ break;
68
+ case "fillTranslateTransition":
69
+ MLRNStyleFactory.setFillTranslateTransition(layer, styleValue);
70
+ break;
71
+ case "fillTranslateAnchor":
72
+ MLRNStyleFactory.setFillTranslateAnchor(layer, styleValue);
73
+ break;
74
+ case "fillPattern":
75
+ style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
76
+ @Override
77
+ public void onAllImagesLoaded() {
78
+ MLRNStyleFactory.setFillPattern(layer, styleValue);
79
+ }
80
+ });
81
+ break;
82
+ case "fillPatternTransition":
83
+ MLRNStyleFactory.setFillPatternTransition(layer, styleValue);
84
+ break;
85
+ }
86
+ }
87
+ }
88
+ public static void setLineLayerStyle(final LineLayer layer, MLRNStyle style) {
89
+ List<String> styleKeys = style.getAllStyleKeys();
90
+
91
+ if (styleKeys.isEmpty()) {
92
+ return;
93
+ }
94
+
95
+ for (String styleKey : styleKeys) {
96
+ final MLRNStyleValue styleValue = style.getStyleValueForKey(styleKey);
97
+
98
+ switch (styleKey) {
99
+ case "lineCap":
100
+ MLRNStyleFactory.setLineCap(layer, styleValue);
101
+ break;
102
+ case "lineJoin":
103
+ MLRNStyleFactory.setLineJoin(layer, styleValue);
104
+ break;
105
+ case "lineMiterLimit":
106
+ MLRNStyleFactory.setLineMiterLimit(layer, styleValue);
107
+ break;
108
+ case "lineRoundLimit":
109
+ MLRNStyleFactory.setLineRoundLimit(layer, styleValue);
110
+ break;
111
+ case "lineSortKey":
112
+ MLRNStyleFactory.setLineSortKey(layer, styleValue);
113
+ break;
114
+ case "visibility":
115
+ MLRNStyleFactory.setVisibility(layer, styleValue);
116
+ break;
117
+ case "lineOpacity":
118
+ MLRNStyleFactory.setLineOpacity(layer, styleValue);
119
+ break;
120
+ case "lineOpacityTransition":
121
+ MLRNStyleFactory.setLineOpacityTransition(layer, styleValue);
122
+ break;
123
+ case "lineColor":
124
+ MLRNStyleFactory.setLineColor(layer, styleValue);
125
+ break;
126
+ case "lineColorTransition":
127
+ MLRNStyleFactory.setLineColorTransition(layer, styleValue);
128
+ break;
129
+ case "lineTranslate":
130
+ MLRNStyleFactory.setLineTranslate(layer, styleValue);
131
+ break;
132
+ case "lineTranslateTransition":
133
+ MLRNStyleFactory.setLineTranslateTransition(layer, styleValue);
134
+ break;
135
+ case "lineTranslateAnchor":
136
+ MLRNStyleFactory.setLineTranslateAnchor(layer, styleValue);
137
+ break;
138
+ case "lineWidth":
139
+ MLRNStyleFactory.setLineWidth(layer, styleValue);
140
+ break;
141
+ case "lineWidthTransition":
142
+ MLRNStyleFactory.setLineWidthTransition(layer, styleValue);
143
+ break;
144
+ case "lineGapWidth":
145
+ MLRNStyleFactory.setLineGapWidth(layer, styleValue);
146
+ break;
147
+ case "lineGapWidthTransition":
148
+ MLRNStyleFactory.setLineGapWidthTransition(layer, styleValue);
149
+ break;
150
+ case "lineOffset":
151
+ MLRNStyleFactory.setLineOffset(layer, styleValue);
152
+ break;
153
+ case "lineOffsetTransition":
154
+ MLRNStyleFactory.setLineOffsetTransition(layer, styleValue);
155
+ break;
156
+ case "lineBlur":
157
+ MLRNStyleFactory.setLineBlur(layer, styleValue);
158
+ break;
159
+ case "lineBlurTransition":
160
+ MLRNStyleFactory.setLineBlurTransition(layer, styleValue);
161
+ break;
162
+ case "lineDasharray":
163
+ MLRNStyleFactory.setLineDasharray(layer, styleValue);
164
+ break;
165
+ case "lineDasharrayTransition":
166
+ MLRNStyleFactory.setLineDasharrayTransition(layer, styleValue);
167
+ break;
168
+ case "linePattern":
169
+ style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
170
+ @Override
171
+ public void onAllImagesLoaded() {
172
+ MLRNStyleFactory.setLinePattern(layer, styleValue);
173
+ }
174
+ });
175
+ break;
176
+ case "linePatternTransition":
177
+ MLRNStyleFactory.setLinePatternTransition(layer, styleValue);
178
+ break;
179
+ case "lineGradient":
180
+ MLRNStyleFactory.setLineGradient(layer, styleValue);
181
+ break;
182
+ }
183
+ }
184
+ }
185
+ public static void setSymbolLayerStyle(final SymbolLayer layer, MLRNStyle style) {
186
+ List<String> styleKeys = style.getAllStyleKeys();
187
+
188
+ if (styleKeys.isEmpty()) {
189
+ return;
190
+ }
191
+
192
+ for (String styleKey : styleKeys) {
193
+ final MLRNStyleValue styleValue = style.getStyleValueForKey(styleKey);
194
+
195
+ switch (styleKey) {
196
+ case "symbolPlacement":
197
+ MLRNStyleFactory.setSymbolPlacement(layer, styleValue);
198
+ break;
199
+ case "symbolSpacing":
200
+ MLRNStyleFactory.setSymbolSpacing(layer, styleValue);
201
+ break;
202
+ case "symbolAvoidEdges":
203
+ MLRNStyleFactory.setSymbolAvoidEdges(layer, styleValue);
204
+ break;
205
+ case "symbolSortKey":
206
+ MLRNStyleFactory.setSymbolSortKey(layer, styleValue);
207
+ break;
208
+ case "symbolZOrder":
209
+ MLRNStyleFactory.setSymbolZOrder(layer, styleValue);
210
+ break;
211
+ case "iconAllowOverlap":
212
+ MLRNStyleFactory.setIconAllowOverlap(layer, styleValue);
213
+ break;
214
+ case "iconIgnorePlacement":
215
+ MLRNStyleFactory.setIconIgnorePlacement(layer, styleValue);
216
+ break;
217
+ case "iconOptional":
218
+ MLRNStyleFactory.setIconOptional(layer, styleValue);
219
+ break;
220
+ case "iconRotationAlignment":
221
+ MLRNStyleFactory.setIconRotationAlignment(layer, styleValue);
222
+ break;
223
+ case "iconSize":
224
+ MLRNStyleFactory.setIconSize(layer, styleValue);
225
+ break;
226
+ case "iconTextFit":
227
+ MLRNStyleFactory.setIconTextFit(layer, styleValue);
228
+ break;
229
+ case "iconTextFitPadding":
230
+ MLRNStyleFactory.setIconTextFitPadding(layer, styleValue);
231
+ break;
232
+ case "iconImage":
233
+ style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
234
+ @Override
235
+ public void onAllImagesLoaded() {
236
+ MLRNStyleFactory.setIconImage(layer, styleValue);
237
+ }
238
+ });
239
+ break;
240
+ case "iconRotate":
241
+ MLRNStyleFactory.setIconRotate(layer, styleValue);
242
+ break;
243
+ case "iconPadding":
244
+ MLRNStyleFactory.setIconPadding(layer, styleValue);
245
+ break;
246
+ case "iconKeepUpright":
247
+ MLRNStyleFactory.setIconKeepUpright(layer, styleValue);
248
+ break;
249
+ case "iconOffset":
250
+ MLRNStyleFactory.setIconOffset(layer, styleValue);
251
+ break;
252
+ case "iconAnchor":
253
+ MLRNStyleFactory.setIconAnchor(layer, styleValue);
254
+ break;
255
+ case "iconPitchAlignment":
256
+ MLRNStyleFactory.setIconPitchAlignment(layer, styleValue);
257
+ break;
258
+ case "textPitchAlignment":
259
+ MLRNStyleFactory.setTextPitchAlignment(layer, styleValue);
260
+ break;
261
+ case "textRotationAlignment":
262
+ MLRNStyleFactory.setTextRotationAlignment(layer, styleValue);
263
+ break;
264
+ case "textField":
265
+ MLRNStyleFactory.setTextField(layer, styleValue);
266
+ break;
267
+ case "textFont":
268
+ MLRNStyleFactory.setTextFont(layer, styleValue);
269
+ break;
270
+ case "textSize":
271
+ MLRNStyleFactory.setTextSize(layer, styleValue);
272
+ break;
273
+ case "textMaxWidth":
274
+ MLRNStyleFactory.setTextMaxWidth(layer, styleValue);
275
+ break;
276
+ case "textLineHeight":
277
+ MLRNStyleFactory.setTextLineHeight(layer, styleValue);
278
+ break;
279
+ case "textLetterSpacing":
280
+ MLRNStyleFactory.setTextLetterSpacing(layer, styleValue);
281
+ break;
282
+ case "textJustify":
283
+ MLRNStyleFactory.setTextJustify(layer, styleValue);
284
+ break;
285
+ case "textRadialOffset":
286
+ MLRNStyleFactory.setTextRadialOffset(layer, styleValue);
287
+ break;
288
+ case "textVariableAnchor":
289
+ MLRNStyleFactory.setTextVariableAnchor(layer, styleValue);
290
+ break;
291
+ case "textAnchor":
292
+ MLRNStyleFactory.setTextAnchor(layer, styleValue);
293
+ break;
294
+ case "textMaxAngle":
295
+ MLRNStyleFactory.setTextMaxAngle(layer, styleValue);
296
+ break;
297
+ case "textWritingMode":
298
+ MLRNStyleFactory.setTextWritingMode(layer, styleValue);
299
+ break;
300
+ case "textRotate":
301
+ MLRNStyleFactory.setTextRotate(layer, styleValue);
302
+ break;
303
+ case "textPadding":
304
+ MLRNStyleFactory.setTextPadding(layer, styleValue);
305
+ break;
306
+ case "textKeepUpright":
307
+ MLRNStyleFactory.setTextKeepUpright(layer, styleValue);
308
+ break;
309
+ case "textTransform":
310
+ MLRNStyleFactory.setTextTransform(layer, styleValue);
311
+ break;
312
+ case "textOffset":
313
+ MLRNStyleFactory.setTextOffset(layer, styleValue);
314
+ break;
315
+ case "textAllowOverlap":
316
+ MLRNStyleFactory.setTextAllowOverlap(layer, styleValue);
317
+ break;
318
+ case "textIgnorePlacement":
319
+ MLRNStyleFactory.setTextIgnorePlacement(layer, styleValue);
320
+ break;
321
+ case "textOptional":
322
+ MLRNStyleFactory.setTextOptional(layer, styleValue);
323
+ break;
324
+ case "visibility":
325
+ MLRNStyleFactory.setVisibility(layer, styleValue);
326
+ break;
327
+ case "iconOpacity":
328
+ MLRNStyleFactory.setIconOpacity(layer, styleValue);
329
+ break;
330
+ case "iconOpacityTransition":
331
+ MLRNStyleFactory.setIconOpacityTransition(layer, styleValue);
332
+ break;
333
+ case "iconColor":
334
+ MLRNStyleFactory.setIconColor(layer, styleValue);
335
+ break;
336
+ case "iconColorTransition":
337
+ MLRNStyleFactory.setIconColorTransition(layer, styleValue);
338
+ break;
339
+ case "iconHaloColor":
340
+ MLRNStyleFactory.setIconHaloColor(layer, styleValue);
341
+ break;
342
+ case "iconHaloColorTransition":
343
+ MLRNStyleFactory.setIconHaloColorTransition(layer, styleValue);
344
+ break;
345
+ case "iconHaloWidth":
346
+ MLRNStyleFactory.setIconHaloWidth(layer, styleValue);
347
+ break;
348
+ case "iconHaloWidthTransition":
349
+ MLRNStyleFactory.setIconHaloWidthTransition(layer, styleValue);
350
+ break;
351
+ case "iconHaloBlur":
352
+ MLRNStyleFactory.setIconHaloBlur(layer, styleValue);
353
+ break;
354
+ case "iconHaloBlurTransition":
355
+ MLRNStyleFactory.setIconHaloBlurTransition(layer, styleValue);
356
+ break;
357
+ case "iconTranslate":
358
+ MLRNStyleFactory.setIconTranslate(layer, styleValue);
359
+ break;
360
+ case "iconTranslateTransition":
361
+ MLRNStyleFactory.setIconTranslateTransition(layer, styleValue);
362
+ break;
363
+ case "iconTranslateAnchor":
364
+ MLRNStyleFactory.setIconTranslateAnchor(layer, styleValue);
365
+ break;
366
+ case "textOpacity":
367
+ MLRNStyleFactory.setTextOpacity(layer, styleValue);
368
+ break;
369
+ case "textOpacityTransition":
370
+ MLRNStyleFactory.setTextOpacityTransition(layer, styleValue);
371
+ break;
372
+ case "textColor":
373
+ MLRNStyleFactory.setTextColor(layer, styleValue);
374
+ break;
375
+ case "textColorTransition":
376
+ MLRNStyleFactory.setTextColorTransition(layer, styleValue);
377
+ break;
378
+ case "textHaloColor":
379
+ MLRNStyleFactory.setTextHaloColor(layer, styleValue);
380
+ break;
381
+ case "textHaloColorTransition":
382
+ MLRNStyleFactory.setTextHaloColorTransition(layer, styleValue);
383
+ break;
384
+ case "textHaloWidth":
385
+ MLRNStyleFactory.setTextHaloWidth(layer, styleValue);
386
+ break;
387
+ case "textHaloWidthTransition":
388
+ MLRNStyleFactory.setTextHaloWidthTransition(layer, styleValue);
389
+ break;
390
+ case "textHaloBlur":
391
+ MLRNStyleFactory.setTextHaloBlur(layer, styleValue);
392
+ break;
393
+ case "textHaloBlurTransition":
394
+ MLRNStyleFactory.setTextHaloBlurTransition(layer, styleValue);
395
+ break;
396
+ case "textTranslate":
397
+ MLRNStyleFactory.setTextTranslate(layer, styleValue);
398
+ break;
399
+ case "textTranslateTransition":
400
+ MLRNStyleFactory.setTextTranslateTransition(layer, styleValue);
401
+ break;
402
+ case "textTranslateAnchor":
403
+ MLRNStyleFactory.setTextTranslateAnchor(layer, styleValue);
404
+ break;
405
+ }
406
+ }
407
+ }
408
+ public static void setCircleLayerStyle(final CircleLayer layer, MLRNStyle style) {
409
+ List<String> styleKeys = style.getAllStyleKeys();
410
+
411
+ if (styleKeys.isEmpty()) {
412
+ return;
413
+ }
414
+
415
+ for (String styleKey : styleKeys) {
416
+ final MLRNStyleValue styleValue = style.getStyleValueForKey(styleKey);
417
+
418
+ switch (styleKey) {
419
+ case "circleSortKey":
420
+ MLRNStyleFactory.setCircleSortKey(layer, styleValue);
421
+ break;
422
+ case "visibility":
423
+ MLRNStyleFactory.setVisibility(layer, styleValue);
424
+ break;
425
+ case "circleRadius":
426
+ MLRNStyleFactory.setCircleRadius(layer, styleValue);
427
+ break;
428
+ case "circleRadiusTransition":
429
+ MLRNStyleFactory.setCircleRadiusTransition(layer, styleValue);
430
+ break;
431
+ case "circleColor":
432
+ MLRNStyleFactory.setCircleColor(layer, styleValue);
433
+ break;
434
+ case "circleColorTransition":
435
+ MLRNStyleFactory.setCircleColorTransition(layer, styleValue);
436
+ break;
437
+ case "circleBlur":
438
+ MLRNStyleFactory.setCircleBlur(layer, styleValue);
439
+ break;
440
+ case "circleBlurTransition":
441
+ MLRNStyleFactory.setCircleBlurTransition(layer, styleValue);
442
+ break;
443
+ case "circleOpacity":
444
+ MLRNStyleFactory.setCircleOpacity(layer, styleValue);
445
+ break;
446
+ case "circleOpacityTransition":
447
+ MLRNStyleFactory.setCircleOpacityTransition(layer, styleValue);
448
+ break;
449
+ case "circleTranslate":
450
+ MLRNStyleFactory.setCircleTranslate(layer, styleValue);
451
+ break;
452
+ case "circleTranslateTransition":
453
+ MLRNStyleFactory.setCircleTranslateTransition(layer, styleValue);
454
+ break;
455
+ case "circleTranslateAnchor":
456
+ MLRNStyleFactory.setCircleTranslateAnchor(layer, styleValue);
457
+ break;
458
+ case "circlePitchScale":
459
+ MLRNStyleFactory.setCirclePitchScale(layer, styleValue);
460
+ break;
461
+ case "circlePitchAlignment":
462
+ MLRNStyleFactory.setCirclePitchAlignment(layer, styleValue);
463
+ break;
464
+ case "circleStrokeWidth":
465
+ MLRNStyleFactory.setCircleStrokeWidth(layer, styleValue);
466
+ break;
467
+ case "circleStrokeWidthTransition":
468
+ MLRNStyleFactory.setCircleStrokeWidthTransition(layer, styleValue);
469
+ break;
470
+ case "circleStrokeColor":
471
+ MLRNStyleFactory.setCircleStrokeColor(layer, styleValue);
472
+ break;
473
+ case "circleStrokeColorTransition":
474
+ MLRNStyleFactory.setCircleStrokeColorTransition(layer, styleValue);
475
+ break;
476
+ case "circleStrokeOpacity":
477
+ MLRNStyleFactory.setCircleStrokeOpacity(layer, styleValue);
478
+ break;
479
+ case "circleStrokeOpacityTransition":
480
+ MLRNStyleFactory.setCircleStrokeOpacityTransition(layer, styleValue);
481
+ break;
482
+ }
483
+ }
484
+ }
485
+ public static void setHeatmapLayerStyle(final HeatmapLayer layer, MLRNStyle style) {
486
+ List<String> styleKeys = style.getAllStyleKeys();
487
+
488
+ if (styleKeys.isEmpty()) {
489
+ return;
490
+ }
491
+
492
+ for (String styleKey : styleKeys) {
493
+ final MLRNStyleValue styleValue = style.getStyleValueForKey(styleKey);
494
+
495
+ switch (styleKey) {
496
+ case "visibility":
497
+ MLRNStyleFactory.setVisibility(layer, styleValue);
498
+ break;
499
+ case "heatmapRadius":
500
+ MLRNStyleFactory.setHeatmapRadius(layer, styleValue);
501
+ break;
502
+ case "heatmapRadiusTransition":
503
+ MLRNStyleFactory.setHeatmapRadiusTransition(layer, styleValue);
504
+ break;
505
+ case "heatmapWeight":
506
+ MLRNStyleFactory.setHeatmapWeight(layer, styleValue);
507
+ break;
508
+ case "heatmapIntensity":
509
+ MLRNStyleFactory.setHeatmapIntensity(layer, styleValue);
510
+ break;
511
+ case "heatmapIntensityTransition":
512
+ MLRNStyleFactory.setHeatmapIntensityTransition(layer, styleValue);
513
+ break;
514
+ case "heatmapColor":
515
+ MLRNStyleFactory.setHeatmapColor(layer, styleValue);
516
+ break;
517
+ case "heatmapOpacity":
518
+ MLRNStyleFactory.setHeatmapOpacity(layer, styleValue);
519
+ break;
520
+ case "heatmapOpacityTransition":
521
+ MLRNStyleFactory.setHeatmapOpacityTransition(layer, styleValue);
522
+ break;
523
+ }
524
+ }
525
+ }
526
+ public static void setFillExtrusionLayerStyle(final FillExtrusionLayer layer, MLRNStyle style) {
527
+ List<String> styleKeys = style.getAllStyleKeys();
528
+
529
+ if (styleKeys.isEmpty()) {
530
+ return;
531
+ }
532
+
533
+ for (String styleKey : styleKeys) {
534
+ final MLRNStyleValue styleValue = style.getStyleValueForKey(styleKey);
535
+
536
+ switch (styleKey) {
537
+ case "visibility":
538
+ MLRNStyleFactory.setVisibility(layer, styleValue);
539
+ break;
540
+ case "fillExtrusionOpacity":
541
+ MLRNStyleFactory.setFillExtrusionOpacity(layer, styleValue);
542
+ break;
543
+ case "fillExtrusionOpacityTransition":
544
+ MLRNStyleFactory.setFillExtrusionOpacityTransition(layer, styleValue);
545
+ break;
546
+ case "fillExtrusionColor":
547
+ MLRNStyleFactory.setFillExtrusionColor(layer, styleValue);
548
+ break;
549
+ case "fillExtrusionColorTransition":
550
+ MLRNStyleFactory.setFillExtrusionColorTransition(layer, styleValue);
551
+ break;
552
+ case "fillExtrusionTranslate":
553
+ MLRNStyleFactory.setFillExtrusionTranslate(layer, styleValue);
554
+ break;
555
+ case "fillExtrusionTranslateTransition":
556
+ MLRNStyleFactory.setFillExtrusionTranslateTransition(layer, styleValue);
557
+ break;
558
+ case "fillExtrusionTranslateAnchor":
559
+ MLRNStyleFactory.setFillExtrusionTranslateAnchor(layer, styleValue);
560
+ break;
561
+ case "fillExtrusionPattern":
562
+ style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
563
+ @Override
564
+ public void onAllImagesLoaded() {
565
+ MLRNStyleFactory.setFillExtrusionPattern(layer, styleValue);
566
+ }
567
+ });
568
+ break;
569
+ case "fillExtrusionPatternTransition":
570
+ MLRNStyleFactory.setFillExtrusionPatternTransition(layer, styleValue);
571
+ break;
572
+ case "fillExtrusionHeight":
573
+ MLRNStyleFactory.setFillExtrusionHeight(layer, styleValue);
574
+ break;
575
+ case "fillExtrusionHeightTransition":
576
+ MLRNStyleFactory.setFillExtrusionHeightTransition(layer, styleValue);
577
+ break;
578
+ case "fillExtrusionBase":
579
+ MLRNStyleFactory.setFillExtrusionBase(layer, styleValue);
580
+ break;
581
+ case "fillExtrusionBaseTransition":
582
+ MLRNStyleFactory.setFillExtrusionBaseTransition(layer, styleValue);
583
+ break;
584
+ case "fillExtrusionVerticalGradient":
585
+ MLRNStyleFactory.setFillExtrusionVerticalGradient(layer, styleValue);
586
+ break;
587
+ }
588
+ }
589
+ }
590
+ public static void setRasterLayerStyle(final RasterLayer layer, MLRNStyle style) {
591
+ List<String> styleKeys = style.getAllStyleKeys();
592
+
593
+ if (styleKeys.isEmpty()) {
594
+ return;
595
+ }
596
+
597
+ for (String styleKey : styleKeys) {
598
+ final MLRNStyleValue styleValue = style.getStyleValueForKey(styleKey);
599
+
600
+ switch (styleKey) {
601
+ case "visibility":
602
+ MLRNStyleFactory.setVisibility(layer, styleValue);
603
+ break;
604
+ case "rasterOpacity":
605
+ MLRNStyleFactory.setRasterOpacity(layer, styleValue);
606
+ break;
607
+ case "rasterOpacityTransition":
608
+ MLRNStyleFactory.setRasterOpacityTransition(layer, styleValue);
609
+ break;
610
+ case "rasterHueRotate":
611
+ MLRNStyleFactory.setRasterHueRotate(layer, styleValue);
612
+ break;
613
+ case "rasterHueRotateTransition":
614
+ MLRNStyleFactory.setRasterHueRotateTransition(layer, styleValue);
615
+ break;
616
+ case "rasterBrightnessMin":
617
+ MLRNStyleFactory.setRasterBrightnessMin(layer, styleValue);
618
+ break;
619
+ case "rasterBrightnessMinTransition":
620
+ MLRNStyleFactory.setRasterBrightnessMinTransition(layer, styleValue);
621
+ break;
622
+ case "rasterBrightnessMax":
623
+ MLRNStyleFactory.setRasterBrightnessMax(layer, styleValue);
624
+ break;
625
+ case "rasterBrightnessMaxTransition":
626
+ MLRNStyleFactory.setRasterBrightnessMaxTransition(layer, styleValue);
627
+ break;
628
+ case "rasterSaturation":
629
+ MLRNStyleFactory.setRasterSaturation(layer, styleValue);
630
+ break;
631
+ case "rasterSaturationTransition":
632
+ MLRNStyleFactory.setRasterSaturationTransition(layer, styleValue);
633
+ break;
634
+ case "rasterContrast":
635
+ MLRNStyleFactory.setRasterContrast(layer, styleValue);
636
+ break;
637
+ case "rasterContrastTransition":
638
+ MLRNStyleFactory.setRasterContrastTransition(layer, styleValue);
639
+ break;
640
+ case "rasterResampling":
641
+ MLRNStyleFactory.setRasterResampling(layer, styleValue);
642
+ break;
643
+ case "rasterFadeDuration":
644
+ MLRNStyleFactory.setRasterFadeDuration(layer, styleValue);
645
+ break;
646
+ }
647
+ }
648
+ }
649
+ public static void setHillshadeLayerStyle(final HillshadeLayer layer, MLRNStyle style) {
650
+ List<String> styleKeys = style.getAllStyleKeys();
651
+
652
+ if (styleKeys.isEmpty()) {
653
+ return;
654
+ }
655
+
656
+ for (String styleKey : styleKeys) {
657
+ final MLRNStyleValue styleValue = style.getStyleValueForKey(styleKey);
658
+
659
+ switch (styleKey) {
660
+ case "visibility":
661
+ MLRNStyleFactory.setVisibility(layer, styleValue);
662
+ break;
663
+ case "hillshadeIlluminationDirection":
664
+ MLRNStyleFactory.setHillshadeIlluminationDirection(layer, styleValue);
665
+ break;
666
+ case "hillshadeIlluminationAnchor":
667
+ MLRNStyleFactory.setHillshadeIlluminationAnchor(layer, styleValue);
668
+ break;
669
+ case "hillshadeExaggeration":
670
+ MLRNStyleFactory.setHillshadeExaggeration(layer, styleValue);
671
+ break;
672
+ case "hillshadeExaggerationTransition":
673
+ MLRNStyleFactory.setHillshadeExaggerationTransition(layer, styleValue);
674
+ break;
675
+ case "hillshadeShadowColor":
676
+ MLRNStyleFactory.setHillshadeShadowColor(layer, styleValue);
677
+ break;
678
+ case "hillshadeShadowColorTransition":
679
+ MLRNStyleFactory.setHillshadeShadowColorTransition(layer, styleValue);
680
+ break;
681
+ case "hillshadeHighlightColor":
682
+ MLRNStyleFactory.setHillshadeHighlightColor(layer, styleValue);
683
+ break;
684
+ case "hillshadeHighlightColorTransition":
685
+ MLRNStyleFactory.setHillshadeHighlightColorTransition(layer, styleValue);
686
+ break;
687
+ case "hillshadeAccentColor":
688
+ MLRNStyleFactory.setHillshadeAccentColor(layer, styleValue);
689
+ break;
690
+ case "hillshadeAccentColorTransition":
691
+ MLRNStyleFactory.setHillshadeAccentColorTransition(layer, styleValue);
692
+ break;
693
+ }
694
+ }
695
+ }
696
+ public static void setBackgroundLayerStyle(final BackgroundLayer layer, MLRNStyle style) {
697
+ List<String> styleKeys = style.getAllStyleKeys();
698
+
699
+ if (styleKeys.isEmpty()) {
700
+ return;
701
+ }
702
+
703
+ for (String styleKey : styleKeys) {
704
+ final MLRNStyleValue styleValue = style.getStyleValueForKey(styleKey);
705
+
706
+ switch (styleKey) {
707
+ case "visibility":
708
+ MLRNStyleFactory.setVisibility(layer, styleValue);
709
+ break;
710
+ case "backgroundColor":
711
+ MLRNStyleFactory.setBackgroundColor(layer, styleValue);
712
+ break;
713
+ case "backgroundColorTransition":
714
+ MLRNStyleFactory.setBackgroundColorTransition(layer, styleValue);
715
+ break;
716
+ case "backgroundPattern":
717
+ style.addImage(styleValue, new DownloadMapImageTask.OnAllImagesLoaded() {
718
+ @Override
719
+ public void onAllImagesLoaded() {
720
+ MLRNStyleFactory.setBackgroundPattern(layer, styleValue);
721
+ }
722
+ });
723
+ break;
724
+ case "backgroundPatternTransition":
725
+ MLRNStyleFactory.setBackgroundPatternTransition(layer, styleValue);
726
+ break;
727
+ case "backgroundOpacity":
728
+ MLRNStyleFactory.setBackgroundOpacity(layer, styleValue);
729
+ break;
730
+ case "backgroundOpacityTransition":
731
+ MLRNStyleFactory.setBackgroundOpacityTransition(layer, styleValue);
732
+ break;
733
+ }
734
+ }
735
+ }
736
+ public static void setLightLayerStyle(final Light layer, MLRNStyle style) {
737
+ List<String> styleKeys = style.getAllStyleKeys();
738
+
739
+ if (styleKeys.isEmpty()) {
740
+ return;
741
+ }
742
+
743
+ for (String styleKey : styleKeys) {
744
+ final MLRNStyleValue styleValue = style.getStyleValueForKey(styleKey);
745
+
746
+ switch (styleKey) {
747
+ case "anchor":
748
+ MLRNStyleFactory.setAnchor(layer, styleValue);
749
+ break;
750
+ case "position":
751
+ MLRNStyleFactory.setPosition(layer, styleValue);
752
+ break;
753
+ case "positionTransition":
754
+ MLRNStyleFactory.setPositionTransition(layer, styleValue);
755
+ break;
756
+ case "color":
757
+ MLRNStyleFactory.setColor(layer, styleValue);
758
+ break;
759
+ case "colorTransition":
760
+ MLRNStyleFactory.setColorTransition(layer, styleValue);
761
+ break;
762
+ case "intensity":
763
+ MLRNStyleFactory.setIntensity(layer, styleValue);
764
+ break;
765
+ case "intensityTransition":
766
+ MLRNStyleFactory.setIntensityTransition(layer, styleValue);
767
+ break;
768
+ }
769
+ }
770
+ }
771
+
772
+ public static void setFillSortKey(FillLayer layer, MLRNStyleValue styleValue) {
773
+ if (styleValue.isExpression()) {
774
+ layer.setProperties(PropertyFactory.fillSortKey(styleValue.getExpression()));
775
+ } else {
776
+ layer.setProperties(PropertyFactory.fillSortKey(styleValue.getFloat(VALUE_KEY)));
777
+ }
778
+ }
779
+
780
+ public static void setVisibility(FillLayer layer, MLRNStyleValue styleValue) {
781
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
782
+ }
783
+
784
+ public static void setFillAntialias(FillLayer layer, MLRNStyleValue styleValue) {
785
+ if (styleValue.isExpression()) {
786
+ layer.setProperties(PropertyFactory.fillAntialias(styleValue.getExpression()));
787
+ } else {
788
+ layer.setProperties(PropertyFactory.fillAntialias(styleValue.getBoolean(VALUE_KEY)));
789
+ }
790
+ }
791
+
792
+ public static void setFillOpacity(FillLayer layer, MLRNStyleValue styleValue) {
793
+ if (styleValue.isExpression()) {
794
+ layer.setProperties(PropertyFactory.fillOpacity(styleValue.getExpression()));
795
+ } else {
796
+ layer.setProperties(PropertyFactory.fillOpacity(styleValue.getFloat(VALUE_KEY)));
797
+ }
798
+ }
799
+
800
+
801
+ public static void setFillOpacityTransition(FillLayer layer, MLRNStyleValue styleValue) {
802
+ TransitionOptions transition = styleValue.getTransition();
803
+ if (transition != null) {
804
+ layer.setFillOpacityTransition(transition);
805
+ }
806
+ }
807
+
808
+ public static void setFillColor(FillLayer layer, MLRNStyleValue styleValue) {
809
+ if (styleValue.isExpression()) {
810
+ layer.setProperties(PropertyFactory.fillColor(styleValue.getExpression()));
811
+ } else {
812
+ layer.setProperties(PropertyFactory.fillColor(styleValue.getInt(VALUE_KEY)));
813
+ }
814
+ }
815
+
816
+
817
+ public static void setFillColorTransition(FillLayer layer, MLRNStyleValue styleValue) {
818
+ TransitionOptions transition = styleValue.getTransition();
819
+ if (transition != null) {
820
+ layer.setFillColorTransition(transition);
821
+ }
822
+ }
823
+
824
+ public static void setFillOutlineColor(FillLayer layer, MLRNStyleValue styleValue) {
825
+ if (styleValue.isExpression()) {
826
+ layer.setProperties(PropertyFactory.fillOutlineColor(styleValue.getExpression()));
827
+ } else {
828
+ layer.setProperties(PropertyFactory.fillOutlineColor(styleValue.getInt(VALUE_KEY)));
829
+ }
830
+ }
831
+
832
+
833
+ public static void setFillOutlineColorTransition(FillLayer layer, MLRNStyleValue styleValue) {
834
+ TransitionOptions transition = styleValue.getTransition();
835
+ if (transition != null) {
836
+ layer.setFillOutlineColorTransition(transition);
837
+ }
838
+ }
839
+
840
+ public static void setFillTranslate(FillLayer layer, MLRNStyleValue styleValue) {
841
+ if (styleValue.isExpression()) {
842
+ layer.setProperties(PropertyFactory.fillTranslate(styleValue.getExpression()));
843
+ } else {
844
+ layer.setProperties(PropertyFactory.fillTranslate(styleValue.getFloatArray(VALUE_KEY)));
845
+ }
846
+ }
847
+
848
+
849
+ public static void setFillTranslateTransition(FillLayer layer, MLRNStyleValue styleValue) {
850
+ TransitionOptions transition = styleValue.getTransition();
851
+ if (transition != null) {
852
+ layer.setFillTranslateTransition(transition);
853
+ }
854
+ }
855
+
856
+ public static void setFillTranslateAnchor(FillLayer layer, MLRNStyleValue styleValue) {
857
+ if (styleValue.isExpression()) {
858
+ layer.setProperties(PropertyFactory.fillTranslateAnchor(styleValue.getExpression()));
859
+ } else {
860
+ layer.setProperties(PropertyFactory.fillTranslateAnchor(styleValue.getString(VALUE_KEY)));
861
+ }
862
+ }
863
+
864
+ public static void setFillPattern(FillLayer layer, MLRNStyleValue styleValue) {
865
+ if (styleValue.isExpression()) {
866
+ if (styleValue.isImageStringValue()) {
867
+ layer.setProperties(PropertyFactory.fillPattern(styleValue.getImageStringValue()));
868
+ } else {
869
+ layer.setProperties(PropertyFactory.fillPattern(styleValue.getExpression()));
870
+ }
871
+ } else {
872
+ layer.setProperties(PropertyFactory.fillPattern(styleValue.getImageURI()));
873
+ }
874
+ }
875
+
876
+
877
+ public static void setFillPatternTransition(FillLayer layer, MLRNStyleValue styleValue) {
878
+ TransitionOptions transition = styleValue.getTransition();
879
+ if (transition != null) {
880
+ layer.setFillPatternTransition(transition);
881
+ }
882
+ }
883
+
884
+ public static void setLineCap(LineLayer layer, MLRNStyleValue styleValue) {
885
+ if (styleValue.isExpression()) {
886
+ layer.setProperties(PropertyFactory.lineCap(styleValue.getExpression()));
887
+ } else {
888
+ layer.setProperties(PropertyFactory.lineCap(styleValue.getString(VALUE_KEY)));
889
+ }
890
+ }
891
+
892
+ public static void setLineJoin(LineLayer layer, MLRNStyleValue styleValue) {
893
+ if (styleValue.isExpression()) {
894
+ layer.setProperties(PropertyFactory.lineJoin(styleValue.getExpression()));
895
+ } else {
896
+ layer.setProperties(PropertyFactory.lineJoin(styleValue.getString(VALUE_KEY)));
897
+ }
898
+ }
899
+
900
+ public static void setLineMiterLimit(LineLayer layer, MLRNStyleValue styleValue) {
901
+ if (styleValue.isExpression()) {
902
+ layer.setProperties(PropertyFactory.lineMiterLimit(styleValue.getExpression()));
903
+ } else {
904
+ layer.setProperties(PropertyFactory.lineMiterLimit(styleValue.getFloat(VALUE_KEY)));
905
+ }
906
+ }
907
+
908
+ public static void setLineRoundLimit(LineLayer layer, MLRNStyleValue styleValue) {
909
+ if (styleValue.isExpression()) {
910
+ layer.setProperties(PropertyFactory.lineRoundLimit(styleValue.getExpression()));
911
+ } else {
912
+ layer.setProperties(PropertyFactory.lineRoundLimit(styleValue.getFloat(VALUE_KEY)));
913
+ }
914
+ }
915
+
916
+ public static void setLineSortKey(LineLayer layer, MLRNStyleValue styleValue) {
917
+ if (styleValue.isExpression()) {
918
+ layer.setProperties(PropertyFactory.lineSortKey(styleValue.getExpression()));
919
+ } else {
920
+ layer.setProperties(PropertyFactory.lineSortKey(styleValue.getFloat(VALUE_KEY)));
921
+ }
922
+ }
923
+
924
+ public static void setVisibility(LineLayer layer, MLRNStyleValue styleValue) {
925
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
926
+ }
927
+
928
+ public static void setLineOpacity(LineLayer layer, MLRNStyleValue styleValue) {
929
+ if (styleValue.isExpression()) {
930
+ layer.setProperties(PropertyFactory.lineOpacity(styleValue.getExpression()));
931
+ } else {
932
+ layer.setProperties(PropertyFactory.lineOpacity(styleValue.getFloat(VALUE_KEY)));
933
+ }
934
+ }
935
+
936
+
937
+ public static void setLineOpacityTransition(LineLayer layer, MLRNStyleValue styleValue) {
938
+ TransitionOptions transition = styleValue.getTransition();
939
+ if (transition != null) {
940
+ layer.setLineOpacityTransition(transition);
941
+ }
942
+ }
943
+
944
+ public static void setLineColor(LineLayer layer, MLRNStyleValue styleValue) {
945
+ if (styleValue.isExpression()) {
946
+ layer.setProperties(PropertyFactory.lineColor(styleValue.getExpression()));
947
+ } else {
948
+ layer.setProperties(PropertyFactory.lineColor(styleValue.getInt(VALUE_KEY)));
949
+ }
950
+ }
951
+
952
+
953
+ public static void setLineColorTransition(LineLayer layer, MLRNStyleValue styleValue) {
954
+ TransitionOptions transition = styleValue.getTransition();
955
+ if (transition != null) {
956
+ layer.setLineColorTransition(transition);
957
+ }
958
+ }
959
+
960
+ public static void setLineTranslate(LineLayer layer, MLRNStyleValue styleValue) {
961
+ if (styleValue.isExpression()) {
962
+ layer.setProperties(PropertyFactory.lineTranslate(styleValue.getExpression()));
963
+ } else {
964
+ layer.setProperties(PropertyFactory.lineTranslate(styleValue.getFloatArray(VALUE_KEY)));
965
+ }
966
+ }
967
+
968
+
969
+ public static void setLineTranslateTransition(LineLayer layer, MLRNStyleValue styleValue) {
970
+ TransitionOptions transition = styleValue.getTransition();
971
+ if (transition != null) {
972
+ layer.setLineTranslateTransition(transition);
973
+ }
974
+ }
975
+
976
+ public static void setLineTranslateAnchor(LineLayer layer, MLRNStyleValue styleValue) {
977
+ if (styleValue.isExpression()) {
978
+ layer.setProperties(PropertyFactory.lineTranslateAnchor(styleValue.getExpression()));
979
+ } else {
980
+ layer.setProperties(PropertyFactory.lineTranslateAnchor(styleValue.getString(VALUE_KEY)));
981
+ }
982
+ }
983
+
984
+ public static void setLineWidth(LineLayer layer, MLRNStyleValue styleValue) {
985
+ if (styleValue.isExpression()) {
986
+ layer.setProperties(PropertyFactory.lineWidth(styleValue.getExpression()));
987
+ } else {
988
+ layer.setProperties(PropertyFactory.lineWidth(styleValue.getFloat(VALUE_KEY)));
989
+ }
990
+ }
991
+
992
+
993
+ public static void setLineWidthTransition(LineLayer layer, MLRNStyleValue styleValue) {
994
+ TransitionOptions transition = styleValue.getTransition();
995
+ if (transition != null) {
996
+ layer.setLineWidthTransition(transition);
997
+ }
998
+ }
999
+
1000
+ public static void setLineGapWidth(LineLayer layer, MLRNStyleValue styleValue) {
1001
+ if (styleValue.isExpression()) {
1002
+ layer.setProperties(PropertyFactory.lineGapWidth(styleValue.getExpression()));
1003
+ } else {
1004
+ layer.setProperties(PropertyFactory.lineGapWidth(styleValue.getFloat(VALUE_KEY)));
1005
+ }
1006
+ }
1007
+
1008
+
1009
+ public static void setLineGapWidthTransition(LineLayer layer, MLRNStyleValue styleValue) {
1010
+ TransitionOptions transition = styleValue.getTransition();
1011
+ if (transition != null) {
1012
+ layer.setLineGapWidthTransition(transition);
1013
+ }
1014
+ }
1015
+
1016
+ public static void setLineOffset(LineLayer layer, MLRNStyleValue styleValue) {
1017
+ if (styleValue.isExpression()) {
1018
+ layer.setProperties(PropertyFactory.lineOffset(styleValue.getExpression()));
1019
+ } else {
1020
+ layer.setProperties(PropertyFactory.lineOffset(styleValue.getFloat(VALUE_KEY)));
1021
+ }
1022
+ }
1023
+
1024
+
1025
+ public static void setLineOffsetTransition(LineLayer layer, MLRNStyleValue styleValue) {
1026
+ TransitionOptions transition = styleValue.getTransition();
1027
+ if (transition != null) {
1028
+ layer.setLineOffsetTransition(transition);
1029
+ }
1030
+ }
1031
+
1032
+ public static void setLineBlur(LineLayer layer, MLRNStyleValue styleValue) {
1033
+ if (styleValue.isExpression()) {
1034
+ layer.setProperties(PropertyFactory.lineBlur(styleValue.getExpression()));
1035
+ } else {
1036
+ layer.setProperties(PropertyFactory.lineBlur(styleValue.getFloat(VALUE_KEY)));
1037
+ }
1038
+ }
1039
+
1040
+
1041
+ public static void setLineBlurTransition(LineLayer layer, MLRNStyleValue styleValue) {
1042
+ TransitionOptions transition = styleValue.getTransition();
1043
+ if (transition != null) {
1044
+ layer.setLineBlurTransition(transition);
1045
+ }
1046
+ }
1047
+
1048
+ public static void setLineDasharray(LineLayer layer, MLRNStyleValue styleValue) {
1049
+ if (styleValue.isExpression()) {
1050
+ layer.setProperties(PropertyFactory.lineDasharray(styleValue.getExpression()));
1051
+ } else {
1052
+ layer.setProperties(PropertyFactory.lineDasharray(styleValue.getFloatArray(VALUE_KEY)));
1053
+ }
1054
+ }
1055
+
1056
+
1057
+ public static void setLineDasharrayTransition(LineLayer layer, MLRNStyleValue styleValue) {
1058
+ TransitionOptions transition = styleValue.getTransition();
1059
+ if (transition != null) {
1060
+ layer.setLineDasharrayTransition(transition);
1061
+ }
1062
+ }
1063
+
1064
+ public static void setLinePattern(LineLayer layer, MLRNStyleValue styleValue) {
1065
+ if (styleValue.isExpression()) {
1066
+ if (styleValue.isImageStringValue()) {
1067
+ layer.setProperties(PropertyFactory.linePattern(styleValue.getImageStringValue()));
1068
+ } else {
1069
+ layer.setProperties(PropertyFactory.linePattern(styleValue.getExpression()));
1070
+ }
1071
+ } else {
1072
+ layer.setProperties(PropertyFactory.linePattern(styleValue.getImageURI()));
1073
+ }
1074
+ }
1075
+
1076
+
1077
+ public static void setLinePatternTransition(LineLayer layer, MLRNStyleValue styleValue) {
1078
+ TransitionOptions transition = styleValue.getTransition();
1079
+ if (transition != null) {
1080
+ layer.setLinePatternTransition(transition);
1081
+ }
1082
+ }
1083
+
1084
+ public static void setLineGradient(LineLayer layer, MLRNStyleValue styleValue) {
1085
+ if (styleValue.isExpression()) {
1086
+ layer.setProperties(PropertyFactory.lineGradient(styleValue.getExpression()));
1087
+ } else {
1088
+ layer.setProperties(PropertyFactory.lineGradient(styleValue.getInt(VALUE_KEY)));
1089
+ }
1090
+ }
1091
+
1092
+ public static void setSymbolPlacement(SymbolLayer layer, MLRNStyleValue styleValue) {
1093
+ if (styleValue.isExpression()) {
1094
+ layer.setProperties(PropertyFactory.symbolPlacement(styleValue.getExpression()));
1095
+ } else {
1096
+ layer.setProperties(PropertyFactory.symbolPlacement(styleValue.getString(VALUE_KEY)));
1097
+ }
1098
+ }
1099
+
1100
+ public static void setSymbolSpacing(SymbolLayer layer, MLRNStyleValue styleValue) {
1101
+ if (styleValue.isExpression()) {
1102
+ layer.setProperties(PropertyFactory.symbolSpacing(styleValue.getExpression()));
1103
+ } else {
1104
+ layer.setProperties(PropertyFactory.symbolSpacing(styleValue.getFloat(VALUE_KEY)));
1105
+ }
1106
+ }
1107
+
1108
+ public static void setSymbolAvoidEdges(SymbolLayer layer, MLRNStyleValue styleValue) {
1109
+ if (styleValue.isExpression()) {
1110
+ layer.setProperties(PropertyFactory.symbolAvoidEdges(styleValue.getExpression()));
1111
+ } else {
1112
+ layer.setProperties(PropertyFactory.symbolAvoidEdges(styleValue.getBoolean(VALUE_KEY)));
1113
+ }
1114
+ }
1115
+
1116
+ public static void setSymbolSortKey(SymbolLayer layer, MLRNStyleValue styleValue) {
1117
+ if (styleValue.isExpression()) {
1118
+ layer.setProperties(PropertyFactory.symbolSortKey(styleValue.getExpression()));
1119
+ } else {
1120
+ layer.setProperties(PropertyFactory.symbolSortKey(styleValue.getFloat(VALUE_KEY)));
1121
+ }
1122
+ }
1123
+
1124
+ public static void setSymbolZOrder(SymbolLayer layer, MLRNStyleValue styleValue) {
1125
+ if (styleValue.isExpression()) {
1126
+ layer.setProperties(PropertyFactory.symbolZOrder(styleValue.getExpression()));
1127
+ } else {
1128
+ layer.setProperties(PropertyFactory.symbolZOrder(styleValue.getString(VALUE_KEY)));
1129
+ }
1130
+ }
1131
+
1132
+ public static void setIconAllowOverlap(SymbolLayer layer, MLRNStyleValue styleValue) {
1133
+ if (styleValue.isExpression()) {
1134
+ layer.setProperties(PropertyFactory.iconAllowOverlap(styleValue.getExpression()));
1135
+ } else {
1136
+ layer.setProperties(PropertyFactory.iconAllowOverlap(styleValue.getBoolean(VALUE_KEY)));
1137
+ }
1138
+ }
1139
+
1140
+ public static void setIconIgnorePlacement(SymbolLayer layer, MLRNStyleValue styleValue) {
1141
+ if (styleValue.isExpression()) {
1142
+ layer.setProperties(PropertyFactory.iconIgnorePlacement(styleValue.getExpression()));
1143
+ } else {
1144
+ layer.setProperties(PropertyFactory.iconIgnorePlacement(styleValue.getBoolean(VALUE_KEY)));
1145
+ }
1146
+ }
1147
+
1148
+ public static void setIconOptional(SymbolLayer layer, MLRNStyleValue styleValue) {
1149
+ if (styleValue.isExpression()) {
1150
+ layer.setProperties(PropertyFactory.iconOptional(styleValue.getExpression()));
1151
+ } else {
1152
+ layer.setProperties(PropertyFactory.iconOptional(styleValue.getBoolean(VALUE_KEY)));
1153
+ }
1154
+ }
1155
+
1156
+ public static void setIconRotationAlignment(SymbolLayer layer, MLRNStyleValue styleValue) {
1157
+ if (styleValue.isExpression()) {
1158
+ layer.setProperties(PropertyFactory.iconRotationAlignment(styleValue.getExpression()));
1159
+ } else {
1160
+ layer.setProperties(PropertyFactory.iconRotationAlignment(styleValue.getString(VALUE_KEY)));
1161
+ }
1162
+ }
1163
+
1164
+ public static void setIconSize(SymbolLayer layer, MLRNStyleValue styleValue) {
1165
+ if (styleValue.isExpression()) {
1166
+ layer.setProperties(PropertyFactory.iconSize(styleValue.getExpression()));
1167
+ } else {
1168
+ layer.setProperties(PropertyFactory.iconSize(styleValue.getFloat(VALUE_KEY)));
1169
+ }
1170
+ }
1171
+
1172
+ public static void setIconTextFit(SymbolLayer layer, MLRNStyleValue styleValue) {
1173
+ if (styleValue.isExpression()) {
1174
+ layer.setProperties(PropertyFactory.iconTextFit(styleValue.getExpression()));
1175
+ } else {
1176
+ layer.setProperties(PropertyFactory.iconTextFit(styleValue.getString(VALUE_KEY)));
1177
+ }
1178
+ }
1179
+
1180
+ public static void setIconTextFitPadding(SymbolLayer layer, MLRNStyleValue styleValue) {
1181
+ if (styleValue.isExpression()) {
1182
+ layer.setProperties(PropertyFactory.iconTextFitPadding(styleValue.getExpression()));
1183
+ } else {
1184
+ layer.setProperties(PropertyFactory.iconTextFitPadding(styleValue.getFloatArray(VALUE_KEY)));
1185
+ }
1186
+ }
1187
+
1188
+ public static void setIconImage(SymbolLayer layer, MLRNStyleValue styleValue) {
1189
+ if (styleValue.isExpression()) {
1190
+ if (styleValue.isImageStringValue()) {
1191
+ layer.setProperties(PropertyFactory.iconImage(styleValue.getImageStringValue()));
1192
+ } else {
1193
+ layer.setProperties(PropertyFactory.iconImage(styleValue.getExpression()));
1194
+ }
1195
+ } else {
1196
+ layer.setProperties(PropertyFactory.iconImage(styleValue.getImageURI()));
1197
+ }
1198
+ }
1199
+
1200
+ public static void setIconRotate(SymbolLayer layer, MLRNStyleValue styleValue) {
1201
+ if (styleValue.isExpression()) {
1202
+ layer.setProperties(PropertyFactory.iconRotate(styleValue.getExpression()));
1203
+ } else {
1204
+ layer.setProperties(PropertyFactory.iconRotate(styleValue.getFloat(VALUE_KEY)));
1205
+ }
1206
+ }
1207
+
1208
+ public static void setIconPadding(SymbolLayer layer, MLRNStyleValue styleValue) {
1209
+ if (styleValue.isExpression()) {
1210
+ layer.setProperties(PropertyFactory.iconPadding(styleValue.getExpression()));
1211
+ } else {
1212
+ layer.setProperties(PropertyFactory.iconPadding(styleValue.getFloatArray(VALUE_KEY)));
1213
+ }
1214
+ }
1215
+
1216
+ public static void setIconKeepUpright(SymbolLayer layer, MLRNStyleValue styleValue) {
1217
+ if (styleValue.isExpression()) {
1218
+ layer.setProperties(PropertyFactory.iconKeepUpright(styleValue.getExpression()));
1219
+ } else {
1220
+ layer.setProperties(PropertyFactory.iconKeepUpright(styleValue.getBoolean(VALUE_KEY)));
1221
+ }
1222
+ }
1223
+
1224
+ public static void setIconOffset(SymbolLayer layer, MLRNStyleValue styleValue) {
1225
+ if (styleValue.isExpression()) {
1226
+ layer.setProperties(PropertyFactory.iconOffset(styleValue.getExpression()));
1227
+ } else {
1228
+ layer.setProperties(PropertyFactory.iconOffset(styleValue.getFloatArray(VALUE_KEY)));
1229
+ }
1230
+ }
1231
+
1232
+ public static void setIconAnchor(SymbolLayer layer, MLRNStyleValue styleValue) {
1233
+ if (styleValue.isExpression()) {
1234
+ layer.setProperties(PropertyFactory.iconAnchor(styleValue.getExpression()));
1235
+ } else {
1236
+ layer.setProperties(PropertyFactory.iconAnchor(styleValue.getString(VALUE_KEY)));
1237
+ }
1238
+ }
1239
+
1240
+ public static void setIconPitchAlignment(SymbolLayer layer, MLRNStyleValue styleValue) {
1241
+ if (styleValue.isExpression()) {
1242
+ layer.setProperties(PropertyFactory.iconPitchAlignment(styleValue.getExpression()));
1243
+ } else {
1244
+ layer.setProperties(PropertyFactory.iconPitchAlignment(styleValue.getString(VALUE_KEY)));
1245
+ }
1246
+ }
1247
+
1248
+ public static void setTextPitchAlignment(SymbolLayer layer, MLRNStyleValue styleValue) {
1249
+ if (styleValue.isExpression()) {
1250
+ layer.setProperties(PropertyFactory.textPitchAlignment(styleValue.getExpression()));
1251
+ } else {
1252
+ layer.setProperties(PropertyFactory.textPitchAlignment(styleValue.getString(VALUE_KEY)));
1253
+ }
1254
+ }
1255
+
1256
+ public static void setTextRotationAlignment(SymbolLayer layer, MLRNStyleValue styleValue) {
1257
+ if (styleValue.isExpression()) {
1258
+ layer.setProperties(PropertyFactory.textRotationAlignment(styleValue.getExpression()));
1259
+ } else {
1260
+ layer.setProperties(PropertyFactory.textRotationAlignment(styleValue.getString(VALUE_KEY)));
1261
+ }
1262
+ }
1263
+
1264
+ public static void setTextField(SymbolLayer layer, MLRNStyleValue styleValue) {
1265
+ if (styleValue.isExpression()) {
1266
+ layer.setProperties(PropertyFactory.textField(styleValue.getExpression()));
1267
+ } else {
1268
+ layer.setProperties(PropertyFactory.textField(styleValue.getString(VALUE_KEY)));
1269
+ }
1270
+ }
1271
+
1272
+ public static void setTextFont(SymbolLayer layer, MLRNStyleValue styleValue) {
1273
+ if (styleValue.isExpression()) {
1274
+ layer.setProperties(PropertyFactory.textFont(styleValue.getExpression()));
1275
+ } else {
1276
+ layer.setProperties(PropertyFactory.textFont(styleValue.getStringArray(VALUE_KEY)));
1277
+ }
1278
+ }
1279
+
1280
+ public static void setTextSize(SymbolLayer layer, MLRNStyleValue styleValue) {
1281
+ if (styleValue.isExpression()) {
1282
+ layer.setProperties(PropertyFactory.textSize(styleValue.getExpression()));
1283
+ } else {
1284
+ layer.setProperties(PropertyFactory.textSize(styleValue.getFloat(VALUE_KEY)));
1285
+ }
1286
+ }
1287
+
1288
+ public static void setTextMaxWidth(SymbolLayer layer, MLRNStyleValue styleValue) {
1289
+ if (styleValue.isExpression()) {
1290
+ layer.setProperties(PropertyFactory.textMaxWidth(styleValue.getExpression()));
1291
+ } else {
1292
+ layer.setProperties(PropertyFactory.textMaxWidth(styleValue.getFloat(VALUE_KEY)));
1293
+ }
1294
+ }
1295
+
1296
+ public static void setTextLineHeight(SymbolLayer layer, MLRNStyleValue styleValue) {
1297
+ if (styleValue.isExpression()) {
1298
+ layer.setProperties(PropertyFactory.textLineHeight(styleValue.getExpression()));
1299
+ } else {
1300
+ layer.setProperties(PropertyFactory.textLineHeight(styleValue.getFloat(VALUE_KEY)));
1301
+ }
1302
+ }
1303
+
1304
+ public static void setTextLetterSpacing(SymbolLayer layer, MLRNStyleValue styleValue) {
1305
+ if (styleValue.isExpression()) {
1306
+ layer.setProperties(PropertyFactory.textLetterSpacing(styleValue.getExpression()));
1307
+ } else {
1308
+ layer.setProperties(PropertyFactory.textLetterSpacing(styleValue.getFloat(VALUE_KEY)));
1309
+ }
1310
+ }
1311
+
1312
+ public static void setTextJustify(SymbolLayer layer, MLRNStyleValue styleValue) {
1313
+ if (styleValue.isExpression()) {
1314
+ layer.setProperties(PropertyFactory.textJustify(styleValue.getExpression()));
1315
+ } else {
1316
+ layer.setProperties(PropertyFactory.textJustify(styleValue.getString(VALUE_KEY)));
1317
+ }
1318
+ }
1319
+
1320
+ public static void setTextRadialOffset(SymbolLayer layer, MLRNStyleValue styleValue) {
1321
+ if (styleValue.isExpression()) {
1322
+ layer.setProperties(PropertyFactory.textRadialOffset(styleValue.getExpression()));
1323
+ } else {
1324
+ layer.setProperties(PropertyFactory.textRadialOffset(styleValue.getFloat(VALUE_KEY)));
1325
+ }
1326
+ }
1327
+
1328
+ public static void setTextVariableAnchor(SymbolLayer layer, MLRNStyleValue styleValue) {
1329
+ if (styleValue.isExpression()) {
1330
+ layer.setProperties(PropertyFactory.textVariableAnchor(styleValue.getExpression()));
1331
+ } else {
1332
+ layer.setProperties(PropertyFactory.textVariableAnchor(styleValue.getStringArray(VALUE_KEY)));
1333
+ }
1334
+ }
1335
+
1336
+ public static void setTextAnchor(SymbolLayer layer, MLRNStyleValue styleValue) {
1337
+ if (styleValue.isExpression()) {
1338
+ layer.setProperties(PropertyFactory.textAnchor(styleValue.getExpression()));
1339
+ } else {
1340
+ layer.setProperties(PropertyFactory.textAnchor(styleValue.getString(VALUE_KEY)));
1341
+ }
1342
+ }
1343
+
1344
+ public static void setTextMaxAngle(SymbolLayer layer, MLRNStyleValue styleValue) {
1345
+ if (styleValue.isExpression()) {
1346
+ layer.setProperties(PropertyFactory.textMaxAngle(styleValue.getExpression()));
1347
+ } else {
1348
+ layer.setProperties(PropertyFactory.textMaxAngle(styleValue.getFloat(VALUE_KEY)));
1349
+ }
1350
+ }
1351
+
1352
+ public static void setTextWritingMode(SymbolLayer layer, MLRNStyleValue styleValue) {
1353
+ if (styleValue.isExpression()) {
1354
+ layer.setProperties(PropertyFactory.textWritingMode(styleValue.getExpression()));
1355
+ } else {
1356
+ layer.setProperties(PropertyFactory.textWritingMode(styleValue.getStringArray(VALUE_KEY)));
1357
+ }
1358
+ }
1359
+
1360
+ public static void setTextRotate(SymbolLayer layer, MLRNStyleValue styleValue) {
1361
+ if (styleValue.isExpression()) {
1362
+ layer.setProperties(PropertyFactory.textRotate(styleValue.getExpression()));
1363
+ } else {
1364
+ layer.setProperties(PropertyFactory.textRotate(styleValue.getFloat(VALUE_KEY)));
1365
+ }
1366
+ }
1367
+
1368
+ public static void setTextPadding(SymbolLayer layer, MLRNStyleValue styleValue) {
1369
+ if (styleValue.isExpression()) {
1370
+ layer.setProperties(PropertyFactory.textPadding(styleValue.getExpression()));
1371
+ } else {
1372
+ layer.setProperties(PropertyFactory.textPadding(styleValue.getFloat(VALUE_KEY)));
1373
+ }
1374
+ }
1375
+
1376
+ public static void setTextKeepUpright(SymbolLayer layer, MLRNStyleValue styleValue) {
1377
+ if (styleValue.isExpression()) {
1378
+ layer.setProperties(PropertyFactory.textKeepUpright(styleValue.getExpression()));
1379
+ } else {
1380
+ layer.setProperties(PropertyFactory.textKeepUpright(styleValue.getBoolean(VALUE_KEY)));
1381
+ }
1382
+ }
1383
+
1384
+ public static void setTextTransform(SymbolLayer layer, MLRNStyleValue styleValue) {
1385
+ if (styleValue.isExpression()) {
1386
+ layer.setProperties(PropertyFactory.textTransform(styleValue.getExpression()));
1387
+ } else {
1388
+ layer.setProperties(PropertyFactory.textTransform(styleValue.getString(VALUE_KEY)));
1389
+ }
1390
+ }
1391
+
1392
+ public static void setTextOffset(SymbolLayer layer, MLRNStyleValue styleValue) {
1393
+ if (styleValue.isExpression()) {
1394
+ layer.setProperties(PropertyFactory.textOffset(styleValue.getExpression()));
1395
+ } else {
1396
+ layer.setProperties(PropertyFactory.textOffset(styleValue.getFloatArray(VALUE_KEY)));
1397
+ }
1398
+ }
1399
+
1400
+ public static void setTextAllowOverlap(SymbolLayer layer, MLRNStyleValue styleValue) {
1401
+ if (styleValue.isExpression()) {
1402
+ layer.setProperties(PropertyFactory.textAllowOverlap(styleValue.getExpression()));
1403
+ } else {
1404
+ layer.setProperties(PropertyFactory.textAllowOverlap(styleValue.getBoolean(VALUE_KEY)));
1405
+ }
1406
+ }
1407
+
1408
+ public static void setTextIgnorePlacement(SymbolLayer layer, MLRNStyleValue styleValue) {
1409
+ if (styleValue.isExpression()) {
1410
+ layer.setProperties(PropertyFactory.textIgnorePlacement(styleValue.getExpression()));
1411
+ } else {
1412
+ layer.setProperties(PropertyFactory.textIgnorePlacement(styleValue.getBoolean(VALUE_KEY)));
1413
+ }
1414
+ }
1415
+
1416
+ public static void setTextOptional(SymbolLayer layer, MLRNStyleValue styleValue) {
1417
+ if (styleValue.isExpression()) {
1418
+ layer.setProperties(PropertyFactory.textOptional(styleValue.getExpression()));
1419
+ } else {
1420
+ layer.setProperties(PropertyFactory.textOptional(styleValue.getBoolean(VALUE_KEY)));
1421
+ }
1422
+ }
1423
+
1424
+ public static void setVisibility(SymbolLayer layer, MLRNStyleValue styleValue) {
1425
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
1426
+ }
1427
+
1428
+ public static void setIconOpacity(SymbolLayer layer, MLRNStyleValue styleValue) {
1429
+ if (styleValue.isExpression()) {
1430
+ layer.setProperties(PropertyFactory.iconOpacity(styleValue.getExpression()));
1431
+ } else {
1432
+ layer.setProperties(PropertyFactory.iconOpacity(styleValue.getFloat(VALUE_KEY)));
1433
+ }
1434
+ }
1435
+
1436
+
1437
+ public static void setIconOpacityTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1438
+ TransitionOptions transition = styleValue.getTransition();
1439
+ if (transition != null) {
1440
+ layer.setIconOpacityTransition(transition);
1441
+ }
1442
+ }
1443
+
1444
+ public static void setIconColor(SymbolLayer layer, MLRNStyleValue styleValue) {
1445
+ if (styleValue.isExpression()) {
1446
+ layer.setProperties(PropertyFactory.iconColor(styleValue.getExpression()));
1447
+ } else {
1448
+ layer.setProperties(PropertyFactory.iconColor(styleValue.getInt(VALUE_KEY)));
1449
+ }
1450
+ }
1451
+
1452
+
1453
+ public static void setIconColorTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1454
+ TransitionOptions transition = styleValue.getTransition();
1455
+ if (transition != null) {
1456
+ layer.setIconColorTransition(transition);
1457
+ }
1458
+ }
1459
+
1460
+ public static void setIconHaloColor(SymbolLayer layer, MLRNStyleValue styleValue) {
1461
+ if (styleValue.isExpression()) {
1462
+ layer.setProperties(PropertyFactory.iconHaloColor(styleValue.getExpression()));
1463
+ } else {
1464
+ layer.setProperties(PropertyFactory.iconHaloColor(styleValue.getInt(VALUE_KEY)));
1465
+ }
1466
+ }
1467
+
1468
+
1469
+ public static void setIconHaloColorTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1470
+ TransitionOptions transition = styleValue.getTransition();
1471
+ if (transition != null) {
1472
+ layer.setIconHaloColorTransition(transition);
1473
+ }
1474
+ }
1475
+
1476
+ public static void setIconHaloWidth(SymbolLayer layer, MLRNStyleValue styleValue) {
1477
+ if (styleValue.isExpression()) {
1478
+ layer.setProperties(PropertyFactory.iconHaloWidth(styleValue.getExpression()));
1479
+ } else {
1480
+ layer.setProperties(PropertyFactory.iconHaloWidth(styleValue.getFloat(VALUE_KEY)));
1481
+ }
1482
+ }
1483
+
1484
+
1485
+ public static void setIconHaloWidthTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1486
+ TransitionOptions transition = styleValue.getTransition();
1487
+ if (transition != null) {
1488
+ layer.setIconHaloWidthTransition(transition);
1489
+ }
1490
+ }
1491
+
1492
+ public static void setIconHaloBlur(SymbolLayer layer, MLRNStyleValue styleValue) {
1493
+ if (styleValue.isExpression()) {
1494
+ layer.setProperties(PropertyFactory.iconHaloBlur(styleValue.getExpression()));
1495
+ } else {
1496
+ layer.setProperties(PropertyFactory.iconHaloBlur(styleValue.getFloat(VALUE_KEY)));
1497
+ }
1498
+ }
1499
+
1500
+
1501
+ public static void setIconHaloBlurTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1502
+ TransitionOptions transition = styleValue.getTransition();
1503
+ if (transition != null) {
1504
+ layer.setIconHaloBlurTransition(transition);
1505
+ }
1506
+ }
1507
+
1508
+ public static void setIconTranslate(SymbolLayer layer, MLRNStyleValue styleValue) {
1509
+ if (styleValue.isExpression()) {
1510
+ layer.setProperties(PropertyFactory.iconTranslate(styleValue.getExpression()));
1511
+ } else {
1512
+ layer.setProperties(PropertyFactory.iconTranslate(styleValue.getFloatArray(VALUE_KEY)));
1513
+ }
1514
+ }
1515
+
1516
+
1517
+ public static void setIconTranslateTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1518
+ TransitionOptions transition = styleValue.getTransition();
1519
+ if (transition != null) {
1520
+ layer.setIconTranslateTransition(transition);
1521
+ }
1522
+ }
1523
+
1524
+ public static void setIconTranslateAnchor(SymbolLayer layer, MLRNStyleValue styleValue) {
1525
+ if (styleValue.isExpression()) {
1526
+ layer.setProperties(PropertyFactory.iconTranslateAnchor(styleValue.getExpression()));
1527
+ } else {
1528
+ layer.setProperties(PropertyFactory.iconTranslateAnchor(styleValue.getString(VALUE_KEY)));
1529
+ }
1530
+ }
1531
+
1532
+ public static void setTextOpacity(SymbolLayer layer, MLRNStyleValue styleValue) {
1533
+ if (styleValue.isExpression()) {
1534
+ layer.setProperties(PropertyFactory.textOpacity(styleValue.getExpression()));
1535
+ } else {
1536
+ layer.setProperties(PropertyFactory.textOpacity(styleValue.getFloat(VALUE_KEY)));
1537
+ }
1538
+ }
1539
+
1540
+
1541
+ public static void setTextOpacityTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1542
+ TransitionOptions transition = styleValue.getTransition();
1543
+ if (transition != null) {
1544
+ layer.setTextOpacityTransition(transition);
1545
+ }
1546
+ }
1547
+
1548
+ public static void setTextColor(SymbolLayer layer, MLRNStyleValue styleValue) {
1549
+ if (styleValue.isExpression()) {
1550
+ layer.setProperties(PropertyFactory.textColor(styleValue.getExpression()));
1551
+ } else {
1552
+ layer.setProperties(PropertyFactory.textColor(styleValue.getInt(VALUE_KEY)));
1553
+ }
1554
+ }
1555
+
1556
+
1557
+ public static void setTextColorTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1558
+ TransitionOptions transition = styleValue.getTransition();
1559
+ if (transition != null) {
1560
+ layer.setTextColorTransition(transition);
1561
+ }
1562
+ }
1563
+
1564
+ public static void setTextHaloColor(SymbolLayer layer, MLRNStyleValue styleValue) {
1565
+ if (styleValue.isExpression()) {
1566
+ layer.setProperties(PropertyFactory.textHaloColor(styleValue.getExpression()));
1567
+ } else {
1568
+ layer.setProperties(PropertyFactory.textHaloColor(styleValue.getInt(VALUE_KEY)));
1569
+ }
1570
+ }
1571
+
1572
+
1573
+ public static void setTextHaloColorTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1574
+ TransitionOptions transition = styleValue.getTransition();
1575
+ if (transition != null) {
1576
+ layer.setTextHaloColorTransition(transition);
1577
+ }
1578
+ }
1579
+
1580
+ public static void setTextHaloWidth(SymbolLayer layer, MLRNStyleValue styleValue) {
1581
+ if (styleValue.isExpression()) {
1582
+ layer.setProperties(PropertyFactory.textHaloWidth(styleValue.getExpression()));
1583
+ } else {
1584
+ layer.setProperties(PropertyFactory.textHaloWidth(styleValue.getFloat(VALUE_KEY)));
1585
+ }
1586
+ }
1587
+
1588
+
1589
+ public static void setTextHaloWidthTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1590
+ TransitionOptions transition = styleValue.getTransition();
1591
+ if (transition != null) {
1592
+ layer.setTextHaloWidthTransition(transition);
1593
+ }
1594
+ }
1595
+
1596
+ public static void setTextHaloBlur(SymbolLayer layer, MLRNStyleValue styleValue) {
1597
+ if (styleValue.isExpression()) {
1598
+ layer.setProperties(PropertyFactory.textHaloBlur(styleValue.getExpression()));
1599
+ } else {
1600
+ layer.setProperties(PropertyFactory.textHaloBlur(styleValue.getFloat(VALUE_KEY)));
1601
+ }
1602
+ }
1603
+
1604
+
1605
+ public static void setTextHaloBlurTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1606
+ TransitionOptions transition = styleValue.getTransition();
1607
+ if (transition != null) {
1608
+ layer.setTextHaloBlurTransition(transition);
1609
+ }
1610
+ }
1611
+
1612
+ public static void setTextTranslate(SymbolLayer layer, MLRNStyleValue styleValue) {
1613
+ if (styleValue.isExpression()) {
1614
+ layer.setProperties(PropertyFactory.textTranslate(styleValue.getExpression()));
1615
+ } else {
1616
+ layer.setProperties(PropertyFactory.textTranslate(styleValue.getFloatArray(VALUE_KEY)));
1617
+ }
1618
+ }
1619
+
1620
+
1621
+ public static void setTextTranslateTransition(SymbolLayer layer, MLRNStyleValue styleValue) {
1622
+ TransitionOptions transition = styleValue.getTransition();
1623
+ if (transition != null) {
1624
+ layer.setTextTranslateTransition(transition);
1625
+ }
1626
+ }
1627
+
1628
+ public static void setTextTranslateAnchor(SymbolLayer layer, MLRNStyleValue styleValue) {
1629
+ if (styleValue.isExpression()) {
1630
+ layer.setProperties(PropertyFactory.textTranslateAnchor(styleValue.getExpression()));
1631
+ } else {
1632
+ layer.setProperties(PropertyFactory.textTranslateAnchor(styleValue.getString(VALUE_KEY)));
1633
+ }
1634
+ }
1635
+
1636
+ public static void setCircleSortKey(CircleLayer layer, MLRNStyleValue styleValue) {
1637
+ if (styleValue.isExpression()) {
1638
+ layer.setProperties(PropertyFactory.circleSortKey(styleValue.getExpression()));
1639
+ } else {
1640
+ layer.setProperties(PropertyFactory.circleSortKey(styleValue.getFloat(VALUE_KEY)));
1641
+ }
1642
+ }
1643
+
1644
+ public static void setVisibility(CircleLayer layer, MLRNStyleValue styleValue) {
1645
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
1646
+ }
1647
+
1648
+ public static void setCircleRadius(CircleLayer layer, MLRNStyleValue styleValue) {
1649
+ if (styleValue.isExpression()) {
1650
+ layer.setProperties(PropertyFactory.circleRadius(styleValue.getExpression()));
1651
+ } else {
1652
+ layer.setProperties(PropertyFactory.circleRadius(styleValue.getFloat(VALUE_KEY)));
1653
+ }
1654
+ }
1655
+
1656
+
1657
+ public static void setCircleRadiusTransition(CircleLayer layer, MLRNStyleValue styleValue) {
1658
+ TransitionOptions transition = styleValue.getTransition();
1659
+ if (transition != null) {
1660
+ layer.setCircleRadiusTransition(transition);
1661
+ }
1662
+ }
1663
+
1664
+ public static void setCircleColor(CircleLayer layer, MLRNStyleValue styleValue) {
1665
+ if (styleValue.isExpression()) {
1666
+ layer.setProperties(PropertyFactory.circleColor(styleValue.getExpression()));
1667
+ } else {
1668
+ layer.setProperties(PropertyFactory.circleColor(styleValue.getInt(VALUE_KEY)));
1669
+ }
1670
+ }
1671
+
1672
+
1673
+ public static void setCircleColorTransition(CircleLayer layer, MLRNStyleValue styleValue) {
1674
+ TransitionOptions transition = styleValue.getTransition();
1675
+ if (transition != null) {
1676
+ layer.setCircleColorTransition(transition);
1677
+ }
1678
+ }
1679
+
1680
+ public static void setCircleBlur(CircleLayer layer, MLRNStyleValue styleValue) {
1681
+ if (styleValue.isExpression()) {
1682
+ layer.setProperties(PropertyFactory.circleBlur(styleValue.getExpression()));
1683
+ } else {
1684
+ layer.setProperties(PropertyFactory.circleBlur(styleValue.getFloat(VALUE_KEY)));
1685
+ }
1686
+ }
1687
+
1688
+
1689
+ public static void setCircleBlurTransition(CircleLayer layer, MLRNStyleValue styleValue) {
1690
+ TransitionOptions transition = styleValue.getTransition();
1691
+ if (transition != null) {
1692
+ layer.setCircleBlurTransition(transition);
1693
+ }
1694
+ }
1695
+
1696
+ public static void setCircleOpacity(CircleLayer layer, MLRNStyleValue styleValue) {
1697
+ if (styleValue.isExpression()) {
1698
+ layer.setProperties(PropertyFactory.circleOpacity(styleValue.getExpression()));
1699
+ } else {
1700
+ layer.setProperties(PropertyFactory.circleOpacity(styleValue.getFloat(VALUE_KEY)));
1701
+ }
1702
+ }
1703
+
1704
+
1705
+ public static void setCircleOpacityTransition(CircleLayer layer, MLRNStyleValue styleValue) {
1706
+ TransitionOptions transition = styleValue.getTransition();
1707
+ if (transition != null) {
1708
+ layer.setCircleOpacityTransition(transition);
1709
+ }
1710
+ }
1711
+
1712
+ public static void setCircleTranslate(CircleLayer layer, MLRNStyleValue styleValue) {
1713
+ if (styleValue.isExpression()) {
1714
+ layer.setProperties(PropertyFactory.circleTranslate(styleValue.getExpression()));
1715
+ } else {
1716
+ layer.setProperties(PropertyFactory.circleTranslate(styleValue.getFloatArray(VALUE_KEY)));
1717
+ }
1718
+ }
1719
+
1720
+
1721
+ public static void setCircleTranslateTransition(CircleLayer layer, MLRNStyleValue styleValue) {
1722
+ TransitionOptions transition = styleValue.getTransition();
1723
+ if (transition != null) {
1724
+ layer.setCircleTranslateTransition(transition);
1725
+ }
1726
+ }
1727
+
1728
+ public static void setCircleTranslateAnchor(CircleLayer layer, MLRNStyleValue styleValue) {
1729
+ if (styleValue.isExpression()) {
1730
+ layer.setProperties(PropertyFactory.circleTranslateAnchor(styleValue.getExpression()));
1731
+ } else {
1732
+ layer.setProperties(PropertyFactory.circleTranslateAnchor(styleValue.getString(VALUE_KEY)));
1733
+ }
1734
+ }
1735
+
1736
+ public static void setCirclePitchScale(CircleLayer layer, MLRNStyleValue styleValue) {
1737
+ if (styleValue.isExpression()) {
1738
+ layer.setProperties(PropertyFactory.circlePitchScale(styleValue.getExpression()));
1739
+ } else {
1740
+ layer.setProperties(PropertyFactory.circlePitchScale(styleValue.getString(VALUE_KEY)));
1741
+ }
1742
+ }
1743
+
1744
+ public static void setCirclePitchAlignment(CircleLayer layer, MLRNStyleValue styleValue) {
1745
+ if (styleValue.isExpression()) {
1746
+ layer.setProperties(PropertyFactory.circlePitchAlignment(styleValue.getExpression()));
1747
+ } else {
1748
+ layer.setProperties(PropertyFactory.circlePitchAlignment(styleValue.getString(VALUE_KEY)));
1749
+ }
1750
+ }
1751
+
1752
+ public static void setCircleStrokeWidth(CircleLayer layer, MLRNStyleValue styleValue) {
1753
+ if (styleValue.isExpression()) {
1754
+ layer.setProperties(PropertyFactory.circleStrokeWidth(styleValue.getExpression()));
1755
+ } else {
1756
+ layer.setProperties(PropertyFactory.circleStrokeWidth(styleValue.getFloat(VALUE_KEY)));
1757
+ }
1758
+ }
1759
+
1760
+
1761
+ public static void setCircleStrokeWidthTransition(CircleLayer layer, MLRNStyleValue styleValue) {
1762
+ TransitionOptions transition = styleValue.getTransition();
1763
+ if (transition != null) {
1764
+ layer.setCircleStrokeWidthTransition(transition);
1765
+ }
1766
+ }
1767
+
1768
+ public static void setCircleStrokeColor(CircleLayer layer, MLRNStyleValue styleValue) {
1769
+ if (styleValue.isExpression()) {
1770
+ layer.setProperties(PropertyFactory.circleStrokeColor(styleValue.getExpression()));
1771
+ } else {
1772
+ layer.setProperties(PropertyFactory.circleStrokeColor(styleValue.getInt(VALUE_KEY)));
1773
+ }
1774
+ }
1775
+
1776
+
1777
+ public static void setCircleStrokeColorTransition(CircleLayer layer, MLRNStyleValue styleValue) {
1778
+ TransitionOptions transition = styleValue.getTransition();
1779
+ if (transition != null) {
1780
+ layer.setCircleStrokeColorTransition(transition);
1781
+ }
1782
+ }
1783
+
1784
+ public static void setCircleStrokeOpacity(CircleLayer layer, MLRNStyleValue styleValue) {
1785
+ if (styleValue.isExpression()) {
1786
+ layer.setProperties(PropertyFactory.circleStrokeOpacity(styleValue.getExpression()));
1787
+ } else {
1788
+ layer.setProperties(PropertyFactory.circleStrokeOpacity(styleValue.getFloat(VALUE_KEY)));
1789
+ }
1790
+ }
1791
+
1792
+
1793
+ public static void setCircleStrokeOpacityTransition(CircleLayer layer, MLRNStyleValue styleValue) {
1794
+ TransitionOptions transition = styleValue.getTransition();
1795
+ if (transition != null) {
1796
+ layer.setCircleStrokeOpacityTransition(transition);
1797
+ }
1798
+ }
1799
+
1800
+ public static void setVisibility(HeatmapLayer layer, MLRNStyleValue styleValue) {
1801
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
1802
+ }
1803
+
1804
+ public static void setHeatmapRadius(HeatmapLayer layer, MLRNStyleValue styleValue) {
1805
+ if (styleValue.isExpression()) {
1806
+ layer.setProperties(PropertyFactory.heatmapRadius(styleValue.getExpression()));
1807
+ } else {
1808
+ layer.setProperties(PropertyFactory.heatmapRadius(styleValue.getFloat(VALUE_KEY)));
1809
+ }
1810
+ }
1811
+
1812
+
1813
+ public static void setHeatmapRadiusTransition(HeatmapLayer layer, MLRNStyleValue styleValue) {
1814
+ TransitionOptions transition = styleValue.getTransition();
1815
+ if (transition != null) {
1816
+ layer.setHeatmapRadiusTransition(transition);
1817
+ }
1818
+ }
1819
+
1820
+ public static void setHeatmapWeight(HeatmapLayer layer, MLRNStyleValue styleValue) {
1821
+ if (styleValue.isExpression()) {
1822
+ layer.setProperties(PropertyFactory.heatmapWeight(styleValue.getExpression()));
1823
+ } else {
1824
+ layer.setProperties(PropertyFactory.heatmapWeight(styleValue.getFloat(VALUE_KEY)));
1825
+ }
1826
+ }
1827
+
1828
+ public static void setHeatmapIntensity(HeatmapLayer layer, MLRNStyleValue styleValue) {
1829
+ if (styleValue.isExpression()) {
1830
+ layer.setProperties(PropertyFactory.heatmapIntensity(styleValue.getExpression()));
1831
+ } else {
1832
+ layer.setProperties(PropertyFactory.heatmapIntensity(styleValue.getFloat(VALUE_KEY)));
1833
+ }
1834
+ }
1835
+
1836
+
1837
+ public static void setHeatmapIntensityTransition(HeatmapLayer layer, MLRNStyleValue styleValue) {
1838
+ TransitionOptions transition = styleValue.getTransition();
1839
+ if (transition != null) {
1840
+ layer.setHeatmapIntensityTransition(transition);
1841
+ }
1842
+ }
1843
+
1844
+ public static void setHeatmapColor(HeatmapLayer layer, MLRNStyleValue styleValue) {
1845
+ if (styleValue.isExpression()) {
1846
+ layer.setProperties(PropertyFactory.heatmapColor(styleValue.getExpression()));
1847
+ } else {
1848
+ layer.setProperties(PropertyFactory.heatmapColor(styleValue.getInt(VALUE_KEY)));
1849
+ }
1850
+ }
1851
+
1852
+ public static void setHeatmapOpacity(HeatmapLayer layer, MLRNStyleValue styleValue) {
1853
+ if (styleValue.isExpression()) {
1854
+ layer.setProperties(PropertyFactory.heatmapOpacity(styleValue.getExpression()));
1855
+ } else {
1856
+ layer.setProperties(PropertyFactory.heatmapOpacity(styleValue.getFloat(VALUE_KEY)));
1857
+ }
1858
+ }
1859
+
1860
+
1861
+ public static void setHeatmapOpacityTransition(HeatmapLayer layer, MLRNStyleValue styleValue) {
1862
+ TransitionOptions transition = styleValue.getTransition();
1863
+ if (transition != null) {
1864
+ layer.setHeatmapOpacityTransition(transition);
1865
+ }
1866
+ }
1867
+
1868
+ public static void setVisibility(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1869
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
1870
+ }
1871
+
1872
+ public static void setFillExtrusionOpacity(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1873
+ if (styleValue.isExpression()) {
1874
+ layer.setProperties(PropertyFactory.fillExtrusionOpacity(styleValue.getExpression()));
1875
+ } else {
1876
+ layer.setProperties(PropertyFactory.fillExtrusionOpacity(styleValue.getFloat(VALUE_KEY)));
1877
+ }
1878
+ }
1879
+
1880
+
1881
+ public static void setFillExtrusionOpacityTransition(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1882
+ TransitionOptions transition = styleValue.getTransition();
1883
+ if (transition != null) {
1884
+ layer.setFillExtrusionOpacityTransition(transition);
1885
+ }
1886
+ }
1887
+
1888
+ public static void setFillExtrusionColor(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1889
+ if (styleValue.isExpression()) {
1890
+ layer.setProperties(PropertyFactory.fillExtrusionColor(styleValue.getExpression()));
1891
+ } else {
1892
+ layer.setProperties(PropertyFactory.fillExtrusionColor(styleValue.getInt(VALUE_KEY)));
1893
+ }
1894
+ }
1895
+
1896
+
1897
+ public static void setFillExtrusionColorTransition(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1898
+ TransitionOptions transition = styleValue.getTransition();
1899
+ if (transition != null) {
1900
+ layer.setFillExtrusionColorTransition(transition);
1901
+ }
1902
+ }
1903
+
1904
+ public static void setFillExtrusionTranslate(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1905
+ if (styleValue.isExpression()) {
1906
+ layer.setProperties(PropertyFactory.fillExtrusionTranslate(styleValue.getExpression()));
1907
+ } else {
1908
+ layer.setProperties(PropertyFactory.fillExtrusionTranslate(styleValue.getFloatArray(VALUE_KEY)));
1909
+ }
1910
+ }
1911
+
1912
+
1913
+ public static void setFillExtrusionTranslateTransition(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1914
+ TransitionOptions transition = styleValue.getTransition();
1915
+ if (transition != null) {
1916
+ layer.setFillExtrusionTranslateTransition(transition);
1917
+ }
1918
+ }
1919
+
1920
+ public static void setFillExtrusionTranslateAnchor(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1921
+ if (styleValue.isExpression()) {
1922
+ layer.setProperties(PropertyFactory.fillExtrusionTranslateAnchor(styleValue.getExpression()));
1923
+ } else {
1924
+ layer.setProperties(PropertyFactory.fillExtrusionTranslateAnchor(styleValue.getString(VALUE_KEY)));
1925
+ }
1926
+ }
1927
+
1928
+ public static void setFillExtrusionPattern(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1929
+ if (styleValue.isExpression()) {
1930
+ if (styleValue.isImageStringValue()) {
1931
+ layer.setProperties(PropertyFactory.fillExtrusionPattern(styleValue.getImageStringValue()));
1932
+ } else {
1933
+ layer.setProperties(PropertyFactory.fillExtrusionPattern(styleValue.getExpression()));
1934
+ }
1935
+ } else {
1936
+ layer.setProperties(PropertyFactory.fillExtrusionPattern(styleValue.getImageURI()));
1937
+ }
1938
+ }
1939
+
1940
+
1941
+ public static void setFillExtrusionPatternTransition(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1942
+ TransitionOptions transition = styleValue.getTransition();
1943
+ if (transition != null) {
1944
+ layer.setFillExtrusionPatternTransition(transition);
1945
+ }
1946
+ }
1947
+
1948
+ public static void setFillExtrusionHeight(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1949
+ if (styleValue.isExpression()) {
1950
+ layer.setProperties(PropertyFactory.fillExtrusionHeight(styleValue.getExpression()));
1951
+ } else {
1952
+ layer.setProperties(PropertyFactory.fillExtrusionHeight(styleValue.getFloat(VALUE_KEY)));
1953
+ }
1954
+ }
1955
+
1956
+
1957
+ public static void setFillExtrusionHeightTransition(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1958
+ TransitionOptions transition = styleValue.getTransition();
1959
+ if (transition != null) {
1960
+ layer.setFillExtrusionHeightTransition(transition);
1961
+ }
1962
+ }
1963
+
1964
+ public static void setFillExtrusionBase(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1965
+ if (styleValue.isExpression()) {
1966
+ layer.setProperties(PropertyFactory.fillExtrusionBase(styleValue.getExpression()));
1967
+ } else {
1968
+ layer.setProperties(PropertyFactory.fillExtrusionBase(styleValue.getFloat(VALUE_KEY)));
1969
+ }
1970
+ }
1971
+
1972
+
1973
+ public static void setFillExtrusionBaseTransition(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1974
+ TransitionOptions transition = styleValue.getTransition();
1975
+ if (transition != null) {
1976
+ layer.setFillExtrusionBaseTransition(transition);
1977
+ }
1978
+ }
1979
+
1980
+ public static void setFillExtrusionVerticalGradient(FillExtrusionLayer layer, MLRNStyleValue styleValue) {
1981
+ if (styleValue.isExpression()) {
1982
+ layer.setProperties(PropertyFactory.fillExtrusionVerticalGradient(styleValue.getExpression()));
1983
+ } else {
1984
+ layer.setProperties(PropertyFactory.fillExtrusionVerticalGradient(styleValue.getBoolean(VALUE_KEY)));
1985
+ }
1986
+ }
1987
+
1988
+ public static void setVisibility(RasterLayer layer, MLRNStyleValue styleValue) {
1989
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
1990
+ }
1991
+
1992
+ public static void setRasterOpacity(RasterLayer layer, MLRNStyleValue styleValue) {
1993
+ if (styleValue.isExpression()) {
1994
+ layer.setProperties(PropertyFactory.rasterOpacity(styleValue.getExpression()));
1995
+ } else {
1996
+ layer.setProperties(PropertyFactory.rasterOpacity(styleValue.getFloat(VALUE_KEY)));
1997
+ }
1998
+ }
1999
+
2000
+
2001
+ public static void setRasterOpacityTransition(RasterLayer layer, MLRNStyleValue styleValue) {
2002
+ TransitionOptions transition = styleValue.getTransition();
2003
+ if (transition != null) {
2004
+ layer.setRasterOpacityTransition(transition);
2005
+ }
2006
+ }
2007
+
2008
+ public static void setRasterHueRotate(RasterLayer layer, MLRNStyleValue styleValue) {
2009
+ if (styleValue.isExpression()) {
2010
+ layer.setProperties(PropertyFactory.rasterHueRotate(styleValue.getExpression()));
2011
+ } else {
2012
+ layer.setProperties(PropertyFactory.rasterHueRotate(styleValue.getFloat(VALUE_KEY)));
2013
+ }
2014
+ }
2015
+
2016
+
2017
+ public static void setRasterHueRotateTransition(RasterLayer layer, MLRNStyleValue styleValue) {
2018
+ TransitionOptions transition = styleValue.getTransition();
2019
+ if (transition != null) {
2020
+ layer.setRasterHueRotateTransition(transition);
2021
+ }
2022
+ }
2023
+
2024
+ public static void setRasterBrightnessMin(RasterLayer layer, MLRNStyleValue styleValue) {
2025
+ if (styleValue.isExpression()) {
2026
+ layer.setProperties(PropertyFactory.rasterBrightnessMin(styleValue.getExpression()));
2027
+ } else {
2028
+ layer.setProperties(PropertyFactory.rasterBrightnessMin(styleValue.getFloat(VALUE_KEY)));
2029
+ }
2030
+ }
2031
+
2032
+
2033
+ public static void setRasterBrightnessMinTransition(RasterLayer layer, MLRNStyleValue styleValue) {
2034
+ TransitionOptions transition = styleValue.getTransition();
2035
+ if (transition != null) {
2036
+ layer.setRasterBrightnessMinTransition(transition);
2037
+ }
2038
+ }
2039
+
2040
+ public static void setRasterBrightnessMax(RasterLayer layer, MLRNStyleValue styleValue) {
2041
+ if (styleValue.isExpression()) {
2042
+ layer.setProperties(PropertyFactory.rasterBrightnessMax(styleValue.getExpression()));
2043
+ } else {
2044
+ layer.setProperties(PropertyFactory.rasterBrightnessMax(styleValue.getFloat(VALUE_KEY)));
2045
+ }
2046
+ }
2047
+
2048
+
2049
+ public static void setRasterBrightnessMaxTransition(RasterLayer layer, MLRNStyleValue styleValue) {
2050
+ TransitionOptions transition = styleValue.getTransition();
2051
+ if (transition != null) {
2052
+ layer.setRasterBrightnessMaxTransition(transition);
2053
+ }
2054
+ }
2055
+
2056
+ public static void setRasterSaturation(RasterLayer layer, MLRNStyleValue styleValue) {
2057
+ if (styleValue.isExpression()) {
2058
+ layer.setProperties(PropertyFactory.rasterSaturation(styleValue.getExpression()));
2059
+ } else {
2060
+ layer.setProperties(PropertyFactory.rasterSaturation(styleValue.getFloat(VALUE_KEY)));
2061
+ }
2062
+ }
2063
+
2064
+
2065
+ public static void setRasterSaturationTransition(RasterLayer layer, MLRNStyleValue styleValue) {
2066
+ TransitionOptions transition = styleValue.getTransition();
2067
+ if (transition != null) {
2068
+ layer.setRasterSaturationTransition(transition);
2069
+ }
2070
+ }
2071
+
2072
+ public static void setRasterContrast(RasterLayer layer, MLRNStyleValue styleValue) {
2073
+ if (styleValue.isExpression()) {
2074
+ layer.setProperties(PropertyFactory.rasterContrast(styleValue.getExpression()));
2075
+ } else {
2076
+ layer.setProperties(PropertyFactory.rasterContrast(styleValue.getFloat(VALUE_KEY)));
2077
+ }
2078
+ }
2079
+
2080
+
2081
+ public static void setRasterContrastTransition(RasterLayer layer, MLRNStyleValue styleValue) {
2082
+ TransitionOptions transition = styleValue.getTransition();
2083
+ if (transition != null) {
2084
+ layer.setRasterContrastTransition(transition);
2085
+ }
2086
+ }
2087
+
2088
+ public static void setRasterResampling(RasterLayer layer, MLRNStyleValue styleValue) {
2089
+ if (styleValue.isExpression()) {
2090
+ layer.setProperties(PropertyFactory.rasterResampling(styleValue.getExpression()));
2091
+ } else {
2092
+ layer.setProperties(PropertyFactory.rasterResampling(styleValue.getString(VALUE_KEY)));
2093
+ }
2094
+ }
2095
+
2096
+ public static void setRasterFadeDuration(RasterLayer layer, MLRNStyleValue styleValue) {
2097
+ if (styleValue.isExpression()) {
2098
+ layer.setProperties(PropertyFactory.rasterFadeDuration(styleValue.getExpression()));
2099
+ } else {
2100
+ layer.setProperties(PropertyFactory.rasterFadeDuration(styleValue.getFloat(VALUE_KEY)));
2101
+ }
2102
+ }
2103
+
2104
+ public static void setVisibility(HillshadeLayer layer, MLRNStyleValue styleValue) {
2105
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
2106
+ }
2107
+
2108
+ public static void setHillshadeIlluminationDirection(HillshadeLayer layer, MLRNStyleValue styleValue) {
2109
+ if (styleValue.isExpression()) {
2110
+ layer.setProperties(PropertyFactory.hillshadeIlluminationDirection(styleValue.getExpression()));
2111
+ } else {
2112
+ layer.setProperties(PropertyFactory.hillshadeIlluminationDirection(styleValue.getFloat(VALUE_KEY)));
2113
+ }
2114
+ }
2115
+
2116
+ public static void setHillshadeIlluminationAnchor(HillshadeLayer layer, MLRNStyleValue styleValue) {
2117
+ if (styleValue.isExpression()) {
2118
+ layer.setProperties(PropertyFactory.hillshadeIlluminationAnchor(styleValue.getExpression()));
2119
+ } else {
2120
+ layer.setProperties(PropertyFactory.hillshadeIlluminationAnchor(styleValue.getString(VALUE_KEY)));
2121
+ }
2122
+ }
2123
+
2124
+ public static void setHillshadeExaggeration(HillshadeLayer layer, MLRNStyleValue styleValue) {
2125
+ if (styleValue.isExpression()) {
2126
+ layer.setProperties(PropertyFactory.hillshadeExaggeration(styleValue.getExpression()));
2127
+ } else {
2128
+ layer.setProperties(PropertyFactory.hillshadeExaggeration(styleValue.getFloat(VALUE_KEY)));
2129
+ }
2130
+ }
2131
+
2132
+
2133
+ public static void setHillshadeExaggerationTransition(HillshadeLayer layer, MLRNStyleValue styleValue) {
2134
+ TransitionOptions transition = styleValue.getTransition();
2135
+ if (transition != null) {
2136
+ layer.setHillshadeExaggerationTransition(transition);
2137
+ }
2138
+ }
2139
+
2140
+ public static void setHillshadeShadowColor(HillshadeLayer layer, MLRNStyleValue styleValue) {
2141
+ if (styleValue.isExpression()) {
2142
+ layer.setProperties(PropertyFactory.hillshadeShadowColor(styleValue.getExpression()));
2143
+ } else {
2144
+ layer.setProperties(PropertyFactory.hillshadeShadowColor(styleValue.getInt(VALUE_KEY)));
2145
+ }
2146
+ }
2147
+
2148
+
2149
+ public static void setHillshadeShadowColorTransition(HillshadeLayer layer, MLRNStyleValue styleValue) {
2150
+ TransitionOptions transition = styleValue.getTransition();
2151
+ if (transition != null) {
2152
+ layer.setHillshadeShadowColorTransition(transition);
2153
+ }
2154
+ }
2155
+
2156
+ public static void setHillshadeHighlightColor(HillshadeLayer layer, MLRNStyleValue styleValue) {
2157
+ if (styleValue.isExpression()) {
2158
+ layer.setProperties(PropertyFactory.hillshadeHighlightColor(styleValue.getExpression()));
2159
+ } else {
2160
+ layer.setProperties(PropertyFactory.hillshadeHighlightColor(styleValue.getInt(VALUE_KEY)));
2161
+ }
2162
+ }
2163
+
2164
+
2165
+ public static void setHillshadeHighlightColorTransition(HillshadeLayer layer, MLRNStyleValue styleValue) {
2166
+ TransitionOptions transition = styleValue.getTransition();
2167
+ if (transition != null) {
2168
+ layer.setHillshadeHighlightColorTransition(transition);
2169
+ }
2170
+ }
2171
+
2172
+ public static void setHillshadeAccentColor(HillshadeLayer layer, MLRNStyleValue styleValue) {
2173
+ if (styleValue.isExpression()) {
2174
+ layer.setProperties(PropertyFactory.hillshadeAccentColor(styleValue.getExpression()));
2175
+ } else {
2176
+ layer.setProperties(PropertyFactory.hillshadeAccentColor(styleValue.getInt(VALUE_KEY)));
2177
+ }
2178
+ }
2179
+
2180
+
2181
+ public static void setHillshadeAccentColorTransition(HillshadeLayer layer, MLRNStyleValue styleValue) {
2182
+ TransitionOptions transition = styleValue.getTransition();
2183
+ if (transition != null) {
2184
+ layer.setHillshadeAccentColorTransition(transition);
2185
+ }
2186
+ }
2187
+
2188
+ public static void setVisibility(BackgroundLayer layer, MLRNStyleValue styleValue) {
2189
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)));
2190
+ }
2191
+
2192
+ public static void setBackgroundColor(BackgroundLayer layer, MLRNStyleValue styleValue) {
2193
+ if (styleValue.isExpression()) {
2194
+ layer.setProperties(PropertyFactory.backgroundColor(styleValue.getExpression()));
2195
+ } else {
2196
+ layer.setProperties(PropertyFactory.backgroundColor(styleValue.getInt(VALUE_KEY)));
2197
+ }
2198
+ }
2199
+
2200
+
2201
+ public static void setBackgroundColorTransition(BackgroundLayer layer, MLRNStyleValue styleValue) {
2202
+ TransitionOptions transition = styleValue.getTransition();
2203
+ if (transition != null) {
2204
+ layer.setBackgroundColorTransition(transition);
2205
+ }
2206
+ }
2207
+
2208
+ public static void setBackgroundPattern(BackgroundLayer layer, MLRNStyleValue styleValue) {
2209
+ if (styleValue.isExpression()) {
2210
+ if (styleValue.isImageStringValue()) {
2211
+ layer.setProperties(PropertyFactory.backgroundPattern(styleValue.getImageStringValue()));
2212
+ } else {
2213
+ layer.setProperties(PropertyFactory.backgroundPattern(styleValue.getExpression()));
2214
+ }
2215
+ } else {
2216
+ layer.setProperties(PropertyFactory.backgroundPattern(styleValue.getImageURI()));
2217
+ }
2218
+ }
2219
+
2220
+
2221
+ public static void setBackgroundPatternTransition(BackgroundLayer layer, MLRNStyleValue styleValue) {
2222
+ TransitionOptions transition = styleValue.getTransition();
2223
+ if (transition != null) {
2224
+ layer.setBackgroundPatternTransition(transition);
2225
+ }
2226
+ }
2227
+
2228
+ public static void setBackgroundOpacity(BackgroundLayer layer, MLRNStyleValue styleValue) {
2229
+ if (styleValue.isExpression()) {
2230
+ layer.setProperties(PropertyFactory.backgroundOpacity(styleValue.getExpression()));
2231
+ } else {
2232
+ layer.setProperties(PropertyFactory.backgroundOpacity(styleValue.getFloat(VALUE_KEY)));
2233
+ }
2234
+ }
2235
+
2236
+
2237
+ public static void setBackgroundOpacityTransition(BackgroundLayer layer, MLRNStyleValue styleValue) {
2238
+ TransitionOptions transition = styleValue.getTransition();
2239
+ if (transition != null) {
2240
+ layer.setBackgroundOpacityTransition(transition);
2241
+ }
2242
+ }
2243
+
2244
+ public static void setAnchor(Light layer, MLRNStyleValue styleValue) {
2245
+ layer.setAnchor(styleValue.getString(VALUE_KEY));
2246
+ }
2247
+
2248
+ public static void setPosition(Light layer, MLRNStyleValue styleValue) {
2249
+ Float[] values = styleValue.getFloatArray(VALUE_KEY);
2250
+ layer.setPosition(Position.fromPosition(values[0], values[1], values[2]));
2251
+ }
2252
+
2253
+
2254
+ public static void setPositionTransition(Light layer, MLRNStyleValue styleValue) {
2255
+ TransitionOptions transition = styleValue.getTransition();
2256
+ if (transition != null) {
2257
+ layer.setPositionTransition(transition);
2258
+ }
2259
+ }
2260
+
2261
+ public static void setColor(Light layer, MLRNStyleValue styleValue) {
2262
+ layer.setColor(styleValue.getInt(VALUE_KEY));
2263
+ }
2264
+
2265
+
2266
+ public static void setColorTransition(Light layer, MLRNStyleValue styleValue) {
2267
+ TransitionOptions transition = styleValue.getTransition();
2268
+ if (transition != null) {
2269
+ layer.setColorTransition(transition);
2270
+ }
2271
+ }
2272
+
2273
+ public static void setIntensity(Light layer, MLRNStyleValue styleValue) {
2274
+ layer.setIntensity(styleValue.getFloat(VALUE_KEY));
2275
+ }
2276
+
2277
+
2278
+ public static void setIntensityTransition(Light layer, MLRNStyleValue styleValue) {
2279
+ TransitionOptions transition = styleValue.getTransition();
2280
+ if (transition != null) {
2281
+ layer.setIntensityTransition(transition);
2282
+ }
2283
+ }
2284
+
2285
+ }