@mapvina-com/mapvina-react-native 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (961) hide show
  1. package/LICENSE.md +9 -0
  2. package/MapVinaReactNative.podspec +96 -0
  3. package/README.md +47 -0
  4. package/android/build.gradle +139 -0
  5. package/android/gradle.properties +16 -0
  6. package/android/src/main/AndroidManifest.xml +5 -0
  7. package/android/src/main/java/io/github/mapvina/reactnative/MLRNPackage.kt +163 -0
  8. package/android/src/main/java/io/github/mapvina/reactnative/components/AbstractEvent.kt +20 -0
  9. package/android/src/main/java/io/github/mapvina/reactnative/components/AbstractEventEmitter.kt +80 -0
  10. package/android/src/main/java/io/github/mapvina/reactnative/components/AbstractMapFeature.kt +13 -0
  11. package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/callout/MLRNCallout.kt +8 -0
  12. package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/callout/MLRNCalloutManager.kt +26 -0
  13. package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MLRNMarkerView.kt +245 -0
  14. package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MLRNMarkerViewContent.kt +46 -0
  15. package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MLRNMarkerViewManager.kt +104 -0
  16. package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/markerview/MarkerViewManager.kt +143 -0
  17. package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/pointannotation/MLRNPointAnnotation.kt +449 -0
  18. package/android/src/main/java/io/github/mapvina/reactnative/components/annotations/pointannotation/MLRNPointAnnotationManager.kt +133 -0
  19. package/android/src/main/java/io/github/mapvina/reactnative/components/camera/CameraStop.kt +223 -0
  20. package/android/src/main/java/io/github/mapvina/reactnative/components/camera/CameraUpdateItem.kt +100 -0
  21. package/android/src/main/java/io/github/mapvina/reactnative/components/camera/CameraUpdateQueue.kt +58 -0
  22. package/android/src/main/java/io/github/mapvina/reactnative/components/camera/MLRNCamera.kt +411 -0
  23. package/android/src/main/java/io/github/mapvina/reactnative/components/camera/MLRNCameraManager.kt +84 -0
  24. package/android/src/main/java/io/github/mapvina/reactnative/components/camera/MLRNCameraModule.kt +36 -0
  25. package/android/src/main/java/io/github/mapvina/reactnative/components/camera/constants/CameraEasing.kt +23 -0
  26. package/android/src/main/java/io/github/mapvina/reactnative/components/images/MLRNImages.kt +172 -0
  27. package/android/src/main/java/io/github/mapvina/reactnative/components/images/MLRNImagesManager.kt +73 -0
  28. package/android/src/main/java/io/github/mapvina/reactnative/components/layer/MLRNLayer.kt +370 -0
  29. package/android/src/main/java/io/github/mapvina/reactnative/components/layer/MLRNLayerManager.kt +105 -0
  30. package/android/src/main/java/io/github/mapvina/reactnative/components/layer/style/MLRNStyle.kt +60 -0
  31. package/android/src/main/java/io/github/mapvina/reactnative/components/layer/style/MLRNStyleFactory.kt +3057 -0
  32. package/android/src/main/java/io/github/mapvina/reactnative/components/layer/style/MLRNStyleValue.kt +159 -0
  33. package/android/src/main/java/io/github/mapvina/reactnative/components/location/LocationComponentManager.kt +174 -0
  34. package/android/src/main/java/io/github/mapvina/reactnative/components/location/MLRNNativeUserLocation.kt +75 -0
  35. package/android/src/main/java/io/github/mapvina/reactnative/components/location/MLRNNativeUserLocationManager.kt +50 -0
  36. package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNAndroidTextureMapView.kt +25 -0
  37. package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNAndroidTextureMapViewManager.kt +25 -0
  38. package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNMapView.kt +1514 -0
  39. package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNMapViewManager.kt +280 -0
  40. package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/MLRNMapViewModule.kt +202 -0
  41. package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/helpers/CameraChangeTracker.kt +26 -0
  42. package/android/src/main/java/io/github/mapvina/reactnative/components/mapview/helpers/LayerSourceInfo.kt +76 -0
  43. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/MLRNPressableSource.kt +61 -0
  44. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/MLRNSource.kt +198 -0
  45. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/MLRNSourceManager.kt +69 -0
  46. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/ClusterPropertyEntry.kt +8 -0
  47. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/MLRNGeoJSONSource.kt +212 -0
  48. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/MLRNGeoJSONSourceManager.kt +159 -0
  49. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/geojsonsource/MLRNGeoJSONSourceModule.kt +74 -0
  50. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/imagesource/MLRNImageSource.kt +58 -0
  51. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/imagesource/MLRNImageSourceManager.kt +38 -0
  52. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/MLRNPressableTileSource.kt +20 -0
  53. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/MLRNTileSource.kt +20 -0
  54. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/MLRNTileSourceManager.kt +66 -0
  55. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/TileSourceInterface.kt +50 -0
  56. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rasterdemsource/MLRNRasterDEMSource.kt +28 -0
  57. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rasterdemsource/MLRNRasterDEMSourceManager.kt +34 -0
  58. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rastersource/MLRNRasterSource.kt +23 -0
  59. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/rastersource/MLRNRasterSourceManager.kt +26 -0
  60. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/vectorsource/MLRNVectorSource.kt +37 -0
  61. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/vectorsource/MLRNVectorSourceManager.kt +17 -0
  62. package/android/src/main/java/io/github/mapvina/reactnative/components/sources/tilesources/vectorsource/MLRNVectorSourceModule.kt +44 -0
  63. package/android/src/main/java/io/github/mapvina/reactnative/events/AbstractEvent.java +59 -0
  64. package/android/src/main/java/io/github/mapvina/reactnative/events/EventEmitter.java +45 -0
  65. package/android/src/main/java/io/github/mapvina/reactnative/events/IEvent.java +14 -0
  66. package/android/src/main/java/io/github/mapvina/reactnative/events/MapChangeEvent.kt +16 -0
  67. package/android/src/main/java/io/github/mapvina/reactnative/events/MapClickEvent.java +51 -0
  68. package/android/src/main/java/io/github/mapvina/reactnative/events/MapPressEvent.kt +30 -0
  69. package/android/src/main/java/io/github/mapvina/reactnative/events/MapPressEventWithFeatures.kt +21 -0
  70. package/android/src/main/java/io/github/mapvina/reactnative/events/OfflineEvent.java +25 -0
  71. package/android/src/main/java/io/github/mapvina/reactnative/events/PointAnnotationClickEvent.java +40 -0
  72. package/android/src/main/java/io/github/mapvina/reactnative/events/PointAnnotationDragEvent.java +49 -0
  73. package/android/src/main/java/io/github/mapvina/reactnative/events/PointAnnotationEvent.kt +32 -0
  74. package/android/src/main/java/io/github/mapvina/reactnative/events/constants/EventKeys.java +22 -0
  75. package/android/src/main/java/io/github/mapvina/reactnative/events/constants/EventTypes.java +27 -0
  76. package/android/src/main/java/io/github/mapvina/reactnative/location/LocationManager.kt +167 -0
  77. package/android/src/main/java/io/github/mapvina/reactnative/location/TrackUserLocationMode.kt +39 -0
  78. package/android/src/main/java/io/github/mapvina/reactnative/location/TrackUserLocationState.kt +15 -0
  79. package/android/src/main/java/io/github/mapvina/reactnative/location/UserLocation.kt +42 -0
  80. package/android/src/main/java/io/github/mapvina/reactnative/location/engine/DefaultLocationEngineProvider.kt +18 -0
  81. package/android/src/main/java/io/github/mapvina/reactnative/location/engine/LocationEngineProvidable.kt +8 -0
  82. package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNLocationModule.kt +179 -0
  83. package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNLogModule.kt +141 -0
  84. package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNNetworkModule.kt +25 -0
  85. package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNOfflineModule.kt +661 -0
  86. package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNStaticMapModule.kt +121 -0
  87. package/android/src/main/java/io/github/mapvina/reactnative/modules/MLRNTransformRequestModule.kt +144 -0
  88. package/android/src/main/java/io/github/mapvina/reactnative/modules/TransformRequestInterceptor.kt +184 -0
  89. package/android/src/main/java/io/github/mapvina/reactnative/utils/BitmapUtils.java +125 -0
  90. package/android/src/main/java/io/github/mapvina/reactnative/utils/ConvertUtils.kt +225 -0
  91. package/android/src/main/java/io/github/mapvina/reactnative/utils/DownloadMapImageTask.java +155 -0
  92. package/android/src/main/java/io/github/mapvina/reactnative/utils/DownloadedImage.java +6 -0
  93. package/android/src/main/java/io/github/mapvina/reactnative/utils/ExpressionParser.kt +67 -0
  94. package/android/src/main/java/io/github/mapvina/reactnative/utils/GeoJSONUtils.kt +368 -0
  95. package/android/src/main/java/io/github/mapvina/reactnative/utils/GeoViewport.java +37 -0
  96. package/android/src/main/java/io/github/mapvina/reactnative/utils/ImageEntry.kt +14 -0
  97. package/android/src/main/java/io/github/mapvina/reactnative/utils/ReactTagResolver.kt +91 -0
  98. package/android/src/main/java/io/github/mapvina/reactnative/utils/ResourceUtils.java +26 -0
  99. package/android/src/main/java/io/github/mapvina/reactnative/utils/SphericalMercator.java +68 -0
  100. package/android/src/main/location-engine-default/io/github/mapvina/reactnative/location/engine/LocationEngineProvider.kt +8 -0
  101. package/android/src/main/location-engine-google/io/github/mapvina/reactnative/location/engine/GoogleLocationEngineImpl.kt +142 -0
  102. package/android/src/main/location-engine-google/io/github/mapvina/reactnative/location/engine/GoogleLocationEngineProvider.kt +29 -0
  103. package/android/src/main/location-engine-google/io/github/mapvina/reactnative/location/engine/LocationEngineProvider.kt +8 -0
  104. package/android/src/main/res/drawable/empty.xml +5 -0
  105. package/android/src/main/res/drawable/empty_drawable.png +0 -0
  106. package/android/src/main/res/drawable-xxhdpi/default_marker.png +0 -0
  107. package/app.plugin.js +1 -0
  108. package/ios/components/ViewManager.h +8 -0
  109. package/ios/components/ViewManager.m +49 -0
  110. package/ios/components/annotations/callout/MLRNCallout.h +7 -0
  111. package/ios/components/annotations/callout/MLRNCallout.m +67 -0
  112. package/ios/components/annotations/callout/MLRNCalloutComponentView.h +10 -0
  113. package/ios/components/annotations/callout/MLRNCalloutComponentView.mm +85 -0
  114. package/ios/components/annotations/point-annotation/MLRNPointAnnotation.h +45 -0
  115. package/ios/components/annotations/point-annotation/MLRNPointAnnotation.m +319 -0
  116. package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.h +10 -0
  117. package/ios/components/annotations/point-annotation/MLRNPointAnnotationComponentView.mm +327 -0
  118. package/ios/components/camera/CameraEasing.h +8 -0
  119. package/ios/components/camera/CameraStop.h +22 -0
  120. package/ios/components/camera/CameraStop.m +75 -0
  121. package/ios/components/camera/CameraUpdateItem.h +11 -0
  122. package/ios/components/camera/CameraUpdateItem.m +167 -0
  123. package/ios/components/camera/CameraUpdateQueue.h +13 -0
  124. package/ios/components/camera/CameraUpdateQueue.m +62 -0
  125. package/ios/components/camera/MLRNCamera.h +26 -0
  126. package/ios/components/camera/MLRNCamera.m +195 -0
  127. package/ios/components/camera/MLRNCameraComponentView.h +10 -0
  128. package/ios/components/camera/MLRNCameraComponentView.mm +201 -0
  129. package/ios/components/camera/MLRNCameraManager.h +11 -0
  130. package/ios/components/camera/MLRNCameraManager.m +20 -0
  131. package/ios/components/camera/MLRNCameraModule.h +4 -0
  132. package/ios/components/camera/MLRNCameraModule.mm +101 -0
  133. package/ios/components/images/MLRNImageLoader.h +27 -0
  134. package/ios/components/images/MLRNImageLoader.m +85 -0
  135. package/ios/components/images/MLRNImageQueue.h +15 -0
  136. package/ios/components/images/MLRNImageQueue.m +48 -0
  137. package/ios/components/images/MLRNImageQueueOperation.h +11 -0
  138. package/ios/components/images/MLRNImageQueueOperation.m +138 -0
  139. package/ios/components/images/MLRNImages.h +26 -0
  140. package/ios/components/images/MLRNImages.m +189 -0
  141. package/ios/components/images/MLRNImagesComponentView.h +9 -0
  142. package/ios/components/images/MLRNImagesComponentView.mm +104 -0
  143. package/ios/components/images/MLRNImagesModule.h +6 -0
  144. package/ios/components/images/MLRNImagesModule.mm +23 -0
  145. package/ios/components/layer/MLRNLayer.h +54 -0
  146. package/ios/components/layer/MLRNLayer.m +348 -0
  147. package/ios/components/layer/MLRNLayerComponentView.h +9 -0
  148. package/ios/components/layer/MLRNLayerComponentView.mm +136 -0
  149. package/ios/components/layer/style/MLRNStyle.h +224 -0
  150. package/ios/components/layer/style/MLRNStyle.m +1627 -0
  151. package/ios/components/layer/style/MLRNStyleValue.h +20 -0
  152. package/ios/components/layer/style/MLRNStyleValue.m +172 -0
  153. package/ios/components/map-view/MLRNMapTouchEvent.h +18 -0
  154. package/ios/components/map-view/MLRNMapTouchEvent.m +78 -0
  155. package/ios/components/map-view/MLRNMapView.h +119 -0
  156. package/ios/components/map-view/MLRNMapView.m +905 -0
  157. package/ios/components/map-view/MLRNMapViewComponentView.h +13 -0
  158. package/ios/components/map-view/MLRNMapViewComponentView.mm +430 -0
  159. package/ios/components/map-view/MLRNMapViewManager.h +70 -0
  160. package/ios/components/map-view/MLRNMapViewManager.m +152 -0
  161. package/ios/components/map-view/MLRNMapViewModule.h +4 -0
  162. package/ios/components/map-view/MLRNMapViewModule.mm +248 -0
  163. package/ios/components/sources/MLRNSource.h +28 -0
  164. package/ios/components/sources/MLRNSource.m +129 -0
  165. package/ios/components/sources/geojson-source/MLRNGeoJSONSource.h +32 -0
  166. package/ios/components/sources/geojson-source/MLRNGeoJSONSource.m +146 -0
  167. package/ios/components/sources/geojson-source/MLRNGeoJSONSourceComponentView.h +9 -0
  168. package/ios/components/sources/geojson-source/MLRNGeoJSONSourceComponentView.mm +168 -0
  169. package/ios/components/sources/geojson-source/MLRNGeoJSONSourceModule.h +4 -0
  170. package/ios/components/sources/geojson-source/MLRNGeoJSONSourceModule.mm +136 -0
  171. package/ios/components/sources/image-source/MLRNImageSource.h +8 -0
  172. package/ios/components/sources/image-source/MLRNImageSource.m +41 -0
  173. package/ios/components/sources/image-source/MLRNImageSourceComponentView.h +9 -0
  174. package/ios/components/sources/image-source/MLRNImageSourceComponentView.mm +95 -0
  175. package/ios/components/sources/tile-sources/MLRNTileSource.h +18 -0
  176. package/ios/components/sources/tile-sources/MLRNTileSource.m +26 -0
  177. package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSource.h +10 -0
  178. package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSource.m +39 -0
  179. package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSourceComponentView.h +9 -0
  180. package/ios/components/sources/tile-sources/raster-dem-source/MLRNRasterDEMSourceComponentView.mm +131 -0
  181. package/ios/components/sources/tile-sources/raster-source/MLRNRasterSource.h +9 -0
  182. package/ios/components/sources/tile-sources/raster-source/MLRNRasterSource.m +31 -0
  183. package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.h +9 -0
  184. package/ios/components/sources/tile-sources/raster-source/MLRNRasterSourceComponentView.mm +129 -0
  185. package/ios/components/sources/tile-sources/vector-source/MLRNVectorSource.h +11 -0
  186. package/ios/components/sources/tile-sources/vector-source/MLRNVectorSource.m +23 -0
  187. package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.h +9 -0
  188. package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceComponentView.mm +162 -0
  189. package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceModule.h +4 -0
  190. package/ios/components/sources/tile-sources/vector-source/MLRNVectorSourceModule.mm +65 -0
  191. package/ios/components/user-location/MLRNNativeUserLocation.h +11 -0
  192. package/ios/components/user-location/MLRNNativeUserLocation.m +38 -0
  193. package/ios/components/user-location/MLRNNativeUserLocationComponentView.h +10 -0
  194. package/ios/components/user-location/MLRNNativeUserLocationComponentView.mm +51 -0
  195. package/ios/components/user-location/MLRNUserLocation.h +15 -0
  196. package/ios/components/user-location/MLRNUserLocation.m +36 -0
  197. package/ios/modules/location/MLRNLocation.h +10 -0
  198. package/ios/modules/location/MLRNLocation.m +26 -0
  199. package/ios/modules/location/MLRNLocationManager.h +20 -0
  200. package/ios/modules/location/MLRNLocationManager.m +167 -0
  201. package/ios/modules/location/MLRNLocationManagerDelegate.h +10 -0
  202. package/ios/modules/location/MLRNLocationModule.h +7 -0
  203. package/ios/modules/location/MLRNLocationModule.mm +67 -0
  204. package/ios/modules/logging/MLRNLogModule.h +10 -0
  205. package/ios/modules/logging/MLRNLogModule.mm +39 -0
  206. package/ios/modules/logging/MLRNLogging.h +27 -0
  207. package/ios/modules/logging/MLRNLogging.m +102 -0
  208. package/ios/modules/network/MLRNNetworkModule.h +8 -0
  209. package/ios/modules/network/MLRNNetworkModule.mm +18 -0
  210. package/ios/modules/offline/MLRNOfflineModule.h +7 -0
  211. package/ios/modules/offline/MLRNOfflineModule.mm +692 -0
  212. package/ios/modules/static-map/MLRNStaticMapModule.h +4 -0
  213. package/ios/modules/static-map/MLRNStaticMapModule.mm +84 -0
  214. package/ios/modules/transform-request/MLRNTransformRequest.h +38 -0
  215. package/ios/modules/transform-request/MLRNTransformRequest.m +413 -0
  216. package/ios/modules/transform-request/MLRNTransformRequestModule.h +9 -0
  217. package/ios/modules/transform-request/MLRNTransformRequestModule.mm +72 -0
  218. package/ios/utils/FilterParser.h +7 -0
  219. package/ios/utils/FilterParser.m +13 -0
  220. package/ios/utils/MLRNEvent.h +13 -0
  221. package/ios/utils/MLRNEvent.m +36 -0
  222. package/ios/utils/MLRNEventProtocol.h +8 -0
  223. package/ios/utils/MLRNEventTypes.h +12 -0
  224. package/ios/utils/MLRNEventTypes.m +12 -0
  225. package/ios/utils/MLRNFollyConvert.h +5 -0
  226. package/ios/utils/MLRNImageUtils.h +9 -0
  227. package/ios/utils/MLRNImageUtils.m +24 -0
  228. package/ios/utils/MLRNPropConvert.h +17 -0
  229. package/ios/utils/MLRNUtils.h +32 -0
  230. package/ios/utils/MLRNUtils.m +193 -0
  231. package/ios/utils/MLRNViewModuleUtils.h +35 -0
  232. package/ios/utils/MLRNViewModuleUtils.m +39 -0
  233. package/lib/commonjs/assets/heading.png +0 -0
  234. package/lib/commonjs/assets/heading@2x.png +0 -0
  235. package/lib/commonjs/assets/heading@3x.png +0 -0
  236. package/lib/commonjs/assets/png.d.js +2 -0
  237. package/lib/commonjs/assets/png.d.js.map +1 -0
  238. package/lib/commonjs/components/annotations/LayerAnnotation.js +59 -0
  239. package/lib/commonjs/components/annotations/LayerAnnotation.js.map +1 -0
  240. package/lib/commonjs/components/annotations/callout/Callout.js +95 -0
  241. package/lib/commonjs/components/annotations/callout/Callout.js.map +1 -0
  242. package/lib/commonjs/components/annotations/callout/CalloutNativeComponent.ts +11 -0
  243. package/lib/commonjs/components/annotations/marker/Marker.js +88 -0
  244. package/lib/commonjs/components/annotations/marker/Marker.js.map +1 -0
  245. package/lib/commonjs/components/annotations/marker/MarkerViewNativeComponent.ts +40 -0
  246. package/lib/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +59 -0
  247. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js +93 -0
  248. package/lib/commonjs/components/annotations/view-annotation/ViewAnnotation.js.map +1 -0
  249. package/lib/commonjs/components/camera/Camera.js +146 -0
  250. package/lib/commonjs/components/camera/Camera.js.map +1 -0
  251. package/lib/commonjs/components/camera/CameraNativeComponent.ts +65 -0
  252. package/lib/commonjs/components/camera/NativeCameraModule.js +11 -0
  253. package/lib/commonjs/components/camera/NativeCameraModule.js.map +1 -0
  254. package/lib/commonjs/components/images/Images.js +58 -0
  255. package/lib/commonjs/components/images/Images.js.map +1 -0
  256. package/lib/commonjs/components/images/ImagesNativeComponent.ts +27 -0
  257. package/lib/commonjs/components/images/NativeImagesModule.js +10 -0
  258. package/lib/commonjs/components/images/NativeImagesModule.js.map +1 -0
  259. package/lib/commonjs/components/layer/Layer.js +157 -0
  260. package/lib/commonjs/components/layer/Layer.js.map +1 -0
  261. package/lib/commonjs/components/layer/LayerNativeComponent.ts +43 -0
  262. package/lib/commonjs/components/map/AndroidTextureMapViewNativeComponent.ts +109 -0
  263. package/lib/commonjs/components/map/Map.js +117 -0
  264. package/lib/commonjs/components/map/Map.js.map +1 -0
  265. package/lib/commonjs/components/map/MapViewNativeComponent.ts +105 -0
  266. package/lib/commonjs/components/map/NativeMapViewModule.js +9 -0
  267. package/lib/commonjs/components/map/NativeMapViewModule.js.map +1 -0
  268. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js +56 -0
  269. package/lib/commonjs/components/sources/geojson-source/GeoJSONSource.js.map +1 -0
  270. package/lib/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.ts +48 -0
  271. package/lib/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.js +9 -0
  272. package/lib/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.js.map +1 -0
  273. package/lib/commonjs/components/sources/image-source/ImageSource.js +33 -0
  274. package/lib/commonjs/components/sources/image-source/ImageSource.js.map +1 -0
  275. package/lib/commonjs/components/sources/image-source/ImageSourceNativeComponent.ts +31 -0
  276. package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSource.js +31 -0
  277. package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSource.js.map +1 -0
  278. package/lib/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
  279. package/lib/commonjs/components/sources/raster-source/RasterSource.js +32 -0
  280. package/lib/commonjs/components/sources/raster-source/RasterSource.js.map +1 -0
  281. package/lib/commonjs/components/sources/raster-source/RasterSourceNativeComponent.ts +25 -0
  282. package/lib/commonjs/components/sources/vector-source/NativeVectorSourceModule.js +9 -0
  283. package/lib/commonjs/components/sources/vector-source/NativeVectorSourceModule.js.map +1 -0
  284. package/lib/commonjs/components/sources/vector-source/VectorSource.js +47 -0
  285. package/lib/commonjs/components/sources/vector-source/VectorSource.js.map +1 -0
  286. package/lib/commonjs/components/sources/vector-source/VectorSourceNativeComponent.ts +45 -0
  287. package/lib/commonjs/components/user-location/NativeUserLocation.js +16 -0
  288. package/lib/commonjs/components/user-location/NativeUserLocation.js.map +1 -0
  289. package/lib/commonjs/components/user-location/UserLocation.js +52 -0
  290. package/lib/commonjs/components/user-location/UserLocation.js.map +1 -0
  291. package/lib/commonjs/components/user-location/UserLocationNativeComponent.ts +19 -0
  292. package/lib/commonjs/components/user-location/UserLocationPuck.js +63 -0
  293. package/lib/commonjs/components/user-location/UserLocationPuck.js.map +1 -0
  294. package/lib/commonjs/components/user-location/UserLocationPuckHeading.js +31 -0
  295. package/lib/commonjs/components/user-location/UserLocationPuckHeading.js.map +1 -0
  296. package/lib/commonjs/hooks/useCurrentPosition.js +34 -0
  297. package/lib/commonjs/hooks/useCurrentPosition.js.map +1 -0
  298. package/lib/commonjs/hooks/useFrozenId.js +16 -0
  299. package/lib/commonjs/hooks/useFrozenId.js.map +1 -0
  300. package/lib/commonjs/hooks/useNativeBridge.js +84 -0
  301. package/lib/commonjs/hooks/useNativeBridge.js.map +1 -0
  302. package/lib/commonjs/index.js +174 -0
  303. package/lib/commonjs/index.js.map +1 -0
  304. package/lib/commonjs/modules/location/LocationManager.js +98 -0
  305. package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
  306. package/lib/commonjs/modules/location/NativeLocationModule.js +9 -0
  307. package/lib/commonjs/modules/location/NativeLocationModule.js.map +1 -0
  308. package/lib/commonjs/modules/log/LogManager.js +100 -0
  309. package/lib/commonjs/modules/log/LogManager.js.map +1 -0
  310. package/lib/commonjs/modules/log/NativeLogModule.js +9 -0
  311. package/lib/commonjs/modules/log/NativeLogModule.js.map +1 -0
  312. package/lib/commonjs/modules/network/NativeNetworkModule.js +9 -0
  313. package/lib/commonjs/modules/network/NativeNetworkModule.js.map +1 -0
  314. package/lib/commonjs/modules/network/NetworkManager.js +34 -0
  315. package/lib/commonjs/modules/network/NetworkManager.js.map +1 -0
  316. package/lib/commonjs/modules/offline/NativeOfflineModule.js +9 -0
  317. package/lib/commonjs/modules/offline/NativeOfflineModule.js.map +1 -0
  318. package/lib/commonjs/modules/offline/OfflineManager.js +351 -0
  319. package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
  320. package/lib/commonjs/modules/offline/OfflinePack.js +30 -0
  321. package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -0
  322. package/lib/commonjs/modules/static-map/NativeStaticMapModule.js +9 -0
  323. package/lib/commonjs/modules/static-map/NativeStaticMapModule.js.map +1 -0
  324. package/lib/commonjs/modules/static-map/StaticMapManager.js +57 -0
  325. package/lib/commonjs/modules/static-map/StaticMapManager.js.map +1 -0
  326. package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js +9 -0
  327. package/lib/commonjs/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
  328. package/lib/commonjs/modules/transform-request/TransformRequestManager.js +233 -0
  329. package/lib/commonjs/modules/transform-request/TransformRequestManager.js.map +1 -0
  330. package/lib/commonjs/package.json +1 -0
  331. package/lib/commonjs/plugin/MapVinaPluginProps.js +2 -0
  332. package/lib/commonjs/plugin/MapVinaPluginProps.js.map +1 -0
  333. package/lib/commonjs/plugin/android.js +39 -0
  334. package/lib/commonjs/plugin/android.js.map +1 -0
  335. package/lib/commonjs/plugin/ios.js +91 -0
  336. package/lib/commonjs/plugin/ios.js.map +1 -0
  337. package/lib/commonjs/types/Anchor.js +67 -0
  338. package/lib/commonjs/types/Anchor.js.map +1 -0
  339. package/lib/commonjs/types/BaseProps.js +2 -0
  340. package/lib/commonjs/types/BaseProps.js.map +1 -0
  341. package/lib/commonjs/types/LngLat.js +2 -0
  342. package/lib/commonjs/types/LngLat.js.map +1 -0
  343. package/lib/commonjs/types/LngLatBounds.js +2 -0
  344. package/lib/commonjs/types/LngLatBounds.js.map +1 -0
  345. package/lib/commonjs/types/MapVinaRNStyles.js +6 -0
  346. package/lib/commonjs/types/MapVinaRNStyles.js.map +1 -0
  347. package/lib/commonjs/types/PixelPoint.js +2 -0
  348. package/lib/commonjs/types/PixelPoint.js.map +1 -0
  349. package/lib/commonjs/types/PixelPointBounds.js +2 -0
  350. package/lib/commonjs/types/PixelPointBounds.js.map +1 -0
  351. package/lib/commonjs/types/PressEvent.js +6 -0
  352. package/lib/commonjs/types/PressEvent.js.map +1 -0
  353. package/lib/commonjs/types/PressEventWithFeatures.js +6 -0
  354. package/lib/commonjs/types/PressEventWithFeatures.js.map +1 -0
  355. package/lib/commonjs/types/PressableSourceProps.js +6 -0
  356. package/lib/commonjs/types/PressableSourceProps.js.map +1 -0
  357. package/lib/commonjs/types/ViewPadding.js +2 -0
  358. package/lib/commonjs/types/ViewPadding.js.map +1 -0
  359. package/lib/commonjs/types/codegen/UnsafeMixed.js +2 -0
  360. package/lib/commonjs/types/codegen/UnsafeMixed.js.map +1 -0
  361. package/lib/commonjs/utils/BridgeValue.js +59 -0
  362. package/lib/commonjs/utils/BridgeValue.js.map +1 -0
  363. package/lib/commonjs/utils/StyleValue.js +38 -0
  364. package/lib/commonjs/utils/StyleValue.js.map +1 -0
  365. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +96 -0
  366. package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
  367. package/lib/commonjs/utils/animated/Animated.js +30 -0
  368. package/lib/commonjs/utils/animated/Animated.js.map +1 -0
  369. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +91 -0
  370. package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
  371. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +32 -0
  372. package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
  373. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js +67 -0
  374. package/lib/commonjs/utils/animated/AnimatedGeoJSON.js.map +1 -0
  375. package/lib/commonjs/utils/animated/AnimatedPoint.js +114 -0
  376. package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -0
  377. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +120 -0
  378. package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
  379. package/lib/commonjs/utils/convertStyleSpec.js +58 -0
  380. package/lib/commonjs/utils/convertStyleSpec.js.map +1 -0
  381. package/lib/commonjs/utils/findNodeHandle.js +16 -0
  382. package/lib/commonjs/utils/findNodeHandle.js.map +1 -0
  383. package/lib/commonjs/utils/getNativeFilter.js +16 -0
  384. package/lib/commonjs/utils/getNativeFilter.js.map +1 -0
  385. package/lib/commonjs/utils/getStylePropertyType.js +255 -0
  386. package/lib/commonjs/utils/getStylePropertyType.js.map +1 -0
  387. package/lib/commonjs/utils/index.js +68 -0
  388. package/lib/commonjs/utils/index.js.map +1 -0
  389. package/lib/module/assets/heading.png +0 -0
  390. package/lib/module/assets/heading@2x.png +0 -0
  391. package/lib/module/assets/heading@3x.png +0 -0
  392. package/lib/module/assets/png.d.js +2 -0
  393. package/lib/module/assets/png.d.js.map +1 -0
  394. package/lib/module/components/annotations/LayerAnnotation.js +54 -0
  395. package/lib/module/components/annotations/LayerAnnotation.js.map +1 -0
  396. package/lib/module/components/annotations/callout/Callout.js +89 -0
  397. package/lib/module/components/annotations/callout/Callout.js.map +1 -0
  398. package/lib/module/components/annotations/callout/CalloutNativeComponent.ts +11 -0
  399. package/lib/module/components/annotations/marker/Marker.js +82 -0
  400. package/lib/module/components/annotations/marker/Marker.js.map +1 -0
  401. package/lib/module/components/annotations/marker/MarkerViewNativeComponent.ts +40 -0
  402. package/lib/module/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +59 -0
  403. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js +87 -0
  404. package/lib/module/components/annotations/view-annotation/ViewAnnotation.js.map +1 -0
  405. package/lib/module/components/camera/Camera.js +141 -0
  406. package/lib/module/components/camera/Camera.js.map +1 -0
  407. package/lib/module/components/camera/CameraNativeComponent.ts +65 -0
  408. package/lib/module/components/camera/NativeCameraModule.js +10 -0
  409. package/lib/module/components/camera/NativeCameraModule.js.map +1 -0
  410. package/lib/module/components/images/Images.js +52 -0
  411. package/lib/module/components/images/Images.js.map +1 -0
  412. package/lib/module/components/images/ImagesNativeComponent.ts +27 -0
  413. package/lib/module/components/images/NativeImagesModule.js +7 -0
  414. package/lib/module/components/images/NativeImagesModule.js.map +1 -0
  415. package/lib/module/components/layer/Layer.js +151 -0
  416. package/lib/module/components/layer/Layer.js.map +1 -0
  417. package/lib/module/components/layer/LayerNativeComponent.ts +43 -0
  418. package/lib/module/components/map/AndroidTextureMapViewNativeComponent.ts +109 -0
  419. package/lib/module/components/map/Map.js +112 -0
  420. package/lib/module/components/map/Map.js.map +1 -0
  421. package/lib/module/components/map/MapViewNativeComponent.ts +105 -0
  422. package/lib/module/components/map/NativeMapViewModule.js +5 -0
  423. package/lib/module/components/map/NativeMapViewModule.js.map +1 -0
  424. package/lib/module/components/sources/geojson-source/GeoJSONSource.js +51 -0
  425. package/lib/module/components/sources/geojson-source/GeoJSONSource.js.map +1 -0
  426. package/lib/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.ts +48 -0
  427. package/lib/module/components/sources/geojson-source/NativeGeoJSONSourceModule.js +5 -0
  428. package/lib/module/components/sources/geojson-source/NativeGeoJSONSourceModule.js.map +1 -0
  429. package/lib/module/components/sources/image-source/ImageSource.js +28 -0
  430. package/lib/module/components/sources/image-source/ImageSource.js.map +1 -0
  431. package/lib/module/components/sources/image-source/ImageSourceNativeComponent.ts +31 -0
  432. package/lib/module/components/sources/raster-dem-source/RasterDEMSource.js +26 -0
  433. package/lib/module/components/sources/raster-dem-source/RasterDEMSource.js.map +1 -0
  434. package/lib/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
  435. package/lib/module/components/sources/raster-source/RasterSource.js +27 -0
  436. package/lib/module/components/sources/raster-source/RasterSource.js.map +1 -0
  437. package/lib/module/components/sources/raster-source/RasterSourceNativeComponent.ts +25 -0
  438. package/lib/module/components/sources/vector-source/NativeVectorSourceModule.js +5 -0
  439. package/lib/module/components/sources/vector-source/NativeVectorSourceModule.js.map +1 -0
  440. package/lib/module/components/sources/vector-source/VectorSource.js +42 -0
  441. package/lib/module/components/sources/vector-source/VectorSource.js.map +1 -0
  442. package/lib/module/components/sources/vector-source/VectorSourceNativeComponent.ts +45 -0
  443. package/lib/module/components/user-location/NativeUserLocation.js +10 -0
  444. package/lib/module/components/user-location/NativeUserLocation.js.map +1 -0
  445. package/lib/module/components/user-location/UserLocation.js +47 -0
  446. package/lib/module/components/user-location/UserLocation.js.map +1 -0
  447. package/lib/module/components/user-location/UserLocationNativeComponent.ts +19 -0
  448. package/lib/module/components/user-location/UserLocationPuck.js +59 -0
  449. package/lib/module/components/user-location/UserLocationPuck.js.map +1 -0
  450. package/lib/module/components/user-location/UserLocationPuckHeading.js +27 -0
  451. package/lib/module/components/user-location/UserLocationPuckHeading.js.map +1 -0
  452. package/lib/module/hooks/useCurrentPosition.js +30 -0
  453. package/lib/module/hooks/useCurrentPosition.js.map +1 -0
  454. package/lib/module/hooks/useFrozenId.js +12 -0
  455. package/lib/module/hooks/useFrozenId.js.map +1 -0
  456. package/lib/module/hooks/useNativeBridge.js +79 -0
  457. package/lib/module/hooks/useNativeBridge.js.map +1 -0
  458. package/lib/module/index.js +27 -0
  459. package/lib/module/index.js.map +1 -0
  460. package/lib/module/modules/location/LocationManager.js +94 -0
  461. package/lib/module/modules/location/LocationManager.js.map +1 -0
  462. package/lib/module/modules/location/NativeLocationModule.js +5 -0
  463. package/lib/module/modules/location/NativeLocationModule.js.map +1 -0
  464. package/lib/module/modules/log/LogManager.js +97 -0
  465. package/lib/module/modules/log/LogManager.js.map +1 -0
  466. package/lib/module/modules/log/NativeLogModule.js +5 -0
  467. package/lib/module/modules/log/NativeLogModule.js.map +1 -0
  468. package/lib/module/modules/network/NativeNetworkModule.js +5 -0
  469. package/lib/module/modules/network/NativeNetworkModule.js.map +1 -0
  470. package/lib/module/modules/network/NetworkManager.js +30 -0
  471. package/lib/module/modules/network/NetworkManager.js.map +1 -0
  472. package/lib/module/modules/offline/NativeOfflineModule.js +5 -0
  473. package/lib/module/modules/offline/NativeOfflineModule.js.map +1 -0
  474. package/lib/module/modules/offline/OfflineManager.js +348 -0
  475. package/lib/module/modules/offline/OfflineManager.js.map +1 -0
  476. package/lib/module/modules/offline/OfflinePack.js +24 -0
  477. package/lib/module/modules/offline/OfflinePack.js.map +1 -0
  478. package/lib/module/modules/static-map/NativeStaticMapModule.js +5 -0
  479. package/lib/module/modules/static-map/NativeStaticMapModule.js.map +1 -0
  480. package/lib/module/modules/static-map/StaticMapManager.js +53 -0
  481. package/lib/module/modules/static-map/StaticMapManager.js.map +1 -0
  482. package/lib/module/modules/transform-request/NativeTransformRequestModule.js +5 -0
  483. package/lib/module/modules/transform-request/NativeTransformRequestModule.js.map +1 -0
  484. package/lib/module/modules/transform-request/TransformRequestManager.js +230 -0
  485. package/lib/module/modules/transform-request/TransformRequestManager.js.map +1 -0
  486. package/lib/module/package.json +1 -0
  487. package/lib/module/plugin/MapVinaPluginProps.js +2 -0
  488. package/lib/module/plugin/MapVinaPluginProps.js.map +1 -0
  489. package/lib/module/plugin/android.js +32 -0
  490. package/lib/module/plugin/android.js.map +1 -0
  491. package/lib/module/plugin/ios.js +83 -0
  492. package/lib/module/plugin/ios.js.map +1 -0
  493. package/lib/module/types/Anchor.js +63 -0
  494. package/lib/module/types/Anchor.js.map +1 -0
  495. package/lib/module/types/BaseProps.js +2 -0
  496. package/lib/module/types/BaseProps.js.map +1 -0
  497. package/lib/module/types/LngLat.js +2 -0
  498. package/lib/module/types/LngLat.js.map +1 -0
  499. package/lib/module/types/LngLatBounds.js +2 -0
  500. package/lib/module/types/LngLatBounds.js.map +1 -0
  501. package/lib/module/types/MapVinaRNStyles.js +4 -0
  502. package/lib/module/types/MapVinaRNStyles.js.map +1 -0
  503. package/lib/module/types/PixelPoint.js +2 -0
  504. package/lib/module/types/PixelPoint.js.map +1 -0
  505. package/lib/module/types/PixelPointBounds.js +2 -0
  506. package/lib/module/types/PixelPointBounds.js.map +1 -0
  507. package/lib/module/types/PressEvent.js +4 -0
  508. package/lib/module/types/PressEvent.js.map +1 -0
  509. package/lib/module/types/PressEventWithFeatures.js +4 -0
  510. package/lib/module/types/PressEventWithFeatures.js.map +1 -0
  511. package/lib/module/types/PressableSourceProps.js +4 -0
  512. package/lib/module/types/PressableSourceProps.js.map +1 -0
  513. package/lib/module/types/ViewPadding.js +2 -0
  514. package/lib/module/types/ViewPadding.js.map +1 -0
  515. package/lib/module/types/codegen/UnsafeMixed.js +2 -0
  516. package/lib/module/types/codegen/UnsafeMixed.js.map +1 -0
  517. package/lib/module/utils/BridgeValue.js +54 -0
  518. package/lib/module/utils/BridgeValue.js.map +1 -0
  519. package/lib/module/utils/StyleValue.js +34 -0
  520. package/lib/module/utils/StyleValue.js.map +1 -0
  521. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +91 -0
  522. package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -0
  523. package/lib/module/utils/animated/Animated.js +26 -0
  524. package/lib/module/utils/animated/Animated.js.map +1 -0
  525. package/lib/module/utils/animated/AnimatedCoordinatesArray.js +86 -0
  526. package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -0
  527. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +27 -0
  528. package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -0
  529. package/lib/module/utils/animated/AnimatedGeoJSON.js +62 -0
  530. package/lib/module/utils/animated/AnimatedGeoJSON.js.map +1 -0
  531. package/lib/module/utils/animated/AnimatedPoint.js +109 -0
  532. package/lib/module/utils/animated/AnimatedPoint.js.map +1 -0
  533. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +115 -0
  534. package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -0
  535. package/lib/module/utils/convertStyleSpec.js +53 -0
  536. package/lib/module/utils/convertStyleSpec.js.map +1 -0
  537. package/lib/module/utils/findNodeHandle.js +11 -0
  538. package/lib/module/utils/findNodeHandle.js.map +1 -0
  539. package/lib/module/utils/getNativeFilter.js +12 -0
  540. package/lib/module/utils/getNativeFilter.js.map +1 -0
  541. package/lib/module/utils/getStylePropertyType.js +251 -0
  542. package/lib/module/utils/getStylePropertyType.js.map +1 -0
  543. package/lib/module/utils/index.js +55 -0
  544. package/lib/module/utils/index.js.map +1 -0
  545. package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts +20 -0
  546. package/lib/typescript/commonjs/components/annotations/LayerAnnotation.d.ts.map +1 -0
  547. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts +35 -0
  548. package/lib/typescript/commonjs/components/annotations/callout/Callout.d.ts.map +1 -0
  549. package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts +6 -0
  550. package/lib/typescript/commonjs/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
  551. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts +79 -0
  552. package/lib/typescript/commonjs/components/annotations/marker/Marker.d.ts.map +1 -0
  553. package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts +31 -0
  554. package/lib/typescript/commonjs/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
  555. package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +44 -0
  556. package/lib/typescript/commonjs/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
  557. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts +119 -0
  558. package/lib/typescript/commonjs/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
  559. package/lib/typescript/commonjs/components/camera/Camera.d.ts +217 -0
  560. package/lib/typescript/commonjs/components/camera/Camera.d.ts.map +1 -0
  561. package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts +37 -0
  562. package/lib/typescript/commonjs/components/camera/CameraNativeComponent.d.ts.map +1 -0
  563. package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts +26 -0
  564. package/lib/typescript/commonjs/components/camera/NativeCameraModule.d.ts.map +1 -0
  565. package/lib/typescript/commonjs/components/images/Images.d.ts +69 -0
  566. package/lib/typescript/commonjs/components/images/Images.d.ts.map +1 -0
  567. package/lib/typescript/commonjs/components/images/ImagesNativeComponent.d.ts +17 -0
  568. package/lib/typescript/commonjs/components/images/ImagesNativeComponent.d.ts.map +1 -0
  569. package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts +6 -0
  570. package/lib/typescript/commonjs/components/images/NativeImagesModule.d.ts.map +1 -0
  571. package/lib/typescript/commonjs/components/layer/Layer.d.ts +172 -0
  572. package/lib/typescript/commonjs/components/layer/Layer.d.ts.map +1 -0
  573. package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts +19 -0
  574. package/lib/typescript/commonjs/components/layer/LayerNativeComponent.d.ts.map +1 -0
  575. package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts +79 -0
  576. package/lib/typescript/commonjs/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
  577. package/lib/typescript/commonjs/components/map/Map.d.ts +448 -0
  578. package/lib/typescript/commonjs/components/map/Map.d.ts.map +1 -0
  579. package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts +79 -0
  580. package/lib/typescript/commonjs/components/map/MapViewNativeComponent.d.ts.map +1 -0
  581. package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts +31 -0
  582. package/lib/typescript/commonjs/components/map/NativeMapViewModule.d.ts.map +1 -0
  583. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts +135 -0
  584. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
  585. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +35 -0
  586. package/lib/typescript/commonjs/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
  587. package/lib/typescript/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +10 -0
  588. package/lib/typescript/commonjs/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
  589. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts +32 -0
  590. package/lib/typescript/commonjs/components/sources/image-source/ImageSource.d.ts.map +1 -0
  591. package/lib/typescript/commonjs/components/sources/image-source/ImageSourceNativeComponent.d.ts +21 -0
  592. package/lib/typescript/commonjs/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
  593. package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSource.d.ts +58 -0
  594. package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSource.d.ts.map +1 -0
  595. package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts +15 -0
  596. package/lib/typescript/commonjs/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts.map +1 -0
  597. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts +59 -0
  598. package/lib/typescript/commonjs/components/sources/raster-source/RasterSource.d.ts.map +1 -0
  599. package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts +15 -0
  600. package/lib/typescript/commonjs/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
  601. package/lib/typescript/commonjs/components/sources/vector-source/NativeVectorSourceModule.d.ts +7 -0
  602. package/lib/typescript/commonjs/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
  603. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts +75 -0
  604. package/lib/typescript/commonjs/components/sources/vector-source/VectorSource.d.ts.map +1 -0
  605. package/lib/typescript/commonjs/components/sources/vector-source/VectorSourceNativeComponent.d.ts +32 -0
  606. package/lib/typescript/commonjs/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
  607. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts +27 -0
  608. package/lib/typescript/commonjs/components/user-location/NativeUserLocation.d.ts.map +1 -0
  609. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts +31 -0
  610. package/lib/typescript/commonjs/components/user-location/UserLocation.d.ts.map +1 -0
  611. package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts +8 -0
  612. package/lib/typescript/commonjs/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
  613. package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts +10 -0
  614. package/lib/typescript/commonjs/components/user-location/UserLocationPuck.d.ts.map +1 -0
  615. package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts +9 -0
  616. package/lib/typescript/commonjs/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
  617. package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts +18 -0
  618. package/lib/typescript/commonjs/hooks/useCurrentPosition.d.ts.map +1 -0
  619. package/lib/typescript/commonjs/hooks/useFrozenId.d.ts +2 -0
  620. package/lib/typescript/commonjs/hooks/useFrozenId.d.ts.map +1 -0
  621. package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts +21 -0
  622. package/lib/typescript/commonjs/hooks/useNativeBridge.d.ts.map +1 -0
  623. package/lib/typescript/commonjs/index.d.ts +36 -0
  624. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  625. package/lib/typescript/commonjs/modules/location/LocationManager.d.ts +62 -0
  626. package/lib/typescript/commonjs/modules/location/LocationManager.d.ts.map +1 -0
  627. package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts +25 -0
  628. package/lib/typescript/commonjs/modules/location/NativeLocationModule.d.ts.map +1 -0
  629. package/lib/typescript/commonjs/modules/log/LogManager.d.ts +46 -0
  630. package/lib/typescript/commonjs/modules/log/LogManager.d.ts.map +1 -0
  631. package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts +13 -0
  632. package/lib/typescript/commonjs/modules/log/NativeLogModule.d.ts.map +1 -0
  633. package/lib/typescript/commonjs/modules/network/NativeNetworkModule.d.ts +7 -0
  634. package/lib/typescript/commonjs/modules/network/NativeNetworkModule.d.ts.map +1 -0
  635. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts +24 -0
  636. package/lib/typescript/commonjs/modules/network/NetworkManager.d.ts.map +1 -0
  637. package/lib/typescript/commonjs/modules/offline/NativeOfflineModule.d.ts +50 -0
  638. package/lib/typescript/commonjs/modules/offline/NativeOfflineModule.d.ts.map +1 -0
  639. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts +238 -0
  640. package/lib/typescript/commonjs/modules/offline/OfflineManager.d.ts.map +1 -0
  641. package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts +25 -0
  642. package/lib/typescript/commonjs/modules/offline/OfflinePack.d.ts.map +1 -0
  643. package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts +19 -0
  644. package/lib/typescript/commonjs/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
  645. package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts +105 -0
  646. package/lib/typescript/commonjs/modules/static-map/StaticMapManager.d.ts.map +1 -0
  647. package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
  648. package/lib/typescript/commonjs/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
  649. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts +213 -0
  650. package/lib/typescript/commonjs/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
  651. package/lib/typescript/commonjs/package.json +1 -0
  652. package/lib/typescript/commonjs/plugin/MapVinaPluginProps.d.ts +78 -0
  653. package/lib/typescript/commonjs/plugin/MapVinaPluginProps.d.ts.map +1 -0
  654. package/lib/typescript/commonjs/plugin/android.d.ts +17 -0
  655. package/lib/typescript/commonjs/plugin/android.d.ts.map +1 -0
  656. package/lib/typescript/commonjs/plugin/ios.d.ts +15 -0
  657. package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -0
  658. package/lib/typescript/commonjs/types/Anchor.d.ts +16 -0
  659. package/lib/typescript/commonjs/types/Anchor.d.ts.map +1 -0
  660. package/lib/typescript/commonjs/types/BaseProps.d.ts +7 -0
  661. package/lib/typescript/commonjs/types/BaseProps.d.ts.map +1 -0
  662. package/lib/typescript/commonjs/types/LngLat.d.ts +5 -0
  663. package/lib/typescript/commonjs/types/LngLat.d.ts.map +1 -0
  664. package/lib/typescript/commonjs/types/LngLatBounds.d.ts +13 -0
  665. package/lib/typescript/commonjs/types/LngLatBounds.d.ts.map +1 -0
  666. package/lib/typescript/commonjs/types/MapVinaRNStyles.d.ts +1169 -0
  667. package/lib/typescript/commonjs/types/MapVinaRNStyles.d.ts.map +1 -0
  668. package/lib/typescript/commonjs/types/PixelPoint.d.ts +5 -0
  669. package/lib/typescript/commonjs/types/PixelPoint.d.ts.map +1 -0
  670. package/lib/typescript/commonjs/types/PixelPointBounds.d.ts +10 -0
  671. package/lib/typescript/commonjs/types/PixelPointBounds.d.ts.map +1 -0
  672. package/lib/typescript/commonjs/types/PressEvent.d.ts +16 -0
  673. package/lib/typescript/commonjs/types/PressEvent.d.ts.map +1 -0
  674. package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts +8 -0
  675. package/lib/typescript/commonjs/types/PressEventWithFeatures.d.ts.map +1 -0
  676. package/lib/typescript/commonjs/types/PressableSourceProps.d.ts +19 -0
  677. package/lib/typescript/commonjs/types/PressableSourceProps.d.ts.map +1 -0
  678. package/lib/typescript/commonjs/types/ViewPadding.d.ts +10 -0
  679. package/lib/typescript/commonjs/types/ViewPadding.d.ts.map +1 -0
  680. package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts +10 -0
  681. package/lib/typescript/commonjs/types/codegen/UnsafeMixed.d.ts.map +1 -0
  682. package/lib/typescript/commonjs/utils/BridgeValue.d.ts +29 -0
  683. package/lib/typescript/commonjs/utils/BridgeValue.d.ts.map +1 -0
  684. package/lib/typescript/commonjs/utils/StyleValue.d.ts +10 -0
  685. package/lib/typescript/commonjs/utils/StyleValue.d.ts.map +1 -0
  686. package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts +42 -0
  687. package/lib/typescript/commonjs/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  688. package/lib/typescript/commonjs/utils/animated/Animated.d.ts +21 -0
  689. package/lib/typescript/commonjs/utils/animated/Animated.d.ts.map +1 -0
  690. package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
  691. package/lib/typescript/commonjs/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  692. package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +13 -0
  693. package/lib/typescript/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  694. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts +31 -0
  695. package/lib/typescript/commonjs/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
  696. package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts +32 -0
  697. package/lib/typescript/commonjs/utils/animated/AnimatedPoint.d.ts.map +1 -0
  698. package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts +62 -0
  699. package/lib/typescript/commonjs/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  700. package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts +16 -0
  701. package/lib/typescript/commonjs/utils/convertStyleSpec.d.ts.map +1 -0
  702. package/lib/typescript/commonjs/utils/findNodeHandle.d.ts +3 -0
  703. package/lib/typescript/commonjs/utils/findNodeHandle.d.ts.map +1 -0
  704. package/lib/typescript/commonjs/utils/getNativeFilter.d.ts +3 -0
  705. package/lib/typescript/commonjs/utils/getNativeFilter.d.ts.map +1 -0
  706. package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts +35 -0
  707. package/lib/typescript/commonjs/utils/getStylePropertyType.d.ts.map +1 -0
  708. package/lib/typescript/commonjs/utils/index.d.ts +18 -0
  709. package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
  710. package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts +20 -0
  711. package/lib/typescript/module/components/annotations/LayerAnnotation.d.ts.map +1 -0
  712. package/lib/typescript/module/components/annotations/callout/Callout.d.ts +35 -0
  713. package/lib/typescript/module/components/annotations/callout/Callout.d.ts.map +1 -0
  714. package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts +6 -0
  715. package/lib/typescript/module/components/annotations/callout/CalloutNativeComponent.d.ts.map +1 -0
  716. package/lib/typescript/module/components/annotations/marker/Marker.d.ts +79 -0
  717. package/lib/typescript/module/components/annotations/marker/Marker.d.ts.map +1 -0
  718. package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts +31 -0
  719. package/lib/typescript/module/components/annotations/marker/MarkerViewNativeComponent.d.ts.map +1 -0
  720. package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts +44 -0
  721. package/lib/typescript/module/components/annotations/view-annotation/PointAnnotationNativeComponent.d.ts.map +1 -0
  722. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts +119 -0
  723. package/lib/typescript/module/components/annotations/view-annotation/ViewAnnotation.d.ts.map +1 -0
  724. package/lib/typescript/module/components/camera/Camera.d.ts +217 -0
  725. package/lib/typescript/module/components/camera/Camera.d.ts.map +1 -0
  726. package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts +37 -0
  727. package/lib/typescript/module/components/camera/CameraNativeComponent.d.ts.map +1 -0
  728. package/lib/typescript/module/components/camera/NativeCameraModule.d.ts +26 -0
  729. package/lib/typescript/module/components/camera/NativeCameraModule.d.ts.map +1 -0
  730. package/lib/typescript/module/components/images/Images.d.ts +69 -0
  731. package/lib/typescript/module/components/images/Images.d.ts.map +1 -0
  732. package/lib/typescript/module/components/images/ImagesNativeComponent.d.ts +17 -0
  733. package/lib/typescript/module/components/images/ImagesNativeComponent.d.ts.map +1 -0
  734. package/lib/typescript/module/components/images/NativeImagesModule.d.ts +6 -0
  735. package/lib/typescript/module/components/images/NativeImagesModule.d.ts.map +1 -0
  736. package/lib/typescript/module/components/layer/Layer.d.ts +172 -0
  737. package/lib/typescript/module/components/layer/Layer.d.ts.map +1 -0
  738. package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts +19 -0
  739. package/lib/typescript/module/components/layer/LayerNativeComponent.d.ts.map +1 -0
  740. package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts +79 -0
  741. package/lib/typescript/module/components/map/AndroidTextureMapViewNativeComponent.d.ts.map +1 -0
  742. package/lib/typescript/module/components/map/Map.d.ts +448 -0
  743. package/lib/typescript/module/components/map/Map.d.ts.map +1 -0
  744. package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts +79 -0
  745. package/lib/typescript/module/components/map/MapViewNativeComponent.d.ts.map +1 -0
  746. package/lib/typescript/module/components/map/NativeMapViewModule.d.ts +31 -0
  747. package/lib/typescript/module/components/map/NativeMapViewModule.d.ts.map +1 -0
  748. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts +135 -0
  749. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSource.d.ts.map +1 -0
  750. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts +35 -0
  751. package/lib/typescript/module/components/sources/geojson-source/GeoJSONSourceNativeComponent.d.ts.map +1 -0
  752. package/lib/typescript/module/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts +10 -0
  753. package/lib/typescript/module/components/sources/geojson-source/NativeGeoJSONSourceModule.d.ts.map +1 -0
  754. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts +32 -0
  755. package/lib/typescript/module/components/sources/image-source/ImageSource.d.ts.map +1 -0
  756. package/lib/typescript/module/components/sources/image-source/ImageSourceNativeComponent.d.ts +21 -0
  757. package/lib/typescript/module/components/sources/image-source/ImageSourceNativeComponent.d.ts.map +1 -0
  758. package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSource.d.ts +58 -0
  759. package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSource.d.ts.map +1 -0
  760. package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts +15 -0
  761. package/lib/typescript/module/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.d.ts.map +1 -0
  762. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts +59 -0
  763. package/lib/typescript/module/components/sources/raster-source/RasterSource.d.ts.map +1 -0
  764. package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts +15 -0
  765. package/lib/typescript/module/components/sources/raster-source/RasterSourceNativeComponent.d.ts.map +1 -0
  766. package/lib/typescript/module/components/sources/vector-source/NativeVectorSourceModule.d.ts +7 -0
  767. package/lib/typescript/module/components/sources/vector-source/NativeVectorSourceModule.d.ts.map +1 -0
  768. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts +75 -0
  769. package/lib/typescript/module/components/sources/vector-source/VectorSource.d.ts.map +1 -0
  770. package/lib/typescript/module/components/sources/vector-source/VectorSourceNativeComponent.d.ts +32 -0
  771. package/lib/typescript/module/components/sources/vector-source/VectorSourceNativeComponent.d.ts.map +1 -0
  772. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts +27 -0
  773. package/lib/typescript/module/components/user-location/NativeUserLocation.d.ts.map +1 -0
  774. package/lib/typescript/module/components/user-location/UserLocation.d.ts +31 -0
  775. package/lib/typescript/module/components/user-location/UserLocation.d.ts.map +1 -0
  776. package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts +8 -0
  777. package/lib/typescript/module/components/user-location/UserLocationNativeComponent.d.ts.map +1 -0
  778. package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts +10 -0
  779. package/lib/typescript/module/components/user-location/UserLocationPuck.d.ts.map +1 -0
  780. package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts +9 -0
  781. package/lib/typescript/module/components/user-location/UserLocationPuckHeading.d.ts.map +1 -0
  782. package/lib/typescript/module/hooks/useCurrentPosition.d.ts +18 -0
  783. package/lib/typescript/module/hooks/useCurrentPosition.d.ts.map +1 -0
  784. package/lib/typescript/module/hooks/useFrozenId.d.ts +2 -0
  785. package/lib/typescript/module/hooks/useFrozenId.d.ts.map +1 -0
  786. package/lib/typescript/module/hooks/useNativeBridge.d.ts +21 -0
  787. package/lib/typescript/module/hooks/useNativeBridge.d.ts.map +1 -0
  788. package/lib/typescript/module/index.d.ts +36 -0
  789. package/lib/typescript/module/index.d.ts.map +1 -0
  790. package/lib/typescript/module/modules/location/LocationManager.d.ts +62 -0
  791. package/lib/typescript/module/modules/location/LocationManager.d.ts.map +1 -0
  792. package/lib/typescript/module/modules/location/NativeLocationModule.d.ts +25 -0
  793. package/lib/typescript/module/modules/location/NativeLocationModule.d.ts.map +1 -0
  794. package/lib/typescript/module/modules/log/LogManager.d.ts +46 -0
  795. package/lib/typescript/module/modules/log/LogManager.d.ts.map +1 -0
  796. package/lib/typescript/module/modules/log/NativeLogModule.d.ts +13 -0
  797. package/lib/typescript/module/modules/log/NativeLogModule.d.ts.map +1 -0
  798. package/lib/typescript/module/modules/network/NativeNetworkModule.d.ts +7 -0
  799. package/lib/typescript/module/modules/network/NativeNetworkModule.d.ts.map +1 -0
  800. package/lib/typescript/module/modules/network/NetworkManager.d.ts +24 -0
  801. package/lib/typescript/module/modules/network/NetworkManager.d.ts.map +1 -0
  802. package/lib/typescript/module/modules/offline/NativeOfflineModule.d.ts +50 -0
  803. package/lib/typescript/module/modules/offline/NativeOfflineModule.d.ts.map +1 -0
  804. package/lib/typescript/module/modules/offline/OfflineManager.d.ts +238 -0
  805. package/lib/typescript/module/modules/offline/OfflineManager.d.ts.map +1 -0
  806. package/lib/typescript/module/modules/offline/OfflinePack.d.ts +25 -0
  807. package/lib/typescript/module/modules/offline/OfflinePack.d.ts.map +1 -0
  808. package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts +19 -0
  809. package/lib/typescript/module/modules/static-map/NativeStaticMapModule.d.ts.map +1 -0
  810. package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts +105 -0
  811. package/lib/typescript/module/modules/static-map/StaticMapManager.d.ts.map +1 -0
  812. package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts +15 -0
  813. package/lib/typescript/module/modules/transform-request/NativeTransformRequestModule.d.ts.map +1 -0
  814. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts +213 -0
  815. package/lib/typescript/module/modules/transform-request/TransformRequestManager.d.ts.map +1 -0
  816. package/lib/typescript/module/package.json +1 -0
  817. package/lib/typescript/module/plugin/MapVinaPluginProps.d.ts +78 -0
  818. package/lib/typescript/module/plugin/MapVinaPluginProps.d.ts.map +1 -0
  819. package/lib/typescript/module/plugin/android.d.ts +17 -0
  820. package/lib/typescript/module/plugin/android.d.ts.map +1 -0
  821. package/lib/typescript/module/plugin/ios.d.ts +15 -0
  822. package/lib/typescript/module/plugin/ios.d.ts.map +1 -0
  823. package/lib/typescript/module/types/Anchor.d.ts +16 -0
  824. package/lib/typescript/module/types/Anchor.d.ts.map +1 -0
  825. package/lib/typescript/module/types/BaseProps.d.ts +7 -0
  826. package/lib/typescript/module/types/BaseProps.d.ts.map +1 -0
  827. package/lib/typescript/module/types/LngLat.d.ts +5 -0
  828. package/lib/typescript/module/types/LngLat.d.ts.map +1 -0
  829. package/lib/typescript/module/types/LngLatBounds.d.ts +13 -0
  830. package/lib/typescript/module/types/LngLatBounds.d.ts.map +1 -0
  831. package/lib/typescript/module/types/MapVinaRNStyles.d.ts +1169 -0
  832. package/lib/typescript/module/types/MapVinaRNStyles.d.ts.map +1 -0
  833. package/lib/typescript/module/types/PixelPoint.d.ts +5 -0
  834. package/lib/typescript/module/types/PixelPoint.d.ts.map +1 -0
  835. package/lib/typescript/module/types/PixelPointBounds.d.ts +10 -0
  836. package/lib/typescript/module/types/PixelPointBounds.d.ts.map +1 -0
  837. package/lib/typescript/module/types/PressEvent.d.ts +16 -0
  838. package/lib/typescript/module/types/PressEvent.d.ts.map +1 -0
  839. package/lib/typescript/module/types/PressEventWithFeatures.d.ts +8 -0
  840. package/lib/typescript/module/types/PressEventWithFeatures.d.ts.map +1 -0
  841. package/lib/typescript/module/types/PressableSourceProps.d.ts +19 -0
  842. package/lib/typescript/module/types/PressableSourceProps.d.ts.map +1 -0
  843. package/lib/typescript/module/types/ViewPadding.d.ts +10 -0
  844. package/lib/typescript/module/types/ViewPadding.d.ts.map +1 -0
  845. package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts +10 -0
  846. package/lib/typescript/module/types/codegen/UnsafeMixed.d.ts.map +1 -0
  847. package/lib/typescript/module/utils/BridgeValue.d.ts +29 -0
  848. package/lib/typescript/module/utils/BridgeValue.d.ts.map +1 -0
  849. package/lib/typescript/module/utils/StyleValue.d.ts +10 -0
  850. package/lib/typescript/module/utils/StyleValue.d.ts.map +1 -0
  851. package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts +42 -0
  852. package/lib/typescript/module/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -0
  853. package/lib/typescript/module/utils/animated/Animated.d.ts +21 -0
  854. package/lib/typescript/module/utils/animated/Animated.d.ts.map +1 -0
  855. package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts +40 -0
  856. package/lib/typescript/module/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -0
  857. package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +13 -0
  858. package/lib/typescript/module/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -0
  859. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts +31 -0
  860. package/lib/typescript/module/utils/animated/AnimatedGeoJSON.d.ts.map +1 -0
  861. package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts +32 -0
  862. package/lib/typescript/module/utils/animated/AnimatedPoint.d.ts.map +1 -0
  863. package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts +62 -0
  864. package/lib/typescript/module/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -0
  865. package/lib/typescript/module/utils/convertStyleSpec.d.ts +16 -0
  866. package/lib/typescript/module/utils/convertStyleSpec.d.ts.map +1 -0
  867. package/lib/typescript/module/utils/findNodeHandle.d.ts +3 -0
  868. package/lib/typescript/module/utils/findNodeHandle.d.ts.map +1 -0
  869. package/lib/typescript/module/utils/getNativeFilter.d.ts +3 -0
  870. package/lib/typescript/module/utils/getNativeFilter.d.ts.map +1 -0
  871. package/lib/typescript/module/utils/getStylePropertyType.d.ts +35 -0
  872. package/lib/typescript/module/utils/getStylePropertyType.d.ts.map +1 -0
  873. package/lib/typescript/module/utils/index.d.ts +18 -0
  874. package/lib/typescript/module/utils/index.d.ts.map +1 -0
  875. package/package.json +191 -0
  876. package/src/assets/heading.png +0 -0
  877. package/src/assets/heading@2x.png +0 -0
  878. package/src/assets/heading@3x.png +0 -0
  879. package/src/assets/png.d.ts +4 -0
  880. package/src/components/annotations/LayerAnnotation.tsx +74 -0
  881. package/src/components/annotations/callout/Callout.tsx +146 -0
  882. package/src/components/annotations/callout/CalloutNativeComponent.ts +11 -0
  883. package/src/components/annotations/marker/Marker.tsx +176 -0
  884. package/src/components/annotations/marker/MarkerViewNativeComponent.ts +40 -0
  885. package/src/components/annotations/view-annotation/PointAnnotationNativeComponent.ts +59 -0
  886. package/src/components/annotations/view-annotation/ViewAnnotation.tsx +239 -0
  887. package/src/components/camera/Camera.tsx +344 -0
  888. package/src/components/camera/CameraNativeComponent.ts +65 -0
  889. package/src/components/camera/NativeCameraModule.ts +38 -0
  890. package/src/components/images/Images.tsx +111 -0
  891. package/src/components/images/ImagesNativeComponent.ts +27 -0
  892. package/src/components/images/NativeImagesModule.ts +11 -0
  893. package/src/components/layer/Layer.tsx +278 -0
  894. package/src/components/layer/LayerNativeComponent.ts +43 -0
  895. package/src/components/map/AndroidTextureMapViewNativeComponent.ts +109 -0
  896. package/src/components/map/Map.tsx +697 -0
  897. package/src/components/map/MapViewNativeComponent.ts +105 -0
  898. package/src/components/map/NativeMapViewModule.ts +78 -0
  899. package/src/components/sources/geojson-source/GeoJSONSource.tsx +245 -0
  900. package/src/components/sources/geojson-source/GeoJSONSourceNativeComponent.ts +48 -0
  901. package/src/components/sources/geojson-source/NativeGeoJSONSourceModule.ts +33 -0
  902. package/src/components/sources/image-source/ImageSource.tsx +58 -0
  903. package/src/components/sources/image-source/ImageSourceNativeComponent.ts +31 -0
  904. package/src/components/sources/raster-dem-source/RasterDEMSource.tsx +83 -0
  905. package/src/components/sources/raster-dem-source/RasterDEMSourceNativeComponent.ts +25 -0
  906. package/src/components/sources/raster-source/RasterSource.tsx +82 -0
  907. package/src/components/sources/raster-source/RasterSourceNativeComponent.ts +25 -0
  908. package/src/components/sources/vector-source/NativeVectorSourceModule.ts +15 -0
  909. package/src/components/sources/vector-source/VectorSource.tsx +137 -0
  910. package/src/components/sources/vector-source/VectorSourceNativeComponent.ts +45 -0
  911. package/src/components/user-location/NativeUserLocation.tsx +31 -0
  912. package/src/components/user-location/UserLocation.tsx +98 -0
  913. package/src/components/user-location/UserLocationNativeComponent.ts +19 -0
  914. package/src/components/user-location/UserLocationPuck.tsx +83 -0
  915. package/src/components/user-location/UserLocationPuckHeading.tsx +34 -0
  916. package/src/hooks/useCurrentPosition.ts +53 -0
  917. package/src/hooks/useFrozenId.ts +13 -0
  918. package/src/hooks/useNativeBridge.ts +128 -0
  919. package/src/index.ts +119 -0
  920. package/src/modules/location/LocationManager.ts +174 -0
  921. package/src/modules/location/NativeLocationModule.ts +33 -0
  922. package/src/modules/log/LogManager.ts +115 -0
  923. package/src/modules/log/NativeLogModule.ts +16 -0
  924. package/src/modules/network/NativeNetworkModule.ts +8 -0
  925. package/src/modules/network/NetworkManager.ts +28 -0
  926. package/src/modules/offline/NativeOfflineModule.ts +63 -0
  927. package/src/modules/offline/OfflineManager.ts +428 -0
  928. package/src/modules/offline/OfflinePack.ts +44 -0
  929. package/src/modules/static-map/NativeStaticMapModule.ts +26 -0
  930. package/src/modules/static-map/StaticMapManager.ts +127 -0
  931. package/src/modules/transform-request/NativeTransformRequestModule.ts +41 -0
  932. package/src/modules/transform-request/TransformRequestManager.ts +304 -0
  933. package/src/plugin/MapVinaPluginProps.ts +84 -0
  934. package/src/plugin/android.ts +68 -0
  935. package/src/plugin/ios.ts +114 -0
  936. package/src/types/Anchor.ts +43 -0
  937. package/src/types/BaseProps.ts +6 -0
  938. package/src/types/LngLat.ts +4 -0
  939. package/src/types/LngLatBounds.ts +12 -0
  940. package/src/types/MapVinaRNStyles.ts +1335 -0
  941. package/src/types/PixelPoint.ts +4 -0
  942. package/src/types/PixelPointBounds.ts +9 -0
  943. package/src/types/PressEvent.ts +17 -0
  944. package/src/types/PressEventWithFeatures.ts +8 -0
  945. package/src/types/PressableSourceProps.ts +21 -0
  946. package/src/types/ViewPadding.ts +9 -0
  947. package/src/types/codegen/UnsafeMixed.ts +9 -0
  948. package/src/utils/BridgeValue.ts +90 -0
  949. package/src/utils/StyleValue.ts +52 -0
  950. package/src/utils/animated/AbstractAnimatedCoordinates.ts +145 -0
  951. package/src/utils/animated/Animated.ts +33 -0
  952. package/src/utils/animated/AnimatedCoordinatesArray.ts +114 -0
  953. package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +37 -0
  954. package/src/utils/animated/AnimatedGeoJSON.ts +90 -0
  955. package/src/utils/animated/AnimatedPoint.ts +153 -0
  956. package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +155 -0
  957. package/src/utils/convertStyleSpec.ts +61 -0
  958. package/src/utils/findNodeHandle.ts +14 -0
  959. package/src/utils/getNativeFilter.ts +15 -0
  960. package/src/utils/getStylePropertyType.ts +268 -0
  961. package/src/utils/index.ts +105 -0
@@ -0,0 +1,3057 @@
1
+ // DO NOT MODIFY
2
+ // This file is auto-generated from scripts/src/templates/renderMLRNStyleFactory.ts
3
+ package io.github.mapvina.reactnative.components.layer.style
4
+
5
+ import io.github.mapvina.android.style.layers.BackgroundLayer
6
+ import io.github.mapvina.android.style.layers.CircleLayer
7
+ import io.github.mapvina.android.style.layers.FillExtrusionLayer
8
+ import io.github.mapvina.android.style.layers.FillLayer
9
+ import io.github.mapvina.android.style.layers.HeatmapLayer
10
+ import io.github.mapvina.android.style.layers.HillshadeLayer
11
+ import io.github.mapvina.android.style.layers.LineLayer
12
+ import io.github.mapvina.android.style.layers.PropertyFactory
13
+ import io.github.mapvina.android.style.layers.RasterLayer
14
+ import io.github.mapvina.android.style.layers.SymbolLayer
15
+ import io.github.mapvina.android.style.light.Light
16
+ import io.github.mapvina.android.style.light.Position
17
+
18
+ object MLRNStyleFactory {
19
+ const val VALUE_KEY: String = "value"
20
+
21
+ fun setFillLayerStyle(
22
+ layer: FillLayer,
23
+ style: MLRNStyle,
24
+ ) {
25
+ val styleKeys = style.allStyleKeys
26
+
27
+ if (styleKeys.isEmpty()) {
28
+ return
29
+ }
30
+
31
+ for (styleKey in styleKeys) {
32
+ val styleValue = style.getStyleValueForKey(styleKey)
33
+
34
+ when (styleKey) {
35
+ "fillSortKey" -> {
36
+ setFillSortKey(layer, styleValue)
37
+ }
38
+
39
+ "visibility" -> {
40
+ setVisibility(layer, styleValue)
41
+ }
42
+
43
+ "fillAntialias" -> {
44
+ setFillAntialias(layer, styleValue)
45
+ }
46
+
47
+ "fillOpacity" -> {
48
+ setFillOpacity(layer, styleValue)
49
+ }
50
+
51
+ "fillOpacityTransition" -> {
52
+ setFillOpacityTransition(layer, styleValue)
53
+ }
54
+
55
+ "fillColor" -> {
56
+ setFillColor(layer, styleValue)
57
+ }
58
+
59
+ "fillColorTransition" -> {
60
+ setFillColorTransition(layer, styleValue)
61
+ }
62
+
63
+ "fillOutlineColor" -> {
64
+ setFillOutlineColor(layer, styleValue)
65
+ }
66
+
67
+ "fillOutlineColorTransition" -> {
68
+ setFillOutlineColorTransition(layer, styleValue)
69
+ }
70
+
71
+ "fillTranslate" -> {
72
+ setFillTranslate(layer, styleValue)
73
+ }
74
+
75
+ "fillTranslateTransition" -> {
76
+ setFillTranslateTransition(layer, styleValue)
77
+ }
78
+
79
+ "fillTranslateAnchor" -> {
80
+ setFillTranslateAnchor(layer, styleValue)
81
+ }
82
+
83
+ "fillPattern" -> {
84
+ style.addImage(
85
+ styleValue,
86
+ ) { setFillPattern(layer, styleValue) }
87
+ }
88
+
89
+ "fillPatternTransition" -> {
90
+ setFillPatternTransition(layer, styleValue)
91
+ }
92
+ }
93
+ }
94
+ }
95
+
96
+ fun setLineLayerStyle(
97
+ layer: LineLayer,
98
+ style: MLRNStyle,
99
+ ) {
100
+ val styleKeys = style.allStyleKeys
101
+
102
+ if (styleKeys.isEmpty()) {
103
+ return
104
+ }
105
+
106
+ for (styleKey in styleKeys) {
107
+ val styleValue = style.getStyleValueForKey(styleKey)
108
+
109
+ when (styleKey) {
110
+ "lineCap" -> {
111
+ setLineCap(layer, styleValue)
112
+ }
113
+
114
+ "lineJoin" -> {
115
+ setLineJoin(layer, styleValue)
116
+ }
117
+
118
+ "lineMiterLimit" -> {
119
+ setLineMiterLimit(layer, styleValue)
120
+ }
121
+
122
+ "lineRoundLimit" -> {
123
+ setLineRoundLimit(layer, styleValue)
124
+ }
125
+
126
+ "lineSortKey" -> {
127
+ setLineSortKey(layer, styleValue)
128
+ }
129
+
130
+ "visibility" -> {
131
+ setVisibility(layer, styleValue)
132
+ }
133
+
134
+ "lineOpacity" -> {
135
+ setLineOpacity(layer, styleValue)
136
+ }
137
+
138
+ "lineOpacityTransition" -> {
139
+ setLineOpacityTransition(layer, styleValue)
140
+ }
141
+
142
+ "lineColor" -> {
143
+ setLineColor(layer, styleValue)
144
+ }
145
+
146
+ "lineColorTransition" -> {
147
+ setLineColorTransition(layer, styleValue)
148
+ }
149
+
150
+ "lineTranslate" -> {
151
+ setLineTranslate(layer, styleValue)
152
+ }
153
+
154
+ "lineTranslateTransition" -> {
155
+ setLineTranslateTransition(layer, styleValue)
156
+ }
157
+
158
+ "lineTranslateAnchor" -> {
159
+ setLineTranslateAnchor(layer, styleValue)
160
+ }
161
+
162
+ "lineWidth" -> {
163
+ setLineWidth(layer, styleValue)
164
+ }
165
+
166
+ "lineWidthTransition" -> {
167
+ setLineWidthTransition(layer, styleValue)
168
+ }
169
+
170
+ "lineGapWidth" -> {
171
+ setLineGapWidth(layer, styleValue)
172
+ }
173
+
174
+ "lineGapWidthTransition" -> {
175
+ setLineGapWidthTransition(layer, styleValue)
176
+ }
177
+
178
+ "lineOffset" -> {
179
+ setLineOffset(layer, styleValue)
180
+ }
181
+
182
+ "lineOffsetTransition" -> {
183
+ setLineOffsetTransition(layer, styleValue)
184
+ }
185
+
186
+ "lineBlur" -> {
187
+ setLineBlur(layer, styleValue)
188
+ }
189
+
190
+ "lineBlurTransition" -> {
191
+ setLineBlurTransition(layer, styleValue)
192
+ }
193
+
194
+ "lineDasharray" -> {
195
+ setLineDasharray(layer, styleValue)
196
+ }
197
+
198
+ "lineDasharrayTransition" -> {
199
+ setLineDasharrayTransition(layer, styleValue)
200
+ }
201
+
202
+ "linePattern" -> {
203
+ style.addImage(
204
+ styleValue,
205
+ ) { setLinePattern(layer, styleValue) }
206
+ }
207
+
208
+ "linePatternTransition" -> {
209
+ setLinePatternTransition(layer, styleValue)
210
+ }
211
+
212
+ "lineGradient" -> {
213
+ setLineGradient(layer, styleValue)
214
+ }
215
+ }
216
+ }
217
+ }
218
+
219
+ fun setSymbolLayerStyle(
220
+ layer: SymbolLayer,
221
+ style: MLRNStyle,
222
+ ) {
223
+ val styleKeys = style.allStyleKeys
224
+
225
+ if (styleKeys.isEmpty()) {
226
+ return
227
+ }
228
+
229
+ for (styleKey in styleKeys) {
230
+ val styleValue = style.getStyleValueForKey(styleKey)
231
+
232
+ when (styleKey) {
233
+ "symbolPlacement" -> {
234
+ setSymbolPlacement(layer, styleValue)
235
+ }
236
+
237
+ "symbolSpacing" -> {
238
+ setSymbolSpacing(layer, styleValue)
239
+ }
240
+
241
+ "symbolAvoidEdges" -> {
242
+ setSymbolAvoidEdges(layer, styleValue)
243
+ }
244
+
245
+ "symbolSortKey" -> {
246
+ setSymbolSortKey(layer, styleValue)
247
+ }
248
+
249
+ "symbolZOrder" -> {
250
+ setSymbolZOrder(layer, styleValue)
251
+ }
252
+
253
+ "iconAllowOverlap" -> {
254
+ setIconAllowOverlap(layer, styleValue)
255
+ }
256
+
257
+ "iconOverlap" -> {
258
+ setIconOverlap(layer, styleValue)
259
+ }
260
+
261
+ "iconIgnorePlacement" -> {
262
+ setIconIgnorePlacement(layer, styleValue)
263
+ }
264
+
265
+ "iconOptional" -> {
266
+ setIconOptional(layer, styleValue)
267
+ }
268
+
269
+ "iconRotationAlignment" -> {
270
+ setIconRotationAlignment(layer, styleValue)
271
+ }
272
+
273
+ "iconSize" -> {
274
+ setIconSize(layer, styleValue)
275
+ }
276
+
277
+ "iconTextFit" -> {
278
+ setIconTextFit(layer, styleValue)
279
+ }
280
+
281
+ "iconTextFitPadding" -> {
282
+ setIconTextFitPadding(layer, styleValue)
283
+ }
284
+
285
+ "iconImage" -> {
286
+ style.addImage(
287
+ styleValue,
288
+ ) { setIconImage(layer, styleValue) }
289
+ }
290
+
291
+ "iconRotate" -> {
292
+ setIconRotate(layer, styleValue)
293
+ }
294
+
295
+ "iconPadding" -> {
296
+ setIconPadding(layer, styleValue)
297
+ }
298
+
299
+ "iconKeepUpright" -> {
300
+ setIconKeepUpright(layer, styleValue)
301
+ }
302
+
303
+ "iconOffset" -> {
304
+ setIconOffset(layer, styleValue)
305
+ }
306
+
307
+ "iconAnchor" -> {
308
+ setIconAnchor(layer, styleValue)
309
+ }
310
+
311
+ "iconPitchAlignment" -> {
312
+ setIconPitchAlignment(layer, styleValue)
313
+ }
314
+
315
+ "textPitchAlignment" -> {
316
+ setTextPitchAlignment(layer, styleValue)
317
+ }
318
+
319
+ "textRotationAlignment" -> {
320
+ setTextRotationAlignment(layer, styleValue)
321
+ }
322
+
323
+ "textField" -> {
324
+ setTextField(layer, styleValue)
325
+ }
326
+
327
+ "textFont" -> {
328
+ setTextFont(layer, styleValue)
329
+ }
330
+
331
+ "textSize" -> {
332
+ setTextSize(layer, styleValue)
333
+ }
334
+
335
+ "textMaxWidth" -> {
336
+ setTextMaxWidth(layer, styleValue)
337
+ }
338
+
339
+ "textLineHeight" -> {
340
+ setTextLineHeight(layer, styleValue)
341
+ }
342
+
343
+ "textLetterSpacing" -> {
344
+ setTextLetterSpacing(layer, styleValue)
345
+ }
346
+
347
+ "textJustify" -> {
348
+ setTextJustify(layer, styleValue)
349
+ }
350
+
351
+ "textRadialOffset" -> {
352
+ setTextRadialOffset(layer, styleValue)
353
+ }
354
+
355
+ "textVariableAnchor" -> {
356
+ setTextVariableAnchor(layer, styleValue)
357
+ }
358
+
359
+ "textAnchor" -> {
360
+ setTextAnchor(layer, styleValue)
361
+ }
362
+
363
+ "textMaxAngle" -> {
364
+ setTextMaxAngle(layer, styleValue)
365
+ }
366
+
367
+ "textWritingMode" -> {
368
+ setTextWritingMode(layer, styleValue)
369
+ }
370
+
371
+ "textRotate" -> {
372
+ setTextRotate(layer, styleValue)
373
+ }
374
+
375
+ "textPadding" -> {
376
+ setTextPadding(layer, styleValue)
377
+ }
378
+
379
+ "textKeepUpright" -> {
380
+ setTextKeepUpright(layer, styleValue)
381
+ }
382
+
383
+ "textTransform" -> {
384
+ setTextTransform(layer, styleValue)
385
+ }
386
+
387
+ "textOffset" -> {
388
+ setTextOffset(layer, styleValue)
389
+ }
390
+
391
+ "textAllowOverlap" -> {
392
+ setTextAllowOverlap(layer, styleValue)
393
+ }
394
+
395
+ "textOverlap" -> {
396
+ setTextOverlap(layer, styleValue)
397
+ }
398
+
399
+ "textIgnorePlacement" -> {
400
+ setTextIgnorePlacement(layer, styleValue)
401
+ }
402
+
403
+ "textOptional" -> {
404
+ setTextOptional(layer, styleValue)
405
+ }
406
+
407
+ "visibility" -> {
408
+ setVisibility(layer, styleValue)
409
+ }
410
+
411
+ "iconOpacity" -> {
412
+ setIconOpacity(layer, styleValue)
413
+ }
414
+
415
+ "iconOpacityTransition" -> {
416
+ setIconOpacityTransition(layer, styleValue)
417
+ }
418
+
419
+ "iconColor" -> {
420
+ setIconColor(layer, styleValue)
421
+ }
422
+
423
+ "iconColorTransition" -> {
424
+ setIconColorTransition(layer, styleValue)
425
+ }
426
+
427
+ "iconHaloColor" -> {
428
+ setIconHaloColor(layer, styleValue)
429
+ }
430
+
431
+ "iconHaloColorTransition" -> {
432
+ setIconHaloColorTransition(layer, styleValue)
433
+ }
434
+
435
+ "iconHaloWidth" -> {
436
+ setIconHaloWidth(layer, styleValue)
437
+ }
438
+
439
+ "iconHaloWidthTransition" -> {
440
+ setIconHaloWidthTransition(layer, styleValue)
441
+ }
442
+
443
+ "iconHaloBlur" -> {
444
+ setIconHaloBlur(layer, styleValue)
445
+ }
446
+
447
+ "iconHaloBlurTransition" -> {
448
+ setIconHaloBlurTransition(layer, styleValue)
449
+ }
450
+
451
+ "iconTranslate" -> {
452
+ setIconTranslate(layer, styleValue)
453
+ }
454
+
455
+ "iconTranslateTransition" -> {
456
+ setIconTranslateTransition(layer, styleValue)
457
+ }
458
+
459
+ "iconTranslateAnchor" -> {
460
+ setIconTranslateAnchor(layer, styleValue)
461
+ }
462
+
463
+ "textOpacity" -> {
464
+ setTextOpacity(layer, styleValue)
465
+ }
466
+
467
+ "textOpacityTransition" -> {
468
+ setTextOpacityTransition(layer, styleValue)
469
+ }
470
+
471
+ "textColor" -> {
472
+ setTextColor(layer, styleValue)
473
+ }
474
+
475
+ "textColorTransition" -> {
476
+ setTextColorTransition(layer, styleValue)
477
+ }
478
+
479
+ "textHaloColor" -> {
480
+ setTextHaloColor(layer, styleValue)
481
+ }
482
+
483
+ "textHaloColorTransition" -> {
484
+ setTextHaloColorTransition(layer, styleValue)
485
+ }
486
+
487
+ "textHaloWidth" -> {
488
+ setTextHaloWidth(layer, styleValue)
489
+ }
490
+
491
+ "textHaloWidthTransition" -> {
492
+ setTextHaloWidthTransition(layer, styleValue)
493
+ }
494
+
495
+ "textHaloBlur" -> {
496
+ setTextHaloBlur(layer, styleValue)
497
+ }
498
+
499
+ "textHaloBlurTransition" -> {
500
+ setTextHaloBlurTransition(layer, styleValue)
501
+ }
502
+
503
+ "textTranslate" -> {
504
+ setTextTranslate(layer, styleValue)
505
+ }
506
+
507
+ "textTranslateTransition" -> {
508
+ setTextTranslateTransition(layer, styleValue)
509
+ }
510
+
511
+ "textTranslateAnchor" -> {
512
+ setTextTranslateAnchor(layer, styleValue)
513
+ }
514
+ }
515
+ }
516
+ }
517
+
518
+ fun setCircleLayerStyle(
519
+ layer: CircleLayer,
520
+ style: MLRNStyle,
521
+ ) {
522
+ val styleKeys = style.allStyleKeys
523
+
524
+ if (styleKeys.isEmpty()) {
525
+ return
526
+ }
527
+
528
+ for (styleKey in styleKeys) {
529
+ val styleValue = style.getStyleValueForKey(styleKey)
530
+
531
+ when (styleKey) {
532
+ "circleSortKey" -> {
533
+ setCircleSortKey(layer, styleValue)
534
+ }
535
+
536
+ "visibility" -> {
537
+ setVisibility(layer, styleValue)
538
+ }
539
+
540
+ "circleRadius" -> {
541
+ setCircleRadius(layer, styleValue)
542
+ }
543
+
544
+ "circleRadiusTransition" -> {
545
+ setCircleRadiusTransition(layer, styleValue)
546
+ }
547
+
548
+ "circleColor" -> {
549
+ setCircleColor(layer, styleValue)
550
+ }
551
+
552
+ "circleColorTransition" -> {
553
+ setCircleColorTransition(layer, styleValue)
554
+ }
555
+
556
+ "circleBlur" -> {
557
+ setCircleBlur(layer, styleValue)
558
+ }
559
+
560
+ "circleBlurTransition" -> {
561
+ setCircleBlurTransition(layer, styleValue)
562
+ }
563
+
564
+ "circleOpacity" -> {
565
+ setCircleOpacity(layer, styleValue)
566
+ }
567
+
568
+ "circleOpacityTransition" -> {
569
+ setCircleOpacityTransition(layer, styleValue)
570
+ }
571
+
572
+ "circleTranslate" -> {
573
+ setCircleTranslate(layer, styleValue)
574
+ }
575
+
576
+ "circleTranslateTransition" -> {
577
+ setCircleTranslateTransition(layer, styleValue)
578
+ }
579
+
580
+ "circleTranslateAnchor" -> {
581
+ setCircleTranslateAnchor(layer, styleValue)
582
+ }
583
+
584
+ "circlePitchScale" -> {
585
+ setCirclePitchScale(layer, styleValue)
586
+ }
587
+
588
+ "circlePitchAlignment" -> {
589
+ setCirclePitchAlignment(layer, styleValue)
590
+ }
591
+
592
+ "circleStrokeWidth" -> {
593
+ setCircleStrokeWidth(layer, styleValue)
594
+ }
595
+
596
+ "circleStrokeWidthTransition" -> {
597
+ setCircleStrokeWidthTransition(layer, styleValue)
598
+ }
599
+
600
+ "circleStrokeColor" -> {
601
+ setCircleStrokeColor(layer, styleValue)
602
+ }
603
+
604
+ "circleStrokeColorTransition" -> {
605
+ setCircleStrokeColorTransition(layer, styleValue)
606
+ }
607
+
608
+ "circleStrokeOpacity" -> {
609
+ setCircleStrokeOpacity(layer, styleValue)
610
+ }
611
+
612
+ "circleStrokeOpacityTransition" -> {
613
+ setCircleStrokeOpacityTransition(layer, styleValue)
614
+ }
615
+ }
616
+ }
617
+ }
618
+
619
+ fun setHeatmapLayerStyle(
620
+ layer: HeatmapLayer,
621
+ style: MLRNStyle,
622
+ ) {
623
+ val styleKeys = style.allStyleKeys
624
+
625
+ if (styleKeys.isEmpty()) {
626
+ return
627
+ }
628
+
629
+ for (styleKey in styleKeys) {
630
+ val styleValue = style.getStyleValueForKey(styleKey)
631
+
632
+ when (styleKey) {
633
+ "visibility" -> {
634
+ setVisibility(layer, styleValue)
635
+ }
636
+
637
+ "heatmapRadius" -> {
638
+ setHeatmapRadius(layer, styleValue)
639
+ }
640
+
641
+ "heatmapRadiusTransition" -> {
642
+ setHeatmapRadiusTransition(layer, styleValue)
643
+ }
644
+
645
+ "heatmapWeight" -> {
646
+ setHeatmapWeight(layer, styleValue)
647
+ }
648
+
649
+ "heatmapIntensity" -> {
650
+ setHeatmapIntensity(layer, styleValue)
651
+ }
652
+
653
+ "heatmapIntensityTransition" -> {
654
+ setHeatmapIntensityTransition(layer, styleValue)
655
+ }
656
+
657
+ "heatmapColor" -> {
658
+ setHeatmapColor(layer, styleValue)
659
+ }
660
+
661
+ "heatmapOpacity" -> {
662
+ setHeatmapOpacity(layer, styleValue)
663
+ }
664
+
665
+ "heatmapOpacityTransition" -> {
666
+ setHeatmapOpacityTransition(layer, styleValue)
667
+ }
668
+ }
669
+ }
670
+ }
671
+
672
+ fun setFillExtrusionLayerStyle(
673
+ layer: FillExtrusionLayer,
674
+ style: MLRNStyle,
675
+ ) {
676
+ val styleKeys = style.allStyleKeys
677
+
678
+ if (styleKeys.isEmpty()) {
679
+ return
680
+ }
681
+
682
+ for (styleKey in styleKeys) {
683
+ val styleValue = style.getStyleValueForKey(styleKey)
684
+
685
+ when (styleKey) {
686
+ "visibility" -> {
687
+ setVisibility(layer, styleValue)
688
+ }
689
+
690
+ "fillExtrusionOpacity" -> {
691
+ setFillExtrusionOpacity(layer, styleValue)
692
+ }
693
+
694
+ "fillExtrusionOpacityTransition" -> {
695
+ setFillExtrusionOpacityTransition(layer, styleValue)
696
+ }
697
+
698
+ "fillExtrusionColor" -> {
699
+ setFillExtrusionColor(layer, styleValue)
700
+ }
701
+
702
+ "fillExtrusionColorTransition" -> {
703
+ setFillExtrusionColorTransition(layer, styleValue)
704
+ }
705
+
706
+ "fillExtrusionTranslate" -> {
707
+ setFillExtrusionTranslate(layer, styleValue)
708
+ }
709
+
710
+ "fillExtrusionTranslateTransition" -> {
711
+ setFillExtrusionTranslateTransition(layer, styleValue)
712
+ }
713
+
714
+ "fillExtrusionTranslateAnchor" -> {
715
+ setFillExtrusionTranslateAnchor(layer, styleValue)
716
+ }
717
+
718
+ "fillExtrusionPattern" -> {
719
+ style.addImage(
720
+ styleValue,
721
+ ) { setFillExtrusionPattern(layer, styleValue) }
722
+ }
723
+
724
+ "fillExtrusionPatternTransition" -> {
725
+ setFillExtrusionPatternTransition(layer, styleValue)
726
+ }
727
+
728
+ "fillExtrusionHeight" -> {
729
+ setFillExtrusionHeight(layer, styleValue)
730
+ }
731
+
732
+ "fillExtrusionHeightTransition" -> {
733
+ setFillExtrusionHeightTransition(layer, styleValue)
734
+ }
735
+
736
+ "fillExtrusionBase" -> {
737
+ setFillExtrusionBase(layer, styleValue)
738
+ }
739
+
740
+ "fillExtrusionBaseTransition" -> {
741
+ setFillExtrusionBaseTransition(layer, styleValue)
742
+ }
743
+
744
+ "fillExtrusionVerticalGradient" -> {
745
+ setFillExtrusionVerticalGradient(layer, styleValue)
746
+ }
747
+ }
748
+ }
749
+ }
750
+
751
+ fun setRasterLayerStyle(
752
+ layer: RasterLayer,
753
+ style: MLRNStyle,
754
+ ) {
755
+ val styleKeys = style.allStyleKeys
756
+
757
+ if (styleKeys.isEmpty()) {
758
+ return
759
+ }
760
+
761
+ for (styleKey in styleKeys) {
762
+ val styleValue = style.getStyleValueForKey(styleKey)
763
+
764
+ when (styleKey) {
765
+ "visibility" -> {
766
+ setVisibility(layer, styleValue)
767
+ }
768
+
769
+ "rasterOpacity" -> {
770
+ setRasterOpacity(layer, styleValue)
771
+ }
772
+
773
+ "rasterOpacityTransition" -> {
774
+ setRasterOpacityTransition(layer, styleValue)
775
+ }
776
+
777
+ "rasterHueRotate" -> {
778
+ setRasterHueRotate(layer, styleValue)
779
+ }
780
+
781
+ "rasterHueRotateTransition" -> {
782
+ setRasterHueRotateTransition(layer, styleValue)
783
+ }
784
+
785
+ "rasterBrightnessMin" -> {
786
+ setRasterBrightnessMin(layer, styleValue)
787
+ }
788
+
789
+ "rasterBrightnessMinTransition" -> {
790
+ setRasterBrightnessMinTransition(layer, styleValue)
791
+ }
792
+
793
+ "rasterBrightnessMax" -> {
794
+ setRasterBrightnessMax(layer, styleValue)
795
+ }
796
+
797
+ "rasterBrightnessMaxTransition" -> {
798
+ setRasterBrightnessMaxTransition(layer, styleValue)
799
+ }
800
+
801
+ "rasterSaturation" -> {
802
+ setRasterSaturation(layer, styleValue)
803
+ }
804
+
805
+ "rasterSaturationTransition" -> {
806
+ setRasterSaturationTransition(layer, styleValue)
807
+ }
808
+
809
+ "rasterContrast" -> {
810
+ setRasterContrast(layer, styleValue)
811
+ }
812
+
813
+ "rasterContrastTransition" -> {
814
+ setRasterContrastTransition(layer, styleValue)
815
+ }
816
+
817
+ "rasterResampling" -> {
818
+ setRasterResampling(layer, styleValue)
819
+ }
820
+
821
+ "rasterFadeDuration" -> {
822
+ setRasterFadeDuration(layer, styleValue)
823
+ }
824
+ }
825
+ }
826
+ }
827
+
828
+ fun setHillshadeLayerStyle(
829
+ layer: HillshadeLayer,
830
+ style: MLRNStyle,
831
+ ) {
832
+ val styleKeys = style.allStyleKeys
833
+
834
+ if (styleKeys.isEmpty()) {
835
+ return
836
+ }
837
+
838
+ for (styleKey in styleKeys) {
839
+ val styleValue = style.getStyleValueForKey(styleKey)
840
+
841
+ when (styleKey) {
842
+ "visibility" -> {
843
+ setVisibility(layer, styleValue)
844
+ }
845
+
846
+ "hillshadeIlluminationDirection" -> {
847
+ setHillshadeIlluminationDirection(layer, styleValue)
848
+ }
849
+
850
+ "hillshadeIlluminationAltitude" -> {
851
+ setHillshadeIlluminationAltitude(layer, styleValue)
852
+ }
853
+
854
+ "hillshadeIlluminationAnchor" -> {
855
+ setHillshadeIlluminationAnchor(layer, styleValue)
856
+ }
857
+
858
+ "hillshadeExaggeration" -> {
859
+ setHillshadeExaggeration(layer, styleValue)
860
+ }
861
+
862
+ "hillshadeExaggerationTransition" -> {
863
+ setHillshadeExaggerationTransition(layer, styleValue)
864
+ }
865
+
866
+ "hillshadeShadowColor" -> {
867
+ setHillshadeShadowColor(layer, styleValue)
868
+ }
869
+
870
+ "hillshadeShadowColorTransition" -> {
871
+ setHillshadeShadowColorTransition(layer, styleValue)
872
+ }
873
+
874
+ "hillshadeHighlightColor" -> {
875
+ setHillshadeHighlightColor(layer, styleValue)
876
+ }
877
+
878
+ "hillshadeHighlightColorTransition" -> {
879
+ setHillshadeHighlightColorTransition(layer, styleValue)
880
+ }
881
+
882
+ "hillshadeAccentColor" -> {
883
+ setHillshadeAccentColor(layer, styleValue)
884
+ }
885
+
886
+ "hillshadeAccentColorTransition" -> {
887
+ setHillshadeAccentColorTransition(layer, styleValue)
888
+ }
889
+
890
+ "hillshadeMethod" -> {
891
+ setHillshadeMethod(layer, styleValue)
892
+ }
893
+ }
894
+ }
895
+ }
896
+
897
+ fun setBackgroundLayerStyle(
898
+ layer: BackgroundLayer,
899
+ style: MLRNStyle,
900
+ ) {
901
+ val styleKeys = style.allStyleKeys
902
+
903
+ if (styleKeys.isEmpty()) {
904
+ return
905
+ }
906
+
907
+ for (styleKey in styleKeys) {
908
+ val styleValue = style.getStyleValueForKey(styleKey)
909
+
910
+ when (styleKey) {
911
+ "visibility" -> {
912
+ setVisibility(layer, styleValue)
913
+ }
914
+
915
+ "backgroundColor" -> {
916
+ setBackgroundColor(layer, styleValue)
917
+ }
918
+
919
+ "backgroundColorTransition" -> {
920
+ setBackgroundColorTransition(layer, styleValue)
921
+ }
922
+
923
+ "backgroundPattern" -> {
924
+ style.addImage(
925
+ styleValue,
926
+ ) { setBackgroundPattern(layer, styleValue) }
927
+ }
928
+
929
+ "backgroundPatternTransition" -> {
930
+ setBackgroundPatternTransition(layer, styleValue)
931
+ }
932
+
933
+ "backgroundOpacity" -> {
934
+ setBackgroundOpacity(layer, styleValue)
935
+ }
936
+
937
+ "backgroundOpacityTransition" -> {
938
+ setBackgroundOpacityTransition(layer, styleValue)
939
+ }
940
+ }
941
+ }
942
+ }
943
+
944
+ fun setLightLayerStyle(
945
+ layer: Light,
946
+ style: MLRNStyle,
947
+ ) {
948
+ val styleKeys = style.allStyleKeys
949
+
950
+ if (styleKeys.isEmpty()) {
951
+ return
952
+ }
953
+
954
+ for (styleKey in styleKeys) {
955
+ val styleValue = style.getStyleValueForKey(styleKey)
956
+
957
+ when (styleKey) {
958
+ "anchor" -> {
959
+ setAnchor(layer, styleValue)
960
+ }
961
+
962
+ "position" -> {
963
+ setPosition(layer, styleValue)
964
+ }
965
+
966
+ "positionTransition" -> {
967
+ setPositionTransition(layer, styleValue)
968
+ }
969
+
970
+ "color" -> {
971
+ setColor(layer, styleValue)
972
+ }
973
+
974
+ "colorTransition" -> {
975
+ setColorTransition(layer, styleValue)
976
+ }
977
+
978
+ "intensity" -> {
979
+ setIntensity(layer, styleValue)
980
+ }
981
+
982
+ "intensityTransition" -> {
983
+ setIntensityTransition(layer, styleValue)
984
+ }
985
+ }
986
+ }
987
+ }
988
+
989
+ fun setFillSortKey(
990
+ layer: FillLayer,
991
+ styleValue: MLRNStyleValue,
992
+ ) {
993
+ if (styleValue.isExpression()) {
994
+ layer.setProperties(PropertyFactory.fillSortKey(styleValue.getExpression()))
995
+ } else {
996
+ layer.setProperties(PropertyFactory.fillSortKey(styleValue.getFloat(VALUE_KEY)))
997
+ }
998
+ }
999
+
1000
+ fun setVisibility(
1001
+ layer: FillLayer,
1002
+ styleValue: MLRNStyleValue,
1003
+ ) {
1004
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)))
1005
+ }
1006
+
1007
+ fun setFillAntialias(
1008
+ layer: FillLayer,
1009
+ styleValue: MLRNStyleValue,
1010
+ ) {
1011
+ if (styleValue.isExpression()) {
1012
+ layer.setProperties(PropertyFactory.fillAntialias(styleValue.getExpression()))
1013
+ } else {
1014
+ layer.setProperties(PropertyFactory.fillAntialias(styleValue.getBoolean(VALUE_KEY)))
1015
+ }
1016
+ }
1017
+
1018
+ fun setFillOpacity(
1019
+ layer: FillLayer,
1020
+ styleValue: MLRNStyleValue,
1021
+ ) {
1022
+ if (styleValue.isExpression()) {
1023
+ layer.setProperties(PropertyFactory.fillOpacity(styleValue.getExpression()))
1024
+ } else {
1025
+ layer.setProperties(PropertyFactory.fillOpacity(styleValue.getFloat(VALUE_KEY)))
1026
+ }
1027
+ }
1028
+
1029
+ fun setFillOpacityTransition(
1030
+ layer: FillLayer,
1031
+ styleValue: MLRNStyleValue,
1032
+ ) {
1033
+ val transition = styleValue.transition
1034
+ if (transition != null) {
1035
+ layer.fillOpacityTransition = transition
1036
+ }
1037
+ }
1038
+
1039
+ fun setFillColor(
1040
+ layer: FillLayer,
1041
+ styleValue: MLRNStyleValue,
1042
+ ) {
1043
+ if (styleValue.isExpression()) {
1044
+ layer.setProperties(PropertyFactory.fillColor(styleValue.getExpression()))
1045
+ } else {
1046
+ layer.setProperties(PropertyFactory.fillColor(styleValue.getInt(VALUE_KEY)))
1047
+ }
1048
+ }
1049
+
1050
+ fun setFillColorTransition(
1051
+ layer: FillLayer,
1052
+ styleValue: MLRNStyleValue,
1053
+ ) {
1054
+ val transition = styleValue.transition
1055
+ if (transition != null) {
1056
+ layer.fillColorTransition = transition
1057
+ }
1058
+ }
1059
+
1060
+ fun setFillOutlineColor(
1061
+ layer: FillLayer,
1062
+ styleValue: MLRNStyleValue,
1063
+ ) {
1064
+ if (styleValue.isExpression()) {
1065
+ layer.setProperties(PropertyFactory.fillOutlineColor(styleValue.getExpression()))
1066
+ } else {
1067
+ layer.setProperties(PropertyFactory.fillOutlineColor(styleValue.getInt(VALUE_KEY)))
1068
+ }
1069
+ }
1070
+
1071
+ fun setFillOutlineColorTransition(
1072
+ layer: FillLayer,
1073
+ styleValue: MLRNStyleValue,
1074
+ ) {
1075
+ val transition = styleValue.transition
1076
+ if (transition != null) {
1077
+ layer.fillOutlineColorTransition = transition
1078
+ }
1079
+ }
1080
+
1081
+ fun setFillTranslate(
1082
+ layer: FillLayer,
1083
+ styleValue: MLRNStyleValue,
1084
+ ) {
1085
+ if (styleValue.isExpression()) {
1086
+ layer.setProperties(PropertyFactory.fillTranslate(styleValue.getExpression()))
1087
+ } else {
1088
+ layer.setProperties(PropertyFactory.fillTranslate(styleValue.getFloatArray(VALUE_KEY)))
1089
+ }
1090
+ }
1091
+
1092
+ fun setFillTranslateTransition(
1093
+ layer: FillLayer,
1094
+ styleValue: MLRNStyleValue,
1095
+ ) {
1096
+ val transition = styleValue.transition
1097
+ if (transition != null) {
1098
+ layer.fillTranslateTransition = transition
1099
+ }
1100
+ }
1101
+
1102
+ fun setFillTranslateAnchor(
1103
+ layer: FillLayer,
1104
+ styleValue: MLRNStyleValue,
1105
+ ) {
1106
+ if (styleValue.isExpression()) {
1107
+ layer.setProperties(PropertyFactory.fillTranslateAnchor(styleValue.getExpression()))
1108
+ } else {
1109
+ layer.setProperties(PropertyFactory.fillTranslateAnchor(styleValue.getString(VALUE_KEY)))
1110
+ }
1111
+ }
1112
+
1113
+ fun setFillPattern(
1114
+ layer: FillLayer,
1115
+ styleValue: MLRNStyleValue,
1116
+ ) {
1117
+ if (styleValue.isExpression()) {
1118
+ if (styleValue.isImageStringValue) {
1119
+ layer.setProperties(PropertyFactory.fillPattern(styleValue.getImageStringValue()))
1120
+ } else {
1121
+ layer.setProperties(PropertyFactory.fillPattern(styleValue.getExpression()))
1122
+ }
1123
+ } else {
1124
+ layer.setProperties(PropertyFactory.fillPattern(styleValue.imageURI))
1125
+ }
1126
+ }
1127
+
1128
+ fun setFillPatternTransition(
1129
+ layer: FillLayer,
1130
+ styleValue: MLRNStyleValue,
1131
+ ) {
1132
+ val transition = styleValue.transition
1133
+ if (transition != null) {
1134
+ layer.fillPatternTransition = transition
1135
+ }
1136
+ }
1137
+
1138
+ fun setLineCap(
1139
+ layer: LineLayer,
1140
+ styleValue: MLRNStyleValue,
1141
+ ) {
1142
+ if (styleValue.isExpression()) {
1143
+ layer.setProperties(PropertyFactory.lineCap(styleValue.getExpression()))
1144
+ } else {
1145
+ layer.setProperties(PropertyFactory.lineCap(styleValue.getString(VALUE_KEY)))
1146
+ }
1147
+ }
1148
+
1149
+ fun setLineJoin(
1150
+ layer: LineLayer,
1151
+ styleValue: MLRNStyleValue,
1152
+ ) {
1153
+ if (styleValue.isExpression()) {
1154
+ layer.setProperties(PropertyFactory.lineJoin(styleValue.getExpression()))
1155
+ } else {
1156
+ layer.setProperties(PropertyFactory.lineJoin(styleValue.getString(VALUE_KEY)))
1157
+ }
1158
+ }
1159
+
1160
+ fun setLineMiterLimit(
1161
+ layer: LineLayer,
1162
+ styleValue: MLRNStyleValue,
1163
+ ) {
1164
+ if (styleValue.isExpression()) {
1165
+ layer.setProperties(PropertyFactory.lineMiterLimit(styleValue.getExpression()))
1166
+ } else {
1167
+ layer.setProperties(PropertyFactory.lineMiterLimit(styleValue.getFloat(VALUE_KEY)))
1168
+ }
1169
+ }
1170
+
1171
+ fun setLineRoundLimit(
1172
+ layer: LineLayer,
1173
+ styleValue: MLRNStyleValue,
1174
+ ) {
1175
+ if (styleValue.isExpression()) {
1176
+ layer.setProperties(PropertyFactory.lineRoundLimit(styleValue.getExpression()))
1177
+ } else {
1178
+ layer.setProperties(PropertyFactory.lineRoundLimit(styleValue.getFloat(VALUE_KEY)))
1179
+ }
1180
+ }
1181
+
1182
+ fun setLineSortKey(
1183
+ layer: LineLayer,
1184
+ styleValue: MLRNStyleValue,
1185
+ ) {
1186
+ if (styleValue.isExpression()) {
1187
+ layer.setProperties(PropertyFactory.lineSortKey(styleValue.getExpression()))
1188
+ } else {
1189
+ layer.setProperties(PropertyFactory.lineSortKey(styleValue.getFloat(VALUE_KEY)))
1190
+ }
1191
+ }
1192
+
1193
+ fun setVisibility(
1194
+ layer: LineLayer,
1195
+ styleValue: MLRNStyleValue,
1196
+ ) {
1197
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)))
1198
+ }
1199
+
1200
+ fun setLineOpacity(
1201
+ layer: LineLayer,
1202
+ styleValue: MLRNStyleValue,
1203
+ ) {
1204
+ if (styleValue.isExpression()) {
1205
+ layer.setProperties(PropertyFactory.lineOpacity(styleValue.getExpression()))
1206
+ } else {
1207
+ layer.setProperties(PropertyFactory.lineOpacity(styleValue.getFloat(VALUE_KEY)))
1208
+ }
1209
+ }
1210
+
1211
+ fun setLineOpacityTransition(
1212
+ layer: LineLayer,
1213
+ styleValue: MLRNStyleValue,
1214
+ ) {
1215
+ val transition = styleValue.transition
1216
+ if (transition != null) {
1217
+ layer.lineOpacityTransition = transition
1218
+ }
1219
+ }
1220
+
1221
+ fun setLineColor(
1222
+ layer: LineLayer,
1223
+ styleValue: MLRNStyleValue,
1224
+ ) {
1225
+ if (styleValue.isExpression()) {
1226
+ layer.setProperties(PropertyFactory.lineColor(styleValue.getExpression()))
1227
+ } else {
1228
+ layer.setProperties(PropertyFactory.lineColor(styleValue.getInt(VALUE_KEY)))
1229
+ }
1230
+ }
1231
+
1232
+ fun setLineColorTransition(
1233
+ layer: LineLayer,
1234
+ styleValue: MLRNStyleValue,
1235
+ ) {
1236
+ val transition = styleValue.transition
1237
+ if (transition != null) {
1238
+ layer.lineColorTransition = transition
1239
+ }
1240
+ }
1241
+
1242
+ fun setLineTranslate(
1243
+ layer: LineLayer,
1244
+ styleValue: MLRNStyleValue,
1245
+ ) {
1246
+ if (styleValue.isExpression()) {
1247
+ layer.setProperties(PropertyFactory.lineTranslate(styleValue.getExpression()))
1248
+ } else {
1249
+ layer.setProperties(PropertyFactory.lineTranslate(styleValue.getFloatArray(VALUE_KEY)))
1250
+ }
1251
+ }
1252
+
1253
+ fun setLineTranslateTransition(
1254
+ layer: LineLayer,
1255
+ styleValue: MLRNStyleValue,
1256
+ ) {
1257
+ val transition = styleValue.transition
1258
+ if (transition != null) {
1259
+ layer.lineTranslateTransition = transition
1260
+ }
1261
+ }
1262
+
1263
+ fun setLineTranslateAnchor(
1264
+ layer: LineLayer,
1265
+ styleValue: MLRNStyleValue,
1266
+ ) {
1267
+ if (styleValue.isExpression()) {
1268
+ layer.setProperties(PropertyFactory.lineTranslateAnchor(styleValue.getExpression()))
1269
+ } else {
1270
+ layer.setProperties(PropertyFactory.lineTranslateAnchor(styleValue.getString(VALUE_KEY)))
1271
+ }
1272
+ }
1273
+
1274
+ fun setLineWidth(
1275
+ layer: LineLayer,
1276
+ styleValue: MLRNStyleValue,
1277
+ ) {
1278
+ if (styleValue.isExpression()) {
1279
+ layer.setProperties(PropertyFactory.lineWidth(styleValue.getExpression()))
1280
+ } else {
1281
+ layer.setProperties(PropertyFactory.lineWidth(styleValue.getFloat(VALUE_KEY)))
1282
+ }
1283
+ }
1284
+
1285
+ fun setLineWidthTransition(
1286
+ layer: LineLayer,
1287
+ styleValue: MLRNStyleValue,
1288
+ ) {
1289
+ val transition = styleValue.transition
1290
+ if (transition != null) {
1291
+ layer.lineWidthTransition = transition
1292
+ }
1293
+ }
1294
+
1295
+ fun setLineGapWidth(
1296
+ layer: LineLayer,
1297
+ styleValue: MLRNStyleValue,
1298
+ ) {
1299
+ if (styleValue.isExpression()) {
1300
+ layer.setProperties(PropertyFactory.lineGapWidth(styleValue.getExpression()))
1301
+ } else {
1302
+ layer.setProperties(PropertyFactory.lineGapWidth(styleValue.getFloat(VALUE_KEY)))
1303
+ }
1304
+ }
1305
+
1306
+ fun setLineGapWidthTransition(
1307
+ layer: LineLayer,
1308
+ styleValue: MLRNStyleValue,
1309
+ ) {
1310
+ val transition = styleValue.transition
1311
+ if (transition != null) {
1312
+ layer.lineGapWidthTransition = transition
1313
+ }
1314
+ }
1315
+
1316
+ fun setLineOffset(
1317
+ layer: LineLayer,
1318
+ styleValue: MLRNStyleValue,
1319
+ ) {
1320
+ if (styleValue.isExpression()) {
1321
+ layer.setProperties(PropertyFactory.lineOffset(styleValue.getExpression()))
1322
+ } else {
1323
+ layer.setProperties(PropertyFactory.lineOffset(styleValue.getFloat(VALUE_KEY)))
1324
+ }
1325
+ }
1326
+
1327
+ fun setLineOffsetTransition(
1328
+ layer: LineLayer,
1329
+ styleValue: MLRNStyleValue,
1330
+ ) {
1331
+ val transition = styleValue.transition
1332
+ if (transition != null) {
1333
+ layer.lineOffsetTransition = transition
1334
+ }
1335
+ }
1336
+
1337
+ fun setLineBlur(
1338
+ layer: LineLayer,
1339
+ styleValue: MLRNStyleValue,
1340
+ ) {
1341
+ if (styleValue.isExpression()) {
1342
+ layer.setProperties(PropertyFactory.lineBlur(styleValue.getExpression()))
1343
+ } else {
1344
+ layer.setProperties(PropertyFactory.lineBlur(styleValue.getFloat(VALUE_KEY)))
1345
+ }
1346
+ }
1347
+
1348
+ fun setLineBlurTransition(
1349
+ layer: LineLayer,
1350
+ styleValue: MLRNStyleValue,
1351
+ ) {
1352
+ val transition = styleValue.transition
1353
+ if (transition != null) {
1354
+ layer.lineBlurTransition = transition
1355
+ }
1356
+ }
1357
+
1358
+ fun setLineDasharray(
1359
+ layer: LineLayer,
1360
+ styleValue: MLRNStyleValue,
1361
+ ) {
1362
+ if (styleValue.isExpression()) {
1363
+ layer.setProperties(PropertyFactory.lineDasharray(styleValue.getExpression()))
1364
+ } else {
1365
+ layer.setProperties(PropertyFactory.lineDasharray(styleValue.getFloatArray(VALUE_KEY)))
1366
+ }
1367
+ }
1368
+
1369
+ fun setLineDasharrayTransition(
1370
+ layer: LineLayer,
1371
+ styleValue: MLRNStyleValue,
1372
+ ) {
1373
+ val transition = styleValue.transition
1374
+ if (transition != null) {
1375
+ layer.lineDasharrayTransition = transition
1376
+ }
1377
+ }
1378
+
1379
+ fun setLinePattern(
1380
+ layer: LineLayer,
1381
+ styleValue: MLRNStyleValue,
1382
+ ) {
1383
+ if (styleValue.isExpression()) {
1384
+ if (styleValue.isImageStringValue) {
1385
+ layer.setProperties(PropertyFactory.linePattern(styleValue.getImageStringValue()))
1386
+ } else {
1387
+ layer.setProperties(PropertyFactory.linePattern(styleValue.getExpression()))
1388
+ }
1389
+ } else {
1390
+ layer.setProperties(PropertyFactory.linePattern(styleValue.imageURI))
1391
+ }
1392
+ }
1393
+
1394
+ fun setLinePatternTransition(
1395
+ layer: LineLayer,
1396
+ styleValue: MLRNStyleValue,
1397
+ ) {
1398
+ val transition = styleValue.transition
1399
+ if (transition != null) {
1400
+ layer.linePatternTransition = transition
1401
+ }
1402
+ }
1403
+
1404
+ fun setLineGradient(
1405
+ layer: LineLayer,
1406
+ styleValue: MLRNStyleValue,
1407
+ ) {
1408
+ if (styleValue.isExpression()) {
1409
+ layer.setProperties(PropertyFactory.lineGradient(styleValue.getExpression()))
1410
+ } else {
1411
+ layer.setProperties(PropertyFactory.lineGradient(styleValue.getInt(VALUE_KEY)))
1412
+ }
1413
+ }
1414
+
1415
+ fun setSymbolPlacement(
1416
+ layer: SymbolLayer,
1417
+ styleValue: MLRNStyleValue,
1418
+ ) {
1419
+ if (styleValue.isExpression()) {
1420
+ layer.setProperties(PropertyFactory.symbolPlacement(styleValue.getExpression()))
1421
+ } else {
1422
+ layer.setProperties(PropertyFactory.symbolPlacement(styleValue.getString(VALUE_KEY)))
1423
+ }
1424
+ }
1425
+
1426
+ fun setSymbolSpacing(
1427
+ layer: SymbolLayer,
1428
+ styleValue: MLRNStyleValue,
1429
+ ) {
1430
+ if (styleValue.isExpression()) {
1431
+ layer.setProperties(PropertyFactory.symbolSpacing(styleValue.getExpression()))
1432
+ } else {
1433
+ layer.setProperties(PropertyFactory.symbolSpacing(styleValue.getFloat(VALUE_KEY)))
1434
+ }
1435
+ }
1436
+
1437
+ fun setSymbolAvoidEdges(
1438
+ layer: SymbolLayer,
1439
+ styleValue: MLRNStyleValue,
1440
+ ) {
1441
+ if (styleValue.isExpression()) {
1442
+ layer.setProperties(PropertyFactory.symbolAvoidEdges(styleValue.getExpression()))
1443
+ } else {
1444
+ layer.setProperties(PropertyFactory.symbolAvoidEdges(styleValue.getBoolean(VALUE_KEY)))
1445
+ }
1446
+ }
1447
+
1448
+ fun setSymbolSortKey(
1449
+ layer: SymbolLayer,
1450
+ styleValue: MLRNStyleValue,
1451
+ ) {
1452
+ if (styleValue.isExpression()) {
1453
+ layer.setProperties(PropertyFactory.symbolSortKey(styleValue.getExpression()))
1454
+ } else {
1455
+ layer.setProperties(PropertyFactory.symbolSortKey(styleValue.getFloat(VALUE_KEY)))
1456
+ }
1457
+ }
1458
+
1459
+ fun setSymbolZOrder(
1460
+ layer: SymbolLayer,
1461
+ styleValue: MLRNStyleValue,
1462
+ ) {
1463
+ if (styleValue.isExpression()) {
1464
+ layer.setProperties(PropertyFactory.symbolZOrder(styleValue.getExpression()))
1465
+ } else {
1466
+ layer.setProperties(PropertyFactory.symbolZOrder(styleValue.getString(VALUE_KEY)))
1467
+ }
1468
+ }
1469
+
1470
+ fun setIconAllowOverlap(
1471
+ layer: SymbolLayer,
1472
+ styleValue: MLRNStyleValue,
1473
+ ) {
1474
+ if (styleValue.isExpression()) {
1475
+ layer.setProperties(PropertyFactory.iconAllowOverlap(styleValue.getExpression()))
1476
+ } else {
1477
+ layer.setProperties(PropertyFactory.iconAllowOverlap(styleValue.getBoolean(VALUE_KEY)))
1478
+ }
1479
+ }
1480
+
1481
+ fun setIconOverlap(
1482
+ layer: SymbolLayer,
1483
+ styleValue: MLRNStyleValue,
1484
+ ) {
1485
+ setIconAllowOverlap(layer, styleValue)
1486
+ }
1487
+
1488
+ fun setIconIgnorePlacement(
1489
+ layer: SymbolLayer,
1490
+ styleValue: MLRNStyleValue,
1491
+ ) {
1492
+ if (styleValue.isExpression()) {
1493
+ layer.setProperties(PropertyFactory.iconIgnorePlacement(styleValue.getExpression()))
1494
+ } else {
1495
+ layer.setProperties(PropertyFactory.iconIgnorePlacement(styleValue.getBoolean(VALUE_KEY)))
1496
+ }
1497
+ }
1498
+
1499
+ fun setIconOptional(
1500
+ layer: SymbolLayer,
1501
+ styleValue: MLRNStyleValue,
1502
+ ) {
1503
+ if (styleValue.isExpression()) {
1504
+ layer.setProperties(PropertyFactory.iconOptional(styleValue.getExpression()))
1505
+ } else {
1506
+ layer.setProperties(PropertyFactory.iconOptional(styleValue.getBoolean(VALUE_KEY)))
1507
+ }
1508
+ }
1509
+
1510
+ fun setIconRotationAlignment(
1511
+ layer: SymbolLayer,
1512
+ styleValue: MLRNStyleValue,
1513
+ ) {
1514
+ if (styleValue.isExpression()) {
1515
+ layer.setProperties(PropertyFactory.iconRotationAlignment(styleValue.getExpression()))
1516
+ } else {
1517
+ layer.setProperties(PropertyFactory.iconRotationAlignment(styleValue.getString(VALUE_KEY)))
1518
+ }
1519
+ }
1520
+
1521
+ fun setIconSize(
1522
+ layer: SymbolLayer,
1523
+ styleValue: MLRNStyleValue,
1524
+ ) {
1525
+ if (styleValue.isExpression()) {
1526
+ layer.setProperties(PropertyFactory.iconSize(styleValue.getExpression()))
1527
+ } else {
1528
+ layer.setProperties(PropertyFactory.iconSize(styleValue.getFloat(VALUE_KEY)))
1529
+ }
1530
+ }
1531
+
1532
+ fun setIconTextFit(
1533
+ layer: SymbolLayer,
1534
+ styleValue: MLRNStyleValue,
1535
+ ) {
1536
+ if (styleValue.isExpression()) {
1537
+ layer.setProperties(PropertyFactory.iconTextFit(styleValue.getExpression()))
1538
+ } else {
1539
+ layer.setProperties(PropertyFactory.iconTextFit(styleValue.getString(VALUE_KEY)))
1540
+ }
1541
+ }
1542
+
1543
+ fun setIconTextFitPadding(
1544
+ layer: SymbolLayer,
1545
+ styleValue: MLRNStyleValue,
1546
+ ) {
1547
+ if (styleValue.isExpression()) {
1548
+ layer.setProperties(PropertyFactory.iconTextFitPadding(styleValue.getExpression()))
1549
+ } else {
1550
+ layer.setProperties(PropertyFactory.iconTextFitPadding(styleValue.getFloatArray(VALUE_KEY)))
1551
+ }
1552
+ }
1553
+
1554
+ fun setIconImage(
1555
+ layer: SymbolLayer,
1556
+ styleValue: MLRNStyleValue,
1557
+ ) {
1558
+ if (styleValue.isExpression()) {
1559
+ if (styleValue.isImageStringValue) {
1560
+ layer.setProperties(PropertyFactory.iconImage(styleValue.getImageStringValue()))
1561
+ } else {
1562
+ layer.setProperties(PropertyFactory.iconImage(styleValue.getExpression()))
1563
+ }
1564
+ } else {
1565
+ layer.setProperties(PropertyFactory.iconImage(styleValue.imageURI))
1566
+ }
1567
+ }
1568
+
1569
+ fun setIconRotate(
1570
+ layer: SymbolLayer,
1571
+ styleValue: MLRNStyleValue,
1572
+ ) {
1573
+ if (styleValue.isExpression()) {
1574
+ layer.setProperties(PropertyFactory.iconRotate(styleValue.getExpression()))
1575
+ } else {
1576
+ layer.setProperties(PropertyFactory.iconRotate(styleValue.getFloat(VALUE_KEY)))
1577
+ }
1578
+ }
1579
+
1580
+ fun setIconPadding(
1581
+ layer: SymbolLayer,
1582
+ styleValue: MLRNStyleValue,
1583
+ ) {
1584
+ if (styleValue.isExpression()) {
1585
+ layer.setProperties(PropertyFactory.iconPadding(styleValue.getExpression()))
1586
+ } else {
1587
+ layer.setProperties(PropertyFactory.iconPadding(styleValue.getFloatArray(VALUE_KEY)))
1588
+ }
1589
+ }
1590
+
1591
+ fun setIconKeepUpright(
1592
+ layer: SymbolLayer,
1593
+ styleValue: MLRNStyleValue,
1594
+ ) {
1595
+ if (styleValue.isExpression()) {
1596
+ layer.setProperties(PropertyFactory.iconKeepUpright(styleValue.getExpression()))
1597
+ } else {
1598
+ layer.setProperties(PropertyFactory.iconKeepUpright(styleValue.getBoolean(VALUE_KEY)))
1599
+ }
1600
+ }
1601
+
1602
+ fun setIconOffset(
1603
+ layer: SymbolLayer,
1604
+ styleValue: MLRNStyleValue,
1605
+ ) {
1606
+ if (styleValue.isExpression()) {
1607
+ layer.setProperties(PropertyFactory.iconOffset(styleValue.getExpression()))
1608
+ } else {
1609
+ layer.setProperties(PropertyFactory.iconOffset(styleValue.getFloatArray(VALUE_KEY)))
1610
+ }
1611
+ }
1612
+
1613
+ fun setIconAnchor(
1614
+ layer: SymbolLayer,
1615
+ styleValue: MLRNStyleValue,
1616
+ ) {
1617
+ if (styleValue.isExpression()) {
1618
+ layer.setProperties(PropertyFactory.iconAnchor(styleValue.getExpression()))
1619
+ } else {
1620
+ layer.setProperties(PropertyFactory.iconAnchor(styleValue.getString(VALUE_KEY)))
1621
+ }
1622
+ }
1623
+
1624
+ fun setIconPitchAlignment(
1625
+ layer: SymbolLayer,
1626
+ styleValue: MLRNStyleValue,
1627
+ ) {
1628
+ if (styleValue.isExpression()) {
1629
+ layer.setProperties(PropertyFactory.iconPitchAlignment(styleValue.getExpression()))
1630
+ } else {
1631
+ layer.setProperties(PropertyFactory.iconPitchAlignment(styleValue.getString(VALUE_KEY)))
1632
+ }
1633
+ }
1634
+
1635
+ fun setTextPitchAlignment(
1636
+ layer: SymbolLayer,
1637
+ styleValue: MLRNStyleValue,
1638
+ ) {
1639
+ if (styleValue.isExpression()) {
1640
+ layer.setProperties(PropertyFactory.textPitchAlignment(styleValue.getExpression()))
1641
+ } else {
1642
+ layer.setProperties(PropertyFactory.textPitchAlignment(styleValue.getString(VALUE_KEY)))
1643
+ }
1644
+ }
1645
+
1646
+ fun setTextRotationAlignment(
1647
+ layer: SymbolLayer,
1648
+ styleValue: MLRNStyleValue,
1649
+ ) {
1650
+ if (styleValue.isExpression()) {
1651
+ layer.setProperties(PropertyFactory.textRotationAlignment(styleValue.getExpression()))
1652
+ } else {
1653
+ layer.setProperties(PropertyFactory.textRotationAlignment(styleValue.getString(VALUE_KEY)))
1654
+ }
1655
+ }
1656
+
1657
+ fun setTextField(
1658
+ layer: SymbolLayer,
1659
+ styleValue: MLRNStyleValue,
1660
+ ) {
1661
+ if (styleValue.isExpression()) {
1662
+ layer.setProperties(PropertyFactory.textField(styleValue.getExpression()))
1663
+ } else {
1664
+ layer.setProperties(PropertyFactory.textField(styleValue.getString(VALUE_KEY)))
1665
+ }
1666
+ }
1667
+
1668
+ fun setTextFont(
1669
+ layer: SymbolLayer,
1670
+ styleValue: MLRNStyleValue,
1671
+ ) {
1672
+ if (styleValue.isExpression()) {
1673
+ layer.setProperties(PropertyFactory.textFont(styleValue.getExpression()))
1674
+ } else {
1675
+ layer.setProperties(PropertyFactory.textFont(styleValue.getStringArray(VALUE_KEY)))
1676
+ }
1677
+ }
1678
+
1679
+ fun setTextSize(
1680
+ layer: SymbolLayer,
1681
+ styleValue: MLRNStyleValue,
1682
+ ) {
1683
+ if (styleValue.isExpression()) {
1684
+ layer.setProperties(PropertyFactory.textSize(styleValue.getExpression()))
1685
+ } else {
1686
+ layer.setProperties(PropertyFactory.textSize(styleValue.getFloat(VALUE_KEY)))
1687
+ }
1688
+ }
1689
+
1690
+ fun setTextMaxWidth(
1691
+ layer: SymbolLayer,
1692
+ styleValue: MLRNStyleValue,
1693
+ ) {
1694
+ if (styleValue.isExpression()) {
1695
+ layer.setProperties(PropertyFactory.textMaxWidth(styleValue.getExpression()))
1696
+ } else {
1697
+ layer.setProperties(PropertyFactory.textMaxWidth(styleValue.getFloat(VALUE_KEY)))
1698
+ }
1699
+ }
1700
+
1701
+ fun setTextLineHeight(
1702
+ layer: SymbolLayer,
1703
+ styleValue: MLRNStyleValue,
1704
+ ) {
1705
+ if (styleValue.isExpression()) {
1706
+ layer.setProperties(PropertyFactory.textLineHeight(styleValue.getExpression()))
1707
+ } else {
1708
+ layer.setProperties(PropertyFactory.textLineHeight(styleValue.getFloat(VALUE_KEY)))
1709
+ }
1710
+ }
1711
+
1712
+ fun setTextLetterSpacing(
1713
+ layer: SymbolLayer,
1714
+ styleValue: MLRNStyleValue,
1715
+ ) {
1716
+ if (styleValue.isExpression()) {
1717
+ layer.setProperties(PropertyFactory.textLetterSpacing(styleValue.getExpression()))
1718
+ } else {
1719
+ layer.setProperties(PropertyFactory.textLetterSpacing(styleValue.getFloat(VALUE_KEY)))
1720
+ }
1721
+ }
1722
+
1723
+ fun setTextJustify(
1724
+ layer: SymbolLayer,
1725
+ styleValue: MLRNStyleValue,
1726
+ ) {
1727
+ if (styleValue.isExpression()) {
1728
+ layer.setProperties(PropertyFactory.textJustify(styleValue.getExpression()))
1729
+ } else {
1730
+ layer.setProperties(PropertyFactory.textJustify(styleValue.getString(VALUE_KEY)))
1731
+ }
1732
+ }
1733
+
1734
+ fun setTextRadialOffset(
1735
+ layer: SymbolLayer,
1736
+ styleValue: MLRNStyleValue,
1737
+ ) {
1738
+ if (styleValue.isExpression()) {
1739
+ layer.setProperties(PropertyFactory.textRadialOffset(styleValue.getExpression()))
1740
+ } else {
1741
+ layer.setProperties(PropertyFactory.textRadialOffset(styleValue.getFloat(VALUE_KEY)))
1742
+ }
1743
+ }
1744
+
1745
+ fun setTextVariableAnchor(
1746
+ layer: SymbolLayer,
1747
+ styleValue: MLRNStyleValue,
1748
+ ) {
1749
+ if (styleValue.isExpression()) {
1750
+ layer.setProperties(PropertyFactory.textVariableAnchor(styleValue.getExpression()))
1751
+ } else {
1752
+ layer.setProperties(PropertyFactory.textVariableAnchor(styleValue.getStringArray(VALUE_KEY)))
1753
+ }
1754
+ }
1755
+
1756
+ fun setTextAnchor(
1757
+ layer: SymbolLayer,
1758
+ styleValue: MLRNStyleValue,
1759
+ ) {
1760
+ if (styleValue.isExpression()) {
1761
+ layer.setProperties(PropertyFactory.textAnchor(styleValue.getExpression()))
1762
+ } else {
1763
+ layer.setProperties(PropertyFactory.textAnchor(styleValue.getString(VALUE_KEY)))
1764
+ }
1765
+ }
1766
+
1767
+ fun setTextMaxAngle(
1768
+ layer: SymbolLayer,
1769
+ styleValue: MLRNStyleValue,
1770
+ ) {
1771
+ if (styleValue.isExpression()) {
1772
+ layer.setProperties(PropertyFactory.textMaxAngle(styleValue.getExpression()))
1773
+ } else {
1774
+ layer.setProperties(PropertyFactory.textMaxAngle(styleValue.getFloat(VALUE_KEY)))
1775
+ }
1776
+ }
1777
+
1778
+ fun setTextWritingMode(
1779
+ layer: SymbolLayer,
1780
+ styleValue: MLRNStyleValue,
1781
+ ) {
1782
+ if (styleValue.isExpression()) {
1783
+ layer.setProperties(PropertyFactory.textWritingMode(styleValue.getExpression()))
1784
+ } else {
1785
+ layer.setProperties(PropertyFactory.textWritingMode(styleValue.getStringArray(VALUE_KEY)))
1786
+ }
1787
+ }
1788
+
1789
+ fun setTextRotate(
1790
+ layer: SymbolLayer,
1791
+ styleValue: MLRNStyleValue,
1792
+ ) {
1793
+ if (styleValue.isExpression()) {
1794
+ layer.setProperties(PropertyFactory.textRotate(styleValue.getExpression()))
1795
+ } else {
1796
+ layer.setProperties(PropertyFactory.textRotate(styleValue.getFloat(VALUE_KEY)))
1797
+ }
1798
+ }
1799
+
1800
+ fun setTextPadding(
1801
+ layer: SymbolLayer,
1802
+ styleValue: MLRNStyleValue,
1803
+ ) {
1804
+ if (styleValue.isExpression()) {
1805
+ layer.setProperties(PropertyFactory.textPadding(styleValue.getExpression()))
1806
+ } else {
1807
+ layer.setProperties(PropertyFactory.textPadding(styleValue.getFloat(VALUE_KEY)))
1808
+ }
1809
+ }
1810
+
1811
+ fun setTextKeepUpright(
1812
+ layer: SymbolLayer,
1813
+ styleValue: MLRNStyleValue,
1814
+ ) {
1815
+ if (styleValue.isExpression()) {
1816
+ layer.setProperties(PropertyFactory.textKeepUpright(styleValue.getExpression()))
1817
+ } else {
1818
+ layer.setProperties(PropertyFactory.textKeepUpright(styleValue.getBoolean(VALUE_KEY)))
1819
+ }
1820
+ }
1821
+
1822
+ fun setTextTransform(
1823
+ layer: SymbolLayer,
1824
+ styleValue: MLRNStyleValue,
1825
+ ) {
1826
+ if (styleValue.isExpression()) {
1827
+ layer.setProperties(PropertyFactory.textTransform(styleValue.getExpression()))
1828
+ } else {
1829
+ layer.setProperties(PropertyFactory.textTransform(styleValue.getString(VALUE_KEY)))
1830
+ }
1831
+ }
1832
+
1833
+ fun setTextOffset(
1834
+ layer: SymbolLayer,
1835
+ styleValue: MLRNStyleValue,
1836
+ ) {
1837
+ if (styleValue.isExpression()) {
1838
+ layer.setProperties(PropertyFactory.textOffset(styleValue.getExpression()))
1839
+ } else {
1840
+ layer.setProperties(PropertyFactory.textOffset(styleValue.getFloatArray(VALUE_KEY)))
1841
+ }
1842
+ }
1843
+
1844
+ fun setTextAllowOverlap(
1845
+ layer: SymbolLayer,
1846
+ styleValue: MLRNStyleValue,
1847
+ ) {
1848
+ if (styleValue.isExpression()) {
1849
+ layer.setProperties(PropertyFactory.textAllowOverlap(styleValue.getExpression()))
1850
+ } else {
1851
+ layer.setProperties(PropertyFactory.textAllowOverlap(styleValue.getBoolean(VALUE_KEY)))
1852
+ }
1853
+ }
1854
+
1855
+ fun setTextOverlap(
1856
+ layer: SymbolLayer,
1857
+ styleValue: MLRNStyleValue,
1858
+ ) {
1859
+ setTextAllowOverlap(layer, styleValue)
1860
+ }
1861
+
1862
+ fun setTextIgnorePlacement(
1863
+ layer: SymbolLayer,
1864
+ styleValue: MLRNStyleValue,
1865
+ ) {
1866
+ if (styleValue.isExpression()) {
1867
+ layer.setProperties(PropertyFactory.textIgnorePlacement(styleValue.getExpression()))
1868
+ } else {
1869
+ layer.setProperties(PropertyFactory.textIgnorePlacement(styleValue.getBoolean(VALUE_KEY)))
1870
+ }
1871
+ }
1872
+
1873
+ fun setTextOptional(
1874
+ layer: SymbolLayer,
1875
+ styleValue: MLRNStyleValue,
1876
+ ) {
1877
+ if (styleValue.isExpression()) {
1878
+ layer.setProperties(PropertyFactory.textOptional(styleValue.getExpression()))
1879
+ } else {
1880
+ layer.setProperties(PropertyFactory.textOptional(styleValue.getBoolean(VALUE_KEY)))
1881
+ }
1882
+ }
1883
+
1884
+ fun setVisibility(
1885
+ layer: SymbolLayer,
1886
+ styleValue: MLRNStyleValue,
1887
+ ) {
1888
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)))
1889
+ }
1890
+
1891
+ fun setIconOpacity(
1892
+ layer: SymbolLayer,
1893
+ styleValue: MLRNStyleValue,
1894
+ ) {
1895
+ if (styleValue.isExpression()) {
1896
+ layer.setProperties(PropertyFactory.iconOpacity(styleValue.getExpression()))
1897
+ } else {
1898
+ layer.setProperties(PropertyFactory.iconOpacity(styleValue.getFloat(VALUE_KEY)))
1899
+ }
1900
+ }
1901
+
1902
+ fun setIconOpacityTransition(
1903
+ layer: SymbolLayer,
1904
+ styleValue: MLRNStyleValue,
1905
+ ) {
1906
+ val transition = styleValue.transition
1907
+ if (transition != null) {
1908
+ layer.iconOpacityTransition = transition
1909
+ }
1910
+ }
1911
+
1912
+ fun setIconColor(
1913
+ layer: SymbolLayer,
1914
+ styleValue: MLRNStyleValue,
1915
+ ) {
1916
+ if (styleValue.isExpression()) {
1917
+ layer.setProperties(PropertyFactory.iconColor(styleValue.getExpression()))
1918
+ } else {
1919
+ layer.setProperties(PropertyFactory.iconColor(styleValue.getInt(VALUE_KEY)))
1920
+ }
1921
+ }
1922
+
1923
+ fun setIconColorTransition(
1924
+ layer: SymbolLayer,
1925
+ styleValue: MLRNStyleValue,
1926
+ ) {
1927
+ val transition = styleValue.transition
1928
+ if (transition != null) {
1929
+ layer.iconColorTransition = transition
1930
+ }
1931
+ }
1932
+
1933
+ fun setIconHaloColor(
1934
+ layer: SymbolLayer,
1935
+ styleValue: MLRNStyleValue,
1936
+ ) {
1937
+ if (styleValue.isExpression()) {
1938
+ layer.setProperties(PropertyFactory.iconHaloColor(styleValue.getExpression()))
1939
+ } else {
1940
+ layer.setProperties(PropertyFactory.iconHaloColor(styleValue.getInt(VALUE_KEY)))
1941
+ }
1942
+ }
1943
+
1944
+ fun setIconHaloColorTransition(
1945
+ layer: SymbolLayer,
1946
+ styleValue: MLRNStyleValue,
1947
+ ) {
1948
+ val transition = styleValue.transition
1949
+ if (transition != null) {
1950
+ layer.iconHaloColorTransition = transition
1951
+ }
1952
+ }
1953
+
1954
+ fun setIconHaloWidth(
1955
+ layer: SymbolLayer,
1956
+ styleValue: MLRNStyleValue,
1957
+ ) {
1958
+ if (styleValue.isExpression()) {
1959
+ layer.setProperties(PropertyFactory.iconHaloWidth(styleValue.getExpression()))
1960
+ } else {
1961
+ layer.setProperties(PropertyFactory.iconHaloWidth(styleValue.getFloat(VALUE_KEY)))
1962
+ }
1963
+ }
1964
+
1965
+ fun setIconHaloWidthTransition(
1966
+ layer: SymbolLayer,
1967
+ styleValue: MLRNStyleValue,
1968
+ ) {
1969
+ val transition = styleValue.transition
1970
+ if (transition != null) {
1971
+ layer.iconHaloWidthTransition = transition
1972
+ }
1973
+ }
1974
+
1975
+ fun setIconHaloBlur(
1976
+ layer: SymbolLayer,
1977
+ styleValue: MLRNStyleValue,
1978
+ ) {
1979
+ if (styleValue.isExpression()) {
1980
+ layer.setProperties(PropertyFactory.iconHaloBlur(styleValue.getExpression()))
1981
+ } else {
1982
+ layer.setProperties(PropertyFactory.iconHaloBlur(styleValue.getFloat(VALUE_KEY)))
1983
+ }
1984
+ }
1985
+
1986
+ fun setIconHaloBlurTransition(
1987
+ layer: SymbolLayer,
1988
+ styleValue: MLRNStyleValue,
1989
+ ) {
1990
+ val transition = styleValue.transition
1991
+ if (transition != null) {
1992
+ layer.iconHaloBlurTransition = transition
1993
+ }
1994
+ }
1995
+
1996
+ fun setIconTranslate(
1997
+ layer: SymbolLayer,
1998
+ styleValue: MLRNStyleValue,
1999
+ ) {
2000
+ if (styleValue.isExpression()) {
2001
+ layer.setProperties(PropertyFactory.iconTranslate(styleValue.getExpression()))
2002
+ } else {
2003
+ layer.setProperties(PropertyFactory.iconTranslate(styleValue.getFloatArray(VALUE_KEY)))
2004
+ }
2005
+ }
2006
+
2007
+ fun setIconTranslateTransition(
2008
+ layer: SymbolLayer,
2009
+ styleValue: MLRNStyleValue,
2010
+ ) {
2011
+ val transition = styleValue.transition
2012
+ if (transition != null) {
2013
+ layer.iconTranslateTransition = transition
2014
+ }
2015
+ }
2016
+
2017
+ fun setIconTranslateAnchor(
2018
+ layer: SymbolLayer,
2019
+ styleValue: MLRNStyleValue,
2020
+ ) {
2021
+ if (styleValue.isExpression()) {
2022
+ layer.setProperties(PropertyFactory.iconTranslateAnchor(styleValue.getExpression()))
2023
+ } else {
2024
+ layer.setProperties(PropertyFactory.iconTranslateAnchor(styleValue.getString(VALUE_KEY)))
2025
+ }
2026
+ }
2027
+
2028
+ fun setTextOpacity(
2029
+ layer: SymbolLayer,
2030
+ styleValue: MLRNStyleValue,
2031
+ ) {
2032
+ if (styleValue.isExpression()) {
2033
+ layer.setProperties(PropertyFactory.textOpacity(styleValue.getExpression()))
2034
+ } else {
2035
+ layer.setProperties(PropertyFactory.textOpacity(styleValue.getFloat(VALUE_KEY)))
2036
+ }
2037
+ }
2038
+
2039
+ fun setTextOpacityTransition(
2040
+ layer: SymbolLayer,
2041
+ styleValue: MLRNStyleValue,
2042
+ ) {
2043
+ val transition = styleValue.transition
2044
+ if (transition != null) {
2045
+ layer.textOpacityTransition = transition
2046
+ }
2047
+ }
2048
+
2049
+ fun setTextColor(
2050
+ layer: SymbolLayer,
2051
+ styleValue: MLRNStyleValue,
2052
+ ) {
2053
+ if (styleValue.isExpression()) {
2054
+ layer.setProperties(PropertyFactory.textColor(styleValue.getExpression()))
2055
+ } else {
2056
+ layer.setProperties(PropertyFactory.textColor(styleValue.getInt(VALUE_KEY)))
2057
+ }
2058
+ }
2059
+
2060
+ fun setTextColorTransition(
2061
+ layer: SymbolLayer,
2062
+ styleValue: MLRNStyleValue,
2063
+ ) {
2064
+ val transition = styleValue.transition
2065
+ if (transition != null) {
2066
+ layer.textColorTransition = transition
2067
+ }
2068
+ }
2069
+
2070
+ fun setTextHaloColor(
2071
+ layer: SymbolLayer,
2072
+ styleValue: MLRNStyleValue,
2073
+ ) {
2074
+ if (styleValue.isExpression()) {
2075
+ layer.setProperties(PropertyFactory.textHaloColor(styleValue.getExpression()))
2076
+ } else {
2077
+ layer.setProperties(PropertyFactory.textHaloColor(styleValue.getInt(VALUE_KEY)))
2078
+ }
2079
+ }
2080
+
2081
+ fun setTextHaloColorTransition(
2082
+ layer: SymbolLayer,
2083
+ styleValue: MLRNStyleValue,
2084
+ ) {
2085
+ val transition = styleValue.transition
2086
+ if (transition != null) {
2087
+ layer.textHaloColorTransition = transition
2088
+ }
2089
+ }
2090
+
2091
+ fun setTextHaloWidth(
2092
+ layer: SymbolLayer,
2093
+ styleValue: MLRNStyleValue,
2094
+ ) {
2095
+ if (styleValue.isExpression()) {
2096
+ layer.setProperties(PropertyFactory.textHaloWidth(styleValue.getExpression()))
2097
+ } else {
2098
+ layer.setProperties(PropertyFactory.textHaloWidth(styleValue.getFloat(VALUE_KEY)))
2099
+ }
2100
+ }
2101
+
2102
+ fun setTextHaloWidthTransition(
2103
+ layer: SymbolLayer,
2104
+ styleValue: MLRNStyleValue,
2105
+ ) {
2106
+ val transition = styleValue.transition
2107
+ if (transition != null) {
2108
+ layer.textHaloWidthTransition = transition
2109
+ }
2110
+ }
2111
+
2112
+ fun setTextHaloBlur(
2113
+ layer: SymbolLayer,
2114
+ styleValue: MLRNStyleValue,
2115
+ ) {
2116
+ if (styleValue.isExpression()) {
2117
+ layer.setProperties(PropertyFactory.textHaloBlur(styleValue.getExpression()))
2118
+ } else {
2119
+ layer.setProperties(PropertyFactory.textHaloBlur(styleValue.getFloat(VALUE_KEY)))
2120
+ }
2121
+ }
2122
+
2123
+ fun setTextHaloBlurTransition(
2124
+ layer: SymbolLayer,
2125
+ styleValue: MLRNStyleValue,
2126
+ ) {
2127
+ val transition = styleValue.transition
2128
+ if (transition != null) {
2129
+ layer.textHaloBlurTransition = transition
2130
+ }
2131
+ }
2132
+
2133
+ fun setTextTranslate(
2134
+ layer: SymbolLayer,
2135
+ styleValue: MLRNStyleValue,
2136
+ ) {
2137
+ if (styleValue.isExpression()) {
2138
+ layer.setProperties(PropertyFactory.textTranslate(styleValue.getExpression()))
2139
+ } else {
2140
+ layer.setProperties(PropertyFactory.textTranslate(styleValue.getFloatArray(VALUE_KEY)))
2141
+ }
2142
+ }
2143
+
2144
+ fun setTextTranslateTransition(
2145
+ layer: SymbolLayer,
2146
+ styleValue: MLRNStyleValue,
2147
+ ) {
2148
+ val transition = styleValue.transition
2149
+ if (transition != null) {
2150
+ layer.textTranslateTransition = transition
2151
+ }
2152
+ }
2153
+
2154
+ fun setTextTranslateAnchor(
2155
+ layer: SymbolLayer,
2156
+ styleValue: MLRNStyleValue,
2157
+ ) {
2158
+ if (styleValue.isExpression()) {
2159
+ layer.setProperties(PropertyFactory.textTranslateAnchor(styleValue.getExpression()))
2160
+ } else {
2161
+ layer.setProperties(PropertyFactory.textTranslateAnchor(styleValue.getString(VALUE_KEY)))
2162
+ }
2163
+ }
2164
+
2165
+ fun setCircleSortKey(
2166
+ layer: CircleLayer,
2167
+ styleValue: MLRNStyleValue,
2168
+ ) {
2169
+ if (styleValue.isExpression()) {
2170
+ layer.setProperties(PropertyFactory.circleSortKey(styleValue.getExpression()))
2171
+ } else {
2172
+ layer.setProperties(PropertyFactory.circleSortKey(styleValue.getFloat(VALUE_KEY)))
2173
+ }
2174
+ }
2175
+
2176
+ fun setVisibility(
2177
+ layer: CircleLayer,
2178
+ styleValue: MLRNStyleValue,
2179
+ ) {
2180
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)))
2181
+ }
2182
+
2183
+ fun setCircleRadius(
2184
+ layer: CircleLayer,
2185
+ styleValue: MLRNStyleValue,
2186
+ ) {
2187
+ if (styleValue.isExpression()) {
2188
+ layer.setProperties(PropertyFactory.circleRadius(styleValue.getExpression()))
2189
+ } else {
2190
+ layer.setProperties(PropertyFactory.circleRadius(styleValue.getFloat(VALUE_KEY)))
2191
+ }
2192
+ }
2193
+
2194
+ fun setCircleRadiusTransition(
2195
+ layer: CircleLayer,
2196
+ styleValue: MLRNStyleValue,
2197
+ ) {
2198
+ val transition = styleValue.transition
2199
+ if (transition != null) {
2200
+ layer.circleRadiusTransition = transition
2201
+ }
2202
+ }
2203
+
2204
+ fun setCircleColor(
2205
+ layer: CircleLayer,
2206
+ styleValue: MLRNStyleValue,
2207
+ ) {
2208
+ if (styleValue.isExpression()) {
2209
+ layer.setProperties(PropertyFactory.circleColor(styleValue.getExpression()))
2210
+ } else {
2211
+ layer.setProperties(PropertyFactory.circleColor(styleValue.getInt(VALUE_KEY)))
2212
+ }
2213
+ }
2214
+
2215
+ fun setCircleColorTransition(
2216
+ layer: CircleLayer,
2217
+ styleValue: MLRNStyleValue,
2218
+ ) {
2219
+ val transition = styleValue.transition
2220
+ if (transition != null) {
2221
+ layer.circleColorTransition = transition
2222
+ }
2223
+ }
2224
+
2225
+ fun setCircleBlur(
2226
+ layer: CircleLayer,
2227
+ styleValue: MLRNStyleValue,
2228
+ ) {
2229
+ if (styleValue.isExpression()) {
2230
+ layer.setProperties(PropertyFactory.circleBlur(styleValue.getExpression()))
2231
+ } else {
2232
+ layer.setProperties(PropertyFactory.circleBlur(styleValue.getFloat(VALUE_KEY)))
2233
+ }
2234
+ }
2235
+
2236
+ fun setCircleBlurTransition(
2237
+ layer: CircleLayer,
2238
+ styleValue: MLRNStyleValue,
2239
+ ) {
2240
+ val transition = styleValue.transition
2241
+ if (transition != null) {
2242
+ layer.circleBlurTransition = transition
2243
+ }
2244
+ }
2245
+
2246
+ fun setCircleOpacity(
2247
+ layer: CircleLayer,
2248
+ styleValue: MLRNStyleValue,
2249
+ ) {
2250
+ if (styleValue.isExpression()) {
2251
+ layer.setProperties(PropertyFactory.circleOpacity(styleValue.getExpression()))
2252
+ } else {
2253
+ layer.setProperties(PropertyFactory.circleOpacity(styleValue.getFloat(VALUE_KEY)))
2254
+ }
2255
+ }
2256
+
2257
+ fun setCircleOpacityTransition(
2258
+ layer: CircleLayer,
2259
+ styleValue: MLRNStyleValue,
2260
+ ) {
2261
+ val transition = styleValue.transition
2262
+ if (transition != null) {
2263
+ layer.circleOpacityTransition = transition
2264
+ }
2265
+ }
2266
+
2267
+ fun setCircleTranslate(
2268
+ layer: CircleLayer,
2269
+ styleValue: MLRNStyleValue,
2270
+ ) {
2271
+ if (styleValue.isExpression()) {
2272
+ layer.setProperties(PropertyFactory.circleTranslate(styleValue.getExpression()))
2273
+ } else {
2274
+ layer.setProperties(PropertyFactory.circleTranslate(styleValue.getFloatArray(VALUE_KEY)))
2275
+ }
2276
+ }
2277
+
2278
+ fun setCircleTranslateTransition(
2279
+ layer: CircleLayer,
2280
+ styleValue: MLRNStyleValue,
2281
+ ) {
2282
+ val transition = styleValue.transition
2283
+ if (transition != null) {
2284
+ layer.circleTranslateTransition = transition
2285
+ }
2286
+ }
2287
+
2288
+ fun setCircleTranslateAnchor(
2289
+ layer: CircleLayer,
2290
+ styleValue: MLRNStyleValue,
2291
+ ) {
2292
+ if (styleValue.isExpression()) {
2293
+ layer.setProperties(PropertyFactory.circleTranslateAnchor(styleValue.getExpression()))
2294
+ } else {
2295
+ layer.setProperties(PropertyFactory.circleTranslateAnchor(styleValue.getString(VALUE_KEY)))
2296
+ }
2297
+ }
2298
+
2299
+ fun setCirclePitchScale(
2300
+ layer: CircleLayer,
2301
+ styleValue: MLRNStyleValue,
2302
+ ) {
2303
+ if (styleValue.isExpression()) {
2304
+ layer.setProperties(PropertyFactory.circlePitchScale(styleValue.getExpression()))
2305
+ } else {
2306
+ layer.setProperties(PropertyFactory.circlePitchScale(styleValue.getString(VALUE_KEY)))
2307
+ }
2308
+ }
2309
+
2310
+ fun setCirclePitchAlignment(
2311
+ layer: CircleLayer,
2312
+ styleValue: MLRNStyleValue,
2313
+ ) {
2314
+ if (styleValue.isExpression()) {
2315
+ layer.setProperties(PropertyFactory.circlePitchAlignment(styleValue.getExpression()))
2316
+ } else {
2317
+ layer.setProperties(PropertyFactory.circlePitchAlignment(styleValue.getString(VALUE_KEY)))
2318
+ }
2319
+ }
2320
+
2321
+ fun setCircleStrokeWidth(
2322
+ layer: CircleLayer,
2323
+ styleValue: MLRNStyleValue,
2324
+ ) {
2325
+ if (styleValue.isExpression()) {
2326
+ layer.setProperties(PropertyFactory.circleStrokeWidth(styleValue.getExpression()))
2327
+ } else {
2328
+ layer.setProperties(PropertyFactory.circleStrokeWidth(styleValue.getFloat(VALUE_KEY)))
2329
+ }
2330
+ }
2331
+
2332
+ fun setCircleStrokeWidthTransition(
2333
+ layer: CircleLayer,
2334
+ styleValue: MLRNStyleValue,
2335
+ ) {
2336
+ val transition = styleValue.transition
2337
+ if (transition != null) {
2338
+ layer.circleStrokeWidthTransition = transition
2339
+ }
2340
+ }
2341
+
2342
+ fun setCircleStrokeColor(
2343
+ layer: CircleLayer,
2344
+ styleValue: MLRNStyleValue,
2345
+ ) {
2346
+ if (styleValue.isExpression()) {
2347
+ layer.setProperties(PropertyFactory.circleStrokeColor(styleValue.getExpression()))
2348
+ } else {
2349
+ layer.setProperties(PropertyFactory.circleStrokeColor(styleValue.getInt(VALUE_KEY)))
2350
+ }
2351
+ }
2352
+
2353
+ fun setCircleStrokeColorTransition(
2354
+ layer: CircleLayer,
2355
+ styleValue: MLRNStyleValue,
2356
+ ) {
2357
+ val transition = styleValue.transition
2358
+ if (transition != null) {
2359
+ layer.circleStrokeColorTransition = transition
2360
+ }
2361
+ }
2362
+
2363
+ fun setCircleStrokeOpacity(
2364
+ layer: CircleLayer,
2365
+ styleValue: MLRNStyleValue,
2366
+ ) {
2367
+ if (styleValue.isExpression()) {
2368
+ layer.setProperties(PropertyFactory.circleStrokeOpacity(styleValue.getExpression()))
2369
+ } else {
2370
+ layer.setProperties(PropertyFactory.circleStrokeOpacity(styleValue.getFloat(VALUE_KEY)))
2371
+ }
2372
+ }
2373
+
2374
+ fun setCircleStrokeOpacityTransition(
2375
+ layer: CircleLayer,
2376
+ styleValue: MLRNStyleValue,
2377
+ ) {
2378
+ val transition = styleValue.transition
2379
+ if (transition != null) {
2380
+ layer.circleStrokeOpacityTransition = transition
2381
+ }
2382
+ }
2383
+
2384
+ fun setVisibility(
2385
+ layer: HeatmapLayer,
2386
+ styleValue: MLRNStyleValue,
2387
+ ) {
2388
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)))
2389
+ }
2390
+
2391
+ fun setHeatmapRadius(
2392
+ layer: HeatmapLayer,
2393
+ styleValue: MLRNStyleValue,
2394
+ ) {
2395
+ if (styleValue.isExpression()) {
2396
+ layer.setProperties(PropertyFactory.heatmapRadius(styleValue.getExpression()))
2397
+ } else {
2398
+ layer.setProperties(PropertyFactory.heatmapRadius(styleValue.getFloat(VALUE_KEY)))
2399
+ }
2400
+ }
2401
+
2402
+ fun setHeatmapRadiusTransition(
2403
+ layer: HeatmapLayer,
2404
+ styleValue: MLRNStyleValue,
2405
+ ) {
2406
+ val transition = styleValue.transition
2407
+ if (transition != null) {
2408
+ layer.heatmapRadiusTransition = transition
2409
+ }
2410
+ }
2411
+
2412
+ fun setHeatmapWeight(
2413
+ layer: HeatmapLayer,
2414
+ styleValue: MLRNStyleValue,
2415
+ ) {
2416
+ if (styleValue.isExpression()) {
2417
+ layer.setProperties(PropertyFactory.heatmapWeight(styleValue.getExpression()))
2418
+ } else {
2419
+ layer.setProperties(PropertyFactory.heatmapWeight(styleValue.getFloat(VALUE_KEY)))
2420
+ }
2421
+ }
2422
+
2423
+ fun setHeatmapIntensity(
2424
+ layer: HeatmapLayer,
2425
+ styleValue: MLRNStyleValue,
2426
+ ) {
2427
+ if (styleValue.isExpression()) {
2428
+ layer.setProperties(PropertyFactory.heatmapIntensity(styleValue.getExpression()))
2429
+ } else {
2430
+ layer.setProperties(PropertyFactory.heatmapIntensity(styleValue.getFloat(VALUE_KEY)))
2431
+ }
2432
+ }
2433
+
2434
+ fun setHeatmapIntensityTransition(
2435
+ layer: HeatmapLayer,
2436
+ styleValue: MLRNStyleValue,
2437
+ ) {
2438
+ val transition = styleValue.transition
2439
+ if (transition != null) {
2440
+ layer.heatmapIntensityTransition = transition
2441
+ }
2442
+ }
2443
+
2444
+ fun setHeatmapColor(
2445
+ layer: HeatmapLayer,
2446
+ styleValue: MLRNStyleValue,
2447
+ ) {
2448
+ if (styleValue.isExpression()) {
2449
+ layer.setProperties(PropertyFactory.heatmapColor(styleValue.getExpression()))
2450
+ } else {
2451
+ layer.setProperties(PropertyFactory.heatmapColor(styleValue.getInt(VALUE_KEY)))
2452
+ }
2453
+ }
2454
+
2455
+ fun setHeatmapOpacity(
2456
+ layer: HeatmapLayer,
2457
+ styleValue: MLRNStyleValue,
2458
+ ) {
2459
+ if (styleValue.isExpression()) {
2460
+ layer.setProperties(PropertyFactory.heatmapOpacity(styleValue.getExpression()))
2461
+ } else {
2462
+ layer.setProperties(PropertyFactory.heatmapOpacity(styleValue.getFloat(VALUE_KEY)))
2463
+ }
2464
+ }
2465
+
2466
+ fun setHeatmapOpacityTransition(
2467
+ layer: HeatmapLayer,
2468
+ styleValue: MLRNStyleValue,
2469
+ ) {
2470
+ val transition = styleValue.transition
2471
+ if (transition != null) {
2472
+ layer.heatmapOpacityTransition = transition
2473
+ }
2474
+ }
2475
+
2476
+ fun setVisibility(
2477
+ layer: FillExtrusionLayer,
2478
+ styleValue: MLRNStyleValue,
2479
+ ) {
2480
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)))
2481
+ }
2482
+
2483
+ fun setFillExtrusionOpacity(
2484
+ layer: FillExtrusionLayer,
2485
+ styleValue: MLRNStyleValue,
2486
+ ) {
2487
+ if (styleValue.isExpression()) {
2488
+ layer.setProperties(PropertyFactory.fillExtrusionOpacity(styleValue.getExpression()))
2489
+ } else {
2490
+ layer.setProperties(PropertyFactory.fillExtrusionOpacity(styleValue.getFloat(VALUE_KEY)))
2491
+ }
2492
+ }
2493
+
2494
+ fun setFillExtrusionOpacityTransition(
2495
+ layer: FillExtrusionLayer,
2496
+ styleValue: MLRNStyleValue,
2497
+ ) {
2498
+ val transition = styleValue.transition
2499
+ if (transition != null) {
2500
+ layer.fillExtrusionOpacityTransition = transition
2501
+ }
2502
+ }
2503
+
2504
+ fun setFillExtrusionColor(
2505
+ layer: FillExtrusionLayer,
2506
+ styleValue: MLRNStyleValue,
2507
+ ) {
2508
+ if (styleValue.isExpression()) {
2509
+ layer.setProperties(PropertyFactory.fillExtrusionColor(styleValue.getExpression()))
2510
+ } else {
2511
+ layer.setProperties(PropertyFactory.fillExtrusionColor(styleValue.getInt(VALUE_KEY)))
2512
+ }
2513
+ }
2514
+
2515
+ fun setFillExtrusionColorTransition(
2516
+ layer: FillExtrusionLayer,
2517
+ styleValue: MLRNStyleValue,
2518
+ ) {
2519
+ val transition = styleValue.transition
2520
+ if (transition != null) {
2521
+ layer.fillExtrusionColorTransition = transition
2522
+ }
2523
+ }
2524
+
2525
+ fun setFillExtrusionTranslate(
2526
+ layer: FillExtrusionLayer,
2527
+ styleValue: MLRNStyleValue,
2528
+ ) {
2529
+ if (styleValue.isExpression()) {
2530
+ layer.setProperties(PropertyFactory.fillExtrusionTranslate(styleValue.getExpression()))
2531
+ } else {
2532
+ layer.setProperties(PropertyFactory.fillExtrusionTranslate(styleValue.getFloatArray(VALUE_KEY)))
2533
+ }
2534
+ }
2535
+
2536
+ fun setFillExtrusionTranslateTransition(
2537
+ layer: FillExtrusionLayer,
2538
+ styleValue: MLRNStyleValue,
2539
+ ) {
2540
+ val transition = styleValue.transition
2541
+ if (transition != null) {
2542
+ layer.fillExtrusionTranslateTransition = transition
2543
+ }
2544
+ }
2545
+
2546
+ fun setFillExtrusionTranslateAnchor(
2547
+ layer: FillExtrusionLayer,
2548
+ styleValue: MLRNStyleValue,
2549
+ ) {
2550
+ if (styleValue.isExpression()) {
2551
+ layer.setProperties(PropertyFactory.fillExtrusionTranslateAnchor(styleValue.getExpression()))
2552
+ } else {
2553
+ layer.setProperties(PropertyFactory.fillExtrusionTranslateAnchor(styleValue.getString(VALUE_KEY)))
2554
+ }
2555
+ }
2556
+
2557
+ fun setFillExtrusionPattern(
2558
+ layer: FillExtrusionLayer,
2559
+ styleValue: MLRNStyleValue,
2560
+ ) {
2561
+ if (styleValue.isExpression()) {
2562
+ if (styleValue.isImageStringValue) {
2563
+ layer.setProperties(PropertyFactory.fillExtrusionPattern(styleValue.getImageStringValue()))
2564
+ } else {
2565
+ layer.setProperties(PropertyFactory.fillExtrusionPattern(styleValue.getExpression()))
2566
+ }
2567
+ } else {
2568
+ layer.setProperties(PropertyFactory.fillExtrusionPattern(styleValue.imageURI))
2569
+ }
2570
+ }
2571
+
2572
+ fun setFillExtrusionPatternTransition(
2573
+ layer: FillExtrusionLayer,
2574
+ styleValue: MLRNStyleValue,
2575
+ ) {
2576
+ val transition = styleValue.transition
2577
+ if (transition != null) {
2578
+ layer.fillExtrusionPatternTransition = transition
2579
+ }
2580
+ }
2581
+
2582
+ fun setFillExtrusionHeight(
2583
+ layer: FillExtrusionLayer,
2584
+ styleValue: MLRNStyleValue,
2585
+ ) {
2586
+ if (styleValue.isExpression()) {
2587
+ layer.setProperties(PropertyFactory.fillExtrusionHeight(styleValue.getExpression()))
2588
+ } else {
2589
+ layer.setProperties(PropertyFactory.fillExtrusionHeight(styleValue.getFloat(VALUE_KEY)))
2590
+ }
2591
+ }
2592
+
2593
+ fun setFillExtrusionHeightTransition(
2594
+ layer: FillExtrusionLayer,
2595
+ styleValue: MLRNStyleValue,
2596
+ ) {
2597
+ val transition = styleValue.transition
2598
+ if (transition != null) {
2599
+ layer.fillExtrusionHeightTransition = transition
2600
+ }
2601
+ }
2602
+
2603
+ fun setFillExtrusionBase(
2604
+ layer: FillExtrusionLayer,
2605
+ styleValue: MLRNStyleValue,
2606
+ ) {
2607
+ if (styleValue.isExpression()) {
2608
+ layer.setProperties(PropertyFactory.fillExtrusionBase(styleValue.getExpression()))
2609
+ } else {
2610
+ layer.setProperties(PropertyFactory.fillExtrusionBase(styleValue.getFloat(VALUE_KEY)))
2611
+ }
2612
+ }
2613
+
2614
+ fun setFillExtrusionBaseTransition(
2615
+ layer: FillExtrusionLayer,
2616
+ styleValue: MLRNStyleValue,
2617
+ ) {
2618
+ val transition = styleValue.transition
2619
+ if (transition != null) {
2620
+ layer.fillExtrusionBaseTransition = transition
2621
+ }
2622
+ }
2623
+
2624
+ fun setFillExtrusionVerticalGradient(
2625
+ layer: FillExtrusionLayer,
2626
+ styleValue: MLRNStyleValue,
2627
+ ) {
2628
+ if (styleValue.isExpression()) {
2629
+ layer.setProperties(PropertyFactory.fillExtrusionVerticalGradient(styleValue.getExpression()))
2630
+ } else {
2631
+ layer.setProperties(PropertyFactory.fillExtrusionVerticalGradient(styleValue.getBoolean(VALUE_KEY)))
2632
+ }
2633
+ }
2634
+
2635
+ fun setVisibility(
2636
+ layer: RasterLayer,
2637
+ styleValue: MLRNStyleValue,
2638
+ ) {
2639
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)))
2640
+ }
2641
+
2642
+ fun setRasterOpacity(
2643
+ layer: RasterLayer,
2644
+ styleValue: MLRNStyleValue,
2645
+ ) {
2646
+ if (styleValue.isExpression()) {
2647
+ layer.setProperties(PropertyFactory.rasterOpacity(styleValue.getExpression()))
2648
+ } else {
2649
+ layer.setProperties(PropertyFactory.rasterOpacity(styleValue.getFloat(VALUE_KEY)))
2650
+ }
2651
+ }
2652
+
2653
+ fun setRasterOpacityTransition(
2654
+ layer: RasterLayer,
2655
+ styleValue: MLRNStyleValue,
2656
+ ) {
2657
+ val transition = styleValue.transition
2658
+ if (transition != null) {
2659
+ layer.rasterOpacityTransition = transition
2660
+ }
2661
+ }
2662
+
2663
+ fun setRasterHueRotate(
2664
+ layer: RasterLayer,
2665
+ styleValue: MLRNStyleValue,
2666
+ ) {
2667
+ if (styleValue.isExpression()) {
2668
+ layer.setProperties(PropertyFactory.rasterHueRotate(styleValue.getExpression()))
2669
+ } else {
2670
+ layer.setProperties(PropertyFactory.rasterHueRotate(styleValue.getFloat(VALUE_KEY)))
2671
+ }
2672
+ }
2673
+
2674
+ fun setRasterHueRotateTransition(
2675
+ layer: RasterLayer,
2676
+ styleValue: MLRNStyleValue,
2677
+ ) {
2678
+ val transition = styleValue.transition
2679
+ if (transition != null) {
2680
+ layer.rasterHueRotateTransition = transition
2681
+ }
2682
+ }
2683
+
2684
+ fun setRasterBrightnessMin(
2685
+ layer: RasterLayer,
2686
+ styleValue: MLRNStyleValue,
2687
+ ) {
2688
+ if (styleValue.isExpression()) {
2689
+ layer.setProperties(PropertyFactory.rasterBrightnessMin(styleValue.getExpression()))
2690
+ } else {
2691
+ layer.setProperties(PropertyFactory.rasterBrightnessMin(styleValue.getFloat(VALUE_KEY)))
2692
+ }
2693
+ }
2694
+
2695
+ fun setRasterBrightnessMinTransition(
2696
+ layer: RasterLayer,
2697
+ styleValue: MLRNStyleValue,
2698
+ ) {
2699
+ val transition = styleValue.transition
2700
+ if (transition != null) {
2701
+ layer.rasterBrightnessMinTransition = transition
2702
+ }
2703
+ }
2704
+
2705
+ fun setRasterBrightnessMax(
2706
+ layer: RasterLayer,
2707
+ styleValue: MLRNStyleValue,
2708
+ ) {
2709
+ if (styleValue.isExpression()) {
2710
+ layer.setProperties(PropertyFactory.rasterBrightnessMax(styleValue.getExpression()))
2711
+ } else {
2712
+ layer.setProperties(PropertyFactory.rasterBrightnessMax(styleValue.getFloat(VALUE_KEY)))
2713
+ }
2714
+ }
2715
+
2716
+ fun setRasterBrightnessMaxTransition(
2717
+ layer: RasterLayer,
2718
+ styleValue: MLRNStyleValue,
2719
+ ) {
2720
+ val transition = styleValue.transition
2721
+ if (transition != null) {
2722
+ layer.rasterBrightnessMaxTransition = transition
2723
+ }
2724
+ }
2725
+
2726
+ fun setRasterSaturation(
2727
+ layer: RasterLayer,
2728
+ styleValue: MLRNStyleValue,
2729
+ ) {
2730
+ if (styleValue.isExpression()) {
2731
+ layer.setProperties(PropertyFactory.rasterSaturation(styleValue.getExpression()))
2732
+ } else {
2733
+ layer.setProperties(PropertyFactory.rasterSaturation(styleValue.getFloat(VALUE_KEY)))
2734
+ }
2735
+ }
2736
+
2737
+ fun setRasterSaturationTransition(
2738
+ layer: RasterLayer,
2739
+ styleValue: MLRNStyleValue,
2740
+ ) {
2741
+ val transition = styleValue.transition
2742
+ if (transition != null) {
2743
+ layer.rasterSaturationTransition = transition
2744
+ }
2745
+ }
2746
+
2747
+ fun setRasterContrast(
2748
+ layer: RasterLayer,
2749
+ styleValue: MLRNStyleValue,
2750
+ ) {
2751
+ if (styleValue.isExpression()) {
2752
+ layer.setProperties(PropertyFactory.rasterContrast(styleValue.getExpression()))
2753
+ } else {
2754
+ layer.setProperties(PropertyFactory.rasterContrast(styleValue.getFloat(VALUE_KEY)))
2755
+ }
2756
+ }
2757
+
2758
+ fun setRasterContrastTransition(
2759
+ layer: RasterLayer,
2760
+ styleValue: MLRNStyleValue,
2761
+ ) {
2762
+ val transition = styleValue.transition
2763
+ if (transition != null) {
2764
+ layer.rasterContrastTransition = transition
2765
+ }
2766
+ }
2767
+
2768
+ fun setRasterResampling(
2769
+ layer: RasterLayer,
2770
+ styleValue: MLRNStyleValue,
2771
+ ) {
2772
+ if (styleValue.isExpression()) {
2773
+ layer.setProperties(PropertyFactory.rasterResampling(styleValue.getExpression()))
2774
+ } else {
2775
+ layer.setProperties(PropertyFactory.rasterResampling(styleValue.getString(VALUE_KEY)))
2776
+ }
2777
+ }
2778
+
2779
+ fun setRasterFadeDuration(
2780
+ layer: RasterLayer,
2781
+ styleValue: MLRNStyleValue,
2782
+ ) {
2783
+ if (styleValue.isExpression()) {
2784
+ layer.setProperties(PropertyFactory.rasterFadeDuration(styleValue.getExpression()))
2785
+ } else {
2786
+ layer.setProperties(PropertyFactory.rasterFadeDuration(styleValue.getFloat(VALUE_KEY)))
2787
+ }
2788
+ }
2789
+
2790
+ fun setVisibility(
2791
+ layer: HillshadeLayer,
2792
+ styleValue: MLRNStyleValue,
2793
+ ) {
2794
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)))
2795
+ }
2796
+
2797
+ fun setHillshadeIlluminationDirection(
2798
+ layer: HillshadeLayer,
2799
+ styleValue: MLRNStyleValue,
2800
+ ) {
2801
+ if (styleValue.isExpression()) {
2802
+ layer.setProperties(PropertyFactory.hillshadeIlluminationDirection(styleValue.getExpression()))
2803
+ } else {
2804
+ layer.setProperties(PropertyFactory.hillshadeIlluminationDirection(styleValue.getFloatArray(VALUE_KEY)))
2805
+ }
2806
+ }
2807
+
2808
+ fun setHillshadeIlluminationAltitude(
2809
+ layer: HillshadeLayer,
2810
+ styleValue: MLRNStyleValue,
2811
+ ) {
2812
+ if (styleValue.isExpression()) {
2813
+ layer.setProperties(PropertyFactory.hillshadeIlluminationAltitude(styleValue.getExpression()))
2814
+ } else {
2815
+ layer.setProperties(PropertyFactory.hillshadeIlluminationAltitude(styleValue.getFloatArray(VALUE_KEY)))
2816
+ }
2817
+ }
2818
+
2819
+ fun setHillshadeIlluminationAnchor(
2820
+ layer: HillshadeLayer,
2821
+ styleValue: MLRNStyleValue,
2822
+ ) {
2823
+ if (styleValue.isExpression()) {
2824
+ layer.setProperties(PropertyFactory.hillshadeIlluminationAnchor(styleValue.getExpression()))
2825
+ } else {
2826
+ layer.setProperties(PropertyFactory.hillshadeIlluminationAnchor(styleValue.getString(VALUE_KEY)))
2827
+ }
2828
+ }
2829
+
2830
+ fun setHillshadeExaggeration(
2831
+ layer: HillshadeLayer,
2832
+ styleValue: MLRNStyleValue,
2833
+ ) {
2834
+ if (styleValue.isExpression()) {
2835
+ layer.setProperties(PropertyFactory.hillshadeExaggeration(styleValue.getExpression()))
2836
+ } else {
2837
+ layer.setProperties(PropertyFactory.hillshadeExaggeration(styleValue.getFloat(VALUE_KEY)))
2838
+ }
2839
+ }
2840
+
2841
+ fun setHillshadeExaggerationTransition(
2842
+ layer: HillshadeLayer,
2843
+ styleValue: MLRNStyleValue,
2844
+ ) {
2845
+ val transition = styleValue.transition
2846
+ if (transition != null) {
2847
+ layer.hillshadeExaggerationTransition = transition
2848
+ }
2849
+ }
2850
+
2851
+ fun setHillshadeShadowColor(
2852
+ layer: HillshadeLayer,
2853
+ styleValue: MLRNStyleValue,
2854
+ ) {
2855
+ if (styleValue.isExpression()) {
2856
+ layer.setProperties(PropertyFactory.hillshadeShadowColor(styleValue.getExpression()))
2857
+ } else {
2858
+ layer.setProperties(PropertyFactory.hillshadeShadowColor(styleValue.getStringArray(VALUE_KEY)))
2859
+ }
2860
+ }
2861
+
2862
+ fun setHillshadeShadowColorTransition(
2863
+ layer: HillshadeLayer,
2864
+ styleValue: MLRNStyleValue,
2865
+ ) {
2866
+ val transition = styleValue.transition
2867
+ if (transition != null) {
2868
+ layer.hillshadeShadowColorTransition = transition
2869
+ }
2870
+ }
2871
+
2872
+ fun setHillshadeHighlightColor(
2873
+ layer: HillshadeLayer,
2874
+ styleValue: MLRNStyleValue,
2875
+ ) {
2876
+ if (styleValue.isExpression()) {
2877
+ layer.setProperties(PropertyFactory.hillshadeHighlightColor(styleValue.getExpression()))
2878
+ } else {
2879
+ layer.setProperties(PropertyFactory.hillshadeHighlightColor(styleValue.getStringArray(VALUE_KEY)))
2880
+ }
2881
+ }
2882
+
2883
+ fun setHillshadeHighlightColorTransition(
2884
+ layer: HillshadeLayer,
2885
+ styleValue: MLRNStyleValue,
2886
+ ) {
2887
+ val transition = styleValue.transition
2888
+ if (transition != null) {
2889
+ layer.hillshadeHighlightColorTransition = transition
2890
+ }
2891
+ }
2892
+
2893
+ fun setHillshadeAccentColor(
2894
+ layer: HillshadeLayer,
2895
+ styleValue: MLRNStyleValue,
2896
+ ) {
2897
+ if (styleValue.isExpression()) {
2898
+ layer.setProperties(PropertyFactory.hillshadeAccentColor(styleValue.getExpression()))
2899
+ } else {
2900
+ layer.setProperties(PropertyFactory.hillshadeAccentColor(styleValue.getInt(VALUE_KEY)))
2901
+ }
2902
+ }
2903
+
2904
+ fun setHillshadeAccentColorTransition(
2905
+ layer: HillshadeLayer,
2906
+ styleValue: MLRNStyleValue,
2907
+ ) {
2908
+ val transition = styleValue.transition
2909
+ if (transition != null) {
2910
+ layer.hillshadeAccentColorTransition = transition
2911
+ }
2912
+ }
2913
+
2914
+ fun setHillshadeMethod(
2915
+ layer: HillshadeLayer,
2916
+ styleValue: MLRNStyleValue,
2917
+ ) {
2918
+ if (styleValue.isExpression()) {
2919
+ layer.setProperties(PropertyFactory.hillshadeMethod(styleValue.getExpression()))
2920
+ } else {
2921
+ layer.setProperties(PropertyFactory.hillshadeMethod(styleValue.getString(VALUE_KEY)))
2922
+ }
2923
+ }
2924
+
2925
+ fun setVisibility(
2926
+ layer: BackgroundLayer,
2927
+ styleValue: MLRNStyleValue,
2928
+ ) {
2929
+ layer.setProperties(PropertyFactory.visibility(styleValue.getString(VALUE_KEY)))
2930
+ }
2931
+
2932
+ fun setBackgroundColor(
2933
+ layer: BackgroundLayer,
2934
+ styleValue: MLRNStyleValue,
2935
+ ) {
2936
+ if (styleValue.isExpression()) {
2937
+ layer.setProperties(PropertyFactory.backgroundColor(styleValue.getExpression()))
2938
+ } else {
2939
+ layer.setProperties(PropertyFactory.backgroundColor(styleValue.getInt(VALUE_KEY)))
2940
+ }
2941
+ }
2942
+
2943
+ fun setBackgroundColorTransition(
2944
+ layer: BackgroundLayer,
2945
+ styleValue: MLRNStyleValue,
2946
+ ) {
2947
+ val transition = styleValue.transition
2948
+ if (transition != null) {
2949
+ layer.backgroundColorTransition = transition
2950
+ }
2951
+ }
2952
+
2953
+ fun setBackgroundPattern(
2954
+ layer: BackgroundLayer,
2955
+ styleValue: MLRNStyleValue,
2956
+ ) {
2957
+ if (styleValue.isExpression()) {
2958
+ if (styleValue.isImageStringValue) {
2959
+ layer.setProperties(PropertyFactory.backgroundPattern(styleValue.getImageStringValue()))
2960
+ } else {
2961
+ layer.setProperties(PropertyFactory.backgroundPattern(styleValue.getExpression()))
2962
+ }
2963
+ } else {
2964
+ layer.setProperties(PropertyFactory.backgroundPattern(styleValue.imageURI))
2965
+ }
2966
+ }
2967
+
2968
+ fun setBackgroundPatternTransition(
2969
+ layer: BackgroundLayer,
2970
+ styleValue: MLRNStyleValue,
2971
+ ) {
2972
+ val transition = styleValue.transition
2973
+ if (transition != null) {
2974
+ layer.backgroundPatternTransition = transition
2975
+ }
2976
+ }
2977
+
2978
+ fun setBackgroundOpacity(
2979
+ layer: BackgroundLayer,
2980
+ styleValue: MLRNStyleValue,
2981
+ ) {
2982
+ if (styleValue.isExpression()) {
2983
+ layer.setProperties(PropertyFactory.backgroundOpacity(styleValue.getExpression()))
2984
+ } else {
2985
+ layer.setProperties(PropertyFactory.backgroundOpacity(styleValue.getFloat(VALUE_KEY)))
2986
+ }
2987
+ }
2988
+
2989
+ fun setBackgroundOpacityTransition(
2990
+ layer: BackgroundLayer,
2991
+ styleValue: MLRNStyleValue,
2992
+ ) {
2993
+ val transition = styleValue.transition
2994
+ if (transition != null) {
2995
+ layer.backgroundOpacityTransition = transition
2996
+ }
2997
+ }
2998
+
2999
+ fun setAnchor(
3000
+ layer: Light,
3001
+ styleValue: MLRNStyleValue,
3002
+ ) {
3003
+ layer.anchor = styleValue.getString(VALUE_KEY)
3004
+ }
3005
+
3006
+ fun setPosition(
3007
+ layer: Light,
3008
+ styleValue: MLRNStyleValue,
3009
+ ) {
3010
+ val values = styleValue.getFloatArray(VALUE_KEY)
3011
+ layer.position = Position.fromPosition(values[0]!!, values[1]!!, values[2]!!)
3012
+ }
3013
+
3014
+ fun setPositionTransition(
3015
+ layer: Light,
3016
+ styleValue: MLRNStyleValue,
3017
+ ) {
3018
+ val transition = styleValue.transition
3019
+ if (transition != null) {
3020
+ layer.positionTransition = transition
3021
+ }
3022
+ }
3023
+
3024
+ fun setColor(
3025
+ layer: Light,
3026
+ styleValue: MLRNStyleValue,
3027
+ ) {
3028
+ layer.setColor(styleValue.getInt(VALUE_KEY))
3029
+ }
3030
+
3031
+ fun setColorTransition(
3032
+ layer: Light,
3033
+ styleValue: MLRNStyleValue,
3034
+ ) {
3035
+ val transition = styleValue.transition
3036
+ if (transition != null) {
3037
+ layer.colorTransition = transition
3038
+ }
3039
+ }
3040
+
3041
+ fun setIntensity(
3042
+ layer: Light,
3043
+ styleValue: MLRNStyleValue,
3044
+ ) {
3045
+ layer.intensity = styleValue.getFloat(VALUE_KEY)
3046
+ }
3047
+
3048
+ fun setIntensityTransition(
3049
+ layer: Light,
3050
+ styleValue: MLRNStyleValue,
3051
+ ) {
3052
+ val transition = styleValue.transition
3053
+ if (transition != null) {
3054
+ layer.intensityTransition = transition
3055
+ }
3056
+ }
3057
+ }