@aguacerowx/react-native 0.0.4 → 0.0.6

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 (383) hide show
  1. package/README.md +51 -6
  2. package/android/build/.transforms/78b892a9dae44f36e51ff0649e9c6e36/transformed/classes/classes_dex/classes.dex +0 -0
  3. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.dex +0 -0
  4. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer.dex +0 -0
  5. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayerView.dex +0 -0
  6. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderManager.dex +0 -0
  7. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/WeatherFrameProcessorModule.dex +0 -0
  8. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  9. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  10. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -1
  11. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  12. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  13. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  14. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  15. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  16. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +16 -2
  17. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  18. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  19. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  20. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  21. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  22. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  23. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  24. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  25. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  26. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  27. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +9 -51
  28. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +8 -2
  29. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +15 -14
  30. package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +15 -0
  31. package/android/src/main/res/raw/fragment_shader.glsl +13 -2
  32. package/ios/GridRenderLayer.swift +62 -0
  33. package/ios/GridRenderLayerManager.mm +140 -0
  34. package/ios/aguacerowx-react-native.podspec +29 -0
  35. package/lib/commonjs/README.md +61 -0
  36. package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
  37. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
  38. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  39. package/lib/commonjs/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  40. package/lib/commonjs/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  41. package/lib/commonjs/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  42. package/lib/commonjs/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  43. package/lib/commonjs/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
  44. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  45. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  46. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  47. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  48. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
  49. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  50. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  51. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  52. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  53. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  54. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  55. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  56. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  57. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  58. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  59. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  60. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  61. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  62. package/lib/commonjs/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
  63. package/lib/commonjs/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
  64. package/lib/commonjs/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
  65. package/lib/commonjs/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  66. package/lib/commonjs/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  67. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
  68. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
  69. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +101 -0
  70. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
  71. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  72. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  73. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  74. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  75. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  76. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  77. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  78. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  79. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  80. package/lib/commonjs/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  81. package/lib/commonjs/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
  82. package/lib/commonjs/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
  83. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  84. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  85. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  86. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  87. package/lib/commonjs/android/build.gradle +85 -0
  88. package/lib/commonjs/android/src/main/AndroidManifest.xml +7 -0
  89. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +34 -0
  90. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +597 -0
  91. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +293 -0
  92. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +112 -0
  93. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +64 -0
  94. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +107 -0
  95. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +166 -0
  96. package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +13 -0
  97. package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +13 -0
  98. package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +98 -0
  99. package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +20 -0
  100. package/lib/commonjs/babel.config.js +7 -0
  101. package/lib/commonjs/babel.config.js.map +1 -0
  102. package/lib/commonjs/index.js +20 -0
  103. package/lib/commonjs/index.js.map +1 -0
  104. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
  105. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
  106. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
  107. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
  108. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
  109. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
  110. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
  111. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
  112. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
  113. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
  114. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
  115. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
  116. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
  117. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
  118. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
  119. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
  120. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
  121. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
  122. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
  123. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
  124. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
  125. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +972 -0
  126. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
  127. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +381 -0
  128. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
  129. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1229 -0
  130. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
  131. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4023 -0
  132. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
  133. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +38 -0
  134. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
  135. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +30 -0
  136. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
  137. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +27 -0
  138. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
  139. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +41 -0
  140. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
  141. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +301 -0
  142. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
  143. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +126 -0
  144. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
  145. package/lib/commonjs/package.json +73 -0
  146. package/lib/commonjs/react-native-builder-bob.config.js +13 -0
  147. package/lib/commonjs/react-native-builder-bob.config.js.map +1 -0
  148. package/lib/commonjs/src/AguaceroContext.js +11 -0
  149. package/lib/commonjs/src/AguaceroContext.js.map +1 -0
  150. package/lib/commonjs/src/GridRenderLayer.js +159 -0
  151. package/lib/commonjs/src/GridRenderLayer.js.map +1 -0
  152. package/lib/commonjs/src/GridRenderLayerNativeComponent.js +11 -0
  153. package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -0
  154. package/lib/commonjs/src/MapManager.js +164 -0
  155. package/lib/commonjs/src/MapManager.js.map +1 -0
  156. package/lib/commonjs/src/MapRegistry.js +36 -0
  157. package/lib/commonjs/src/MapRegistry.js.map +1 -0
  158. package/lib/commonjs/src/StyleApplicator.js +262 -0
  159. package/lib/commonjs/src/StyleApplicator.js.map +1 -0
  160. package/lib/commonjs/src/WeatherLayerManager.js +731 -0
  161. package/lib/commonjs/src/WeatherLayerManager.js.map +1 -0
  162. package/lib/commonjs/tsconfig.json +24 -0
  163. package/lib/module/README.md +61 -0
  164. package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
  165. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
  166. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  167. package/lib/module/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  168. package/lib/module/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  169. package/lib/module/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  170. package/lib/module/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  171. package/lib/module/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
  172. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  173. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  174. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  175. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  176. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
  177. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  178. package/lib/module/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  179. package/lib/module/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  180. package/lib/module/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  181. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  182. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  183. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  184. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  185. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  186. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  187. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  188. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  189. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  190. package/lib/module/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
  191. package/lib/module/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
  192. package/lib/module/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
  193. package/lib/module/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  194. package/lib/module/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  195. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
  196. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
  197. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +101 -0
  198. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
  199. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  200. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  201. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  202. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  203. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  204. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  205. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  206. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  207. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  208. package/lib/module/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  209. package/lib/module/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
  210. package/lib/module/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
  211. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  212. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  213. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  214. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  215. package/lib/module/android/build.gradle +85 -0
  216. package/lib/module/android/src/main/AndroidManifest.xml +7 -0
  217. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +34 -0
  218. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +597 -0
  219. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +293 -0
  220. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +112 -0
  221. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +64 -0
  222. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +107 -0
  223. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +166 -0
  224. package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +13 -0
  225. package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +13 -0
  226. package/lib/module/android/src/main/res/raw/fragment_shader.glsl +98 -0
  227. package/lib/module/android/src/main/res/raw/vertex_shader.glsl +20 -0
  228. package/lib/module/babel.config.js +5 -0
  229. package/lib/module/babel.config.js.map +1 -0
  230. package/lib/module/index.js +3 -0
  231. package/lib/module/index.js.map +1 -0
  232. package/lib/module/lib/commonjs/README.md +61 -0
  233. package/lib/module/lib/commonjs/android/build.gradle +85 -0
  234. package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +7 -0
  235. package/lib/module/lib/commonjs/babel.config.js +7 -0
  236. package/lib/module/lib/commonjs/babel.config.js.map +1 -0
  237. package/lib/module/lib/commonjs/index.js +20 -0
  238. package/lib/module/lib/commonjs/index.js.map +1 -0
  239. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
  240. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
  241. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
  242. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
  243. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
  244. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
  245. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
  246. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
  247. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
  248. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
  249. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
  250. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
  251. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
  252. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
  253. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
  254. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
  255. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
  256. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
  257. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
  258. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
  259. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
  260. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +976 -0
  261. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
  262. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +381 -0
  263. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
  264. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1229 -0
  265. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
  266. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4023 -0
  267. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
  268. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +38 -0
  269. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
  270. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +30 -0
  271. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
  272. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +27 -0
  273. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
  274. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +41 -0
  275. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
  276. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +301 -0
  277. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
  278. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +126 -0
  279. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
  280. package/lib/module/lib/commonjs/package.json +73 -0
  281. package/lib/module/lib/commonjs/react-native-builder-bob.config.js +13 -0
  282. package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -0
  283. package/lib/module/lib/commonjs/src/AguaceroContext.js +15 -0
  284. package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -0
  285. package/lib/module/lib/commonjs/src/GridRenderLayer.js +182 -0
  286. package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -0
  287. package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js +15 -0
  288. package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -0
  289. package/lib/module/lib/commonjs/src/MapManager.js +187 -0
  290. package/lib/module/lib/commonjs/src/MapManager.js.map +1 -0
  291. package/lib/module/lib/commonjs/src/MapRegistry.js +36 -0
  292. package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -0
  293. package/lib/module/lib/commonjs/src/StyleApplicator.js +286 -0
  294. package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -0
  295. package/lib/module/lib/commonjs/src/WeatherLayerManager.js +750 -0
  296. package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -0
  297. package/lib/module/lib/commonjs/tsconfig.json +24 -0
  298. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
  299. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
  300. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
  301. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
  302. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
  303. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
  304. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
  305. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
  306. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
  307. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
  308. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
  309. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
  310. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
  311. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
  312. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
  313. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
  314. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
  315. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
  316. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
  317. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
  318. package/lib/module/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
  319. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +964 -0
  320. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
  321. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +375 -0
  322. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
  323. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1223 -0
  324. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
  325. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4017 -0
  326. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
  327. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js +31 -0
  328. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
  329. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +29 -0
  330. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
  331. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +21 -0
  332. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
  333. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js +12 -0
  334. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
  335. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +295 -0
  336. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
  337. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +119 -0
  338. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
  339. package/lib/module/package.json +73 -0
  340. package/lib/module/react-native-builder-bob.config.js +11 -0
  341. package/lib/module/react-native-builder-bob.config.js.map +1 -0
  342. package/lib/module/src/AguaceroContext.js +5 -0
  343. package/lib/module/src/AguaceroContext.js.map +1 -0
  344. package/lib/module/src/GridRenderLayer.js +152 -0
  345. package/lib/module/src/GridRenderLayer.js.map +1 -0
  346. package/lib/module/src/GridRenderLayerNativeComponent.js +5 -0
  347. package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -0
  348. package/lib/module/src/MapManager.js +155 -0
  349. package/lib/module/src/MapManager.js.map +1 -0
  350. package/lib/module/src/MapRegistry.js +30 -0
  351. package/lib/module/src/MapRegistry.js.map +1 -0
  352. package/lib/module/src/StyleApplicator.js +255 -0
  353. package/lib/module/src/StyleApplicator.js.map +1 -0
  354. package/lib/module/src/WeatherLayerManager.js +724 -0
  355. package/lib/module/src/WeatherLayerManager.js.map +1 -0
  356. package/lib/module/tsconfig.json +24 -0
  357. package/lib/typescript/babel.config.d.ts +3 -0
  358. package/lib/typescript/babel.config.d.ts.map +1 -0
  359. package/lib/typescript/index.d.ts +3 -0
  360. package/lib/typescript/index.d.ts.map +1 -0
  361. package/lib/typescript/react-native-builder-bob.config.d.ts +6 -0
  362. package/lib/typescript/react-native-builder-bob.config.d.ts.map +1 -0
  363. package/lib/typescript/src/AguaceroContext.d.ts +2 -0
  364. package/lib/typescript/src/AguaceroContext.d.ts.map +1 -0
  365. package/lib/typescript/src/GridRenderLayer.d.ts +2 -0
  366. package/lib/typescript/src/GridRenderLayer.d.ts.map +1 -0
  367. package/lib/typescript/src/GridRenderLayerNativeComponent.d.ts +12 -0
  368. package/lib/typescript/src/GridRenderLayerNativeComponent.d.ts.map +1 -0
  369. package/lib/typescript/src/MapManager.d.ts +8 -0
  370. package/lib/typescript/src/MapManager.d.ts.map +1 -0
  371. package/lib/typescript/src/MapRegistry.d.ts +12 -0
  372. package/lib/typescript/src/MapRegistry.d.ts.map +1 -0
  373. package/lib/typescript/src/StyleApplicator.d.ts +4 -0
  374. package/lib/typescript/src/StyleApplicator.d.ts.map +1 -0
  375. package/lib/typescript/src/WeatherLayerManager.d.ts +2 -0
  376. package/lib/typescript/src/WeatherLayerManager.d.ts.map +1 -0
  377. package/package.json +53 -15
  378. package/src/AguaceroContext.js +0 -4
  379. package/src/GridRenderLayer.js +0 -121
  380. package/src/MapManager.js +0 -158
  381. package/src/MapRegistry.js +0 -35
  382. package/src/StyleApplicator.js +0 -241
  383. package/src/WeatherLayerManager.js +0 -754
@@ -0,0 +1,152 @@
1
+ // packages/react-native/src/GridRenderLayer.js
2
+
3
+ import React, { useRef, useImperativeHandle, forwardRef, useEffect } from 'react';
4
+ import { UIManager, findNodeHandle, requireNativeComponent, StyleSheet, Platform } from 'react-native';
5
+ import GridRenderView from './GridRenderLayerNativeComponent';
6
+
7
+ // This must match the module name exported in the native code
8
+ const NATIVE_COMPONENT_NAME = 'GridRenderLayer';
9
+ console.log('🔵 [GridRenderLayer.js] Module loading...');
10
+ console.log('🔵 [GridRenderLayer.js] Platform:', Platform.OS);
11
+ console.log('🔵 [GridRenderLayer.js] Attempting to require native component:', NATIVE_COMPONENT_NAME);
12
+
13
+ // Check what's available in UIManager
14
+ console.log('🔵 [GridRenderLayer.js] Checking UIManager for component config...');
15
+ try {
16
+ const config = UIManager.getViewManagerConfig(NATIVE_COMPONENT_NAME);
17
+ console.log('✅ [GridRenderLayer.js] ViewManager config found:', JSON.stringify(config, null, 2));
18
+ } catch (error) {
19
+ console.error('🔴 [GridRenderLayer.js] Could not get ViewManager config:', error);
20
+ }
21
+
22
+ // List all available native components
23
+ console.log('🔵 [GridRenderLayer.js] Available native UI components:');
24
+ if (UIManager.getViewManagerConfig) {
25
+ const allComponents = Object.keys(UIManager).filter(key => !key.startsWith('_') && typeof UIManager[key] !== 'function');
26
+ console.log('📋 Available components:', allComponents.slice(0, 20)); // Show first 20
27
+ }
28
+ export const GridRenderLayer = /*#__PURE__*/forwardRef((props, ref) => {
29
+ const nativeRef = useRef(null);
30
+ useEffect(() => {
31
+ console.log('🟢 [GridRenderLayer] Component mounted');
32
+ console.log('🟢 [GridRenderLayer] Props:', JSON.stringify(props, null, 2));
33
+ console.log('🟢 [GridRenderLayer] nativeRef.current:', nativeRef.current);
34
+ if (nativeRef.current) {
35
+ const handle = findNodeHandle(nativeRef.current);
36
+ console.log('🟢 [GridRenderLayer] Native node handle:', handle);
37
+ }
38
+ return () => {
39
+ console.log('🔴 [GridRenderLayer] Component unmounting');
40
+ };
41
+ }, []);
42
+ const getCommandId = commandName => {
43
+ console.log(`🔵 [GridRenderLayer] Getting command ID for: ${commandName}`);
44
+ try {
45
+ const config = UIManager.getViewManagerConfig(NATIVE_COMPONENT_NAME);
46
+ console.log(`🔵 [GridRenderLayer] Config for ${NATIVE_COMPONENT_NAME}:`, JSON.stringify(config, null, 2));
47
+ const commandId = config?.Commands?.[commandName];
48
+ console.log(`🔵 [GridRenderLayer] Command "${commandName}" ID:`, commandId);
49
+ return commandId;
50
+ } catch (error) {
51
+ console.error(`🔴 [GridRenderLayer] Error getting command ${commandName}:`, error);
52
+ return null;
53
+ }
54
+ };
55
+ useImperativeHandle(ref, () => ({
56
+ updateGeometry: (corners, gridDef) => {
57
+ console.log('🟢 [GridRenderLayer] updateGeometry called');
58
+ console.log('🟢 [GridRenderLayer] corners:', JSON.stringify(corners));
59
+ console.log('🟢 [GridRenderLayer] gridDef:', JSON.stringify(gridDef));
60
+ if (nativeRef.current) {
61
+ const commandId = getCommandId('updateGeometry');
62
+ if (commandId != null) {
63
+ const handle = findNodeHandle(nativeRef.current);
64
+ console.log('🟢 [GridRenderLayer] Dispatching updateGeometry to handle:', handle);
65
+ UIManager.dispatchViewManagerCommand(handle, commandId, [corners, gridDef]);
66
+ console.log('✅ [GridRenderLayer] updateGeometry dispatched successfully');
67
+ } else {
68
+ console.warn('⚠️ [GridRenderLayer] updateGeometry command ID not found');
69
+ }
70
+ } else {
71
+ console.warn('⚠️ [GridRenderLayer] nativeRef not available for updateGeometry');
72
+ }
73
+ },
74
+ updateDataTextureFromFile: (filePath, nx, ny, scale, offset, missing, scaleType) => {
75
+ if (nativeRef.current) {
76
+ const commandId = getCommandId('updateDataTexture');
77
+ if (commandId != null) {
78
+ UIManager.dispatchViewManagerCommand(findNodeHandle(nativeRef.current), commandId, [filePath, Number(nx), Number(ny), Number(scale), Number(offset), Number(missing), scaleType || "linear"]);
79
+ }
80
+ } else {
81
+ console.warn('⚠️ [GridRenderLayer] nativeRef not available for updateDataTextureFromFile');
82
+ }
83
+ },
84
+ updateDataTexture: (base64Data, nx, ny, scale, offset, missing, scaleType) => {
85
+ if (nativeRef.current) {
86
+ const commandId = getCommandId('updateDataTexture');
87
+ if (commandId != null) {
88
+ UIManager.dispatchViewManagerCommand(findNodeHandle(nativeRef.current), commandId, [base64Data, Number(nx), Number(ny), Number(scale), Number(offset), Number(missing), scaleType || "linear"]);
89
+ }
90
+ } else {
91
+ console.warn('⚠️ [GridRenderLayer] nativeRef not available for updateDataTexture');
92
+ }
93
+ },
94
+ updateColormapTexture: colormapArray => {
95
+ console.log('🟢 [GridRenderLayer] updateColormapTexture called');
96
+ if (nativeRef.current) {
97
+ const commandId = getCommandId('updateColormapTexture');
98
+ if (commandId != null) {
99
+ UIManager.dispatchViewManagerCommand(findNodeHandle(nativeRef.current), commandId, [colormapArray]);
100
+ console.log('✅ [GridRenderLayer] updateColormapTexture dispatched');
101
+ }
102
+ } else {
103
+ console.warn('⚠️ [GridRenderLayer] nativeRef not available for updateColormapTexture');
104
+ }
105
+ },
106
+ updateDataParameters: (scale, offset, missing) => {
107
+ console.log('🟢 [GridRenderLayer] updateDataParameters called');
108
+ if (nativeRef.current) {
109
+ const commandId = getCommandId('updateDataParameters');
110
+ if (commandId != null) {
111
+ UIManager.dispatchViewManagerCommand(findNodeHandle(nativeRef.current), commandId, [Number(scale), Number(offset), Number(missing)]);
112
+ console.log('✅ [GridRenderLayer] updateDataParameters dispatched');
113
+ }
114
+ } else {
115
+ console.warn('⚠️ [GridRenderLayer] nativeRef not available for updateDataParameters');
116
+ }
117
+ },
118
+ setSmoothing: enabled => {
119
+ console.log('🟢 [GridRenderLayer] setSmoothing called:', enabled);
120
+ if (nativeRef.current) {
121
+ nativeRef.current.setNativeProps({
122
+ smoothing: enabled
123
+ });
124
+ console.log('✅ [GridRenderLayer] setSmoothing applied');
125
+ } else {
126
+ console.warn('⚠️ [GridRenderLayer] nativeRef not available for setSmoothing');
127
+ }
128
+ }
129
+ }));
130
+ console.log('🔵 [GridRenderLayer] Rendering GridRenderView with props:', {
131
+ opacity: props.opacity,
132
+ dataRange: props.dataRange,
133
+ belowID: props.belowID,
134
+ smoothing: true
135
+ });
136
+ return /*#__PURE__*/React.createElement(GridRenderView, {
137
+ ref: nativeRef,
138
+ opacity: props.opacity,
139
+ dataRange: props.dataRange,
140
+ belowID: props.belowID,
141
+ smoothing: true,
142
+ style: styles.overlay,
143
+ pointerEvents: "none"
144
+ });
145
+ });
146
+ const styles = StyleSheet.create({
147
+ overlay: {
148
+ ...StyleSheet.absoluteFillObject
149
+ }
150
+ });
151
+ console.log('✅ [GridRenderLayer.js] Module loaded successfully');
152
+ //# sourceMappingURL=GridRenderLayer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useRef","useImperativeHandle","forwardRef","useEffect","UIManager","findNodeHandle","requireNativeComponent","StyleSheet","Platform","GridRenderView","NATIVE_COMPONENT_NAME","console","log","OS","config","getViewManagerConfig","JSON","stringify","error","allComponents","Object","keys","filter","key","startsWith","slice","GridRenderLayer","props","ref","nativeRef","current","handle","getCommandId","commandName","commandId","Commands","updateGeometry","corners","gridDef","dispatchViewManagerCommand","warn","updateDataTextureFromFile","filePath","nx","ny","scale","offset","missing","scaleType","Number","updateDataTexture","base64Data","updateColormapTexture","colormapArray","updateDataParameters","setSmoothing","enabled","setNativeProps","smoothing","opacity","dataRange","belowID","createElement","style","styles","overlay","pointerEvents","create","absoluteFillObject"],"sourceRoot":"..\\..\\..","sources":["src/GridRenderLayer.js"],"mappings":"AAAA;;AAEA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,mBAAmB,EAAEC,UAAU,EAAEC,SAAS,QAAQ,OAAO;AACjF,SAASC,SAAS,EAAEC,cAAc,EAAEC,sBAAsB,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AACtG,OAAOC,cAAc,MAAM,kCAAkC;;AAE7D;AACA,MAAMC,qBAAqB,GAAG,iBAAiB;AAE/CC,OAAO,CAACC,GAAG,CAAC,2CAA2C,CAAC;AACxDD,OAAO,CAACC,GAAG,CAAC,mCAAmC,EAAEJ,QAAQ,CAACK,EAAE,CAAC;AAC7DF,OAAO,CAACC,GAAG,CAAC,iEAA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,CAAC;AAEF,MAAMF,MAAM,GAAGzD,UAAU,CAAC4D,MAAM,CAAC;EAC7BF,OAAO,EAAE;IACL,GAAG1D,UAAU,CAAC6D;EAClB;AACJ,CAAC,CAAC;AAEFzD,OAAO,CAACC,GAAG,CAAC,mDAAmD,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ // src/GridRenderLayerNativeComponent.ts
2
+
3
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
4
+ export default codegenNativeComponent('GridRenderLayer');
5
+ //# sourceMappingURL=GridRenderLayerNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["codegenNativeComponent"],"sourceRoot":"..\\..\\..","sources":["src/GridRenderLayerNativeComponent.ts"],"mappings":"AAAA;;AAIA,OAAOA,sBAAsB,MAAM,yDAAyD;AAS5F,eAAeA,sBAAsB,CACnC,iBACF,CAAC","ignoreList":[]}
@@ -0,0 +1,155 @@
1
+ // packages/react-native/src/MapManager.js
2
+
3
+ import React, { useMemo, useEffect, useState, useRef } from 'react';
4
+ import { View, StyleSheet, Text } from 'react-native';
5
+ import Mapbox from '@rnmapbox/maps';
6
+ import { THEME_CONFIGS } from '@aguacerowx/javascript-sdk';
7
+ import { StyleApplicator } from './StyleApplicator';
8
+ import { AguaceroContext } from './AguaceroContext';
9
+ import { mapRegistry } from './MapRegistry';
10
+ const TERRAIN_LAYER_ID = 'AML_-_terrain';
11
+
12
+ // --- UTILITIES ---
13
+ function isObject(item) {
14
+ return item && typeof item === 'object' && !Array.isArray(item);
15
+ }
16
+ function deepMerge(target, source) {
17
+ const output = {
18
+ ...target
19
+ };
20
+ if (isObject(target) && isObject(source)) {
21
+ Object.keys(source).forEach(key => {
22
+ if (isObject(source[key])) {
23
+ if (!(key in target)) {
24
+ Object.assign(output, {
25
+ [key]: source[key]
26
+ });
27
+ } else {
28
+ output[key] = deepMerge(target[key], source[key]);
29
+ }
30
+ } else {
31
+ Object.assign(output, {
32
+ [key]: source[key]
33
+ });
34
+ }
35
+ });
36
+ }
37
+ return output;
38
+ }
39
+ export const MapManager = ({
40
+ mapboxToken,
41
+ customStyles,
42
+ theme = 'light',
43
+ mapOptions = {},
44
+ children
45
+ }) => {
46
+ const mapRef = useRef(null);
47
+ const [mapStyle, setMapStyle] = useState(null);
48
+
49
+ // Register map with the global registry when it's ready
50
+ useEffect(() => {
51
+ if (mapRef.current) {
52
+ mapRegistry.setMap(mapRef.current);
53
+ console.log('📍 [MapManager] Registered map with registry');
54
+ }
55
+ }, []);
56
+ const contextValue = useMemo(() => ({
57
+ getMap: () => mapRef.current,
58
+ getCenter: () => {
59
+ return mapRef.current?._currentCenter || [-95.7129, 37.0902];
60
+ }
61
+ }), []);
62
+ useEffect(() => {
63
+ let lightTheme = JSON.parse(JSON.stringify(THEME_CONFIGS.light));
64
+ let darkTheme = JSON.parse(JSON.stringify(THEME_CONFIGS.dark));
65
+ if (customStyles) {
66
+ if (customStyles.light) {
67
+ lightTheme = deepMerge(lightTheme, customStyles.light);
68
+ }
69
+ if (customStyles.dark) {
70
+ darkTheme = deepMerge(darkTheme, customStyles.dark);
71
+ }
72
+ }
73
+ setMapStyle(theme === 'dark' ? darkTheme : lightTheme);
74
+ }, [customStyles, theme]);
75
+ useEffect(() => {
76
+ if (mapboxToken) {
77
+ Mapbox.setAccessToken(mapboxToken);
78
+ } else {
79
+ console.error("MapManager: A 'mapboxToken' prop is required but was not provided.");
80
+ }
81
+ }, [mapboxToken]);
82
+ if (!mapboxToken) {
83
+ return /*#__PURE__*/React.createElement(View, {
84
+ style: [styles.container, styles.centerContent]
85
+ }, /*#__PURE__*/React.createElement(Text, {
86
+ style: styles.errorText
87
+ }, "Mapbox Token Missing"), /*#__PURE__*/React.createElement(Text, {
88
+ style: styles.errorSubText
89
+ }, "Please provide the 'mapboxToken' prop."));
90
+ }
91
+ const handleCameraChange = event => {
92
+ if (event?.properties?.center) {
93
+ const center = event.properties.center;
94
+
95
+ // Store the current center in the ref for immediate access
96
+ if (mapRef.current) {
97
+ mapRef.current._currentCenter = center;
98
+ }
99
+
100
+ // Notify all listeners through the registry
101
+ console.log('📍 [MapManager] Camera changed, notifying registry:', center);
102
+ mapRegistry.notifyCameraChange(center);
103
+ }
104
+ };
105
+ const BASE_STYLE_URL = 'mapbox://styles/aguacerowx/cmfvox8mq004u01qm5nlg7qkt';
106
+ return /*#__PURE__*/React.createElement(View, {
107
+ style: styles.container
108
+ }, /*#__PURE__*/React.createElement(AguaceroContext.Provider, {
109
+ value: contextValue
110
+ }, /*#__PURE__*/React.createElement(Mapbox.MapView, {
111
+ ref: mapRef,
112
+ style: styles.map,
113
+ styleURL: BASE_STYLE_URL,
114
+ scaleBarEnabled: false,
115
+ onCameraChanged: handleCameraChange
116
+ }, /*#__PURE__*/React.createElement(Mapbox.Camera, {
117
+ defaultSettings: {
118
+ centerCoordinate: mapOptions.center || [-95.7129, 37.0902],
119
+ zoomLevel: mapOptions.zoom || 4,
120
+ pitch: mapOptions.pitch || 0,
121
+ bearing: mapOptions.bearing || 0,
122
+ minZoomLevel: mapOptions.minZoom || 2,
123
+ maxZoomLevel: mapOptions.maxZoom || 12
124
+ }
125
+ }), mapStyle && /*#__PURE__*/React.createElement(StyleApplicator, {
126
+ styles: mapStyle
127
+ }), /*#__PURE__*/React.createElement(Mapbox.VectorSource, {
128
+ id: "mapbox-dem",
129
+ url: "mapbox://mapbox.mapbox-terrain-dem-v1"
130
+ }), children)));
131
+ };
132
+ const styles = StyleSheet.create({
133
+ container: {
134
+ flex: 1,
135
+ backgroundColor: '#1a1a2e'
136
+ },
137
+ centerContent: {
138
+ justifyContent: 'center',
139
+ alignItems: 'center'
140
+ },
141
+ map: {
142
+ flex: 1
143
+ },
144
+ errorText: {
145
+ color: '#FF6B6B',
146
+ fontSize: 22,
147
+ fontWeight: 'bold'
148
+ },
149
+ errorSubText: {
150
+ color: 'white',
151
+ fontSize: 16,
152
+ marginTop: 8
153
+ }
154
+ });
155
+ //# sourceMappingURL=MapManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","useEffect","useState","useRef","View","StyleSheet","Text","Mapbox","THEME_CONFIGS","StyleApplicator","AguaceroContext","mapRegistry","TERRAIN_LAYER_ID","isObject","item","Array","isArray","deepMerge","target","source","output","Object","keys","forEach","key","assign","MapManager","mapboxToken","customStyles","theme","mapOptions","children","mapRef","mapStyle","setMapStyle","current","setMap","console","log","contextValue","getMap","getCenter","_currentCenter","lightTheme","JSON","parse","stringify","light","darkTheme","dark","setAccessToken","error","createElement","style","styles","container","centerContent","errorText","errorSubText","handleCameraChange","event","properties","center","notifyCameraChange","BASE_STYLE_URL","Provider","value","MapView","ref","map","styleURL","scaleBarEnabled","onCameraChanged","Camera","defaultSettings","centerCoordinate","zoomLevel","zoom","pitch","bearing","minZoomLevel","minZoom","maxZoomLevel","maxZoom","VectorSource","id","url","create","flex","backgroundColor","justifyContent","alignItems","color","fontSize","fontWeight","marginTop"],"sourceRoot":"..\\..\\..","sources":["src/MapManager.js"],"mappings":"AAAA;;AAEA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,OAAO;AACnE,SAASC,IAAI,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACrD,OAAOC,MAAM,MAAM,gBAAgB;AACnC,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,WAAW,QAAQ,eAAe;AAE3C,MAAMC,gBAAgB,GAAG,eAAe;;AAExC;AACA,SAASC,QAAQA,CAACC,IAAI,EAAE;EACpB,OAAQA,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC;AACpE;AAEA,SAASG,SAASA,CAACC,MAAM,EAAEC,MAAM,EAAE;EAC/B,MAAMC,MAAM,GAAG;IAAE,GAAGF;EAAO,CA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C,KAAK,EAAEhD,UAAU,CAACgD,KAAK,IAAI,CAAC;MAC5BC,OAAO,EAAEjD,UAAU,CAACiD,OAAO,IAAI,CAAC;MAChCC,YAAY,EAAElD,UAAU,CAACmD,OAAO,IAAI,CAAC;MACrCC,YAAY,EAAEpD,UAAU,CAACqD,OAAO,IAAI;IACxC;EAAE,CACL,CAAC,EAEDlD,QAAQ,iBAAIlC,KAAA,CAAAqD,aAAA,CAAC3C,eAAe;IAAC6C,MAAM,EAAErB;EAAS,CAAE,CAAC,eAElDlC,KAAA,CAAAqD,aAAA,CAAC7C,MAAM,CAAC6E,YAAY;IAACC,EAAE,EAAC,YAAY;IAACC,GAAG,EAAC;EAAuC,CAAC,CAAC,EACjFvD,QACW,CACM,CACxB,CAAC;AAEf,CAAC;AAED,MAAMuB,MAAM,GAAGjD,UAAU,CAACkF,MAAM,CAAC;EAC7BhC,SAAS,EAAE;IACPiC,IAAI,EAAE,CAAC;IACPC,eAAe,EAAE;EACrB,CAAC;EACDjC,aAAa,EAAE;IACXkC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDtB,GAAG,EAAE;IACDmB,IAAI,EAAE;EACV,CAAC;EACD/B,SAAS,EAAE;IACPmC,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDpC,YAAY,EAAE;IACVkC,KAAK,EAAE,OAAO;IACdC,QAAQ,EAAE,EAAE;IACZE,SAAS,EAAE;EACf;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,30 @@
1
+ // Simple registry to share the map instance
2
+ class MapRegistry {
3
+ constructor() {
4
+ this.mapRef = null;
5
+ this.listeners = [];
6
+ }
7
+ setMap(mapRef) {
8
+ console.log('📍 [MapRegistry] Map registered:', !!mapRef);
9
+ this.mapRef = mapRef;
10
+ }
11
+ getMap() {
12
+ return this.mapRef;
13
+ }
14
+ addCameraListener(listener) {
15
+ this.listeners.push(listener);
16
+ console.log('📍 [MapRegistry] Listener added, total:', this.listeners.length);
17
+ }
18
+ removeCameraListener(listener) {
19
+ const index = this.listeners.indexOf(listener);
20
+ if (index > -1) {
21
+ this.listeners.splice(index, 1);
22
+ console.log('📍 [MapRegistry] Listener removed, total:', this.listeners.length);
23
+ }
24
+ }
25
+ notifyCameraChange(center) {
26
+ this.listeners.forEach(listener => listener(center));
27
+ }
28
+ }
29
+ export const mapRegistry = new MapRegistry();
30
+ //# sourceMappingURL=MapRegistry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["MapRegistry","constructor","mapRef","listeners","setMap","console","log","getMap","addCameraListener","listener","push","length","removeCameraListener","index","indexOf","splice","notifyCameraChange","center","forEach","mapRegistry"],"sourceRoot":"..\\..\\..","sources":["src/MapRegistry.js"],"mappings":"AAAA;AACA,MAAMA,WAAW,CAAC;EACdC,WAAWA,CAAA,EAAG;IACV,IAAI,CAACC,MAAM,GAAG,IAAI;IAClB,IAAI,CAACC,SAAS,GAAG,EAAE;EACvB;EAEAC,MAAMA,CAACF,MAAM,EAAE;IACXG,OAAO,CAACC,GAAG,CAAC,kCAAkC,EAAE,CAAC,CAACJ,MAAM,CAAC;IACzD,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;EAEAK,MAAMA,CAAA,EAAG;IACL,OAAO,IAAI,CAACL,MAAM;EACtB;EAEAM,iBAAiBA,CAACC,QAAQ,EAAE;IACxB,IAAI,CAACN,SAAS,CAACO,IAAI,CAACD,QAAQ,CAAC;IAC7BJ,OAAO,CAACC,GAAG,CAAC,yCAAyC,EAAE,IAAI,CAACH,SAAS,CAACQ,MAAM,CAAC;EACjF;EAEAC,oBAAoBA,CAACH,QAAQ,EAAE;IAC3B,MAAMI,KAAK,GAAG,IAAI,CAACV,SAAS,CAACW,OAAO,CAACL,QAAQ,CAAC;IAC9C,IAAII,KAAK,GAAG,CAAC,CAAC,EAAE;MACZ,IAAI,CAACV,SAAS,CAACY,MAAM,CAACF,KAAK,EAAE,CAAC,CAAC;MAC/BR,OAAO,CAACC,GAAG,CAAC,2CAA2C,EAAE,IAAI,CAACH,SAAS,CAACQ,MAAM,CAAC;IACnF;EACJ;EAEAK,kBAAkBA,CAACC,MAAM,EAAE;IACvB,IAAI,CAACd,SAAS,CAACe,OAAO,CAACT,QAAQ,IAAIA,QAAQ,CAACQ,MAAM,CAAC,CAAC;EACxD;AACJ;AAEA,OAAO,MAAME,WAAW,GAAG,IAAInB,WAAW,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,255 @@
1
+ import React from 'react';
2
+ import Mapbox from '@rnmapbox/maps';
3
+
4
+ // Re-implement the mapping from your web SDK for clarity and maintenance.
5
+ const STYLE_LAYER_MAP = {
6
+ // Background and water layers
7
+ landColor: {
8
+ layerId: 'AML_-_land'
9
+ },
10
+ oceanColor: {
11
+ layerId: 'AML_-_water'
12
+ },
13
+ waterDepth: {
14
+ layerId: 'AML_-_water-depth'
15
+ },
16
+ nationalPark: {
17
+ layerId: 'AML_-_national-park'
18
+ },
19
+ // Line layers
20
+ roads: {
21
+ layerId: 'AML_-_roads'
22
+ },
23
+ airports: {
24
+ layerId: 'AML_-_airports'
25
+ },
26
+ countries: {
27
+ layerId: 'AML_-_countries'
28
+ },
29
+ states: {
30
+ layerId: 'AML_-_states'
31
+ },
32
+ counties: {
33
+ layerId: 'AML_-_counties'
34
+ },
35
+ waterways: {
36
+ layerId: 'AML_-_waterway'
37
+ },
38
+ // Symbol (label) layers
39
+ continents: {
40
+ layerId: 'AML_-_continent-label'
41
+ },
42
+ countriesLabels: {
43
+ layerId: 'AML_-_country-label'
44
+ },
45
+ statesLabels: {
46
+ layerId: 'AML_-_state-label'
47
+ },
48
+ citiesMajor: {
49
+ layerId: 'AML_-_major-city-label'
50
+ },
51
+ citiesMinor: {
52
+ layerId: 'AML_-_minor-city-label'
53
+ },
54
+ airportsLabels: {
55
+ layerId: 'AML_-_airport-label'
56
+ },
57
+ poi: {
58
+ layerId: 'AML_-_poi-label'
59
+ },
60
+ waterLabels: {
61
+ layerId: 'AML_-_water-point-label'
62
+ },
63
+ naturalLabels: {
64
+ layerId: 'AML_-_natural-point-label'
65
+ },
66
+ subdivisionLabels: {
67
+ layerId: 'AML_-_subdivision-label'
68
+ }
69
+ };
70
+
71
+ /**
72
+ * A utility to sanitize 8-digit hex colors (#rrggbbaa) to 6-digit hex (#rrggbb)
73
+ * as required by some Mapbox properties.
74
+ */
75
+ function sanitizeColor(color) {
76
+ if (typeof color === 'string' && color.startsWith('#') && color.length === 9) {
77
+ return color.substring(0, 7);
78
+ }
79
+ return color;
80
+ }
81
+
82
+ /**
83
+ * Renders a set of Mapbox layers with styles derived from a theme object.
84
+ * This is the declarative, React Native equivalent of `applyStyleCustomizations`.
85
+ */
86
+ export const StyleApplicator = ({
87
+ styles
88
+ }) => {
89
+ if (!styles) {
90
+ return null;
91
+ }
92
+ const {
93
+ landOcean,
94
+ transportation,
95
+ boundaries,
96
+ waterFeatures,
97
+ labels,
98
+ terrain
99
+ } = styles;
100
+
101
+ // --- Helper for Line Layer Styles ---
102
+ const getLineStyles = config => {
103
+ if (!config) return {};
104
+ const dashArray = {
105
+ dashed: [2, 2],
106
+ dotted: [0, 2],
107
+ solid: []
108
+ };
109
+ return {
110
+ visibility: config.visible ? 'visible' : 'none',
111
+ lineColor: sanitizeColor(config.color),
112
+ lineWidth: config.width,
113
+ lineDasharray: dashArray[config.lineType] || []
114
+ };
115
+ };
116
+
117
+ // --- Helper for Symbol (Label) Layer Styles ---
118
+ const getSymbolStyles = config => {
119
+ if (!config) return {};
120
+ return {
121
+ visibility: config.visible ? 'visible' : 'none',
122
+ textColor: sanitizeColor(config.color),
123
+ textHaloColor: sanitizeColor(config.outlineColor),
124
+ textHaloWidth: config.outlineWidth,
125
+ textSize: config.fontSize,
126
+ textFont: [config.fontFamily]
127
+ };
128
+ };
129
+ return /*#__PURE__*/React.createElement(React.Fragment, null, landOcean && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Mapbox.BackgroundLayer, {
130
+ id: STYLE_LAYER_MAP.landColor.layerId,
131
+ existing: true // FIX: Added existing prop
132
+ ,
133
+ style: {
134
+ backgroundColor: sanitizeColor(landOcean.landColor)
135
+ }
136
+ }), /*#__PURE__*/React.createElement(Mapbox.FillLayer, {
137
+ id: STYLE_LAYER_MAP.oceanColor.layerId,
138
+ existing: true // FIX: Added existing prop
139
+ ,
140
+ style: {
141
+ fillColor: sanitizeColor(landOcean.oceanColor)
142
+ }
143
+ }), landOcean.waterDepth && /*#__PURE__*/React.createElement(Mapbox.FillLayer, {
144
+ id: STYLE_LAYER_MAP.waterDepth.layerId,
145
+ existing: true // FIX: Added existing prop
146
+ ,
147
+ style: {
148
+ visibility: landOcean.waterDepth.visible ? 'visible' : 'none',
149
+ fillColor: sanitizeColor(landOcean.waterDepth.color)
150
+ }
151
+ }), landOcean.nationalPark && /*#__PURE__*/React.createElement(Mapbox.FillLayer, {
152
+ id: STYLE_LAYER_MAP.nationalPark.layerId,
153
+ existing: true // FIX: Added existing prop
154
+ ,
155
+ style: {
156
+ visibility: landOcean.nationalPark.visible ? 'visible' : 'none',
157
+ fillColor: sanitizeColor(landOcean.nationalPark.color)
158
+ }
159
+ })), boundaries && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Mapbox.LineLayer, {
160
+ id: STYLE_LAYER_MAP.countries.layerId,
161
+ existing: true // FIX: Added existing prop
162
+ ,
163
+ style: getLineStyles(boundaries.countries)
164
+ }), /*#__PURE__*/React.createElement(Mapbox.LineLayer, {
165
+ id: STYLE_LAYER_MAP.states.layerId,
166
+ existing: true // FIX: Added existing prop
167
+ ,
168
+ style: getLineStyles(boundaries.states)
169
+ }), /*#__PURE__*/React.createElement(Mapbox.LineLayer, {
170
+ id: STYLE_LAYER_MAP.counties.layerId,
171
+ existing: true // FIX: Added existing prop
172
+ ,
173
+ style: getLineStyles(boundaries.counties)
174
+ })), transportation && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Mapbox.LineLayer, {
175
+ id: STYLE_LAYER_MAP.roads.layerId,
176
+ existing: true // FIX: Added existing prop
177
+ ,
178
+ style: getLineStyles(transportation.roads)
179
+ }), /*#__PURE__*/React.createElement(Mapbox.LineLayer, {
180
+ id: STYLE_LAYER_MAP.airports.layerId,
181
+ existing: true // FIX: Added existing prop
182
+ ,
183
+ style: getLineStyles(transportation.airports)
184
+ })), waterFeatures && /*#__PURE__*/React.createElement(Mapbox.LineLayer, {
185
+ id: STYLE_LAYER_MAP.waterways.layerId,
186
+ existing: true // FIX: Added existing prop
187
+ ,
188
+ style: getLineStyles(waterFeatures.waterways)
189
+ }), labels && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Mapbox.SymbolLayer, {
190
+ id: STYLE_LAYER_MAP.continents.layerId,
191
+ existing: true // FIX: Added existing prop
192
+ ,
193
+ style: getSymbolStyles(labels.continents)
194
+ }), /*#__PURE__*/React.createElement(Mapbox.SymbolLayer, {
195
+ id: STYLE_LAYER_MAP.countriesLabels.layerId,
196
+ existing: true // FIX: Added existing prop
197
+ ,
198
+ style: getSymbolStyles(labels.countries)
199
+ }), /*#__PURE__*/React.createElement(Mapbox.SymbolLayer, {
200
+ id: STYLE_LAYER_MAP.statesLabels.layerId,
201
+ existing: true // FIX: Added existing prop
202
+ ,
203
+ style: getSymbolStyles(labels.states)
204
+ }), labels.cities && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Mapbox.SymbolLayer, {
205
+ id: STYLE_LAYER_MAP.citiesMajor.layerId,
206
+ existing: true // FIX: Added existing prop
207
+ ,
208
+ style: getSymbolStyles(labels.cities.major)
209
+ }), /*#__PURE__*/React.createElement(Mapbox.SymbolLayer, {
210
+ id: STYLE_LAYER_MAP.citiesMinor.layerId,
211
+ existing: true // FIX: Added existing prop
212
+ ,
213
+ style: getSymbolStyles(labels.cities.minor)
214
+ })), /*#__PURE__*/React.createElement(Mapbox.SymbolLayer, {
215
+ id: STYLE_LAYER_MAP.airportsLabels.layerId,
216
+ existing: true // FIX: Added existing prop
217
+ ,
218
+ style: getSymbolStyles(labels.airports)
219
+ }), /*#__PURE__*/React.createElement(Mapbox.SymbolLayer, {
220
+ id: STYLE_LAYER_MAP.poi.layerId,
221
+ existing: true // FIX: Added existing prop
222
+ ,
223
+ style: getSymbolStyles(labels.poi)
224
+ }), /*#__PURE__*/React.createElement(Mapbox.SymbolLayer, {
225
+ id: STYLE_LAYER_MAP.waterLabels.layerId,
226
+ existing: true // FIX: Added existing prop
227
+ ,
228
+ style: getSymbolStyles(labels.waterLabels)
229
+ }), /*#__PURE__*/React.createElement(Mapbox.SymbolLayer, {
230
+ id: STYLE_LAYER_MAP.naturalLabels.layerId,
231
+ existing: true // FIX: Added existing prop
232
+ ,
233
+ style: getSymbolStyles(labels.naturalLabels)
234
+ }), /*#__PURE__*/React.createElement(Mapbox.SymbolLayer, {
235
+ id: STYLE_LAYER_MAP.subdivisionLabels.layerId,
236
+ existing: true // FIX: Added existing prop
237
+ ,
238
+ style: getSymbolStyles(labels.subdivisionLabels)
239
+ })), terrain && terrain.visible && Mapbox.Terrain && Mapbox.HillshadeLayer && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Mapbox.Terrain, {
240
+ sourceID: "mapbox-dem",
241
+ style: {
242
+ exaggeration: 1
243
+ }
244
+ }), /*#__PURE__*/React.createElement(Mapbox.HillshadeLayer, {
245
+ id: "hillshade",
246
+ sourceID: "mapbox-dem",
247
+ style: {
248
+ hillshadeExaggeration: terrain.intensity,
249
+ hillshadeShadowColor: sanitizeColor(terrain.shadowColor),
250
+ hillshadeHighlightColor: sanitizeColor(terrain.highlightColor),
251
+ hillshadeAccentColor: sanitizeColor(terrain.accentColor)
252
+ }
253
+ })));
254
+ };
255
+ //# sourceMappingURL=StyleApplicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Mapbox","STYLE_LAYER_MAP","landColor","layerId","oceanColor","waterDepth","nationalPark","roads","airports","countries","states","counties","waterways","continents","countriesLabels","statesLabels","citiesMajor","citiesMinor","airportsLabels","poi","waterLabels","naturalLabels","subdivisionLabels","sanitizeColor","color","startsWith","length","substring","StyleApplicator","styles","landOcean","transportation","boundaries","waterFeatures","labels","terrain","getLineStyles","config","dashArray","dashed","dotted","solid","visibility","visible","lineColor","lineWidth","width","lineDasharray","lineType","getSymbolStyles","textColor","textHaloColor","outlineColor","textHaloWidth","outlineWidth","textSize","fontSize","textFont","fontFamily","createElement","Fragment","BackgroundLayer","id","existing","style","backgroundColor","FillLayer","fillColor","LineLayer","SymbolLayer","cities","major","minor","Terrain","HillshadeLayer","sourceID","exaggeration","hillshadeExaggeration","intensity","hillshadeShadowColor","shadowColor","hillshadeHighlightColor","highlightColor","hillshadeAccentColor","accentColor"],"sourceRoot":"..\\..\\..","sources":["src/StyleApplicator.js"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,gBAAgB;;AAEnC;AACA,MAAMC,eAAe,GAAG;EACpB;EACAC,SAAS,EAAE;IAAEC,OAAO,EAAE;EAAa,CAAC;EACpCC,UAAU,EAAE;IAAED,OAAO,EAAE;EAAc,CAAC;EACtCE,UAAU,EAAE;IAAEF,OAAO,EAAE;EAAoB,CAAC;EAC5CG,YAAY,EAAE;IAAEH,OAAO,EAAE;EAAsB,CAAC;EAEhD;EACAI,KAAK,EAAE;IAAEJ,OAAO,EAAE;EAAc,CAAC;EACjCK,QAAQ,EAAE;IAAEL,OAAO,EAAE;EAAiB,CAAC;EACvCM,SAAS,EAAE;IAAEN,OAAO,EAAE;EAAkB,CAAC;EACzCO,MAAM,EAAE;IAAEP,OAAO,EAAE;EAAe,CAAC;EACnCQ,QAAQ,EAAE;IAAER,OAAO,EAAE;EAAiB,CAAC;EACvCS,SAAS,EAAE;IAAET,OAAO,EAAE;EAAiB,CAAC;EAExC;EACAU,UAAU,EAAE;IAAEV,OAAO,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