xm-netcdf-loader 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 (130) hide show
  1. package/dist/component/colorLegend.d.ts +25 -0
  2. package/dist/component/loadFile.d.ts +43 -0
  3. package/dist/component/loadonMap.d.ts +46 -0
  4. package/dist/component/statusInfo.d.ts +41 -0
  5. package/dist/composables/useGridLabels.d.ts +13 -0
  6. package/dist/composables/useLeafletMap.d.ts +56 -0
  7. package/dist/composables/useMapRendering.d.ts +38 -0
  8. package/dist/composables/useNetCdf.d.ts +49 -0
  9. package/dist/index.d.ts +9 -0
  10. package/dist/netcdf4-wasm/CONTRIBUTING.md +160 -0
  11. package/dist/netcdf4-wasm/LICENSE +22 -0
  12. package/dist/netcdf4-wasm/README.md +81 -0
  13. package/dist/netcdf4-wasm/dist/constants.d.ts +158 -0
  14. package/dist/netcdf4-wasm/dist/constants.d.ts.map +1 -0
  15. package/dist/netcdf4-wasm/dist/constants.js +249 -0
  16. package/dist/netcdf4-wasm/dist/constants.js.map +1 -0
  17. package/dist/netcdf4-wasm/dist/dimension.d.ts +9 -0
  18. package/dist/netcdf4-wasm/dist/dimension.d.ts.map +1 -0
  19. package/dist/netcdf4-wasm/dist/dimension.js +19 -0
  20. package/dist/netcdf4-wasm/dist/dimension.js.map +1 -0
  21. package/dist/netcdf4-wasm/dist/group.d.ts +35 -0
  22. package/dist/netcdf4-wasm/dist/group.d.ts.map +1 -0
  23. package/dist/netcdf4-wasm/dist/group.js +189 -0
  24. package/dist/netcdf4-wasm/dist/group.js.map +1 -0
  25. package/dist/netcdf4-wasm/dist/index.d.ts +17 -0
  26. package/dist/netcdf4-wasm/dist/index.d.ts.map +1 -0
  27. package/dist/netcdf4-wasm/dist/index.js +49 -0
  28. package/dist/netcdf4-wasm/dist/index.js.map +1 -0
  29. package/dist/netcdf4-wasm/dist/netcdf-getters.d.ts +120 -0
  30. package/dist/netcdf4-wasm/dist/netcdf-getters.d.ts.map +1 -0
  31. package/dist/netcdf4-wasm/dist/netcdf-getters.js +816 -0
  32. package/dist/netcdf4-wasm/dist/netcdf-getters.js.map +1 -0
  33. package/dist/netcdf4-wasm/dist/netcdf-worker.d.ts +2 -0
  34. package/dist/netcdf4-wasm/dist/netcdf-worker.d.ts.map +1 -0
  35. package/dist/netcdf4-wasm/dist/netcdf-worker.js +154 -0
  36. package/dist/netcdf4-wasm/dist/netcdf-worker.js.map +1 -0
  37. package/dist/netcdf4-wasm/dist/netcdf4-wasm.js +2 -0
  38. package/dist/netcdf4-wasm/dist/netcdf4-wasm.wasm +0 -0
  39. package/dist/netcdf4-wasm/dist/netcdf4.d.ts +218 -0
  40. package/dist/netcdf4-wasm/dist/netcdf4.d.ts.map +1 -0
  41. package/dist/netcdf4-wasm/dist/netcdf4.js +1049 -0
  42. package/dist/netcdf4-wasm/dist/netcdf4.js.map +1 -0
  43. package/dist/netcdf4-wasm/dist/slice.d.ts +57 -0
  44. package/dist/netcdf4-wasm/dist/slice.d.ts.map +1 -0
  45. package/dist/netcdf4-wasm/dist/slice.js +60 -0
  46. package/dist/netcdf4-wasm/dist/slice.js.map +1 -0
  47. package/dist/netcdf4-wasm/dist/test-setup.d.ts +13 -0
  48. package/dist/netcdf4-wasm/dist/test-setup.d.ts.map +1 -0
  49. package/dist/netcdf4-wasm/dist/test-setup.js +78 -0
  50. package/dist/netcdf4-wasm/dist/test-setup.js.map +1 -0
  51. package/dist/netcdf4-wasm/dist/types.d.ts +444 -0
  52. package/dist/netcdf4-wasm/dist/types.d.ts.map +1 -0
  53. package/dist/netcdf4-wasm/dist/types.js +3 -0
  54. package/dist/netcdf4-wasm/dist/types.js.map +1 -0
  55. package/dist/netcdf4-wasm/dist/variable.d.ts +36 -0
  56. package/dist/netcdf4-wasm/dist/variable.d.ts.map +1 -0
  57. package/dist/netcdf4-wasm/dist/variable.js +152 -0
  58. package/dist/netcdf4-wasm/dist/variable.js.map +1 -0
  59. package/dist/netcdf4-wasm/dist/wasm-module.d.ts +6 -0
  60. package/dist/netcdf4-wasm/dist/wasm-module.d.ts.map +1 -0
  61. package/dist/netcdf4-wasm/dist/wasm-module.js +1502 -0
  62. package/dist/netcdf4-wasm/dist/wasm-module.js.map +1 -0
  63. package/dist/netcdf4-wasm/package.json +78 -0
  64. package/dist/netcdf4-wasm.wasm +0 -0
  65. package/dist/types/colorsJson.d.ts +36 -0
  66. package/dist/types/netcdf.d.ts +70 -0
  67. package/dist/utils/color.d.ts +277 -0
  68. package/dist/utils/colorScales.d.ts +28 -0
  69. package/dist/utils/colorsJsonService.d.ts +24 -0
  70. package/dist/utils/dataProcessing.d.ts +64 -0
  71. package/dist/utils/errorHandling.d.ts +69 -0
  72. package/dist/utils/imageUtils.d.ts +29 -0
  73. package/dist/utils/performance.d.ts +75 -0
  74. package/dist/wasm/constants.d.ts +158 -0
  75. package/dist/wasm/constants.d.ts.map +1 -0
  76. package/dist/wasm/constants.js +249 -0
  77. package/dist/wasm/constants.js.map +1 -0
  78. package/dist/wasm/dimension.d.ts +9 -0
  79. package/dist/wasm/dimension.d.ts.map +1 -0
  80. package/dist/wasm/dimension.js +19 -0
  81. package/dist/wasm/dimension.js.map +1 -0
  82. package/dist/wasm/group.d.ts +35 -0
  83. package/dist/wasm/group.d.ts.map +1 -0
  84. package/dist/wasm/group.js +189 -0
  85. package/dist/wasm/group.js.map +1 -0
  86. package/dist/wasm/index.d.ts +17 -0
  87. package/dist/wasm/index.d.ts.map +1 -0
  88. package/dist/wasm/index.js +49 -0
  89. package/dist/wasm/index.js.map +1 -0
  90. package/dist/wasm/netcdf-getters.d.ts +120 -0
  91. package/dist/wasm/netcdf-getters.d.ts.map +1 -0
  92. package/dist/wasm/netcdf-getters.js +816 -0
  93. package/dist/wasm/netcdf-getters.js.map +1 -0
  94. package/dist/wasm/netcdf-worker.d.ts +2 -0
  95. package/dist/wasm/netcdf-worker.d.ts.map +1 -0
  96. package/dist/wasm/netcdf-worker.js +154 -0
  97. package/dist/wasm/netcdf-worker.js.map +1 -0
  98. package/dist/wasm/netcdf4-wasm.js +2 -0
  99. package/dist/wasm/netcdf4-wasm.wasm +0 -0
  100. package/dist/wasm/netcdf4.d.ts +218 -0
  101. package/dist/wasm/netcdf4.d.ts.map +1 -0
  102. package/dist/wasm/netcdf4.js +1049 -0
  103. package/dist/wasm/netcdf4.js.map +1 -0
  104. package/dist/wasm/slice.d.ts +57 -0
  105. package/dist/wasm/slice.d.ts.map +1 -0
  106. package/dist/wasm/slice.js +60 -0
  107. package/dist/wasm/slice.js.map +1 -0
  108. package/dist/wasm/test-setup.d.ts +13 -0
  109. package/dist/wasm/test-setup.d.ts.map +1 -0
  110. package/dist/wasm/test-setup.js +78 -0
  111. package/dist/wasm/test-setup.js.map +1 -0
  112. package/dist/wasm/types.d.ts +444 -0
  113. package/dist/wasm/types.d.ts.map +1 -0
  114. package/dist/wasm/types.js +3 -0
  115. package/dist/wasm/types.js.map +1 -0
  116. package/dist/wasm/variable.d.ts +36 -0
  117. package/dist/wasm/variable.d.ts.map +1 -0
  118. package/dist/wasm/variable.js +152 -0
  119. package/dist/wasm/variable.js.map +1 -0
  120. package/dist/wasm/wasm-module.d.ts +6 -0
  121. package/dist/wasm/wasm-module.d.ts.map +1 -0
  122. package/dist/wasm/wasm-module.js +1502 -0
  123. package/dist/wasm/wasm-module.js.map +1 -0
  124. package/dist/xm-netcdf-loader.cjs.js +2 -0
  125. package/dist/xm-netcdf-loader.cjs.js.map +1 -0
  126. package/dist/xm-netcdf-loader.es.js +18532 -0
  127. package/dist/xm-netcdf-loader.es.js.map +1 -0
  128. package/dist/xm-netcdf-loader.umd.js +2 -0
  129. package/dist/xm-netcdf-loader.umd.js.map +1 -0
  130. package/package.json +45 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xm-netcdf-loader.umd.js","sources":["../src/utils/colorScales.ts","../src/utils/imageUtils.ts","../src/utils/color.ts","../src/utils/colorsJsonService.ts","../src/component/colorLegend.ts","../src/utils/errorHandling.ts","../src/utils/dataProcessing.ts","../src/composables/useNetCdf.ts","../src/component/loadFile.ts","../node_modules/ol/console.js","../node_modules/ol/extent/Relationship.js","../node_modules/ol/extent.js","../node_modules/ol/math.js","../node_modules/ol/coordinate.js","../node_modules/ol/proj/Units.js","../node_modules/ol/proj/Projection.js","../node_modules/ol/proj/epsg3857.js","../node_modules/ol/proj/epsg4326.js","../node_modules/ol/proj/projections.js","../node_modules/ol/obj.js","../node_modules/ol/proj/transforms.js","../node_modules/ol/proj/utm.js","../node_modules/ol/sphere.js","../node_modules/ol/proj.js","../src/composables/useLeafletMap.ts","../node_modules/ol/ImageState.js","../node_modules/ol/ViewHint.js","../node_modules/ol/asserts.js","../node_modules/ol/transform.js","../node_modules/ol/array.js","../node_modules/ol/has.js","../node_modules/ol/dom.js","../node_modules/ol/color.js","../node_modules/ol/events/Event.js","../node_modules/ol/render/Event.js","../node_modules/ol/render/EventType.js","../node_modules/ol/render/canvas/ZIndexContext.js","../node_modules/ol/events/EventType.js","../node_modules/ol/Disposable.js","../node_modules/ol/functions.js","../node_modules/ol/events/Target.js","../node_modules/ol/events.js","../node_modules/ol/Observable.js","../node_modules/ol/util.js","../node_modules/ol/renderer/Layer.js","../node_modules/ol/renderer/canvas/Layer.js","../node_modules/ol/renderer/canvas/ImageLayer.js","../node_modules/ol/ObjectEventType.js","../node_modules/ol/Object.js","../node_modules/ol/ViewProperty.js","../node_modules/ol/centerconstraint.js","../node_modules/ol/easing.js","../node_modules/ol/geom/flat/transform.js","../node_modules/ol/geom/Geometry.js","../node_modules/ol/geom/SimpleGeometry.js","../node_modules/ol/geom/flat/area.js","../node_modules/ol/geom/flat/closest.js","../node_modules/ol/geom/flat/deflate.js","../node_modules/ol/geom/flat/inflate.js","../node_modules/ol/geom/flat/simplify.js","../node_modules/ol/geom/LinearRing.js","../node_modules/ol/geom/Point.js","../node_modules/ol/geom/flat/contains.js","../node_modules/ol/geom/flat/interiorpoint.js","../node_modules/ol/geom/flat/segments.js","../node_modules/ol/geom/flat/intersectsextent.js","../node_modules/ol/geom/flat/reverse.js","../node_modules/ol/geom/flat/orient.js","../node_modules/ol/geom/Polygon.js","../node_modules/ol/resolutionconstraint.js","../node_modules/ol/rotationconstraint.js","../node_modules/ol/tilegrid/common.js","../node_modules/ol/View.js","../node_modules/ol/layer/Property.js","../node_modules/ol/layer/Base.js","../node_modules/ol/layer/Layer.js","../node_modules/ol/layer/BaseImage.js","../node_modules/ol/layer/Image.js","../node_modules/ol/Image.js","../node_modules/ol/reproj.js","../node_modules/ol/resolution.js","../node_modules/ol/reproj/Triangulation.js","../node_modules/ol/reproj/common.js","../node_modules/ol/reproj/Image.js","../node_modules/ol/source/Source.js","../node_modules/ol/source/common.js","../node_modules/ol/source/Image.js","../node_modules/ol/source/static.js","../node_modules/ol/source/ImageStatic.js","../src/composables/useMapRendering.ts","../src/composables/useGridLabels.ts","../src/utils/performance.ts","../src/component/loadonMap.ts","../src/component/statusInfo.ts","../src/index.ts"],"sourcesContent":["/**\r\n * 数据可视化色彩比例尺工具\r\n */\r\n\r\nexport type ColormapName = 'viridis' | 'plasma' | 'inferno' | 'magma' | 'jet' | 'hot' | 'cool' | 'grayscale'\r\n\r\n/** 色彩映射函数将归一化值 [0, 1] 映射为 RGBA 元组 */\r\nexport type ColormapFn = (t: number) => [number, number, number, number]\r\n // 来自 matplotlib 的 Viridis 色彩方案\r\n const c: [number, number, number][] = [\r\n [0.267004, 0.004874, 0.329415],\r\n [0.268510, 0.009605, 0.335427],\r\n [0.269944, 0.014625, 0.341379],\r\n [0.271305, 0.019942, 0.347269],\r\n [0.272594, 0.025563, 0.353093],\r\n [0.273809, 0.031497, 0.358853],\r\n [0.274952, 0.037752, 0.364543],\r\n [0.276022, 0.044167, 0.370164],\r\n [0.277018, 0.050344, 0.375715],\r\n [0.277941, 0.056324, 0.381191],\r\n [0.278791, 0.062145, 0.386592],\r\n [0.279566, 0.067836, 0.391917],\r\n [0.280267, 0.073417, 0.397163],\r\n [0.280894, 0.078907, 0.402329],\r\n [0.281446, 0.084320, 0.407414],\r\n [0.281924, 0.089666, 0.412415],\r\n [0.282327, 0.094955, 0.417331],\r\n [0.282656, 0.100196, 0.422160],\r\n [0.282910, 0.105393, 0.426902],\r\n [0.283091, 0.110553, 0.431554],\r\n [0.283197, 0.115680, 0.436115],\r\n [0.283229, 0.120777, 0.440584],\r\n [0.283187, 0.125848, 0.444960],\r\n [0.283072, 0.130895, 0.449241],\r\n [0.282884, 0.135920, 0.453427],\r\n [0.282623, 0.140926, 0.457517],\r\n [0.282290, 0.145912, 0.461510],\r\n [0.281887, 0.150881, 0.465405],\r\n [0.281412, 0.155834, 0.469201],\r\n [0.280868, 0.160771, 0.472899],\r\n [0.280255, 0.165693, 0.476498],\r\n [0.279574, 0.170599, 0.479997],\r\n [0.278826, 0.175490, 0.483397],\r\n [0.278012, 0.180367, 0.486697],\r\n [0.277134, 0.185228, 0.489898],\r\n [0.276194, 0.190074, 0.493001],\r\n [0.275191, 0.194905, 0.496005],\r\n [0.274128, 0.199721, 0.498911],\r\n [0.273006, 0.204520, 0.501721],\r\n [0.271828, 0.209303, 0.504434],\r\n [0.270595, 0.214069, 0.507052],\r\n [0.269308, 0.218818, 0.509577],\r\n [0.267968, 0.223549, 0.512008],\r\n [0.266580, 0.228262, 0.514349],\r\n [0.265145, 0.232956, 0.516599],\r\n [0.263663, 0.237631, 0.518762],\r\n [0.262138, 0.242286, 0.520837],\r\n [0.260571, 0.246922, 0.522828],\r\n [0.258965, 0.251537, 0.524736],\r\n [0.257322, 0.256130, 0.526563],\r\n [0.255645, 0.260703, 0.528312],\r\n [0.253935, 0.265254, 0.529983],\r\n [0.252194, 0.269783, 0.531579],\r\n [0.250425, 0.274290, 0.533103],\r\n [0.248629, 0.278775, 0.534556],\r\n [0.246811, 0.283237, 0.535941],\r\n [0.244972, 0.287675, 0.537260],\r\n [0.243113, 0.292092, 0.538516],\r\n [0.241237, 0.296485, 0.539709],\r\n [0.239346, 0.300855, 0.540844],\r\n [0.237441, 0.305202, 0.541921],\r\n [0.235526, 0.309527, 0.542944],\r\n [0.233603, 0.313828, 0.543914],\r\n [0.231674, 0.318106, 0.544834],\r\n [0.229739, 0.322361, 0.545706],\r\n [0.227802, 0.326594, 0.546532],\r\n [0.225863, 0.330805, 0.547314],\r\n [0.223925, 0.334994, 0.548053],\r\n [0.221989, 0.339161, 0.548752],\r\n [0.220057, 0.343307, 0.549413],\r\n [0.218130, 0.347432, 0.550038],\r\n [0.216210, 0.351535, 0.550627],\r\n [0.214298, 0.355619, 0.551184],\r\n [0.212395, 0.359683, 0.551710],\r\n [0.210503, 0.363727, 0.552206],\r\n [0.208623, 0.367752, 0.552675],\r\n [0.206756, 0.371758, 0.553117],\r\n [0.204903, 0.375746, 0.553533],\r\n [0.203063, 0.379716, 0.553925],\r\n [0.201239, 0.383670, 0.554294],\r\n [0.199430, 0.387607, 0.554642],\r\n [0.197636, 0.391528, 0.554969],\r\n [0.195860, 0.395433, 0.555276],\r\n [0.194100, 0.399323, 0.555565],\r\n [0.192357, 0.403199, 0.555836],\r\n [0.190631, 0.407061, 0.556089],\r\n [0.188923, 0.410910, 0.556326],\r\n [0.187231, 0.414746, 0.556547],\r\n [0.185556, 0.418570, 0.556753],\r\n [0.183898, 0.422383, 0.556944],\r\n [0.182256, 0.426184, 0.557120],\r\n [0.180629, 0.429975, 0.557282],\r\n [0.179019, 0.433756, 0.557430],\r\n [0.177423, 0.437527, 0.557565],\r\n [0.175841, 0.441290, 0.557685],\r\n [0.174274, 0.445044, 0.557792],\r\n [0.172719, 0.448791, 0.557885],\r\n [0.171176, 0.452530, 0.557965],\r\n [0.169646, 0.456262, 0.558030],\r\n [0.168126, 0.459988, 0.558082],\r\n [0.166617, 0.463708, 0.558119],\r\n [0.165117, 0.467423, 0.558141],\r\n [0.163625, 0.471133, 0.558148],\r\n [0.162142, 0.474838, 0.558140],\r\n [0.160665, 0.478540, 0.558115],\r\n [0.159194, 0.482237, 0.558073],\r\n [0.157729, 0.485932, 0.558013],\r\n [0.156270, 0.489624, 0.557936],\r\n [0.154815, 0.493313, 0.557840],\r\n [0.153364, 0.497000, 0.557724],\r\n [0.151918, 0.500685, 0.557587],\r\n [0.150476, 0.504369, 0.557430],\r\n [0.149039, 0.508051, 0.557250],\r\n [0.147607, 0.511733, 0.557049],\r\n [0.146180, 0.515413, 0.556823],\r\n [0.144759, 0.519093, 0.556572],\r\n [0.143343, 0.522773, 0.556295],\r\n [0.141935, 0.526453, 0.555991],\r\n [0.140536, 0.530132, 0.555659],\r\n [0.139147, 0.533812, 0.555298],\r\n [0.137770, 0.537492, 0.554906],\r\n [0.136408, 0.541173, 0.554483],\r\n [0.135066, 0.544853, 0.554029],\r\n [0.133743, 0.548535, 0.553541],\r\n [0.132444, 0.552216, 0.553018],\r\n [0.131172, 0.555899, 0.552459],\r\n [0.129933, 0.559582, 0.551864],\r\n [0.128729, 0.563265, 0.551229],\r\n [0.127568, 0.566949, 0.550556],\r\n [0.126453, 0.570633, 0.549841],\r\n [0.125394, 0.574318, 0.549086],\r\n [0.124395, 0.578002, 0.548287],\r\n [0.123463, 0.581687, 0.547445],\r\n [0.122606, 0.585371, 0.546557],\r\n [0.121831, 0.589055, 0.545623],\r\n [0.121148, 0.592739, 0.544641],\r\n [0.120565, 0.596422, 0.543611],\r\n [0.120092, 0.600104, 0.542530],\r\n [0.119738, 0.603785, 0.541400],\r\n [0.119512, 0.607464, 0.540218],\r\n [0.119423, 0.611141, 0.538982],\r\n [0.119483, 0.614817, 0.537692],\r\n [0.119699, 0.618490, 0.536347],\r\n [0.120081, 0.622161, 0.534946],\r\n [0.120638, 0.625828, 0.533488],\r\n [0.121380, 0.629492, 0.531973],\r\n [0.122312, 0.633153, 0.530398],\r\n [0.123444, 0.636809, 0.528763],\r\n [0.124780, 0.640461, 0.527068],\r\n [0.126326, 0.644107, 0.525311],\r\n [0.128087, 0.647749, 0.523491],\r\n [0.130067, 0.651384, 0.521608],\r\n [0.132268, 0.655014, 0.519661],\r\n [0.134692, 0.658636, 0.517649],\r\n [0.137339, 0.662252, 0.515571],\r\n [0.140210, 0.665859, 0.513427],\r\n [0.143303, 0.669459, 0.511215],\r\n [0.146616, 0.673050, 0.508936],\r\n [0.150148, 0.676631, 0.506589],\r\n [0.153894, 0.680203, 0.504172],\r\n [0.157851, 0.683765, 0.501686],\r\n [0.162016, 0.687316, 0.499129],\r\n [0.166383, 0.690856, 0.496502],\r\n [0.170948, 0.694384, 0.493803],\r\n [0.175707, 0.697900, 0.491033],\r\n [0.180653, 0.701402, 0.488189],\r\n [0.185783, 0.704891, 0.485273],\r\n [0.191090, 0.708366, 0.482284],\r\n [0.196571, 0.711827, 0.479221],\r\n [0.202219, 0.715272, 0.476084],\r\n [0.208030, 0.718701, 0.472873],\r\n [0.214000, 0.722114, 0.469588],\r\n [0.220124, 0.725509, 0.466226],\r\n [0.226397, 0.728888, 0.462789],\r\n [0.232815, 0.732247, 0.459277],\r\n [0.239374, 0.735588, 0.455688],\r\n [0.246070, 0.738910, 0.452024],\r\n [0.252899, 0.742211, 0.448284],\r\n [0.259857, 0.745492, 0.444467],\r\n [0.266941, 0.748751, 0.440573],\r\n [0.274149, 0.751988, 0.436601],\r\n [0.281477, 0.755203, 0.432552],\r\n [0.288921, 0.758394, 0.428426],\r\n [0.296479, 0.761561, 0.424223],\r\n [0.304148, 0.764704, 0.419943],\r\n [0.311925, 0.767822, 0.415586],\r\n [0.319809, 0.770914, 0.411152],\r\n [0.327796, 0.773980, 0.406640],\r\n [0.335885, 0.777018, 0.402049],\r\n [0.344074, 0.780029, 0.397381],\r\n [0.352360, 0.783011, 0.392636],\r\n [0.360741, 0.785964, 0.387814],\r\n [0.369214, 0.788888, 0.382914],\r\n [0.377779, 0.791781, 0.377939],\r\n [0.386433, 0.794644, 0.372886],\r\n [0.395174, 0.797475, 0.367757],\r\n [0.404001, 0.800275, 0.362552],\r\n [0.412913, 0.803041, 0.357269],\r\n [0.421908, 0.805774, 0.351910],\r\n [0.430983, 0.808473, 0.346476],\r\n [0.440137, 0.811138, 0.340967],\r\n [0.449368, 0.813768, 0.335384],\r\n [0.458674, 0.816363, 0.329727],\r\n [0.468053, 0.818921, 0.323998],\r\n [0.477504, 0.821444, 0.318195],\r\n [0.487026, 0.823929, 0.312321],\r\n [0.496615, 0.826376, 0.306377],\r\n [0.506271, 0.828786, 0.300362],\r\n [0.515992, 0.831158, 0.294279],\r\n [0.525776, 0.833491, 0.288127],\r\n [0.535621, 0.835785, 0.281908],\r\n [0.545524, 0.838039, 0.275626],\r\n [0.555484, 0.840254, 0.269281],\r\n [0.565498, 0.842430, 0.262877],\r\n [0.575563, 0.844566, 0.256415],\r\n [0.585678, 0.846661, 0.249897],\r\n [0.595839, 0.848717, 0.243329],\r\n [0.606045, 0.850733, 0.236712],\r\n [0.616293, 0.852709, 0.230052],\r\n [0.626579, 0.854645, 0.223353],\r\n [0.636902, 0.856542, 0.216620],\r\n [0.647257, 0.858400, 0.209861],\r\n [0.657642, 0.860219, 0.203082],\r\n [0.668054, 0.861999, 0.196293],\r\n [0.678489, 0.863742, 0.189503],\r\n [0.688944, 0.865448, 0.182725],\r\n [0.699415, 0.867117, 0.175971],\r\n [0.709898, 0.868751, 0.169257],\r\n [0.720391, 0.870350, 0.162603],\r\n [0.730889, 0.871916, 0.156029],\r\n [0.741388, 0.873449, 0.149561],\r\n [0.751884, 0.874951, 0.143228],\r\n [0.762373, 0.876424, 0.137064],\r\n [0.772852, 0.877868, 0.131109],\r\n [0.783315, 0.879285, 0.125405],\r\n [0.793760, 0.880678, 0.120005],\r\n [0.804182, 0.882046, 0.114965],\r\n [0.814576, 0.883393, 0.110347],\r\n [0.824940, 0.884720, 0.106217],\r\n [0.835270, 0.886029, 0.102646],\r\n [0.845561, 0.887322, 0.099702],\r\n [0.855810, 0.888601, 0.097452],\r\n [0.866013, 0.889868, 0.095953],\r\n [0.876168, 0.891125, 0.095250],\r\n [0.886271, 0.892374, 0.095374],\r\n [0.896320, 0.893616, 0.096335],\r\n [0.906311, 0.894855, 0.098125],\r\n [0.916242, 0.896091, 0.100717],\r\n [0.926106, 0.897330, 0.104071],\r\n [0.935904, 0.898570, 0.108131],\r\n [0.945636, 0.899815, 0.112838],\r\n [0.955300, 0.901065, 0.118128],\r\n [0.964894, 0.902323, 0.123941],\r\n [0.974417, 0.903590, 0.130215],\r\n [0.983868, 0.904867, 0.136897],\r\n [0.993248, 0.906157, 0.143936]\r\n ]\r\n\r\n/**\r\n * Viridis 色彩方案(感知均一,对色盲友好)\r\n */\r\nexport function viridis(t: number): [number, number, number, number] {\r\n\r\n const index = Math.min(Math.floor(t * (c.length - 1)), c.length - 2)\r\n const frac = t * (c.length - 1) - index\r\n const color1 = c[index]\r\n const color2 = c[index + 1]\r\n\r\n return [\r\n Math.round((color1[0] + frac * (color2[0] - color1[0])) * 255),\r\n Math.round((color1[1] + frac * (color2[1] - color1[1])) * 255),\r\n Math.round((color1[2] + frac * (color2[2] - color1[2])) * 255),\r\n 255\r\n ]\r\n}\r\n\r\n/** Plasma 色彩方案(感知均一)*/\r\nexport function plasma(t: number): [number, number, number, number] {\r\n const r = Math.round(255 * (0.0588 + t * (1.0588 - 0.0588)))\r\n const g = Math.round(255 * (0.0196 + t * (0.0196 - 0.0196)))\r\n const b = Math.round(255 * (0.8588 + t * (0.0196 - 0.8588)))\r\n return [r, g, b, 255]\r\n}\r\n\r\n/** Inferno 色彩方案(感知均一)*/\r\nexport function inferno(t: number): [number, number, number, number] {\r\n const r = Math.round(255 * (0.0 + t * (1.0 - 0.0)))\r\n const g = Math.round(255 * (0.0 + t * (1.0 - 0.0)))\r\n const b = Math.round(255 * (0.0 + t * (1.0 - 0.0)))\r\n return [r, g, b, 255]\r\n}\r\n\r\n/** Magma 色彩方案(感知均一)*/\r\nexport function magma(t: number): [number, number, number, number] {\r\n const r = Math.round(255 * (0.0 + t * (1.0 - 0.0)))\r\n const g = Math.round(255 * (0.0 + t * (0.0 - 0.0)))\r\n const b = Math.round(255 * (0.0 + t * (1.0 - 0.0)))\r\n return [r, g, b, 255]\r\n}\r\n\r\n/** Jet 色彩方案(彩虹)*/\r\nexport function jet(t: number): [number, number, number, number] {\r\n let r = 1.0\r\n let g = 1.0\r\n let b = 1.0\r\n\r\n if (t < 0.125) {\r\n r = 0; g = 0; b = 0.5 + 4 * t\r\n } else if (t < 0.375) {\r\n r = 0; g = 4 * (t - 0.125); b = 1\r\n } else if (t < 0.625) {\r\n r = 4 * (t - 0.375); g = 1; b = 1 - 4 * (t - 0.375)\r\n } else if (t < 0.875) {\r\n r = 1; g = 1 - 4 * (t - 0.625); b = 0\r\n } else {\r\n r = 1 - 4 * (t - 0.875); g = 0; b = 0\r\n }\r\n\r\n return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255), 255]\r\n}\r\n\r\n/** Hot 色彩方案(黑-红-黄-白)*/\r\nexport function hot(t: number): [number, number, number, number] {\r\n let r = 1.0\r\n let g = 1.0\r\n let b = 1.0\r\n\r\n if (t < 0.333) {\r\n r = 3 * t; g = 0; b = 0\r\n } else if (t < 0.667) {\r\n r = 1; g = 3 * (t - 0.333); b = 0\r\n } else {\r\n r = 1; g = 1; b = 3 * (t - 0.667)\r\n }\r\n\r\n return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255), 255]\r\n}\r\n\r\n/** Cool 色彩方案(青-品红)*/\r\nexport function cool(t: number): [number, number, number, number] {\r\n return [Math.round(t * 255), Math.round((1 - t) * 255), 255, 255]\r\n}\r\n\r\n/** 灰度色彩方案 */\r\nexport function grayscale(t: number): [number, number, number, number] {\r\n const value = Math.round(t * 255)\r\n return [value, value, value, 255]\r\n}\r\n\r\n/** 返回所有可用色彩方案的注册表 */\r\nexport function getColormaps(): Record<ColormapName, ColormapFn> {\r\n return { viridis, plasma, inferno, magma, jet, hot, cool, grayscale }\r\n}\r\n\r\n/** 按名称返回色彩映射函数;未知名称时回退到 viridis */\r\nexport function getColormap(name: ColormapName | string): ColormapFn {\r\n const colormaps = getColormaps()\r\n return (colormaps as Record<string, ColormapFn>)[name] ?? viridis\r\n}\r\n","/**\r\n * 数据可视化的图像与画布工具\r\n */\r\n\r\nimport type { ColormapFn } from './colorScales'\r\n\r\n/** 创建离屏画布元素 */\r\nexport function createCanvas(width: number, height: number): HTMLCanvasElement {\r\n const canvas = document.createElement('canvas')\r\n canvas.width = width\r\n canvas.height = height\r\n return canvas\r\n}\r\n\r\n/** 将 RGBA 像素数据绘制到现有画布 */\r\nexport function drawToCanvas(\r\n canvas: HTMLCanvasElement,\r\n pixelData: Uint8ClampedArray,\r\n width: number,\r\n height: number\r\n): void {\r\n const ctx = canvas.getContext('2d')!\r\n const imageData = new ImageData(new Uint8ClampedArray(pixelData), width, height)\r\n ctx.putImageData(imageData, 0, 0)\r\n}\r\n\r\n/** 将画布内容导出为 PNG 数据 URL */\r\nexport function canvasToDataURL(canvas: HTMLCanvasElement): string {\r\n return canvas.toDataURL('image/png')\r\n}\r\n\r\n/** 将画布内容导出为 Blob */\r\nexport function canvasToBlob(canvas: HTMLCanvasElement): Promise<Blob> {\r\n return new Promise((resolve, reject) => {\r\n canvas.toBlob((blob) => {\r\n if (blob) {\r\n resolve(blob)\r\n } else {\r\n reject(new Error('Failed to create blob'))\r\n }\r\n }, 'image/png')\r\n })\r\n}\r\n\r\n/** 从画布创建 HTMLImageElement */\r\nexport function canvasToImage(canvas: HTMLCanvasElement): HTMLImageElement {\r\n const img = new Image()\r\n img.src = canvasToDataURL(canvas)\r\n return img\r\n}\r\n\r\n/** 从 ImageData 对象创建画布 */\r\nexport function imageDataToCanvas(imageData: ImageData): HTMLCanvasElement {\r\n const canvas = createCanvas(imageData.width, imageData.height)\r\n const ctx = canvas.getContext('2d')!\r\n ctx.putImageData(imageData, 0, 0)\r\n return canvas\r\n}\r\n\r\n/** 直接从 RGBA 像素数据创建 HTMLImageElement */\r\nexport function pixelDataToImage(\r\n pixelData: Uint8ClampedArray,\r\n width: number,\r\n height: number\r\n): HTMLImageElement {\r\n const canvas = createCanvas(width, height)\r\n drawToCanvas(canvas, pixelData, width, height)\r\n return canvasToImage(canvas)\r\n}\r\n\r\n/** 获取位置 (x, y) 处像素的 RGBA 属性 */\r\nexport function getPixelAt(\r\n pixelData: Uint8ClampedArray,\r\n width: number,\r\n x: number,\r\n y: number\r\n): [number, number, number, number] {\r\n const index = (y * width + x) * 4\r\n return [pixelData[index], pixelData[index + 1], pixelData[index + 2], pixelData[index + 3]]\r\n}\r\n\r\n/** 设置位置 (x, y) 处像素的 RGBA 值 */\r\nexport function setPixelAt(\r\n pixelData: Uint8ClampedArray,\r\n width: number,\r\n x: number,\r\n y: number,\r\n rgba: [number, number, number, number]\r\n): void {\r\n const index = (y * width + x) * 4\r\n pixelData[index] = rgba[0]\r\n pixelData[index + 1] = rgba[1]\r\n pixelData[index + 2] = rgba[2]\r\n pixelData[index + 3] = rgba[3]\r\n}\r\n\r\n/**\r\n * 根据归一化数据值应用逐像素透明度。\r\n * @param alphaFunction 可选函数,将归一化值映射为 alpha(0-255)\r\n */\r\nexport function applyTransparency(\r\n pixelData: Uint8ClampedArray,\r\n normalizedData: Float32Array,\r\n alphaMin = 0,\r\n alphaMax = 255,\r\n alphaFunction: ((v: number) => number) | null = null\r\n): void {\r\n if (pixelData.length !== normalizedData.length * 4) {\r\n throw new Error('Pixel data and normalized data dimensions mismatch')\r\n }\r\n\r\n for (let i = 0; i < normalizedData.length; i++) {\r\n const normalizedValue = normalizedData[i]\r\n let alpha: number\r\n\r\n if (alphaFunction) {\r\n alpha = alphaFunction(normalizedValue)\r\n } else {\r\n alpha = Math.round(alphaMin + normalizedValue * (alphaMax - alphaMin))\r\n }\r\n\r\n pixelData[i * 4 + 3] = Math.max(0, Math.min(255, alpha))\r\n }\r\n}\r\n\r\n/**\r\n * 为指定色彩映射创建颜色条画布。\r\n * @param vertical 如果为 true,高值在顶部;如果为 false,高值在右侧\r\n */\r\nexport function createColorbar(\r\n width: number,\r\n height: number,\r\n colormap: ColormapFn,\r\n vertical = true\r\n): HTMLCanvasElement {\r\n const canvas = createCanvas(width, height)\r\n const ctx = canvas.getContext('2d')!\r\n const imageData = ctx.createImageData(width, height)\r\n\r\n if (vertical) {\r\n for (let y = 0; y < height; y++) {\r\n const t = 1 - y / (height - 1)\r\n const [r, g, b, a] = colormap(t)\r\n for (let x = 0; x < width; x++) {\r\n const index = (y * width + x) * 4\r\n imageData.data[index] = r\r\n imageData.data[index + 1] = g\r\n imageData.data[index + 2] = b\r\n imageData.data[index + 3] = a\r\n }\r\n }\r\n } else {\r\n for (let x = 0; x < width; x++) {\r\n const t = x / (width - 1)\r\n const [r, g, b, a] = colormap(t)\r\n for (let y = 0; y < height; y++) {\r\n const index = (y * width + x) * 4\r\n imageData.data[index] = r\r\n imageData.data[index + 1] = g\r\n imageData.data[index + 2] = b\r\n imageData.data[index + 3] = a\r\n }\r\n }\r\n }\r\n\r\n ctx.putImageData(imageData, 0, 0)\r\n\r\n ctx.strokeStyle = '#333'\r\n ctx.lineWidth = 1\r\n ctx.strokeRect(0, 0, width, height)\r\n\r\n return canvas\r\n}\r\n","export const colors = {\r\n \"id\": \"68541156820de978f2963673\",\r\n \"name\": \"气象专用色标\",\r\n \"version\": \"zefanc-20250619\",\r\n \"active\": false,\r\n \"hashCode\": \"2b156d9c2e3c2587082ea2025d7d2054\",\r\n \"createBy\": \"?????\",\r\n \"createdDate\": 1750339926306,\r\n \"lastModifiedDate\": 1750339926306,\r\n \"lastModifiedBy\": \"?????\",\r\n \"delFlag\": false,\r\n \"item\": [\r\n {\r\n \"id\": \"670950ca-6e32-4df1-851f-145509e54be9\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"WINSAVG2MIN\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 30,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"2分钟平均风速\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(102, 92, 169)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(42, 116, 188)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(9, 175, 229)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(13, 179, 116)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(237, 213, 39)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(196, 84, 178)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(54, 137, 215)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"1710a752-5c74-444e-bd64-e62935782d67\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"WINDAYSINSTMAX\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 30,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"日极大风速\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(102, 92, 169)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(42, 116, 188)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(9, 175, 229)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(13, 179, 116)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(237, 213, 39)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(196, 84, 178)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(54, 137, 215)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"cd51718b-1567-44ab-8250-cb57418e57cd\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"WINSINST\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 30,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"瞬时风速\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(102, 92, 169)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(42, 116, 188)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(9, 175, 229)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(13, 179, 116)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(237, 213, 39)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(196, 84, 178)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(54, 137, 215)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"8a2b8fd3-2e4a-4133-be60-0fc82e89e086\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"WINSINSTHOURMAX\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 30,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"小时内极大风速\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(102, 92, 169)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(42, 116, 188)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(9, 175, 229)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(13, 179, 116)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(237, 213, 39)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(196, 84, 178)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(54, 137, 215)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"81447b91-c0b7-401d-9fe2-29b39341fd7c\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"TEM\",\r\n \"unit\": \"℃\",\r\n \"maxValue\": 40,\r\n \"minValue\": -30,\r\n \"scale\": 1,\r\n \"gradient\": true,\r\n \"remark\": \"气温\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": -30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 30, 120)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -28,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(17, 49, 139)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -26,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(27, 68, 159)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -24,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(38, 87, 179)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -22,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(48, 106, 199)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(59, 126, 219)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -18,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(78, 138, 221)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -16,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(97, 150, 224)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -14,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(116, 163, 226)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -12,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(135, 179, 225)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(155, 188, 232)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(154, 196, 220)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -6,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(153, 205, 208)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -4,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(152, 214, 196)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(151, 232, 173)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 222, 126)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(234, 219, 112)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(244, 217, 99)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(250, 204, 79)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(247, 180, 45)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(242, 155, 0)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(241, 147, 3)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(240, 132, 10)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 16,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(239, 117, 17)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(238, 102, 24)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(238, 88, 31)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 22,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(231, 75, 26)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 24,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(224, 63, 22)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 26,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(217, 51, 18)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 28,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(208, 36, 14)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(194, 0, 3)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 1, 9)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 34,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(169, 2, 16)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 36,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(138, 5, 25)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 38,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(111, 0, 21)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(80, 0, 15)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"9f49b3a4-a225-48c9-8cbb-05bede575a29\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"TEMMAX\",\r\n \"unit\": \"℃\",\r\n \"maxValue\": 40,\r\n \"minValue\": -30,\r\n \"scale\": 1,\r\n \"gradient\": true,\r\n \"remark\": \"日最高气温\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": -30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 30, 120)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -28,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(17, 49, 139)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -26,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(27, 68, 159)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -24,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(38, 87, 179)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -22,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(48, 106, 199)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(59, 126, 219)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -18,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(78, 138, 221)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -16,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(97, 150, 224)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -14,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(116, 163, 226)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -12,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(135, 179, 225)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(155, 188, 232)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(154, 196, 220)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -6,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(153, 205, 208)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -4,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(152, 214, 196)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(151, 232, 173)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 222, 126)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(234, 219, 112)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(244, 217, 99)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(250, 204, 79)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(247, 180, 45)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(242, 155, 0)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(241, 147, 3)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(240, 132, 10)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 16,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(239, 117, 17)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(238, 102, 24)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(238, 88, 31)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 22,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(231, 75, 26)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 24,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(224, 63, 22)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 26,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(217, 51, 18)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 28,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(208, 36, 14)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(194, 0, 3)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 1, 9)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 34,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(169, 2, 16)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 36,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(138, 5, 25)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 38,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(111, 0, 21)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(80, 0, 15)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"33f40cbc-d49c-44d8-8656-c3ec8d0d527a\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"TEMMIN\",\r\n \"unit\": \"℃\",\r\n \"maxValue\": 40,\r\n \"minValue\": -30,\r\n \"scale\": 1,\r\n \"gradient\": true,\r\n \"remark\": \"日最低气温\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": -30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 30, 120)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -28,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(17, 49, 139)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -26,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(27, 68, 159)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -24,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(38, 87, 179)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -22,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(48, 106, 199)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(59, 126, 219)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -18,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(78, 138, 221)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -16,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(97, 150, 224)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -14,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(116, 163, 226)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -12,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(135, 179, 225)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(155, 188, 232)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(154, 196, 220)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -6,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(153, 205, 208)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -4,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(152, 214, 196)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(151, 232, 173)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 222, 126)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(234, 219, 112)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(244, 217, 99)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(250, 204, 79)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(247, 180, 45)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(242, 155, 0)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(241, 147, 3)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(240, 132, 10)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 16,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(239, 117, 17)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(238, 102, 24)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(238, 88, 31)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 22,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(231, 75, 26)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 24,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(224, 63, 22)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 26,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(217, 51, 18)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 28,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(208, 36, 14)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(194, 0, 3)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 1, 9)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 34,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(169, 2, 16)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 36,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(138, 5, 25)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 38,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(111, 0, 21)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(80, 0, 15)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"5542d502-6d93-4cd7-8c5d-c30b506a1f96\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"AP6M\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 10,\r\n \"minValue\": 1,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"6分钟雨量\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(205, 244, 206)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.02,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(170, 248, 164)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.3,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(69, 245, 69)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1.2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(111, 181, 251)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2.5,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(71, 56, 250)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 4.5,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(198, 61, 247)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(167, 56, 133)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"b47cd1b6-8560-47fe-97fd-966fabd6ef9a\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"CAPE\",\r\n \"unit\": \"J/kg\",\r\n \"maxValue\": 4000,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"数值模式CAPE指标\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 255, 204)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 400,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 237, 160)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 800,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 217, 118)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1200,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(254, 178, 76)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1600,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(253, 141, 60)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2000,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(252, 75, 42)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2400,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(227, 26, 28)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2800,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(189, 0, 38)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3200,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(128, 0, 38)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3600,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(100, 0, 38)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"f2eef036-a0e1-4f43-9af8-3ed771c4c57f\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"CIN\",\r\n \"unit\": \"J/kg\",\r\n \"maxValue\": 1000,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"数值模式CAPE指标\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 100,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(230, 230, 230)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 200,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(204, 204, 204)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 300,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(179, 179, 179)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 400,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(153, 153, 153)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 500,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(128, 128, 128)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 600,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(102, 102, 102)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 700,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(77, 77, 77)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 800,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(51, 51, 51)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 900,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(26, 26, 26)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1000,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 0, 0)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"ARD\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"ARD\",\r\n \"unit\": \"/s*1E(-4)\",\r\n \"maxValue\": 60,\r\n \"minValue\": -100,\r\n \"scale\": 0.0001,\r\n \"gradient\": null,\r\n \"remark\": \"方位涡度\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -100,\r\n \"max\": -60,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -60,\r\n \"max\": -50,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -50,\r\n \"max\": -30,\r\n \"point\": null,\r\n \"color\": \"rgb(0,154,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -30,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(99,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -10,\r\n \"point\": null,\r\n \"color\": \"rgb(181,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": -5,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -5,\r\n \"max\": -1,\r\n \"point\": null,\r\n \"color\": \"rgb(0,182,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -1,\r\n \"max\": -0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(0,117,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -0.2,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,101,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(255,182,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(255,154,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(255,121,123)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(132,0,0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"BOTS\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"BOTS\",\r\n \"unit\": \"km\",\r\n \"maxValue\": 21,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"回波底高\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(190,190,190)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(0,224,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(0,176,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,144,204)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 9,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 9,\r\n \"max\": 11,\r\n \"point\": null,\r\n \"color\": \"rgb(0,251,144)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 11,\r\n \"max\": 12,\r\n \"point\": null,\r\n \"color\": \"rgb(0,187,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": 14,\r\n \"point\": null,\r\n \"color\": \"rgb(0,239,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(254,191,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 17,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 17,\r\n \"max\": 18,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 21,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 21,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(231,0,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"CKDP\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"CKDP\",\r\n \"unit\": \"deg/km\",\r\n \"maxValue\": 20,\r\n \"minValue\": -0.8,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"组合差分相移率\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -0.8,\r\n \"max\": -0.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 255, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -0.4,\r\n \"max\": -0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 239, 239)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -0.2,\r\n \"max\": -0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 170, 173)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -0.1,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 182, 181)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.15,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 182, 181)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.15,\r\n \"max\": 0.22,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 195, 33)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.22,\r\n \"max\": 0.33,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 235, 8)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.33,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 255, 33)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 0.75,\r\n \"point\": null,\r\n \"color\": \"rgb(255,253,73)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.75,\r\n \"max\": 1.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,227,60)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1.1,\r\n \"max\": 1.7,\r\n \"point\": null,\r\n \"color\": \"rgb(254,185,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1.7,\r\n \"max\": 2.4,\r\n \"point\": null,\r\n \"color\": \"rgb(254,149,44)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.4,\r\n \"max\": 3.1,\r\n \"point\": null,\r\n \"color\": \"rgb(253,92,33)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3.1,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(240,15,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(184,0,61)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(253,40,250)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"CRM\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"CRM\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 75,\r\n \"minValue\": 5,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"混合反射率因子\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(35,236,235)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(19,160,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,41,240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(43,252,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(34,197,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(24,142,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(229,189,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(253,141,42)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(163,0,17)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(252,40,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 75,\r\n \"point\": null,\r\n \"color\": \"rgb(149,89,195)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 75,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"CRU\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"CRU\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 75,\r\n \"minValue\": 5,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"N层组合反射率\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(35,236,235)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(19,160,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,41,240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(43,252,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(34,197,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(24,142,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(229,189,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(253,141,42)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(163,0,17)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(252,40,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 75,\r\n \"point\": null,\r\n \"color\": \"rgb(149,89,195)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 75,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"CS\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"CS\",\r\n \"unit\": \"/s*1E(-4)\",\r\n \"maxValue\": 300,\r\n \"minValue\": 0,\r\n \"scale\": 0.0001,\r\n \"gradient\": null,\r\n \"remark\": \"综合切变\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0.01,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(82,81,82)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(115,117,115)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(173,170,173)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(49,0,148)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(0,130,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(0,142,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(0,186,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 80,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 80,\r\n \"max\": 90,\r\n \"point\": null,\r\n \"color\": \"rgb(206,101,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 90,\r\n \"max\": 100,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 100,\r\n \"max\": 150,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 150,\r\n \"max\": 200,\r\n \"point\": null,\r\n \"color\": \"rgb(173,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 200,\r\n \"max\": 250,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 250,\r\n \"max\": 300,\r\n \"point\": null,\r\n \"color\": \"rgb(255,125,123)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 300,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(148,0,148)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"c3811d63-ac60-4931-91e5-d13665e1d91c\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"DBZ\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 75,\r\n \"minValue\": 5,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"数值模式反射率\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(35,236,235)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(19,160,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,41,240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(43,252,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(34,197,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(24,142,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(229,189,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(253,141,42)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(163,0,17)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(252,40,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 75,\r\n \"point\": null,\r\n \"color\": \"rgb(149,89,195)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 75,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"490a7adf-0a98-4df7-80cf-ee0d51130abc\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"DHP\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 203.2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"2小时降雨\",\r\n \"productType\": \"FORECAST\",\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 2.54,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.54,\r\n \"max\": 6.35,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6.35,\r\n \"max\": 12.7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12.7,\r\n \"max\": 19.05,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 19.05,\r\n \"max\": 25.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25.4,\r\n \"max\": 31.75,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 31.75,\r\n \"max\": 38.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38.1,\r\n \"max\": 44.45,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 44.45,\r\n \"max\": 50.8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50.8,\r\n \"max\": 63.5,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 63.5,\r\n \"max\": 76.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 76.2,\r\n \"max\": 101.6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 101.6,\r\n \"max\": 152.4,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 152.4,\r\n \"max\": 203.2,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 203.2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"EMAX\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"EMAX\",\r\n \"unit\": \"km\",\r\n \"maxValue\": 21,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"最强回波高度\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(190,190,190)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(0,224,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(0,176,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,144,204)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 9,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 9,\r\n \"max\": 11,\r\n \"point\": null,\r\n \"color\": \"rgb(0,254,144)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 11,\r\n \"max\": 12,\r\n \"point\": null,\r\n \"color\": \"rgb(0,187,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": 14,\r\n \"point\": null,\r\n \"color\": \"rgb(0,239,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(254,191,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 17,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,60)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 17,\r\n \"max\": 18,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 21,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 21,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(231,0,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"HYDROS\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"HYDROS\",\r\n \"unit\": \"\",\r\n \"maxValue\": 11,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"水凝物分类\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -999,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,46)\",\r\n \"label\": \"小雨\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(0,204,100)\",\r\n \"label\": \"中雨\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(2,100,26)\",\r\n \"label\": \"大雨\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(101,129,28)\",\r\n \"label\": \"大雨滴\"\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(253,1,0)\",\r\n \"label\": \"冰雹\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,202,129)\",\r\n \"label\": \"雨加雹\"\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,250)\",\r\n \"label\": \"霰/雹\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,251)\",\r\n \"label\": \"干雪\"\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 9,\r\n \"point\": null,\r\n \"color\": \"rgb(25,25,134)\",\r\n \"label\": \"湿雪\"\r\n },\r\n {\r\n \"min\": 9,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(141,57,242)\",\r\n \"label\": \"H-冰晶\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 11,\r\n \"point\": null,\r\n \"color\": \"rgb(117,113,233)\",\r\n \"label\": \"V-冰晶\"\r\n },\r\n {\r\n \"min\": 11,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(204,204,192)\",\r\n \"label\": \"地物杂波\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"KDP\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"KDP\",\r\n \"unit\": \"deg/km\",\r\n \"maxValue\": 20,\r\n \"minValue\": -0.8,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"差分传播相位率\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -0.8,\r\n \"max\": -0.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 255, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -0.4,\r\n \"max\": -0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 239, 239)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -0.2,\r\n \"max\": -0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 170, 173)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -0.1,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 182, 181)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.15,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 182, 181)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.15,\r\n \"max\": 0.22,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 195, 33)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.22,\r\n \"max\": 0.33,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 235, 8)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.33,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 255, 33)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 0.75,\r\n \"point\": null,\r\n \"color\": \"rgb(255,253,73)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.75,\r\n \"max\": 1.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,227,60)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1.1,\r\n \"max\": 1.7,\r\n \"point\": null,\r\n \"color\": \"rgb(254,185,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1.7,\r\n \"max\": 2.4,\r\n \"point\": null,\r\n \"color\": \"rgb(254,149,44)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.4,\r\n \"max\": 3.1,\r\n \"point\": null,\r\n \"color\": \"rgb(253,92,33)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3.1,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(240,15,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(184,0,61)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(253,40,250)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"LRA\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"LRA\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 75,\r\n \"minValue\": 5,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"分层组合反射率平均值\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(35,236,235)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(19,160,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,41,240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(43,252,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(34,197,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(24,142,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(229,189,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(253,141,42)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(163,0,17)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(252,40,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 75,\r\n \"point\": null,\r\n \"color\": \"rgb(149,89,195)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 75,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"LRM\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"LRM\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 75,\r\n \"minValue\": 5,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"分层组合反射率最大值\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(35,236,235)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(19,160,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,41,240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(43,252,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(34,197,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(24,142,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(229,189,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(253,141,42)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(163,0,17)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(252,40,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 75,\r\n \"point\": null,\r\n \"color\": \"rgb(149,89,195)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 75,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"MAX\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"MAX\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 75,\r\n \"minValue\": 5,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"最大值\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(35,236,235)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(19,160,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,41,240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(43,252,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(34,197,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(24,142,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(229,189,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(253,141,42)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(163,0,17)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(252,40,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 75,\r\n \"point\": null,\r\n \"color\": \"rgb(149,89,195)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 75,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"MLDA\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"MLDA\",\r\n \"unit\": \"km\",\r\n \"maxValue\": 21,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"融化层\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(0,224,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(0,176,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(0,144,204)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(0,251,144)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,187,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,239,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 9,\r\n \"point\": null,\r\n \"color\": \"rgb(254,191,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 9,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"NHP\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"NHP\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 203.2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"N小时降水累计\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 2.54,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.54,\r\n \"max\": 6.35,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6.35,\r\n \"max\": 12.7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12.7,\r\n \"max\": 19.05,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 19.05,\r\n \"max\": 25.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25.4,\r\n \"max\": 31.75,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 31.75,\r\n \"max\": 38.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38.1,\r\n \"max\": 44.45,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 44.45,\r\n \"max\": 50.8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50.8,\r\n \"max\": 63.5,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 63.5,\r\n \"max\": 76.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 76.2,\r\n \"max\": 101.6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 101.6,\r\n \"max\": 152.4,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 152.4,\r\n \"max\": 203.2,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 203.2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"6087b310-2b71-4a1c-8017-4aa9069b9f9b\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"PRS\",\r\n \"unit\": \"hPa\",\r\n \"maxValue\": 1030,\r\n \"minValue\": 990,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"气压\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": 990,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(2, 163, 233)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1000,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 178, 193)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1010,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(213, 213, 210)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1020,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(161, 120, 73)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1030,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(159, 82, 44)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"QPE\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"QPE\",\r\n \"unit\": \"mm/h\",\r\n \"maxValue\": 203.2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"定量降雨估计\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 2.54,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.54,\r\n \"max\": 6.35,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6.35,\r\n \"max\": 12.7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12.7,\r\n \"max\": 19.05,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 19.05,\r\n \"max\": 25.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25.4,\r\n \"max\": 31.75,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 31.75,\r\n \"max\": 38.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38.1,\r\n \"max\": 44.45,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 44.45,\r\n \"max\": 50.8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50.8,\r\n \"max\": 63.5,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 63.5,\r\n \"max\": 76.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 76.2,\r\n \"max\": 101.6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 101.6,\r\n \"max\": 152.4,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 152.4,\r\n \"max\": 203.2,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 203.2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"f4e42831-6f35-42e8-a9a8-17a76418f674\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"RAIN1H\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 203.2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"1小时降雨(自动站)\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 2.54,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.54,\r\n \"max\": 6.35,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6.35,\r\n \"max\": 12.7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12.7,\r\n \"max\": 19.05,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 19.05,\r\n \"max\": 25.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25.4,\r\n \"max\": 31.75,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 31.75,\r\n \"max\": 38.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38.1,\r\n \"max\": 44.45,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 44.45,\r\n \"max\": 50.8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50.8,\r\n \"max\": 63.5,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 63.5,\r\n \"max\": 76.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 76.2,\r\n \"max\": 101.6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 101.6,\r\n \"max\": 152.4,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 152.4,\r\n \"max\": 203.2,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 203.2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"becd87e7-73b8-49e1-836d-131da8556077\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"RAIN24H\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 203.2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"24小时降雨(自动站)\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 2.54,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.54,\r\n \"max\": 6.35,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6.35,\r\n \"max\": 12.7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12.7,\r\n \"max\": 19.05,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 19.05,\r\n \"max\": 25.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25.4,\r\n \"max\": 31.75,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 31.75,\r\n \"max\": 38.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38.1,\r\n \"max\": 44.45,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 44.45,\r\n \"max\": 50.8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50.8,\r\n \"max\": 63.5,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 63.5,\r\n \"max\": 76.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 76.2,\r\n \"max\": 101.6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 101.6,\r\n \"max\": 152.4,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 152.4,\r\n \"max\": 203.2,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 203.2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"fe99a6e7-7357-41af-8c50-54d57432e5c8\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"RAIN3H\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 203.2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"3小时降雨(自动站)\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 2.54,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.54,\r\n \"max\": 6.35,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6.35,\r\n \"max\": 12.7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12.7,\r\n \"max\": 19.05,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 19.05,\r\n \"max\": 25.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25.4,\r\n \"max\": 31.75,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 31.75,\r\n \"max\": 38.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38.1,\r\n \"max\": 44.45,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 44.45,\r\n \"max\": 50.8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50.8,\r\n \"max\": 63.5,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 63.5,\r\n \"max\": 76.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 76.2,\r\n \"max\": 101.6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 101.6,\r\n \"max\": 152.4,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 152.4,\r\n \"max\": 203.2,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 203.2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"4966cd41-90a7-48a9-885d-bd9e41124038\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"RH2\",\r\n \"unit\": \"%\",\r\n \"maxValue\": 100,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"2米相对湿度\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(236, 112, 96)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 137, 62)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(232, 202, 76)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(178, 220, 87)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(105, 217, 86)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(92, 196, 198)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(72, 158, 215)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(44, 94, 246)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 80,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(28, 43, 188)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 90,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(12, 27, 106)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 100,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(12, 27, 106)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"39addf4f-e817-4b1c-99b3-7fbbb42ae4f7\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"RHU\",\r\n \"unit\": \"%\",\r\n \"maxValue\": 100,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"相对湿度\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(242, 64, 63)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 92, 47)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 172, 54)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 233, 76)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 220, 103)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(13, 179, 116)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(9, 175, 229)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(2, 163, 223)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 80,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(42, 116, 188)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 90,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(102, 92, 169)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"RVD\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"RVD\",\r\n \"unit\": \"/s*1E(-4)\",\r\n \"maxValue\": 60,\r\n \"minValue\": -60,\r\n \"scale\": 0.0001,\r\n \"gradient\": null,\r\n \"remark\": \"径向散度\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -60,\r\n \"max\": -50,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -50,\r\n \"max\": -30,\r\n \"point\": null,\r\n \"color\": \"rgb(0,81,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -30,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(99,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -10,\r\n \"point\": null,\r\n \"color\": \"rgb(181,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": -5,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -5,\r\n \"max\": -1,\r\n \"point\": null,\r\n \"color\": \"rgb(0,182,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -1,\r\n \"max\": -0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(0,117,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -0.2,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,101,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(255,182,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(255,154,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(255,121,123)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(132,0,0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"SNR\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"SNR\",\r\n \"unit\": \"dB\",\r\n \"maxValue\": 10,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(170,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(0,85,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(170,85,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,127)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(85,85,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 9,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,127)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 9,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(170,0,127)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(0,85,127)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"SQI\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"SQI\",\r\n \"unit\": \"\",\r\n \"maxValue\": 60,\r\n \"minValue\": -100,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -100,\r\n \"max\": -60,\r\n \"point\": null,\r\n \"color\": \"rgb(132,84,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -60,\r\n \"max\": -50,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -50,\r\n \"max\": -30,\r\n \"point\": null,\r\n \"color\": \"rgb(0,170,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -30,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(170,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -10,\r\n \"point\": null,\r\n \"color\": \"rgb(170,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": -5,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -5,\r\n \"max\": -1,\r\n \"point\": null,\r\n \"color\": \"rgb(0,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -1,\r\n \"max\": -0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(0,85,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -0.2,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,118,38)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(255,60,229)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(255,146,82)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(170,0,0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"SRM\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"SRM\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 64,\r\n \"minValue\": -64,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"相对风暴速度\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -64,\r\n \"max\": -62,\r\n \"point\": null,\r\n \"color\": \"rgb(202,253,123)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -62,\r\n \"max\": -57,\r\n \"point\": null,\r\n \"color\": \"rgb(162,202,100)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -57,\r\n \"max\": -52,\r\n \"point\": null,\r\n \"color\": \"rgb(106,137,50)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -52,\r\n \"max\": -47,\r\n \"point\": null,\r\n \"color\": \"rgb(79,96,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -47,\r\n \"max\": -42,\r\n \"point\": null,\r\n \"color\": \"rgb(96,157,158)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -42,\r\n \"max\": -37,\r\n \"point\": null,\r\n \"color\": \"rgb(175,195,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -37,\r\n \"max\": -32,\r\n \"point\": null,\r\n \"color\": \"rgb(164,238,253)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -32,\r\n \"max\": -27,\r\n \"point\": null,\r\n \"color\": \"rgb(47,224,251)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -27,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,134,245)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -15,\r\n \"point\": null,\r\n \"color\": \"rgb(54,38,140)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -15,\r\n \"max\": -10,\r\n \"point\": null,\r\n \"color\": \"rgb(59,249,154)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": -5,\r\n \"point\": null,\r\n \"color\": \"rgb(44,183,145)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -5,\r\n \"max\": -1,\r\n \"point\": null,\r\n \"color\": \"rgb(37,139,50)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -1,\r\n \"max\": 0,\r\n \"point\": null,\r\n \"color\": \"rgb(203,188,160)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(246,129,57)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(255,201,76)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(255,251,91)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(168,0,28)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 27,\r\n \"point\": null,\r\n \"color\": \"rgb(204,108,48)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 27,\r\n \"max\": 32,\r\n \"point\": null,\r\n \"color\": \"rgb(251,0,39)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": 37,\r\n \"point\": null,\r\n \"color\": \"rgb(253,190,201)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 37,\r\n \"max\": 42,\r\n \"point\": null,\r\n \"color\": \"rgb(253,105,108)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 42,\r\n \"max\": 47,\r\n \"point\": null,\r\n \"color\": \"rgb(147,64,65)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 47,\r\n \"max\": 52,\r\n \"point\": null,\r\n \"color\": \"rgb(215,114,210)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 52,\r\n \"max\": 57,\r\n \"point\": null,\r\n \"color\": \"rgb(253,40,250)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 57,\r\n \"max\": 62,\r\n \"point\": null,\r\n \"color\": \"rgb(182,71,241)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 62,\r\n \"max\": 64,\r\n \"point\": null,\r\n \"color\": \"rgb(113,47,149)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 64,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(137,22,135)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"STP\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"STP\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 203.2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"风暴总累积降水量\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0.01,\r\n \"max\": 2.54,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.54,\r\n \"max\": 6.35,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6.35,\r\n \"max\": 12.7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12.7,\r\n \"max\": 19.05,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 19.05,\r\n \"max\": 25.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25.4,\r\n \"max\": 31.75,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 31.75,\r\n \"max\": 38.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38.1,\r\n \"max\": 44.45,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 44.45,\r\n \"max\": 50.8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50.8,\r\n \"max\": 63.5,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 63.5,\r\n \"max\": 76.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 76.2,\r\n \"max\": 101.6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 101.6,\r\n \"max\": 152.4,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 152.4,\r\n \"max\": 203.2,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 203.2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"SWP\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"SWP\",\r\n \"unit\": \"\",\r\n \"maxValue\": 50,\r\n \"minValue\": 20,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"强天气概率\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 20,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"T\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"T\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 75,\r\n \"minValue\": 5,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"原始反射率\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(35,236,235)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(19,160,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,41,240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(43,252,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(34,197,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(24,142,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(229,189,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(253,141,42)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(163,0,17)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(252,40,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 75,\r\n \"point\": null,\r\n \"color\": \"rgb(149,89,195)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 75,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"a77a312b-7603-46ef-800b-561d6b79565b\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"T2\",\r\n \"unit\": \"℃\",\r\n \"maxValue\": 36,\r\n \"minValue\": -36,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"2米温度\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": -36,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(129, 1, 118)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -32,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 46, 134)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -28,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(26, 91, 161)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -24,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 115, 212)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(59, 157, 235)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -16,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(112, 210, 250)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -12,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(148, 224, 244)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(190, 251, 251)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -4,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(240, 255, 252)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(224, 253, 218)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(202, 244, 196)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(193, 255, 204)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(254, 254, 166)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 16,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(244, 239, 192)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(249, 222, 176)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 24,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(251, 177, 124)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 28,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(230, 144, 144)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 85, 0)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 36,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(220, 32, 41)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"b5651fa4-7182-461a-9afd-a14635addeb3\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"TD2\",\r\n \"unit\": \"℃\",\r\n \"maxValue\": 36,\r\n \"minValue\": -36,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"两米露点温度\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": -36,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(129, 1, 118)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -32,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 46, 134)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -28,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(26, 91, 161)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -24,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 115, 212)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(59, 157, 235)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -16,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(112, 210, 250)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -12,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(148, 224, 244)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(190, 251, 251)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -4,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(240, 255, 252)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(224, 253, 218)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(202, 244, 196)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(193, 255, 204)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(254, 254, 166)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 16,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(244, 239, 192)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(249, 222, 176)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 24,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(251, 177, 124)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 28,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(230, 144, 144)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 85, 0)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 36,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(220, 32, 41)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"TOPS\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"TOPS\",\r\n \"unit\": \"km\",\r\n \"maxValue\": 21,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"回波顶高\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(190,190,190)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(0,224,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(0,176,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,144,204)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 9,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 9,\r\n \"max\": 11,\r\n \"point\": null,\r\n \"color\": \"rgb(0,254,144)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 11,\r\n \"max\": 12,\r\n \"point\": null,\r\n \"color\": \"rgb(0,187,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": 14,\r\n \"point\": null,\r\n \"color\": \"rgb(0,239,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(254,191,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 17,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,60)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 17,\r\n \"max\": 18,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 21,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 21,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(231,0,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"V\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"V\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 64,\r\n \"minValue\": -64,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"径向速度\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -64,\r\n \"max\": -62,\r\n \"point\": null,\r\n \"color\": \"rgb(202,253,123)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -62,\r\n \"max\": -57,\r\n \"point\": null,\r\n \"color\": \"rgb(162,202,100)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -57,\r\n \"max\": -52,\r\n \"point\": null,\r\n \"color\": \"rgb(106,137,50)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -52,\r\n \"max\": -47,\r\n \"point\": null,\r\n \"color\": \"rgb(79,96,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -47,\r\n \"max\": -42,\r\n \"point\": null,\r\n \"color\": \"rgb(96,157,158)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -42,\r\n \"max\": -37,\r\n \"point\": null,\r\n \"color\": \"rgb(175,195,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -37,\r\n \"max\": -32,\r\n \"point\": null,\r\n \"color\": \"rgb(164,238,253)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -32,\r\n \"max\": -27,\r\n \"point\": null,\r\n \"color\": \"rgb(47,224,251)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -27,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,134,245)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -15,\r\n \"point\": null,\r\n \"color\": \"rgb(54,38,140)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -15,\r\n \"max\": -10,\r\n \"point\": null,\r\n \"color\": \"rgb(59,249,154)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": -5,\r\n \"point\": null,\r\n \"color\": \"rgb(44,183,145)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -5,\r\n \"max\": -1,\r\n \"point\": null,\r\n \"color\": \"rgb(37,139,50)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -1,\r\n \"max\": 0,\r\n \"point\": null,\r\n \"color\": \"rgb(203,188,160)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(246,129,57)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(255,201,76)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(255,251,91)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(168,0,28)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 27,\r\n \"point\": null,\r\n \"color\": \"rgb(204,108,48)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 27,\r\n \"max\": 32,\r\n \"point\": null,\r\n \"color\": \"rgb(251,0,39)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": 37,\r\n \"point\": null,\r\n \"color\": \"rgb(253,190,201)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 37,\r\n \"max\": 42,\r\n \"point\": null,\r\n \"color\": \"rgb(253,105,108)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 42,\r\n \"max\": 47,\r\n \"point\": null,\r\n \"color\": \"rgb(147,64,65)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 47,\r\n \"max\": 52,\r\n \"point\": null,\r\n \"color\": \"rgb(215,114,210)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 52,\r\n \"max\": 57,\r\n \"point\": null,\r\n \"color\": \"rgb(253,40,250)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 57,\r\n \"max\": 62,\r\n \"point\": null,\r\n \"color\": \"rgb(182,71,241)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 62,\r\n \"max\": 64,\r\n \"point\": null,\r\n \"color\": \"rgb(113,47,149)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 64,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(137,22,135)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"VAD\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"VAD\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 50,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"速度方位\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(150,150,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 18,\r\n \"point\": null,\r\n \"color\": \"rgb(241,208,231)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(162,130,144)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 41,\r\n \"point\": null,\r\n \"color\": \"rgb(43,166,41)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 41,\r\n \"max\": 46,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,127)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 46,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(170,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,127)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"VIL\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"VIL\",\r\n \"unit\": \"kg/m^2\",\r\n \"maxValue\": 70,\r\n \"minValue\": 1,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"垂直累积液态水含量\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 1,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(156,156,156)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(250,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(238,140,140)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(201,112,112)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(0,251,144)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(0,187,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,112)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(208,208,96)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(255,96,96)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(231,0,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"76fabf55-8a1c-4933-ace6-97923879d0cd\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"VIS\",\r\n \"unit\": \"KM\",\r\n \"maxValue\": 15,\r\n \"minValue\": 0,\r\n \"scale\": 0.001,\r\n \"gradient\": null,\r\n \"remark\": \"能见度\",\r\n \"productType\": \"STATION\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(196, 84, 178)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(172, 77, 75)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(102, 92, 169)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(111, 174, 95)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(86, 176, 121)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"VWP\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"VWP\",\r\n \"unit\": \"\",\r\n \"maxValue\": 10,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"风廓线\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(170,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(170,255,127)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(170,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,127)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"78475404-1a27-44a6-914c-4860d457ed57\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"WIND\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 30,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"风速\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(102, 92, 169)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(42, 116, 188)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(9, 175, 229)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(13, 179, 116)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(237, 213, 39)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(196, 84, 178)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(54, 137, 215)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"AHP\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"AHP\",\r\n \"unit\": \"\",\r\n \"maxValue\": 150,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(151,222,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(10,146,219)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(18,122,201)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(160,200,43)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(255,242,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(250,180,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(244,103,23)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 100,\r\n \"point\": null,\r\n \"color\": \"rgb(237,28,36)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 100,\r\n \"max\": 150,\r\n \"point\": null,\r\n \"color\": \"rgb(236,0,140)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 150,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(159,67,116)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"2f685afa-1557-4bc4-a916-4a2985cf84c1\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"WI\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 48,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"大风指数\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(228, 234, 206)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 24,\r\n \"point\": null,\r\n \"color\": \"rgb(206, 227, 238)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 24,\r\n \"max\": 26,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 202, 255)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 26,\r\n \"max\": 32,\r\n \"point\": null,\r\n \"color\": \"rgb(127, 151, 255)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": 36,\r\n \"point\": null,\r\n \"color\": \"rgb(171, 207, 99)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 36,\r\n \"max\": 44,\r\n \"point\": null,\r\n \"color\": \"rgb(232, 245, 158)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 44,\r\n \"max\": 48,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 209, 33)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 48,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(246, 144, 13)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"7da262ab-9f3b-48f5-b2ef-bcfb6b7f0129\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"SRH\",\r\n \"unit\": \"m^2/s^2\",\r\n \"maxValue\": 2400,\r\n \"minValue\": -1600,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"风暴相对螺旋度\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -1600,\r\n \"max\": -1200,\r\n \"point\": null,\r\n \"color\": \"rgb(66, 106, 175)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -1200,\r\n \"max\": -800,\r\n \"point\": null,\r\n \"color\": \"rgb(101, 157, 201)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -800,\r\n \"max\": -400,\r\n \"point\": null,\r\n \"color\": \"rgb(129, 183, 215)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -400,\r\n \"max\": 0,\r\n \"point\": null,\r\n \"color\": \"rgb(176, 219, 235)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": 400,\r\n \"point\": null,\r\n \"color\": \"rgb(241, 235, 197)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 400,\r\n \"max\": 800,\r\n \"point\": null,\r\n \"color\": \"rgb(254, 207, 128)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 800,\r\n \"max\": 1200,\r\n \"point\": null,\r\n \"color\": \"rgb(251, 163, 91)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1200,\r\n \"max\": 1600,\r\n \"point\": null,\r\n \"color\": \"rgb(246, 124, 73)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1600,\r\n \"max\": 2000,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 90, 59)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2000,\r\n \"max\": 2400,\r\n \"point\": null,\r\n \"color\": \"rgb(221, 56, 43)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2400,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(193, 27, 39)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"379bc585-9bb8-41dc-8025-508aabbcea09\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"WINDF\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 24.5,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": false,\r\n \"remark\": \"短临外推风力产品\",\r\n \"productType\": \"FORECAST\",\r\n \"items\": [\r\n {\r\n \"min\": 3.4,\r\n \"max\": 5.5,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5.5,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(138, 55, 244)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 10.8,\r\n \"point\": null,\r\n \"color\": \"rgb(1, 37, 230)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10.8,\r\n \"max\": 13.9,\r\n \"point\": null,\r\n \"color\": \"rgb(30, 186, 142)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 13.9,\r\n \"max\": 17.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 255, 72)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 17.2,\r\n \"max\": 20.8,\r\n \"point\": null,\r\n \"color\": \"rgb(251, 203, 58)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20.8,\r\n \"max\": 24.5,\r\n \"point\": null,\r\n \"color\": \"rgb(160, 0, 14)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 24.5,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(248, 144, 147)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"a3dc1bc8-5302-4062-906b-56b84874189e\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"CI\",\r\n \"unit\": null,\r\n \"maxValue\": 0.9,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"对流指数\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(35, 236, 235)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(19, 160, 220)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 0.3,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 41, 240)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.3,\r\n \"max\": 0.4,\r\n \"point\": null,\r\n \"color\": \"rgb(43, 252, 62)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.4,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(34, 197, 49)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 0.6,\r\n \"point\": null,\r\n \"color\": \"rgb(24, 142, 35)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.6,\r\n \"max\": 0.7,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 252, 66)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.7,\r\n \"max\": 0.8,\r\n \"point\": null,\r\n \"color\": \"rgb(229, 189, 51)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.8,\r\n \"max\": 0.9,\r\n \"point\": null,\r\n \"color\": \"rgb(253, 141, 42)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.9,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(252, 0, 25)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"b267b3ee-ebea-4a90-911d-799f78e0c583\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"WINDW\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 34,\r\n \"minValue\": -34,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"垂直风速\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -34,\r\n \"max\": -32,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 30, 70)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -32,\r\n \"max\": -28,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 47, 107)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -28,\r\n \"max\": -24,\r\n \"point\": null,\r\n \"color\": \"rgb(6, 87, 156)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -24,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(32, 113, 181)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -16,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 125, 202)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -16,\r\n \"max\": -12,\r\n \"point\": null,\r\n \"color\": \"rgb(56, 142, 225)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -12,\r\n \"max\": -8,\r\n \"point\": null,\r\n \"color\": \"rgb(84, 164, 242)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -8,\r\n \"max\": -4,\r\n \"point\": null,\r\n \"color\": \"rgb(138, 196, 245)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -4,\r\n \"max\": -1,\r\n \"point\": null,\r\n \"color\": \"rgb(218, 240, 255)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": -1,\r\n \"max\": 0,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 255, 255)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 224, 223)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(252, 186, 170)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(252, 146, 114)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 16,\r\n \"point\": null,\r\n \"color\": \"rgb(251, 105, 74)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 16,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(240, 60, 42)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 24,\r\n \"point\": null,\r\n \"color\": \"rgb(204, 23, 31)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 24,\r\n \"max\": 28,\r\n \"point\": null,\r\n \"color\": \"rgb(166, 15, 19)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 28,\r\n \"max\": 32,\r\n \"point\": null,\r\n \"color\": \"rgb(120, 10, 16)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": 34,\r\n \"point\": null,\r\n \"color\": \"rgb(95, 0, 0)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 34,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(122, 22, 140)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"0f132d83-b662-4a3a-81d9-0aa3aa23b122\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"QSE\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 40,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"定量降雪估计\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(245, 245, 245)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(235, 235, 235)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 225, 225)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(215, 215, 215)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 1.5,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 206, 231)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1.5,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(156, 189, 222)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(132, 173, 214)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(107, 156, 198)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(82, 140, 189)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(57, 119, 181)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 103, 173)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(24, 78, 132)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(19, 50, 109)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(15, 50, 89)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 24, 42)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"d053b1cf-f10f-44c7-8dbf-5e6e1fc660f3\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"OHS\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 40,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"一小时累积降雪量\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(245, 245, 245)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(235, 235, 235)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 225, 225)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(215, 215, 215)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 1.5,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 206, 231)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1.5,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(156, 189, 222)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(132, 173, 214)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(107, 156, 198)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(82, 140, 189)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(57, 119, 181)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 103, 173)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(24, 78, 132)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(19, 50, 109)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(15, 50, 89)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 24, 42)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"bdc51549-4e66-48ba-9ee0-cd0fc4d0a749\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"THS\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 40,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"三小时累积降雪量\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(245, 245, 245)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(235, 235, 235)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 225, 225)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(215, 215, 215)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 1.5,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 206, 231)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1.5,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(156, 189, 222)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(132, 173, 214)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(107, 156, 198)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(82, 140, 189)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(57, 119, 181)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 103, 173)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(24, 78, 132)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(19, 50, 109)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(15, 50, 89)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 24, 42)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"CR\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"CR\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 75,\r\n \"minValue\": 5,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"组合反射率\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(35,236,235)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(19,160,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,41,240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(43,252,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(34,197,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(24,142,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(229,189,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(253,141,42)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(163,0,17)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(252,40,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 75,\r\n \"point\": null,\r\n \"color\": \"rgb(149,89,195)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 75,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"1b1c7deb-3cb0-4158-9e37-2c622ea5e721\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"QSD\",\r\n \"unit\": \"cm\",\r\n \"maxValue\": 40,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"瞬时新增积雪量\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(245, 245, 245)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(235, 235, 235)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 225, 225)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(215, 215, 215)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 1.5,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 206, 231)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1.5,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(156, 189, 222)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(132, 173, 214)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(107, 156, 198)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(82, 140, 189)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(57, 119, 181)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 103, 173)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(24, 78, 132)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(19, 50, 109)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(15, 50, 89)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 24, 42)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"a7a916a3-8597-4848-8ae9-c4d2ea10bab1\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"THD\",\r\n \"unit\": \"cm\",\r\n \"maxValue\": 40,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"三小时累积积雪量\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(245, 245, 245)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(235, 235, 235)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 225, 225)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(215, 215, 215)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 1.5,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 206, 231)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1.5,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(156, 189, 222)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(132, 173, 214)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(107, 156, 198)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(82, 140, 189)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(57, 119, 181)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 103, 173)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(24, 78, 132)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(19, 50, 109)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(15, 50, 89)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 24, 42)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"b59a27fc-b0f0-4458-a13c-c1137b54522b\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"OHD\",\r\n \"unit\": \"cm\",\r\n \"maxValue\": 40,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"一小时累积积雪量\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(245, 245, 245)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(235, 235, 235)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 225, 225)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(215, 215, 215)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 1.5,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 206, 231)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1.5,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(156, 189, 222)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(132, 173, 214)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(107, 156, 198)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(82, 140, 189)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(57, 119, 181)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(33, 103, 173)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(24, 78, 132)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(19, 50, 109)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(15, 50, 89)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 24, 42)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"e262c8ac-ed54-4831-9b6c-7b292ab8244b\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"HCL\",\r\n \"unit\": \"\",\r\n \"maxValue\": 11,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"水凝物分类\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -999,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,46)\",\r\n \"label\": \"小雨\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(0,204,100)\",\r\n \"label\": \"中雨\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(2,100,26)\",\r\n \"label\": \"大雨\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(101,129,28)\",\r\n \"label\": \"大雨滴\"\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(253,1,0)\",\r\n \"label\": \"冰雹\"\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,202,129)\",\r\n \"label\": \"雨加雹\"\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,250)\",\r\n \"label\": \"霰/雹\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,251)\",\r\n \"label\": \"干雪\"\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 9,\r\n \"point\": null,\r\n \"color\": \"rgb(25,25,134)\",\r\n \"label\": \"湿雪\"\r\n },\r\n {\r\n \"min\": 9,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(141,57,242)\",\r\n \"label\": \"H-冰晶\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 11,\r\n \"point\": null,\r\n \"color\": \"rgb(117,113,233)\",\r\n \"label\": \"V-冰晶\"\r\n },\r\n {\r\n \"min\": 11,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(204,204,192)\",\r\n \"label\": \"地物杂波\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"26d9b740-cc61-4807-b879-ce7a4f59f723\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"Z\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 75,\r\n \"minValue\": 5,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"反射率\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(35,236,235)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(19,160,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,41,240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(43,252,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(34,197,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(24,142,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(229,189,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(253,141,42)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(163,0,17)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(252,40,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 75,\r\n \"point\": null,\r\n \"color\": \"rgb(149,89,195)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 75,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"e84ed56b-d643-4f65-9820-75b361eab5bb\",\r\n \"groupId\": \"771171cb-4954-4a7c-b6f2-5441c6a0a523\",\r\n \"name\": \"SNRH\",\r\n \"unit\": \"dB\",\r\n \"maxValue\": 10,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(170,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(0,85,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(170,85,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,127)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(85,85,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 9,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,127)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 9,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(170,0,127)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(0,85,127)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"8ea9b3bb-26e4-4f93-9dfb-6164bf1c1c2e\",\r\n \"groupId\": \"66bcaa69938cbc67fb027cb0\",\r\n \"name\": \"THP\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 203.2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"3小时降雨累计\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 2.54,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.54,\r\n \"max\": 6.35,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6.35,\r\n \"max\": 12.7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12.7,\r\n \"max\": 19.05,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 19.05,\r\n \"max\": 25.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25.4,\r\n \"max\": 31.75,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 31.75,\r\n \"max\": 38.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38.1,\r\n \"max\": 44.45,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 44.45,\r\n \"max\": 50.8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50.8,\r\n \"max\": 63.5,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 63.5,\r\n \"max\": 76.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 76.2,\r\n \"max\": 101.6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 101.6,\r\n \"max\": 152.4,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 152.4,\r\n \"max\": 203.2,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 203.2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"bcbadf6c-4507-4ca5-9806-cb120a880def\",\r\n \"groupId\": \"66bcaa69938cbc67fb027cb0\",\r\n \"name\": \"RANLV\",\r\n \"unit\": \"\",\r\n \"maxValue\": 2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": null,\r\n \"items\": [\r\n {\r\n \"min\": -999,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": \"小雨\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": \"中雨\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 9999,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": \"大雨\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"6fc02a9b-94d1-4b46-965a-01aee8955714\",\r\n \"groupId\": \"66bcaa69938cbc67fb027cb0\",\r\n \"name\": \"ALA\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 100,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": 15,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 229, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 209, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 39, 0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"d663dc16-5dae-4fa8-9d9f-241c03cfe1ed\",\r\n \"groupId\": \"66bcaa69938cbc67fb027cb0\",\r\n \"name\": \"RCR\",\r\n \"unit\": \"\",\r\n \"maxValue\": 9999,\r\n \"minValue\": 20,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": null,\r\n \"items\": [\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": \"小雨\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": \"中雨\"\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 9999,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": \"大雨\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"a67f5524-7bed-4fa3-9062-20fabd150160\",\r\n \"groupId\": \"66bcaa69938cbc67fb027cb0\",\r\n \"name\": \"RCRN\",\r\n \"unit\": \"\",\r\n \"maxValue\": 9999,\r\n \"minValue\": 20,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": null,\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(118, 230, 232)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 9999,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"6928e78a-ef8f-499e-806b-ed8fb3c94a99\",\r\n \"groupId\": \"672c72d23fc19a7818f89da3\",\r\n \"name\": \"GOP\",\r\n \"unit\": \"\",\r\n \"maxValue\": 2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": null,\r\n \"items\": [\r\n {\r\n \"min\": -999,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": \"小雨\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": \"中雨\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 9999,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": \"大雨\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"CC\",\r\n \"groupId\": \"672c72d23fc19a7818f89da3\",\r\n \"name\": \"CC\",\r\n \"unit\": \"\",\r\n \"maxValue\": 0.99,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"相关系数\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(0,73,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.3,\r\n \"point\": null,\r\n \"color\": \"rgb(36,239,238)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.3,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(27,185,189)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 0.6,\r\n \"point\": null,\r\n \"color\": \"rgb(20,130,124)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.6,\r\n \"max\": 0.7,\r\n \"point\": null,\r\n \"color\": \"rgb(23,135,65)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.7,\r\n \"max\": 0.8,\r\n \"point\": null,\r\n \"color\": \"rgb(31,180,61)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.8,\r\n \"max\": 0.85,\r\n \"point\": null,\r\n \"color\": \"rgb(37,215,56)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.85,\r\n \"max\": 0.9,\r\n \"point\": null,\r\n \"color\": \"rgb(43,253,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.9,\r\n \"max\": 0.92,\r\n \"point\": null,\r\n \"color\": \"rgb(255,253,87)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.92,\r\n \"max\": 0.94,\r\n \"point\": null,\r\n \"color\": \"rgb(255,237,63)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.94,\r\n \"max\": 0.95,\r\n \"point\": null,\r\n \"color\": \"rgb(255,195,53)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.95,\r\n \"max\": 0.96,\r\n \"point\": null,\r\n \"color\": \"rgb(253,161,46)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.96,\r\n \"max\": 0.97,\r\n \"point\": null,\r\n \"color\": \"rgb(254,112,37)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.97,\r\n \"max\": 0.98,\r\n \"point\": null,\r\n \"color\": \"rgb(253,32,27)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.98,\r\n \"max\": 0.99,\r\n \"point\": null,\r\n \"color\": \"rgb(190,0,19)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.99,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(209,25,165)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"W\",\r\n \"groupId\": \"672c72d23fc19a7818f89da3\",\r\n \"name\": \"W\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 14,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"基本谱宽\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(46,59,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(0,103,250)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(37,163,251)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(54,218,253)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(65,255,221)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(68,254,152)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(70,253,83)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(145,253,64)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 9,\r\n \"point\": null,\r\n \"color\": \"rgb(197,253,65)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 9,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(238,253,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 11,\r\n \"point\": null,\r\n \"color\": \"rgb(242,198,58)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 11,\r\n \"max\": 12,\r\n \"point\": null,\r\n \"color\": \"rgb(254,148,43)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": 13,\r\n \"point\": null,\r\n \"color\": \"rgb(254,103,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 13,\r\n \"max\": 14,\r\n \"point\": null,\r\n \"color\": \"rgb(253,49,28)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(253,7,114)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"5ecb0f04-dbe5-4a3c-b96c-9244d3fda2cd\",\r\n \"groupId\": \"672c72d23fc19a7818f89da3\",\r\n \"name\": \"WINDS\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 32,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"风速\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(92, 246, 255)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(30, 225, 255)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(81, 169, 255)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(30, 137, 254)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(156, 207, 49)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 12,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 176, 88)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": 14,\r\n \"point\": null,\r\n \"color\": \"rgb(45, 139, 87)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": 16,\r\n \"point\": null,\r\n \"color\": \"rgb(19, 101, 193)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 16,\r\n \"max\": 18,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 57, 156)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 191, 107)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 22,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 225, 50)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 22,\r\n \"max\": 24,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 121, 4)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 24,\r\n \"max\": 26,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 0, 0)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 26,\r\n \"max\": 28,\r\n \"point\": null,\r\n \"color\": \"rgb(186, 38, 31)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 28,\r\n \"max\": 32,\r\n \"point\": null,\r\n \"color\": \"rgb(140, 94, 233)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(252, 2, 228)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"PHIDP\",\r\n \"groupId\": \"672c72d23fc19a7818f89da3\",\r\n \"name\": \"PHIDP\",\r\n \"unit\": \"deg\",\r\n \"maxValue\": 360,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"差分传播相位\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 24,\r\n \"point\": null,\r\n \"color\": \"rgb(0,53,173)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 24,\r\n \"max\": 48,\r\n \"point\": null,\r\n \"color\": \"rgb(36,239,238)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 48,\r\n \"max\": 72,\r\n \"point\": null,\r\n \"color\": \"rgb(27,185,189)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 72,\r\n \"max\": 96,\r\n \"point\": null,\r\n \"color\": \"rgb(20,130,124)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 96,\r\n \"max\": 120,\r\n \"point\": null,\r\n \"color\": \"rgb(23,135,65)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 120,\r\n \"max\": 144,\r\n \"point\": null,\r\n \"color\": \"rgb(31,180,61)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 144,\r\n \"max\": 168,\r\n \"point\": null,\r\n \"color\": \"rgb(37,215,56)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 168,\r\n \"max\": 192,\r\n \"point\": null,\r\n \"color\": \"rgb(43,253,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 192,\r\n \"max\": 216,\r\n \"point\": null,\r\n \"color\": \"rgb(255,253,87)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 216,\r\n \"max\": 240,\r\n \"point\": null,\r\n \"color\": \"rgb(255,237,63)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 240,\r\n \"max\": 264,\r\n \"point\": null,\r\n \"color\": \"rgb(255,195,53)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 264,\r\n \"max\": 288,\r\n \"point\": null,\r\n \"color\": \"rgb(254,162,46)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 288,\r\n \"max\": 312,\r\n \"point\": null,\r\n \"color\": \"rgb(254,112,37)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 312,\r\n \"max\": 336,\r\n \"point\": null,\r\n \"color\": \"rgb(253,32,27)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 336,\r\n \"max\": 360,\r\n \"point\": null,\r\n \"color\": \"rgb(190,0,19)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 360,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(209,25,165)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"ccc8654e-8f14-44df-b6bb-c2f1487d7446\",\r\n \"groupId\": \"672c72d23fc19a7818f89da3\",\r\n \"name\": \"OHP\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 203.2,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"1小时降水累计\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 2.54,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.54,\r\n \"max\": 6.35,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6.35,\r\n \"max\": 12.7,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12.7,\r\n \"max\": 19.05,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 19.05,\r\n \"max\": 25.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25.4,\r\n \"max\": 31.75,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 31.75,\r\n \"max\": 38.1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38.1,\r\n \"max\": 44.45,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 44.45,\r\n \"max\": 50.8,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50.8,\r\n \"max\": 63.5,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 63.5,\r\n \"max\": 76.2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 76.2,\r\n \"max\": 101.6,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 101.6,\r\n \"max\": 152.4,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 152.4,\r\n \"max\": 203.2,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 203.2,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"1c0a147d-d7ea-41f3-a6b9-f8fd46da58c8\",\r\n \"groupId\": \"672c72d23fc19a7818f89da3\",\r\n \"name\": \"TI\",\r\n \"unit\": \"m^(2/3)/s\",\r\n \"maxValue\": 9999,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.1,\r\n \"point\": null,\r\n \"color\": \"rgb(192, 192, 192)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.1,\r\n \"max\": 0.4,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 255, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.4,\r\n \"max\": 0.7,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 255, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.7,\r\n \"max\": 9999,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 0, 0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"282816d5-8a1e-405e-9bea-b9e29beac15b\",\r\n \"groupId\": \"672c72d23fc19a7818f89da3\",\r\n \"name\": \"SMP\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 10,\r\n \"minValue\": 1,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"6分钟雨量\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.02,\r\n \"point\": null,\r\n \"color\": \"rgb(205, 244, 206)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.02,\r\n \"max\": 0.3,\r\n \"point\": null,\r\n \"color\": \"rgb(170, 248, 164)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.3,\r\n \"max\": 1.2,\r\n \"point\": null,\r\n \"color\": \"rgb(69, 245, 69)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1.2,\r\n \"max\": 2.5,\r\n \"point\": null,\r\n \"color\": \"rgb(111, 181, 251)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2.5,\r\n \"max\": 4.5,\r\n \"point\": null,\r\n \"color\": \"rgb(71, 56, 250)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 4.5,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(198, 61, 247)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(167, 56, 133)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"0eb66b4f-c6f0-4a6a-bf65-7640da83b22d\",\r\n \"groupId\": \"672c72d23fc19a7818f89da3\",\r\n \"name\": \"WIND10\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 30,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(102, 92, 169)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(42, 116, 188)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(9, 175, 229)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(13, 179, 116)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(237, 213, 39)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(196, 84, 178)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(54, 137, 215)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"3bc78549-b6cb-4a2e-b40e-e43ba8de23b2\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"AP1H\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 200,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"1小时雨量\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 2.5,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.5,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 80,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 80,\r\n \"max\": 100,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 101, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 100,\r\n \"max\": 150,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 150,\r\n \"max\": 200,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 200,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"a3ae18d3-860c-48b8-8db5-51b96ffbad7e\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"AP3H\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 200,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"3小时雨量\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(170,170,170)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(118,118,118)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 2.5,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.5,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(0,175,175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(0,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(0,143,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(175,50,125)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(0,0,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(50,0,150)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 80,\r\n \"point\": null,\r\n \"color\": \"rgb(255,170,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 80,\r\n \"max\": 100,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 101, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 100,\r\n \"max\": 150,\r\n \"point\": null,\r\n \"color\": \"rgb(255,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 150,\r\n \"max\": 200,\r\n \"point\": null,\r\n \"color\": \"rgb(174,0,0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 200,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"5b0944f7-ccfa-415a-b6a7-f6dd2ae50d66\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_r_multiple\",\r\n \"unit\": \"%\",\r\n \"maxValue\": 100,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"相对湿度\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(156, 143, 82)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(159, 146, 81)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(162, 148, 83)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(160, 146, 79)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(161, 147, 77)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(180, 169, 117)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(194, 188, 160)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 80,\r\n \"point\": null,\r\n \"color\": \"rgb(206, 206, 206)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 80,\r\n \"max\": 90,\r\n \"point\": null,\r\n \"color\": \"rgb(226, 226, 226)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 90,\r\n \"max\": 100,\r\n \"point\": null,\r\n \"color\": \"rgb(241, 241, 241)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 100,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 255, 255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"50f8f4db-2589-43f2-bac3-c527cb24b9ce\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_t2m_single\",\r\n \"unit\": \"℃\",\r\n \"maxValue\": 50,\r\n \"minValue\": -40,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"2米气温\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": -40,\r\n \"max\": -30,\r\n \"point\": null,\r\n \"color\": \"rgb(226, 226, 226)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -30,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(244, 166, 244)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -15,\r\n \"point\": null,\r\n \"color\": \"rgb(144, 25, 144)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -15,\r\n \"max\": -10,\r\n \"point\": null,\r\n \"color\": \"rgb(42, 30, 105)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": -5,\r\n \"point\": null,\r\n \"color\": \"rgb(87, 81, 173)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -5,\r\n \"max\": 0,\r\n \"point\": null,\r\n \"color\": \"rgb(67, 119, 190)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(80, 177, 151)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(94, 201, 78)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(183, 217, 66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 206, 60)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 160, 68)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(218, 107, 83)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(183, 53, 103)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(107, 21, 39)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(43, 1, 0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"6798eada-c2cd-4edc-8ed2-ad76041d6dd4\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_t_multiple\",\r\n \"unit\": \"℃\",\r\n \"maxValue\": 50,\r\n \"minValue\": -40,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"气温\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": -40,\r\n \"max\": -30,\r\n \"point\": null,\r\n \"color\": \"rgb(226, 226, 226)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -30,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(244, 166, 244)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -15,\r\n \"point\": null,\r\n \"color\": \"rgb(144, 25, 144)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -15,\r\n \"max\": -10,\r\n \"point\": null,\r\n \"color\": \"rgb(42, 30, 105)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": -5,\r\n \"point\": null,\r\n \"color\": \"rgb(87, 81, 173)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -5,\r\n \"max\": 0,\r\n \"point\": null,\r\n \"color\": \"rgb(67, 119, 190)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(80, 177, 151)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(94, 201, 78)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(183, 217, 66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 206, 60)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 160, 68)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(218, 107, 83)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(183, 53, 103)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(107, 21, 39)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(43, 1, 0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"2f07bb01-aa12-4dcc-a7b8-157a0cc1260b\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_wind10_single\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 42,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"10米风\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(88, 82, 112)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(84, 89, 171)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(68, 133, 187)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(79, 168, 143)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(79, 191, 73)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 12,\r\n \"point\": null,\r\n \"color\": \"rgb(141, 201, 77)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": 14,\r\n \"point\": null,\r\n \"color\": \"rgb(203, 215, 69)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": 18,\r\n \"point\": null,\r\n \"color\": \"rgb(215, 189, 65)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": 22,\r\n \"point\": null,\r\n \"color\": \"rgb(214, 155, 70)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 22,\r\n \"max\": 26,\r\n \"point\": null,\r\n \"color\": \"rgb(212, 119, 76)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 26,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(199, 70, 110)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 34,\r\n \"point\": null,\r\n \"color\": \"rgb(165, 56, 92)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 34,\r\n \"max\": 38,\r\n \"point\": null,\r\n \"color\": \"rgb(144, 30, 80)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38,\r\n \"max\": 42,\r\n \"point\": null,\r\n \"color\": \"rgb(99, 27, 28)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 42,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(43, 1, 0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"7e1c42df-d806-48b0-8ac7-63e8bc7f952f\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_wind_multiple\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 42,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"高层风\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(88, 82, 112)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(84, 89, 171)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(68, 133, 187)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(79, 168, 143)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(79, 191, 73)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 12,\r\n \"point\": null,\r\n \"color\": \"rgb(141, 201, 77)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": 14,\r\n \"point\": null,\r\n \"color\": \"rgb(203, 215, 69)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": 18,\r\n \"point\": null,\r\n \"color\": \"rgb(215, 189, 65)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": 22,\r\n \"point\": null,\r\n \"color\": \"rgb(214, 155, 70)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 22,\r\n \"max\": 26,\r\n \"point\": null,\r\n \"color\": \"rgb(212, 119, 76)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 26,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(199, 70, 110)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 34,\r\n \"point\": null,\r\n \"color\": \"rgb(165, 56, 92)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 34,\r\n \"max\": 38,\r\n \"point\": null,\r\n \"color\": \"rgb(144, 30, 80)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 38,\r\n \"max\": 42,\r\n \"point\": null,\r\n \"color\": \"rgb(99, 27, 28)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 42,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(43, 1, 0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"b5821ff9-c8ab-499d-8b9c-109e6c8ef390\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_q_multiple\",\r\n \"unit\": \"g/kg\",\r\n \"maxValue\": 18,\r\n \"minValue\": 2,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"比湿\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": 2,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 255, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(214, 253, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(51, 255, 240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(51, 196, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 12,\r\n \"point\": null,\r\n \"color\": \"rgb(51, 125, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": 14,\r\n \"point\": null,\r\n \"color\": \"rgb(150, 227, 68)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": 16,\r\n \"point\": null,\r\n \"color\": \"rgb(207, 253, 169)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 16,\r\n \"max\": 18,\r\n \"point\": null,\r\n \"color\": \"rgb(248, 242, 61)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 156, 49)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"5a86d025-9c56-4abc-8e06-48aa89c81e8e\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_z_multiple\",\r\n \"unit\": \"m\",\r\n \"maxValue\": 35,\r\n \"minValue\": -40,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"位势\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": -40,\r\n \"max\": -35,\r\n \"point\": null,\r\n \"color\": \"rgb(113, 62, 131)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -35,\r\n \"max\": -28,\r\n \"point\": null,\r\n \"color\": \"rgb(139, 78, 158)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -28,\r\n \"max\": -26,\r\n \"point\": null,\r\n \"color\": \"rgb(158, 82, 183)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -26,\r\n \"max\": -24,\r\n \"point\": null,\r\n \"color\": \"rgb(192, 156, 204)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -24,\r\n \"max\": -22,\r\n \"point\": null,\r\n \"color\": \"rgb(215, 189, 226)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -22,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(234, 223, 237)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -18,\r\n \"point\": null,\r\n \"color\": \"rgb(27, 76, 116)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -18,\r\n \"max\": -16,\r\n \"point\": null,\r\n \"color\": \"rgb(30, 98, 137)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -16,\r\n \"max\": -14,\r\n \"point\": null,\r\n \"color\": \"rgb(41, 115, 160)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -14,\r\n \"max\": -12,\r\n \"point\": null,\r\n \"color\": \"rgb(47, 156, 210)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -12,\r\n \"max\": -10,\r\n \"point\": null,\r\n \"color\": \"rgb(94, 172, 221)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": -8,\r\n \"point\": null,\r\n \"color\": \"rgb(135, 193, 231)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -8,\r\n \"max\": -6,\r\n \"point\": null,\r\n \"color\": \"rgb(178, 212, 237)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -6,\r\n \"max\": -4,\r\n \"point\": null,\r\n \"color\": \"rgb(211, 233, 248)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -4,\r\n \"max\": -2,\r\n \"point\": null,\r\n \"color\": \"rgb(237, 244, 250)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -2,\r\n \"max\": 0,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 255, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(254, 254, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(254, 225, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(254, 211, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(254, 200, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(246, 191, 67)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 12,\r\n \"point\": null,\r\n \"color\": \"rgb(254, 175, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 12,\r\n \"max\": 14,\r\n \"point\": null,\r\n \"color\": \"rgb(254, 150, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 14,\r\n \"max\": 16,\r\n \"point\": null,\r\n \"color\": \"rgb(252, 190, 185)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 16,\r\n \"max\": 18,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 163, 146)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 18,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 132, 117)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 22,\r\n \"point\": null,\r\n \"color\": \"rgb(238, 72, 64)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 22,\r\n \"max\": 24,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 193, 232)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 24,\r\n \"max\": 26,\r\n \"point\": null,\r\n \"color\": \"rgb(249, 164, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 26,\r\n \"max\": 28,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 109, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 28,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 73, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(227, 0, 232)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(207, 11, 199)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"3bd89366-ac87-4638-a2a8-58cdf0a9ad78\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_msl_single\",\r\n \"unit\": \"hPa\",\r\n \"maxValue\": 1054,\r\n \"minValue\": 940,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"海平面气压\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": 940,\r\n \"max\": 948,\r\n \"point\": null,\r\n \"color\": \"rgb(238, 238, 238)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 948,\r\n \"max\": 956,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 51, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 956,\r\n \"max\": 964,\r\n \"point\": null,\r\n \"color\": \"rgb(157, 29, 156)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 964,\r\n \"max\": 973,\r\n \"point\": null,\r\n \"color\": \"rgb(38, 29, 101)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 973,\r\n \"max\": 981,\r\n \"point\": null,\r\n \"color\": \"rgb(87, 80, 162)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 981,\r\n \"max\": 989,\r\n \"point\": null,\r\n \"color\": \"rgb(67, 119, 183)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 989,\r\n \"max\": 997,\r\n \"point\": null,\r\n \"color\": \"rgb(79, 171, 129)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 997,\r\n \"max\": 1005,\r\n \"point\": null,\r\n \"color\": \"rgb(110, 193, 86)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1005,\r\n \"max\": 1013,\r\n \"point\": null,\r\n \"color\": \"rgb(194, 194, 68)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1013,\r\n \"max\": 1021,\r\n \"point\": null,\r\n \"color\": \"rgb(214, 183, 64)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1021,\r\n \"max\": 1030,\r\n \"point\": null,\r\n \"color\": \"rgb(213, 134, 74)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1030,\r\n \"max\": 1038,\r\n \"point\": null,\r\n \"color\": \"rgb(201, 74, 110)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1038,\r\n \"max\": 1046,\r\n \"point\": null,\r\n \"color\": \"rgb(156, 46, 90)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1046,\r\n \"max\": 1054,\r\n \"point\": null,\r\n \"color\": \"rgb(109, 26, 48)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1054,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(47, 6, 7)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"c4085783-16aa-48fc-93c1-dfd445fd9bf9\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_d_multiple\",\r\n \"unit\": \"10^-5/s\",\r\n \"maxValue\": 53.3,\r\n \"minValue\": -36.1,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"散度\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": -36.1,\r\n \"max\": -18.2,\r\n \"point\": null,\r\n \"color\": \"rgb(10, 23, 219)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -18.2,\r\n \"max\": -0.3,\r\n \"point\": null,\r\n \"color\": \"rgb(93, 178, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -0.3,\r\n \"max\": 17.5,\r\n \"point\": null,\r\n \"color\": \"rgb(166, 243, 255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 17.5,\r\n \"max\": 35.4,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 220, 5)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35.4,\r\n \"max\": 53.3,\r\n \"point\": null,\r\n \"color\": \"rgb(238, 72, 64)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 53.3,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(128, 0, 0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"cdc5ce80-805b-452e-bb59-bc27ae166ede\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_d2m_single\",\r\n \"unit\": \"℃\",\r\n \"maxValue\": 40,\r\n \"minValue\": -20,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"2米露点温度\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": -40,\r\n \"max\": -30,\r\n \"point\": null,\r\n \"color\": \"rgb(144, 25, 144)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -30,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(148, 136, 210)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -10,\r\n \"point\": null,\r\n \"color\": \"rgb(159, 227, 221)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": 0,\r\n \"point\": null,\r\n \"color\": \"rgb(115, 200, 192)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(92, 139, 185)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(94, 139, 50)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(225, 160, 68)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(218, 107, 83)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(107, 21, 39)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"47f5582b-2aaf-4d80-877f-1d8a20a20560\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"IC\",\r\n \"unit\": null,\r\n \"maxValue\": 3,\r\n \"minValue\": 1,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"积冰指数\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(173, 216, 230)\",\r\n \"label\": \"轻度\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 255, 0)\",\r\n \"label\": \"中度\"\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255, 0, 0)\",\r\n \"label\": \"严重\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"3bb41af2-d24f-4526-af55-e8cb4f6417c7\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"EC_lcc_single\",\r\n \"unit\": \"oktas\",\r\n \"maxValue\": 8,\r\n \"minValue\": 0,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"低云量\",\r\n \"productType\": \"OTHER\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(211, 211, 211)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(185, 185, 186)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(163, 172, 183)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(136, 154, 175)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(135, 149, 164)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(133, 143, 153)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(130, 135, 140)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": 8,\r\n \"point\": null,\r\n \"color\": \"rgb(129, 130, 128)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 8,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(128, 124, 114)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"a350c2f9-7c44-43ca-b41d-114b63effc9b\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"ZDR\",\r\n \"unit\": \"dB\",\r\n \"maxValue\": 5,\r\n \"minValue\": -4,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"差分反射率因子\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -4,\r\n \"max\": -3,\r\n \"point\": null,\r\n \"color\": \"rgb(72,72,72)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -3,\r\n \"max\": -2,\r\n \"point\": null,\r\n \"color\": \"rgb(110,110,110)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -2,\r\n \"max\": -1,\r\n \"point\": null,\r\n \"color\": \"rgb(149,149,149)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -1,\r\n \"max\": 0,\r\n \"point\": null,\r\n \"color\": \"rgb(199,199,199)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": 0.2,\r\n \"point\": null,\r\n \"color\": \"rgb(219,239,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.2,\r\n \"max\": 0.5,\r\n \"point\": null,\r\n \"color\": \"rgb(32,189,61)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.5,\r\n \"max\": 0.8,\r\n \"point\": null,\r\n \"color\": \"rgb(39,230,59)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0.8,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(57,253,72)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 1.5,\r\n \"point\": null,\r\n \"color\": \"rgb(255,253,73)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1.5,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(255,227,60)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 2.5,\r\n \"point\": null,\r\n \"color\": \"rgb(254,185,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 2.5,\r\n \"max\": 3,\r\n \"point\": null,\r\n \"color\": \"rgb(254,149,44)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3,\r\n \"max\": 3.5,\r\n \"point\": null,\r\n \"color\": \"rgb(253,92,33)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 3.5,\r\n \"max\": 4,\r\n \"point\": null,\r\n \"color\": \"rgb(240,15,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 4,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(184,0,61)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(253,40,250)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"b4fa5f0b-601c-4533-a571-59bbc64b6190\",\r\n \"groupId\": \"67821566c7173439a2634e6f\",\r\n \"name\": \"VBLUR\",\r\n \"unit\": \"m/s\",\r\n \"maxValue\": 64,\r\n \"minValue\": -64,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"径向速度扩展\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": -64,\r\n \"max\": -62,\r\n \"point\": null,\r\n \"color\": \"rgb(202,253,123)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -62,\r\n \"max\": -57,\r\n \"point\": null,\r\n \"color\": \"rgb(162,202,100)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -57,\r\n \"max\": -52,\r\n \"point\": null,\r\n \"color\": \"rgb(106,137,50)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -52,\r\n \"max\": -47,\r\n \"point\": null,\r\n \"color\": \"rgb(79,96,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -47,\r\n \"max\": -42,\r\n \"point\": null,\r\n \"color\": \"rgb(96,157,158)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -42,\r\n \"max\": -37,\r\n \"point\": null,\r\n \"color\": \"rgb(175,195,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -37,\r\n \"max\": -32,\r\n \"point\": null,\r\n \"color\": \"rgb(164,238,253)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -32,\r\n \"max\": -27,\r\n \"point\": null,\r\n \"color\": \"rgb(47,224,251)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -27,\r\n \"max\": -20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,134,245)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -20,\r\n \"max\": -15,\r\n \"point\": null,\r\n \"color\": \"rgb(54,38,140)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -15,\r\n \"max\": -10,\r\n \"point\": null,\r\n \"color\": \"rgb(59,249,154)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -10,\r\n \"max\": -5,\r\n \"point\": null,\r\n \"color\": \"rgb(44,183,145)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -5,\r\n \"max\": -1,\r\n \"point\": null,\r\n \"color\": \"rgb(37,139,50)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": -1,\r\n \"max\": 0,\r\n \"point\": null,\r\n \"color\": \"rgb(203,188,160)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 0,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 5,\r\n \"point\": null,\r\n \"color\": \"rgb(246,129,57)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(255,201,76)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(255,251,91)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(168,0,28)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 27,\r\n \"point\": null,\r\n \"color\": \"rgb(204,108,48)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 27,\r\n \"max\": 32,\r\n \"point\": null,\r\n \"color\": \"rgb(251,0,39)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 32,\r\n \"max\": 37,\r\n \"point\": null,\r\n \"color\": \"rgb(253,190,201)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 37,\r\n \"max\": 42,\r\n \"point\": null,\r\n \"color\": \"rgb(253,105,108)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 42,\r\n \"max\": 47,\r\n \"point\": null,\r\n \"color\": \"rgb(147,64,65)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 47,\r\n \"max\": 52,\r\n \"point\": null,\r\n \"color\": \"rgb(215,114,210)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 52,\r\n \"max\": 57,\r\n \"point\": null,\r\n \"color\": \"rgb(253,40,250)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 57,\r\n \"max\": 62,\r\n \"point\": null,\r\n \"color\": \"rgb(182,71,241)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 62,\r\n \"max\": 64,\r\n \"point\": null,\r\n \"color\": \"rgb(113,47,149)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 64,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(137,22,135)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"71bd683e-b279-4315-8258-7d00e47204da\",\r\n \"groupId\": \"68541156820de978f2963673\",\r\n \"name\": \"CFS\",\r\n \"unit\": \"dBZ\",\r\n \"maxValue\": 75,\r\n \"minValue\": 5,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": \"组合反射率\",\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 5,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(35,236,235)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(19,160,220)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(0,41,240)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(43,252,62)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(34,197,49)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 35,\r\n \"point\": null,\r\n \"color\": \"rgb(24,142,35)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 35,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(255,252,66)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 45,\r\n \"point\": null,\r\n \"color\": \"rgb(229,189,51)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 45,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(253,141,42)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 55,\r\n \"point\": null,\r\n \"color\": \"rgb(252,0,25)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 55,\r\n \"max\": 60,\r\n \"point\": null,\r\n \"color\": \"rgb(163,0,17)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 60,\r\n \"max\": 65,\r\n \"point\": null,\r\n \"color\": \"rgb(99,0,10)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 65,\r\n \"max\": 70,\r\n \"point\": null,\r\n \"color\": \"rgb(252,40,249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 70,\r\n \"max\": 75,\r\n \"point\": null,\r\n \"color\": \"rgb(149,89,195)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 75,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(255,255,255)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"ff63f0ee-d094-478a-a75c-a4394fd48c86\",\r\n \"groupId\": \"68541156820de978f2963673\",\r\n \"name\": \"MEHS\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 75,\r\n \"minValue\": 1,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": \"RADAR\",\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 1,\r\n \"point\": null,\r\n \"color\": \"rgb(7, 47, 107)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1,\r\n \"max\": 2,\r\n \"point\": null,\r\n \"color\": \"rgb(8, 87, 156)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2,\r\n \"max\": 6,\r\n \"point\": null,\r\n \"color\": \"rgb(90, 160, 205)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 6,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(219, 245, 255)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 15,\r\n \"point\": null,\r\n \"color\": \"rgb(248, 223, 187)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 15,\r\n \"max\": 20,\r\n \"point\": null,\r\n \"color\": \"rgb(249, 175, 113)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 20,\r\n \"max\": 30,\r\n \"point\": null,\r\n \"color\": \"rgb(242, 118, 18)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 30,\r\n \"max\": 40,\r\n \"point\": null,\r\n \"color\": \"rgb(181, 106, 46)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 40,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(202, 21, 27)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(95, 0, 0)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"917c9011-ece1-4a01-aa57-2e5328a01106\",\r\n \"groupId\": \"68541156820de978f2963673\",\r\n \"name\": \"AP10M\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 10,\r\n \"minValue\": 1,\r\n \"scale\": 1,\r\n \"gradient\": null,\r\n \"remark\": \"10分钟雨量\",\r\n \"productType\": \"NWP\",\r\n \"items\": [\r\n {\r\n \"min\": 0,\r\n \"max\": 0.02,\r\n \"point\": null,\r\n \"color\": \"rgb(205, 244, 206)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.02,\r\n \"max\": 0.3,\r\n \"point\": null,\r\n \"color\": \"rgb(170, 248, 164)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 0.3,\r\n \"max\": 1.2,\r\n \"point\": null,\r\n \"color\": \"rgb(69, 245, 69)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 1.2,\r\n \"max\": 2.5,\r\n \"point\": null,\r\n \"color\": \"rgb(111, 181, 251)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 2.5,\r\n \"max\": 4.5,\r\n \"point\": null,\r\n \"color\": \"rgb(71, 56, 250)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 4.5,\r\n \"max\": 7,\r\n \"point\": null,\r\n \"color\": \"rgb(198, 61, 247)\",\r\n \"label\": \"\"\r\n },\r\n {\r\n \"min\": 7,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(167, 56, 133)\",\r\n \"label\": \"\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"8bb1a6a4-2d0a-407e-8763-b68341179ae0\",\r\n \"groupId\": \"68541156820de978f2963673\",\r\n \"name\": \"LYOHP\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 400,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": null,\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(165, 241, 141)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 124, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(61, 187, 249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 100,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 0, 249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 100,\r\n \"max\": 250,\r\n \"point\": null,\r\n \"color\": \"rgb(249, 61, 249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 250,\r\n \"max\": 400,\r\n \"point\": null,\r\n \"color\": \"rgb(124, 0, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 400,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(249, 0, 0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"1a5064b5-6d9b-462f-8239-d1fe9cd5d992\",\r\n \"groupId\": \"68541156820de978f2963673\",\r\n \"name\": \"LYDHP\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 400,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": null,\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(165, 241, 141)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 124, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(61, 187, 249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 100,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 0, 249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 100,\r\n \"max\": 250,\r\n \"point\": null,\r\n \"color\": \"rgb(249, 61, 249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 250,\r\n \"max\": 400,\r\n \"point\": null,\r\n \"color\": \"rgb(124, 0, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 400,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(249, 0, 0)\",\r\n \"label\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"cc63517e-e9ef-42fa-ade2-02f80c03387a\",\r\n \"groupId\": \"68541156820de978f2963673\",\r\n \"name\": \"LYTHP\",\r\n \"unit\": \"mm\",\r\n \"maxValue\": 400,\r\n \"minValue\": 0,\r\n \"scale\": null,\r\n \"gradient\": null,\r\n \"remark\": null,\r\n \"productType\": null,\r\n \"items\": [\r\n {\r\n \"min\": 0.1,\r\n \"max\": 10,\r\n \"point\": null,\r\n \"color\": \"rgb(165, 241, 141)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 10,\r\n \"max\": 25,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 124, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 25,\r\n \"max\": 50,\r\n \"point\": null,\r\n \"color\": \"rgb(61, 187, 249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 50,\r\n \"max\": 100,\r\n \"point\": null,\r\n \"color\": \"rgb(0, 0, 249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 100,\r\n \"max\": 250,\r\n \"point\": null,\r\n \"color\": \"rgb(249, 61, 249)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 250,\r\n \"max\": 400,\r\n \"point\": null,\r\n \"color\": \"rgb(124, 0, 0)\",\r\n \"label\": null\r\n },\r\n {\r\n \"min\": 400,\r\n \"max\": null,\r\n \"point\": null,\r\n \"color\": \"rgb(249, 0, 0)\",\r\n \"label\": null\r\n }\r\n ]\r\n }\r\n ]\r\n}","/**\r\n * 从 public/colors.json 加载和使用气象色彩比例尺的服务。\r\n * 使用模块级单例 Promise 缓存以避免重复获取。\r\n */\r\n\r\nimport type { ColorsJson, ColorsJsonItem, ColorsJsonBinItem } from '../types/colorsJson'\r\nimport {colors} from './color'\r\n// 模块级单例缓存——每次页面加载最多获取一次\r\nlet cache: Promise<ColorsJson | null> | null = null\r\n\r\n/**\r\n * 加载 colors.json 一次,缓存结果供后续所有调用使用。\r\n * 如果获取或解析失败则返回 null。\r\n */\r\nexport function loadColorsJson(): Promise<ColorsJson | null> {\r\n if (cache === null) {\r\n cache = colors\r\n }\r\n return cache\r\n}\r\n\r\n/**\r\n * 查找 `name` 与 `variableName` 匹配的 ColorsJsonItem(不区分大小写)。\r\n * 如果无匹配项或 colors.json 加载失败则返回 null。\r\n */\r\nexport async function getJsonItemForVariable(variableName: string): Promise<ColorsJsonItem | null> {\r\n const data = await loadColorsJson()\r\n if (!data) return null\r\n const upper = variableName.toUpperCase()\r\n return data.item.find(item => item.name.toUpperCase() === upper) ?? null\r\n}\r\n\r\n/**\r\n * 将 \"rgb(r, g, b)\" 或 \"rgb(r,g,b)\" 颜色字符串解析为 [r, g, b]。\r\n * 解析失败时返回 [128, 128, 128]。\r\n */\r\nexport function parseRgbColor(colorStr: string): [number, number, number] {\r\n const match = colorStr.match(/rgb\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)/)\r\n if (!match) return [128, 128, 128]\r\n return [parseInt(match[1], 10), parseInt(match[2], 10), parseInt(match[3], 10)]\r\n}\r\n\r\n/**\r\n * 从 ColorsJsonItem 构建色彩映射函数,该函数接受物理值\r\n * (而非归一化的 0-1 值)并返回 RGBA 元组。\r\n *\r\n * - gradient: null/false → 阶梯函数(分箱颜色)\r\n * - gradient: true → 相邻分箱颜色之间的线性插值\r\n */\r\nexport function buildColormapFn(\r\n item: ColorsJsonItem\r\n): (physicalValue: number) => [number, number, number, number] {\r\n const bins: ColorsJsonBinItem[] = item.items\r\n\r\n return (physicalValue: number): [number, number, number, number] => {\r\n if (bins.length === 0) return [128, 128, 128, 255]\r\n\r\n // 值低于第一个分箱——限制为第一个分箱颜色\r\n if (physicalValue < bins[0].min) {\r\n const [r, g, b] = parseRgbColor(bins[0].color)\r\n return [r, g, b, 255]\r\n }\r\n\r\n // 查找匹配的分箱\r\n let matchIdx = bins.length - 1\r\n for (let i = 0; i < bins.length; i++) {\r\n const bin = bins[i]\r\n const withinMax = bin.max === null || physicalValue < bin.max\r\n if (physicalValue >= bin.min && withinMax) {\r\n matchIdx = i\r\n break\r\n }\r\n }\r\n\r\n if (!item.gradient) {\r\n // 阶梯函数:直接返回匹配分箱的颜色\r\n const [r, g, b] = parseRgbColor(bins[matchIdx].color)\r\n return [r, g, b, 255]\r\n }\r\n\r\n // 渐变:在 matchIdx 和 matchIdx+1 之间线性插值\r\n const nextIdx = Math.min(matchIdx + 1, bins.length - 1)\r\n if (nextIdx === matchIdx) {\r\n const [r, g, b] = parseRgbColor(bins[matchIdx].color)\r\n return [r, g, b, 255]\r\n }\r\n\r\n const binStart = bins[matchIdx].min\r\n const binEnd = bins[nextIdx].min\r\n const t = binEnd === binStart ? 0 : (physicalValue - binStart) / (binEnd - binStart)\r\n\r\n const [r1, g1, b1] = parseRgbColor(bins[matchIdx].color)\r\n const [r2, g2, b2] = parseRgbColor(bins[nextIdx].color)\r\n\r\n return [\r\n Math.round(r1 + t * (r2 - r1)),\r\n Math.round(g1 + t * (g2 - g1)),\r\n Math.round(b1 + t * (b2 - b1)),\r\n 255\r\n ]\r\n }\r\n}\r\n","import { ref,Ref,reactive, computed, watch, onMounted, onUpdated } from 'vue'\r\nimport { getColormaps, getColormap } from '../utils/colorScales'\r\nimport { createColorbar } from '../utils/imageUtils'\r\nimport type { DataStats } from '../types/netcdf'\r\nimport type { ColorsJsonItem } from '../types/colorsJson'\r\nimport { parseRgbColor } from '../utils/colorsJsonService'\r\n\r\n\r\n\r\nexport const getColorData = (info:{\r\n colorbarCanvas: Ref<HTMLCanvasElement | null> \r\n dataStats?: DataStats | null\r\n variableName?: string\r\n colormap?: string\r\n ColorsJsonItem?: ColorsJsonItem | null\r\n},call:{\r\n colormapChange:Function\r\n}) =>{\r\n const props = reactive({\r\n colorbarCanvas:info.colorbarCanvas,\r\n dataStats:null as DataStats | null,\r\n variableName: '',\r\n colormap: '',\r\n colorsJsonItem:null as ColorsJsonItem | null\r\n })\r\n\r\n props.dataStats = info.dataStats || null\r\n props.variableName = info.variableName || ''\r\n props.colormap = info.colormap || ''\r\n props.colorsJsonItem = info.ColorsJsonItem || null\r\n\r\n\r\n return carryCustomFn(props,call.colormapChange)\r\n\r\n\r\n}\r\n\r\nconst carryCustomFn = (props:{colorbarCanvas:Ref<HTMLCanvasElement | null>,dataStats:DataStats | null,variableName:string,colormap:string,colorsJsonItem:ColorsJsonItem | null},colormapChange:Function) => {\r\n\r\n\r\n // 是否使用 JSON 定义的色彩映射(隐藏下拉菜单和 CSS 渐变)\r\n const isJsonColormap = computed(() => !!props.colorsJsonItem)\r\n\r\n const defaultColormap = 'viridis'\r\n\r\n\r\n // 本地状态\r\n const selectedColormap = ref(props.colormap || defaultColormap)\r\n const colorbarCanvas = props.colorbarCanvas\r\n\r\n // 可用的色彩映射\r\n const colormaps = getColormaps()\r\n\r\n // 计算值\r\n const minValue = computed(() => {\r\n if (props.colorsJsonItem) return props.colorsJsonItem.minValue.toFixed(2)\r\n if (props.dataStats && props.dataStats.min !== null && props.dataStats.min !== undefined) {\r\n return props.dataStats.min.toFixed(2)\r\n }\r\n return 'N/A'\r\n })\r\n\r\n const maxValue = computed(() => {\r\n if (props.colorsJsonItem) return props.colorsJsonItem.maxValue.toFixed(2)\r\n if (props.dataStats && props.dataStats.max !== null && props.dataStats.max !== undefined) {\r\n return props.dataStats.max.toFixed(2)\r\n }\r\n return 'N/A'\r\n })\r\n\r\n const midValue = computed(() => {\r\n if (props.colorsJsonItem) {\r\n return ((props.colorsJsonItem.minValue + props.colorsJsonItem.maxValue) / 2).toFixed(2)\r\n }\r\n if (props.dataStats && props.dataStats.min !== null && props.dataStats.max !== null) {\r\n const mid = (props.dataStats.min + props.dataStats.max) / 2\r\n return mid.toFixed(2)\r\n }\r\n return 'N/A'\r\n })\r\n\r\n const valueRange = computed(() => {\r\n if (props.colorsJsonItem) {\r\n return (props.colorsJsonItem.maxValue - props.colorsJsonItem.minValue).toFixed(2)\r\n }\r\n if (props.dataStats && props.dataStats.min !== null && props.dataStats.max !== null) {\r\n const range = props.dataStats.max - props.dataStats.min\r\n return range.toFixed(2)\r\n }\r\n return 'N/A'\r\n })\r\n\r\n const gradientStyle = computed(() => {\r\n // 为图例显示创建简单渐变\r\n const colormapFunc = getColormap(selectedColormap.value)\r\n // 创建简单的 CSS 渐变用于显示\r\n // 在实际实现中,可能需要使用 canvas 以获得准确性\r\n const stops = []\r\n for (let i = 0; i <= 10; i++) {\r\n const t = i / 10\r\n const [r, g, b] = colormapFunc(t)\r\n stops.push(`rgb(${r}, ${g}, ${b}) ${t * 100}%`)\r\n }\r\n \r\n return {\r\n background: `linear-gradient(to right, ${stops.join(', ')})`\r\n }\r\n })\r\n\r\n // 监听色彩映射变化\r\n watch(selectedColormap, (newColormap) => {\r\n colormapChange(newColormap)\r\n },{immediate:true})\r\n\r\n // 监听外部色彩映射变化\r\n watch(() => props.colormap, (newColormap) => {\r\n selectedColormap.value = newColormap ?? defaultColormap\r\n },{immediate:true})\r\n\r\n // JSON 项目变化时刷新颜色条\r\n watch(() => props.colorsJsonItem, () => {\r\n updateColorbar()\r\n },{immediate:true})\r\n\r\n // 组件挂载或色彩映射变化时创建颜色条\r\n function updateColorbar(): void {\r\n if (!colorbarCanvas.value) return\r\n\r\n const ctx = colorbarCanvas.value.getContext('2d')!\r\n\r\n if (isJsonColormap.value && props.colorsJsonItem) {\r\n // 来自 JSON 分箱项目的分段颜色条\r\n const item = props.colorsJsonItem\r\n const totalWidth = colorbarCanvas.value.width\r\n const totalHeight = colorbarCanvas.value.height\r\n ctx.clearRect(0, 0, totalWidth, totalHeight)\r\n\r\n const rangeMin = item.minValue\r\n const rangeMax = item.maxValue\r\n const span = rangeMax - rangeMin || 1\r\n\r\n for (let i = 0; i < item.items.length; i++) {\r\n const bin = item.items[i]\r\n const nextBin = item.items[i + 1]\r\n const binStart = Math.max(bin.min, rangeMin)\r\n const binEnd = bin.max !== null ? Math.min(bin.max, rangeMax) : (nextBin ? nextBin.min : rangeMax)\r\n\r\n const x = Math.round((binStart - rangeMin) / span * totalWidth)\r\n const w = Math.max(1, Math.round((binEnd - binStart) / span * totalWidth))\r\n\r\n const [r, g, b] = parseRgbColor(bin.color)\r\n ctx.fillStyle = `rgb(${r},${g},${b})`\r\n ctx.fillRect(x, 0, w, totalHeight)\r\n }\r\n } else {\r\n // 数学色彩映射:绘制连续渐变\r\n const canvas = createColorbar(200, 20, getColormap(selectedColormap.value), false)\r\n ctx.clearRect(0, 0, colorbarCanvas.value.width, colorbarCanvas.value.height)\r\n ctx.drawImage(canvas, 0, 0)\r\n }\r\n }\r\n\r\n return {\r\n minValue,\r\n midValue,\r\n maxValue,\r\n valueRange,\r\n selectedColormap,\r\n variableName:computed(()=>props.variableName),\r\n dataStats:props.dataStats,\r\n isJsonColormap,\r\n gradientStyle,\r\n updateColorbar\r\n }\r\n \r\n}\r\n\r\n\r\n","/**\r\n * netCDF + Leaflet 应用的错误处理与验证工具\r\n */\r\n\r\nimport type { NetCdfMetadata } from '../types/netcdf'\r\n\r\n// ---------------------------------------------------------------------------\r\n// 错误类型常量(保存为普通对象以供运行时访问)\r\n// ---------------------------------------------------------------------------\r\n\r\nexport const ErrorType = {\r\n NETCDF_LOAD: 'netcdf_load',\r\n NETCDF_PARSE: 'netcdf_parse',\r\n MAP_INIT: 'map_init',\r\n DATA_RENDER: 'data_render',\r\n FILE_READ: 'file_read',\r\n VALIDATION: 'validation',\r\n PERFORMANCE: 'performance',\r\n NETWORK: 'network'\r\n} as const\r\n\r\nexport type ErrorTypeValue = typeof ErrorType[keyof typeof ErrorType]\r\n\r\nexport const ErrorSeverity = {\r\n CRITICAL: 'critical',\r\n ERROR: 'error',\r\n WARNING: 'warning',\r\n INFO: 'info'\r\n} as const\r\n\r\nexport type ErrorSeverityValue = typeof ErrorSeverity[keyof typeof ErrorSeverity]\r\n\r\n// ---------------------------------------------------------------------------\r\n// AppError\r\n// ---------------------------------------------------------------------------\r\n\r\nexport class AppError extends Error {\r\n name = 'AppError'\r\n type: ErrorTypeValue\r\n severity: ErrorSeverityValue\r\n originalError: Error | null\r\n timestamp: string\r\n context?: Record<string, unknown>\r\n\r\n constructor(\r\n type: ErrorTypeValue,\r\n message: string,\r\n severity: ErrorSeverityValue = ErrorSeverity.ERROR,\r\n originalError: Error | null = null\r\n ) {\r\n super(message)\r\n this.type = type\r\n this.severity = severity\r\n this.originalError = originalError\r\n this.timestamp = new Date().toISOString()\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const captureStack = (Error as any).captureStackTrace as ((t: object, c: Function) => void) | undefined\r\n if (captureStack) captureStack(this, AppError)\r\n }\r\n\r\n toJSON(): Record<string, unknown> {\r\n return {\r\n name: this.name,\r\n type: this.type,\r\n severity: this.severity,\r\n message: this.message,\r\n timestamp: this.timestamp,\r\n stack: this.stack,\r\n originalError: this.originalError ? this.originalError.toString() : null\r\n }\r\n }\r\n\r\n override toString(): string {\r\n return `[${this.severity.toUpperCase()}] ${this.type}: ${this.message}`\r\n }\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// ErrorHandler\r\n// ---------------------------------------------------------------------------\r\n\r\ninterface ErrorHandlerOptions {\r\n logToConsole?: boolean\r\n showUserNotifications?: boolean\r\n maxErrors?: number\r\n}\r\n\r\ninterface UserNotification {\r\n id: number\r\n type: ErrorSeverityValue\r\n title: string\r\n message: string\r\n duration: number\r\n}\r\n\r\ntype ErrorListener = (error: AppError) => void\r\n\r\nexport class ErrorHandler {\r\n private options: Required<ErrorHandlerOptions>\r\n private errors: AppError[] = []\r\n private listeners = new Set<ErrorListener>()\r\n\r\n constructor(options: ErrorHandlerOptions = {}) {\r\n this.options = {\r\n logToConsole: true,\r\n showUserNotifications: true,\r\n maxErrors: 100,\r\n ...options\r\n }\r\n }\r\n\r\n handle(error: Error | AppError | string, context: Record<string, unknown> = {}): AppError {\r\n let appError: AppError\r\n\r\n if (error instanceof AppError) {\r\n appError = error\r\n } else if (error instanceof Error) {\r\n appError = new AppError(ErrorType.VALIDATION, error.message, ErrorSeverity.ERROR, error)\r\n } else {\r\n appError = new AppError(ErrorType.VALIDATION, String(error), ErrorSeverity.ERROR)\r\n }\r\n\r\n appError.context = context\r\n\r\n if (this.options.logToConsole) this.logToConsole(appError)\r\n\r\n this.errors.push(appError)\r\n if (this.errors.length > this.options.maxErrors) this.errors.shift()\r\n\r\n this.notifyListeners(appError)\r\n\r\n if (this.options.showUserNotifications && appError.severity !== ErrorSeverity.INFO) {\r\n this.showUserNotification(appError)\r\n }\r\n\r\n return appError\r\n }\r\n\r\n private logToConsole(error: AppError): void {\r\n const message = error.toString()\r\n const details = error.toJSON()\r\n\r\n switch (error.severity) {\r\n case ErrorSeverity.CRITICAL: console.error('🔴 CRITICAL:', message, details); break\r\n case ErrorSeverity.ERROR: console.error('❌ ERROR:', message, details); break\r\n case ErrorSeverity.WARNING: console.warn('⚠️ WARNING:', message, details); break\r\n case ErrorSeverity.INFO: console.info('ℹ️ INFO:', message, details); break\r\n default: console.log('📝 LOG:', message, details)\r\n }\r\n }\r\n\r\n private showUserNotification(error: AppError): void {\r\n const notification: UserNotification = {\r\n id: Date.now(),\r\n type: error.severity,\r\n title: this.getNotificationTitle(error),\r\n message: error.message,\r\n duration: this.getNotificationDuration(error)\r\n }\r\n\r\n console.log('User notification:', notification)\r\n\r\n if (typeof window !== 'undefined') {\r\n window.dispatchEvent(new CustomEvent('app-error', { detail: notification }))\r\n }\r\n }\r\n\r\n private getNotificationTitle(error: AppError): string {\r\n switch (error.type) {\r\n case ErrorType.NETCDF_LOAD: return '文件加载错误'\r\n case ErrorType.NETCDF_PARSE: return '数据解析错误'\r\n case ErrorType.MAP_INIT: return '地图错误'\r\n case ErrorType.DATA_RENDER: return '显示错误'\r\n case ErrorType.FILE_READ: return '文件错误'\r\n default: return '应用错误'\r\n }\r\n }\r\n\r\n private getNotificationDuration(error: AppError): number {\r\n switch (error.severity) {\r\n case ErrorSeverity.CRITICAL: return 10000\r\n case ErrorSeverity.ERROR: return 5000\r\n case ErrorSeverity.WARNING: return 3000\r\n default: return 2000\r\n }\r\n }\r\n\r\n addListener(listener: ErrorListener): void { this.listeners.add(listener) }\r\n removeListener(listener: ErrorListener): void { this.listeners.delete(listener) }\r\n\r\n private notifyListeners(error: AppError): void {\r\n for (const listener of this.listeners) {\r\n try { listener(error) } catch (err) { console.error('错误监听器中出错:', err) }\r\n }\r\n }\r\n\r\n getRecentErrors(limit = 10): AppError[] { return this.errors.slice(-limit) }\r\n clearErrors(): void { this.errors = [] }\r\n\r\n getStats(): { total: number; byType: Record<string, number>; bySeverity: Record<string, number>; lastError: AppError | null } {\r\n const stats = {\r\n total: this.errors.length,\r\n byType: {} as Record<string, number>,\r\n bySeverity: {} as Record<string, number>,\r\n lastError: this.errors.length > 0 ? this.errors[this.errors.length - 1] : null\r\n }\r\n\r\n for (const error of this.errors) {\r\n stats.byType[error.type] = (stats.byType[error.type] ?? 0) + 1\r\n stats.bySeverity[error.severity] = (stats.bySeverity[error.severity] ?? 0) + 1\r\n }\r\n\r\n return stats\r\n }\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// Validator\r\n// ---------------------------------------------------------------------------\r\n\r\nexport class Validator {\r\n static validateNetCDFFile(file: File): string[] {\r\n const errors: string[] = []\r\n\r\n if (!file) {\r\n errors.push('No file provided')\r\n return errors\r\n }\r\n\r\n const validTypes = ['.nc', '.nc4', '.netcdf', 'application/x-netcdf']\r\n const fileExtension = file.name.toLowerCase().slice(file.name.lastIndexOf('.'))\r\n const fileType = file.type.toLowerCase()\r\n\r\n if (!validTypes.some(type => fileExtension.includes(type) || fileType.includes(type))) {\r\n errors.push(`Invalid file type: ${file.name}. Expected netCDF file (.nc, .nc4)`)\r\n }\r\n\r\n const maxSize = 100 * 1024 * 1024\r\n if (file.size > maxSize) {\r\n errors.push(`File too large: ${(file.size / (1024 * 1024)).toFixed(2)}MB. Maximum size is 100MB`)\r\n }\r\n\r\n if (file.size === 0) {\r\n errors.push('File is empty')\r\n }\r\n\r\n return errors\r\n }\r\n\r\n static validateNetCDFMetadata(metadata: NetCdfMetadata | null | undefined): string[] {\r\n const errors: string[] = []\r\n\r\n if (!metadata) {\r\n errors.push('No metadata available')\r\n return errors\r\n }\r\n\r\n for (const dim of ['lon', 'lat']) {\r\n if (!metadata.dimensions?.[dim]) {\r\n errors.push(`Missing required dimension: ${dim}`)\r\n }\r\n }\r\n\r\n if (metadata.variables) {\r\n const COORD_VARS = new Set(['lon', 'lat', 'longitude', 'latitude', 'x', 'y'])\r\n const has2dVar = Object.entries(metadata.variables).some(([name, info]) => {\r\n const dims = (info as { dimensions?: string[] }).dimensions ?? []\r\n return dims.length === 2 && !COORD_VARS.has(name.toLowerCase())\r\n })\r\n if (!has2dVar) {\r\n errors.push('No 2D displayable variable found in file')\r\n }\r\n }\r\n\r\n if (metadata.dimensions) {\r\n for (const [name, dim] of Object.entries(metadata.dimensions)) {\r\n if (dim.size <= 0) {\r\n errors.push(`Invalid dimension size for ${name}: ${dim.size}`)\r\n }\r\n }\r\n }\r\n\r\n return errors\r\n }\r\n\r\n static validateDataArray(data: ArrayLike<number> | null | undefined, expectedSize?: number): string[] {\r\n const errors: string[] = []\r\n\r\n if (!data) {\r\n errors.push('No data provided')\r\n return errors\r\n }\r\n\r\n if (!Array.isArray(data) && !ArrayBuffer.isView(data)) {\r\n errors.push('Data must be an array or typed array')\r\n return errors\r\n }\r\n\r\n if (expectedSize !== undefined && data.length !== expectedSize) {\r\n errors.push(`Data size mismatch: expected ${expectedSize}, got ${data.length}`)\r\n }\r\n\r\n let nanCount = 0\r\n let infCount = 0\r\n const sampleSize = Math.min(1000, data.length)\r\n\r\n for (let i = 0; i < sampleSize; i++) {\r\n const value = (data as ArrayLike<number>)[i]\r\n if (typeof value === 'number') {\r\n if (isNaN(value)) nanCount++\r\n if (!isFinite(value)) infCount++\r\n }\r\n }\r\n\r\n if (nanCount > 0) errors.push(`Found ${nanCount} NaN values in sample`)\r\n if (infCount > 0) errors.push(`Found ${infCount} infinite values in sample`)\r\n\r\n return errors\r\n }\r\n\r\n static validateCoordinates(lat: number, lng: number): string[] {\r\n const errors: string[] = []\r\n\r\n if (typeof lat !== 'number' || typeof lng !== 'number') {\r\n errors.push('Coordinates must be numbers')\r\n return errors\r\n }\r\n\r\n if (lat < -90 || lat > 90) errors.push(`Latitude out of range: ${lat}. Must be between -90 and 90`)\r\n if (lng < -180 || lng > 180) errors.push(`Longitude out of range: ${lng}. Must be between -180 and 180`)\r\n\r\n return errors\r\n }\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// retryWithBackoff\r\n// ---------------------------------------------------------------------------\r\n\r\nexport async function retryWithBackoff<T>(\r\n fn: () => Promise<T>,\r\n maxRetries = 3,\r\n initialDelay = 1000\r\n): Promise<T> {\r\n let lastError: unknown\r\n\r\n for (let attempt = 0; attempt <= maxRetries; attempt++) {\r\n try {\r\n return await fn()\r\n } catch (error) {\r\n lastError = error\r\n\r\n if (attempt === maxRetries) break\r\n\r\n const delay = initialDelay * Math.pow(2, attempt) + Math.random() * 1000\r\n console.log(`Retry attempt ${attempt + 1}/${maxRetries} after ${delay.toFixed(0)}ms`)\r\n await new Promise(resolve => setTimeout(resolve, delay))\r\n }\r\n }\r\n\r\n throw lastError\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// 全局错误处理器\r\n// ---------------------------------------------------------------------------\r\n\r\nlet globalErrorHandler: ErrorHandler | null = null\r\n\r\nexport function getGlobalErrorHandler(): ErrorHandler {\r\n if (!globalErrorHandler) {\r\n globalErrorHandler = new ErrorHandler({ logToConsole: true, showUserNotifications: true, maxErrors: 100 })\r\n }\r\n return globalErrorHandler\r\n}\r\n\r\nexport function setGlobalErrorHandler(handler: ErrorHandler): void {\r\n globalErrorHandler = handler\r\n}\r\n\r\nexport function initErrorHandling(): ErrorHandler {\r\n const handler = getGlobalErrorHandler()\r\n\r\n if (typeof window !== 'undefined') {\r\n window.addEventListener('unhandledrejection', (event) => {\r\n handler.handle(event.reason as Error | string, { source: 'unhandledrejection' })\r\n })\r\n\r\n window.addEventListener('error', (event) => {\r\n handler.handle(event.error ?? (event.message as string), { source: 'global-error' })\r\n })\r\n }\r\n\r\n return handler\r\n}\r\n","/**\r\n * netCDF 可视化数据处理工具\r\n */\r\n\r\nimport type { DataStats, CoardsAttributes } from '../types/netcdf'\r\nimport type { ColormapFn } from './colorScales'\r\n\r\ntype NumberArray = number[] | Float32Array | Float64Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array\r\n\r\n/**\r\n * 将 COARDS 标量属性解析为普通数字。\r\n * netcdf4-wasm 库可能返回以下几种形式的标量:\r\n * - 长度为 1 的数组: [value] -> value\r\n * - 以索引为键的对象: {\"0\": value} -> value\r\n * - 普通数字: value -> value\r\n * - undefined / null -> null\r\n */\r\nexport function resolveAttrScalar(attr: unknown): number | null {\r\n if (attr === undefined || attr === null) return null\r\n if (typeof attr === 'number') return attr\r\n if (Array.isArray(attr) && attr.length > 0) return attr[0] as number\r\n if (typeof attr === 'object') {\r\n const vals = Object.values(attr as Record<string, unknown>)\r\n if (vals.length > 0 && typeof vals[0] === 'number') return vals[0] as number\r\n }\r\n return null\r\n}\r\n\r\n/**\r\n * 将 COARDS 打包整型数组解码为物理值的 Float32Array。\r\n *\r\n * 公式(根据 COARDS 规范):\r\n * physical = scale_factor * packed_uint + add_offset\r\n *\r\n * 对打包(缩放前)值进行填充值检测。\r\n * 若 scale_factor 和 add_offset 均不存在,则仅将原始数据\r\n * 转换为 Float32Array,不进行任何运算。\r\n */\r\nexport function decodeCOARDS(\r\n rawData: ArrayLike<number>,\r\n attrs: CoardsAttributes\r\n): Float32Array {\r\n const scaleFactor = resolveAttrScalar(attrs.scale_factor)\r\n const addOffset = resolveAttrScalar(attrs.add_offset)\r\n // 优先使用 _FillValue;回退到 missing_value\r\n const fillValue = resolveAttrScalar(attrs._FillValue) ?? resolveAttrScalar(attrs.missing_value)\r\n\r\n // 处理 _Unsigned: \"true\" — 将 int8 重新解读为 uint8\r\n const unsignedRaw = attrs._Unsigned\r\n const isUnsigned = (\r\n (typeof unsignedRaw === 'string' && unsignedRaw === 'true') ||\r\n (Array.isArray(unsignedRaw) && unsignedRaw[0] === 'true')\r\n )\r\n\r\n const hasPacking = scaleFactor !== null || addOffset !== null\r\n const sf = scaleFactor ?? 1\r\n const ao = addOffset ?? 0\r\n\r\n const out = new Float32Array(rawData.length)\r\n\r\n for (let i = 0; i < rawData.length; i++) {\r\n let packed = rawData[i]\r\n\r\n // 当 _Unsigned=true 时,将有符号 int8 重新解读为 uint8\r\n if (isUnsigned && packed < 0) packed += 256\r\n\r\n // 将填充值标记为 NaN(基于打包整数値比较)\r\n if (fillValue !== null && packed === fillValue) {\r\n out[i] = NaN\r\n continue\r\n }\r\n\r\n out[i] = hasPacking ? sf * packed + ao : packed\r\n }\r\n\r\n return out\r\n}\r\n\r\n/**\r\n * 将数据数组归一化到 [0, 1] 范围。\r\n * @returns 包含 [0, 1] 范围内各值的 Float32Array\r\n */\r\nexport function normalizeData(\r\n data: NumberArray,\r\n min: number | null = null,\r\n max: number | null = null\r\n): Float32Array {\r\n if (!data || data.length === 0) {\r\n return new Float32Array(0)\r\n }\r\n\r\n let resolvedMin = min\r\n let resolvedMax = max\r\n\r\n if (resolvedMin === null || resolvedMax === null) {\r\n let dataMin = Infinity\r\n let dataMax = -Infinity\r\n\r\n for (let i = 0; i < data.length; i++) {\r\n const value = data[i]\r\n if (value !== null && value !== undefined && !isNaN(value as number)) {\r\n dataMin = Math.min(dataMin, value as number)\r\n dataMax = Math.max(dataMax, value as number)\r\n }\r\n }\r\n\r\n resolvedMin = dataMin === Infinity ? 0 : dataMin\r\n resolvedMax = dataMax === -Infinity ? 1 : dataMax\r\n }\r\n\r\n if (resolvedMin === resolvedMax) {\r\n // 非 NaN 返回 0.5,NaN 保持 NaN——以保留透明像素\r\n const normalized = new Float32Array(data.length)\r\n for (let i = 0; i < data.length; i++) {\r\n normalized[i] = isNaN(data[i] as number) ? NaN : 0.5\r\n }\r\n return normalized\r\n }\r\n\r\n const normalized = new Float32Array(data.length)\r\n const range = resolvedMax - resolvedMin\r\n\r\n for (let i = 0; i < data.length; i++) {\r\n const value = data[i]\r\n if (value === null || value === undefined || isNaN(value as number)) {\r\n // 传播 NaN——applyColormap 对这些将输出 [0,0,0,0]\r\n normalized[i] = NaN\r\n } else {\r\n normalized[i] = ((value as number) - resolvedMin) / range\r\n }\r\n }\r\n\r\n return normalized\r\n}\r\n\r\n/**\r\n * 将色彩映射函数应用于已归一化的 [0, 1] 数据。\r\n * @returns RGBA 像素数据的 Uint8ClampedArray\r\n */\r\nexport function applyColormap(normalizedData: Float32Array, colormap: ColormapFn): Uint8ClampedArray {\r\n const pixelData = new Uint8ClampedArray(normalizedData.length * 4)\r\n\r\n for (let i = 0; i < normalizedData.length; i++) {\r\n const t = normalizedData[i]\r\n const pixelIndex = i * 4\r\n if (isNaN(t)) {\r\n // 填充值/缺失值——完全透明像素\r\n pixelData[pixelIndex] = 0\r\n pixelData[pixelIndex + 1] = 0\r\n pixelData[pixelIndex + 2] = 0\r\n pixelData[pixelIndex + 3] = 0\r\n } else {\r\n const [r, g, b, a = 255] = colormap(t)\r\n pixelData[pixelIndex] = r\r\n pixelData[pixelIndex + 1] = g\r\n pixelData[pixelIndex + 2] = b\r\n pixelData[pixelIndex + 3] = a\r\n }\r\n }\r\n\r\n return pixelData\r\n}\r\n\r\n/**\r\n * 直接将色彩映射函数应用于 Float32 物理数据。\r\n * 无需提前归一化——`fn` 直接接收原始物理值。\r\n * NaN 将产生完全透明像素 [0, 0, 0, 0]。\r\n */\r\nexport function applyColormapDirect(\r\n data: Float32Array,\r\n fn: (v: number) => [number, number, number, number]\r\n): Uint8ClampedArray {\r\n const pixelData = new Uint8ClampedArray(data.length * 4)\r\n\r\n for (let i = 0; i < data.length; i++) {\r\n const v = data[i]\r\n const pixelIndex = i * 4\r\n if (isNaN(v)) {\r\n pixelData[pixelIndex] = 0\r\n pixelData[pixelIndex + 1] = 0\r\n pixelData[pixelIndex + 2] = 0\r\n pixelData[pixelIndex + 3] = 0\r\n } else {\r\n const [r, g, b, a = 255] = fn(v)\r\n pixelData[pixelIndex] = r\r\n pixelData[pixelIndex + 1] = g\r\n pixelData[pixelIndex + 2] = b\r\n pixelData[pixelIndex + 3] = a\r\n }\r\n }\r\n\r\n return pixelData\r\n}\r\n\r\n/**\r\n * 从 RGBA 像素数据创建 ImageData 对象。\r\n */\r\nexport function createImageData(pixelData: Uint8ClampedArray, width: number, height: number): ImageData {\r\n if (pixelData.length !== width * height * 4) {\r\n throw new Error(\r\n `Pixel data length (${pixelData.length}) doesn't match dimensions ${width}x${height} (expected ${width * height * 4})`\r\n )\r\n }\r\n return new ImageData(new Uint8ClampedArray(pixelData), width, height)\r\n}\r\n\r\n/**\r\n * 使用最近邻插值对数据进行重采样。\r\n */\r\nexport function resampleData(\r\n data: NumberArray,\r\n originalShape: [number, number],\r\n targetShape: [number, number]\r\n): Float32Array {\r\n const [origHeight, origWidth] = originalShape\r\n const [targetHeight, targetWidth] = targetShape\r\n\r\n if (data.length !== origHeight * origWidth) {\r\n throw new Error(`Data length (${data.length}) doesn't match original shape ${origHeight}x${origWidth}`)\r\n }\r\n\r\n const resampled = new Float32Array(targetHeight * targetWidth)\r\n const scaleX = origWidth / targetWidth\r\n const scaleY = origHeight / targetHeight\r\n\r\n for (let y = 0; y < targetHeight; y++) {\r\n for (let x = 0; x < targetWidth; x++) {\r\n const origX = Math.floor(x * scaleX)\r\n const origY = Math.floor(y * scaleY)\r\n resampled[y * targetWidth + x] = data[origY * origWidth + origX] as number\r\n }\r\n }\r\n\r\n return resampled\r\n}\r\n\r\n/**\r\n * 计算数据数组的基本统计信息。\r\n */\r\nexport function calculateStatistics(data: NumberArray): DataStats {\r\n if (!data || data.length === 0) {\r\n return { min: null, max: null, mean: null, std: 0, count: 0, validCount: 0, missingCount: 0 }\r\n }\r\n\r\n let min = Infinity\r\n let max = -Infinity\r\n let sum = 0\r\n let sumSquares = 0\r\n let validCount = 0\r\n\r\n for (let i = 0; i < data.length; i++) {\r\n const value = data[i] as number\r\n if (value !== null && value !== undefined && !isNaN(value)) {\r\n min = Math.min(min, value)\r\n max = Math.max(max, value)\r\n sum += value\r\n sumSquares += value * value\r\n validCount++\r\n }\r\n }\r\n\r\n const mean = validCount > 0 ? sum / validCount : null\r\n const variance = validCount > 1 ? (sumSquares - sum * sum / validCount) / (validCount - 1) : 0\r\n const std = Math.sqrt(variance)\r\n\r\n return {\r\n min: min === Infinity ? null : min,\r\n max: max === -Infinity ? null : max,\r\n mean,\r\n std,\r\n count: data.length,\r\n validCount,\r\n missingCount: data.length - validCount\r\n }\r\n}\r\n\r\n/**\r\n * 将二维数组(行 × 列)转换为一维数组(行优先)。\r\n */\r\nexport function flatten2D(data2D: number[][]): number[] {\r\n if (!data2D || data2D.length === 0) return []\r\n\r\n const height = data2D.length\r\n const width = data2D[0].length\r\n const flattened = new Array<number>(height * width)\r\n\r\n for (let y = 0; y < height; y++) {\r\n for (let x = 0; x < width; x++) {\r\n flattened[y * width + x] = data2D[y][x]\r\n }\r\n }\r\n\r\n return flattened\r\n}\r\n\r\n/**\r\n * 将一维数组转换为二维数组。\r\n */\r\nexport function unflatten2D(data1D: NumberArray, width: number, height: number): number[][] {\r\n if (data1D.length !== width * height) {\r\n throw new Error(`Data length (${data1D.length}) doesn't match dimensions ${width}x${height}`)\r\n }\r\n\r\n const data2D: number[][] = new Array(height)\r\n for (let y = 0; y < height; y++) {\r\n data2D[y] = new Array<number>(width)\r\n for (let x = 0; x < width; x++) {\r\n data2D[y][x] = data1D[y * width + x] as number\r\n }\r\n }\r\n\r\n return data2D\r\n}\r\n\r\n/**\r\n * 对数据应用掩码,替换被掩码的值。\r\n */\r\nexport function applyMask(\r\n data: NumberArray,\r\n maskFunction: (value: number) => boolean,\r\n maskValue = 0\r\n): Float32Array {\r\n const masked = new Float32Array(data.length)\r\n\r\n for (let i = 0; i < data.length; i++) {\r\n masked[i] = maskFunction(data[i] as number) ? maskValue : (data[i] as number)\r\n }\r\n\r\n return masked\r\n}\r\n","import { ref, reactive } from 'vue'\r\nimport type { Ref } from 'vue'\r\nimport type { NetCdfMetadata, DataStats, VariableDataEntry, VariableStatsEntry, CoardsAttributes } from '../types/netcdf'\r\nimport {\r\n getGlobalErrorHandler,\r\n ErrorType,\r\n ErrorSeverity,\r\n AppError,\r\n retryWithBackoff\r\n} from '../utils/errorHandling'\r\nimport { decodeCOARDS } from '../utils/dataProcessing'\r\nimport * as NetcdfModule from '@earthyscience/netcdf4-wasm'\r\n\r\nconst { NetCDF4 } = NetcdfModule\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\ntype NetCDF4Dataset = any\r\n\r\n/** 坐标变量名称——不作为可显示的数据变量 */\r\nconst COORDINATE_VARIABLES = new Set(['lon', 'lat', 'longitude', 'latitude', 'x', 'y'])\r\n\r\n/**\r\n * 判断某维度是否应作为地理坐标数组加载。\r\n * 通过名称启发式匹配或 CF 约定的 units 属性进行判断。\r\n */\r\nfunction isCoordinateDimension(name: string, dimInfo: { units?: string[] }): boolean {\r\n if (COORDINATE_VARIABLES.has(name.toLowerCase())) return true\r\n const units = dimInfo.units ?? []\r\n return units.some(u => u === 'degrees_east' || u === 'degrees_north')\r\n}\r\n\r\n/**\r\n * 查找 `arr` 中最接近 `value` 的元素索引。\r\n * 支持递增和递减数组(如由北向南的纬度数组)。\r\n */\r\nfunction findNearestIndex(arr: ArrayLike<number>, value: number): number {\r\n let best = 0\r\n let bestDist = Math.abs(arr[0] - value)\r\n for (let i = 1; i < arr.length; i++) {\r\n const dist = Math.abs(arr[i] - value)\r\n if (dist < bestDist) {\r\n bestDist = dist\r\n best = i\r\n }\r\n }\r\n return best\r\n}\r\n\r\n/**\r\n * 返回元数据中所有二维非坐标变量的名称。\r\n * 这些变量适合作为地图叠加层进行渲染。\r\n */\r\nexport function detect2dVariables(\r\n variables: NetCdfMetadata['variables']\r\n): string[] {\r\n return Object.entries(variables)\r\n .filter(([name, info]) => {\r\n const dims = (info as { dimensions?: string[] }).dimensions ?? []\r\n return dims.length === 2 && !COORDINATE_VARIABLES.has(name.toLowerCase())\r\n })\r\n .map(([name]) => name)\r\n}\r\n\r\ninterface FileInfo {\r\n filename: string\r\n size: number\r\n format: string\r\n dimensionsCount: number\r\n variablesCount: number\r\n}\r\n\r\ninterface MetadataState extends NetCdfMetadata {\r\n fileInfo: FileInfo | null\r\n}\r\n\r\ninterface LoadResult {\r\n success: true\r\n dataset: NetCDF4Dataset\r\n metadata: MetadataState\r\n variableData: Record<string, VariableDataEntry>\r\n dataStats: Record<string, VariableStatsEntry>\r\n}\r\n\r\ninterface LoadError {\r\n success: false\r\n error: string\r\n}\r\n\r\nexport interface UseNetCdfReturn {\r\n isLoading: Ref<boolean>\r\n error: Ref<string | null>\r\n dataset: Ref<NetCDF4Dataset | null>\r\n metadata: MetadataState\r\n variableData: Record<string, VariableDataEntry>\r\n dataStats: Record<string, VariableStatsEntry>\r\n loadNetCdfFile: (file: File) => Promise<LoadResult | LoadError>\r\n getVariableData: (variableName: string, groupPath?: string) => Promise<unknown>\r\n getSlicedVariableData: (variableName: string, start: number[], count: number[], groupPath?: string) => Promise<unknown>\r\n getDataAtCoordinate: (variableName: string, lon: number, lat: number) => Promise<number | null>\r\n closeDataset: () => Promise<void>\r\n reset: () => void\r\n detect2dVariables: () => string[]\r\n}\r\n\r\n/**\r\n * 用于通过 netcdf4-wasm 加载和解析 netCDF 文件的 Vue 组合式函数。\r\n */\r\nexport function useNetCdf(): UseNetCdfReturn {\r\n const errorHandler = getGlobalErrorHandler()\r\n\r\n // 状态\r\n const isLoading = ref(false)\r\n const error = ref<string | null>(null)\r\n const dataset = ref<NetCDF4Dataset | null>(null)\r\n\r\n const metadata = reactive<MetadataState>({\r\n dimensions: {},\r\n variables: {},\r\n attributes: {},\r\n fileInfo: null\r\n })\r\n\r\n const variableData = reactive<Record<string, VariableDataEntry>>({})\r\n const dataStats = reactive<Record<string, VariableStatsEntry>>({})\r\n\r\n async function loadNetCdfFile(file: File): Promise<LoadResult | LoadError> {\r\n isLoading.value = true\r\n error.value = null\r\n\r\n try {\r\n console.log('Loading netCDF file:', file.name, file.size)\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n // const { NetCDF4 } = await import('@earthyscience/netcdf4-wasm') as any\r\n\r\n // // 使用 netcdf4-wasm 配合重试机制加载 netCDF 文件\r\n // dataset.value = await retryWithBackoff(\r\n // () => NetCDF4.fromBlobLazy(file),\r\n // 2,\r\n // 1000\r\n // )\r\n dataset.value = await retryWithBackoff(\r\n () =>\r\n NetCDF4.fromBlobLazy(file, {\r\n locateFile: (path: string) => {\r\n if (path.endsWith('.wasm')) {\r\n return new URL('../wasm/netcdf4-wasm.wasm', import.meta.url).href\r\n }\r\n return path\r\n }\r\n }),\r\n 2,\r\n 1000\r\n )\r\n console.log('Dataset loaded:', dataset.value)\r\n\r\n const hierarchy = await dataset.value.getCompleteHierarchy()\r\n console.log('Dataset hierarchy:', hierarchy)\r\n\r\n // 调用 load() 以就地填充 dataset.value.variables 的 Variable 实例,\r\n // 使其携带正确的 .dimensions[] 和 .datatype 字段。\r\n // getCompleteHierarchy() 仅对每个变量序列化 {id, ncid}——不会\r\n // 调用 getVariableInfo(),因此 hierarchy.variables 无维度信息\r\n await dataset.value.load()\r\n\r\n // 从 Dimension 实例构建标准化维度(具有 .name 和 .size)\r\n const loadedDims = dataset.value.dimensions as Record<string, { name: string; size: number }>\r\n const normalizedDims: Record<string, { name: string; size: number }> = {}\r\n for (const [name, dim] of Object.entries(loadedDims)) {\r\n normalizedDims[name] = { name, size: dim.size }\r\n }\r\n metadata.dimensions = normalizedDims\r\n\r\n // 从 Variable 实例构建标准化变量(具有 .dimensions[] 和 .datatype)\r\n const loadedVars = dataset.value.variables as Record<string, { name: string; dimensions: string[]; datatype: string }>\r\n const normalizedVars: Record<string, { name: string; dimensions: string[]; shape: number[]; dtype: string; type: string }> = {}\r\n for (const [name, v] of Object.entries(loadedVars)) {\r\n const dims = v.dimensions ?? []\r\n const shape = dims.map((d: string) => normalizedDims[d]?.size ?? 0)\r\n normalizedVars[name] = { name, dimensions: dims, shape, dtype: v.datatype, type: v.datatype }\r\n }\r\n metadata.variables = normalizedVars\r\n\r\n metadata.attributes = hierarchy.attributes ?? {}\r\n metadata.fileInfo = {\r\n filename: file.name,\r\n size: file.size,\r\n format: dataset.value.file_format as string,\r\n dimensionsCount: Object.keys(metadata.dimensions).length,\r\n variablesCount: Object.keys(metadata.variables).length\r\n }\r\n\r\n if (metadata.dimensions.lon) console.log('Lon dimension:', metadata.dimensions.lon)\r\n if (metadata.dimensions.lat) console.log('Lat dimension:', metadata.dimensions.lat)\r\n\r\n await extractVariableData()\r\n calculateDataStats()\r\n await extractCoordinateArrays(hierarchy)\r\n\r\n return { dataset: dataset.value, metadata, variableData, dataStats, success: true }\r\n\r\n } catch (err) {\r\n const msg = err instanceof Error ? err.message : String(err)\r\n console.error('Error loading netCDF file:', err)\r\n error.value = msg\r\n\r\n errorHandler.handle(\r\n new AppError(ErrorType.NETCDF_LOAD, msg, ErrorSeverity.ERROR, err instanceof Error ? err : null),\r\n { fileName: file?.name, fileSize: file?.size }\r\n )\r\n\r\n return { success: false, error: error.value! }\r\n } finally {\r\n isLoading.value = false\r\n }\r\n }\r\n\r\n async function extractVariableData(): Promise<void> {\r\n if (!dataset.value) return\r\n\r\n try {\r\n for (const key of Object.keys(variableData)) delete variableData[key]\r\n\r\n for (const [varName, varInfo] of Object.entries(metadata.variables)) {\r\n try {\r\n const rawData = await dataset.value.getVariableArray(varName) as ArrayLike<number>\r\n\r\n // 读取 Variable 实例中的 COARDS 打包属性\r\n const attrs = (\r\n (dataset.value.variables as Record<string, { _attributes?: unknown }>)[varName]?._attributes ?? {}\r\n ) as CoardsAttributes\r\n\r\n // 将打包整型数据解码为物理浮点尺度数值(填充像素为 NaN)\r\n const data = decodeCOARDS(rawData, attrs)\r\n\r\n variableData[varName] = {\r\n data,\r\n shape: varInfo.shape,\r\n dimensions: varInfo.dimensions,\r\n type: varInfo.type ?? varInfo.dtype ?? 'unknown'\r\n }\r\n\r\n console.log(`Extracted ${varName}:`, {\r\n length: data.length,\r\n shape: varInfo.shape,\r\n sample: Array.from(data.slice(0, 5))\r\n })\r\n } catch (err) {\r\n const msg = err instanceof Error ? err.message : String(err)\r\n console.warn(`Could not extract data for variable ${varName}:`, err)\r\n variableData[varName] = {\r\n error: msg,\r\n shape: varInfo.shape,\r\n dimensions: varInfo.dimensions\r\n } as unknown as VariableDataEntry\r\n }\r\n }\r\n } catch (err) {\r\n console.error('Error extracting variable data:', err)\r\n }\r\n }\r\n\r\n function calculateDataStats(): void {\r\n for (const varName of Object.keys(variableData)) {\r\n const varInfo = variableData[varName]\r\n\r\n if ((varInfo as unknown as { error?: string }).error || !varInfo.data) {\r\n dataStats[varName] = {\r\n error: (varInfo as unknown as { error?: string }).error ?? 'No data available',\r\n min: null, max: null, mean: null, count: 0, validCount: 0, missingCount: 0\r\n } as unknown as VariableStatsEntry\r\n continue\r\n }\r\n\r\n const data = varInfo.data\r\n let min = Infinity\r\n let max = -Infinity\r\n let sum = 0\r\n let validCount = 0\r\n\r\n for (let i = 0; i < data.length; i++) {\r\n const value = data[i]\r\n if (value != null && !isNaN(value)) {\r\n min = Math.min(min, value)\r\n max = Math.max(max, value)\r\n sum += value\r\n validCount++\r\n }\r\n }\r\n\r\n const mean = validCount > 0 ? sum / validCount : null\r\n\r\n dataStats[varName] = {\r\n min: isFinite(min) ? min : null,\r\n max: isFinite(max) ? max : null,\r\n mean,\r\n std: null,\r\n count: data.length,\r\n validCount,\r\n missingCount: data.length - validCount\r\n }\r\n\r\n console.log(`Stats for ${varName}:`, dataStats[varName])\r\n }\r\n }\r\n\r\n /**\r\n * 将地理维度的一维坐标数组加载到 variableData。\r\n * 通过名称启发式匹配或 CF 约定的 units 检测坐标维度。\r\n * 结果存入 variableData[dimName],以便 App.vue 的 overlayBounds\r\n * 可直接读取 variableData['lon'].data 和 variableData['lat'].data。\r\n */\r\n async function extractCoordinateArrays(hierarchy: Record<string, unknown>): Promise<void> {\r\n if (!dataset.value) return\r\n\r\n const dims = (hierarchy.dimensions ?? {}) as Record<string, { units?: string[]; size: number }>\r\n\r\n for (const [dimName, dimInfo] of Object.entries(dims)) {\r\n if (!isCoordinateDimension(dimName, dimInfo)) continue\r\n // 如已填充则跳过(如维度名与实际变量名相同)\r\n if (variableData[dimName]?.data) continue\r\n\r\n try {\r\n const coordData = await dataset.value.getVariableArray(dimName) as Float32Array\r\n const n = coordData.length\r\n variableData[dimName] = {\r\n data: coordData,\r\n shape: [n],\r\n dimensions: [dimName],\r\n type: 'f4'\r\n }\r\n console.log(`Loaded coordinate array '${dimName}': n=${n}, first=${coordData[0]?.toFixed(4)}, last=${coordData[n - 1]?.toFixed(4)}`)\r\n } catch (err) {\r\n console.warn(`Could not load coordinate array for dimension '${dimName}':`, String(err))\r\n }\r\n }\r\n }\r\n\r\n async function getVariableData(variableName: string, groupPath = '/'): Promise<unknown> {\r\n if (!dataset.value) throw new Error('No dataset loaded')\r\n\r\n try {\r\n return await dataset.value.getVariableArray(variableName, groupPath)\r\n } catch (err) {\r\n console.error(`Error getting variable ${variableName}:`, err)\r\n throw err\r\n }\r\n }\r\n\r\n async function getSlicedVariableData(\r\n variableName: string,\r\n start: number[],\r\n count: number[],\r\n groupPath = '/'\r\n ): Promise<unknown> {\r\n if (!dataset.value) throw new Error('No dataset loaded')\r\n\r\n try {\r\n return await dataset.value.getSlicedVariableArray(variableName, start, count, groupPath)\r\n } catch (err) {\r\n console.error(`Error getting sliced variable ${variableName}:`, err)\r\n throw err\r\n }\r\n }\r\n\r\n async function getDataAtCoordinate(\r\n variableName: string,\r\n lon: number,\r\n lat: number\r\n ): Promise<number | null> {\r\n if (!dataset.value) throw new Error('No dataset loaded')\r\n\r\n const varInfo = metadata.variables[variableName]\r\n if (!varInfo) throw new Error(`Variable ${variableName} not found`)\r\n\r\n const dims: string[] = varInfo.dimensions\r\n const lonDimIndex = dims.indexOf('lon')\r\n const latDimIndex = dims.indexOf('lat')\r\n\r\n if (lonDimIndex === -1 || latDimIndex === -1) {\r\n throw new Error(`Variable ${variableName} does not have lon/lat dimensions`)\r\n }\r\n\r\n // 从浮点地理坐标解析网格索引\r\n let lonIndex: number\r\n let latIndex: number\r\n\r\n const lonCoordData = variableData['lon']?.data\r\n const latCoordData = variableData['lat']?.data\r\n\r\n if (lonCoordData && latCoordData) {\r\n // 使用已加载的坐标数组进行最近网格点查找\r\n // 纬度数组为由北向南(递减),findNearestIndex 支持两种方向\r\n lonIndex = findNearestIndex(lonCoordData, lon)\r\n latIndex = findNearestIndex(latCoordData, lat)\r\n } else {\r\n // 回退方案:使用维度大小进行比例映射\r\n const lonSize = metadata.dimensions['lon']?.size ?? varInfo.shape[lonDimIndex] ?? 1\r\n const latSize = metadata.dimensions['lat']?.size ?? varInfo.shape[latDimIndex] ?? 1\r\n lonIndex = Math.max(0, Math.min(lonSize - 1, Math.round((lon + 180) / 360 * (lonSize - 1))))\r\n // 纬度:北=0,南=latSize-1(匹配由北向南的存储顺序)\r\n latIndex = Math.max(0, Math.min(latSize - 1, Math.round((90 - lat) / 180 * (latSize - 1))))\r\n }\r\n\r\n const start: number[] = []\r\n const count: number[] = []\r\n\r\n for (let i = 0; i < dims.length; i++) {\r\n if (i === lonDimIndex) {\r\n start.push(lonIndex); count.push(1)\r\n } else if (i === latDimIndex) {\r\n start.push(latIndex); count.push(1)\r\n } else {\r\n start.push(0); count.push(1)\r\n }\r\n }\r\n\r\n try {\r\n const slicedData = await getSlicedVariableData(variableName, start, count) as ArrayLike<number>\r\n return slicedData.length > 0 ? slicedData[0] : null\r\n } catch (err) {\r\n console.error(`Error getting data at coordinate (lon=${lon}, lat=${lat}):`, err)\r\n throw err\r\n }\r\n }\r\n\r\n async function closeDataset(): Promise<void> {\r\n if (dataset.value) {\r\n try {\r\n await dataset.value.close()\r\n dataset.value = null\r\n\r\n for (const key of Object.keys(metadata)) {\r\n if (key !== 'fileInfo') {\r\n ;(metadata as Record<string, unknown>)[key] = {}\r\n }\r\n }\r\n metadata.fileInfo = null\r\n\r\n for (const key of Object.keys(variableData)) delete variableData[key]\r\n for (const key of Object.keys(dataStats)) delete dataStats[key]\r\n } catch (err) {\r\n console.error('Error closing dataset:', err)\r\n }\r\n }\r\n }\r\n\r\n function reset(): void {\r\n void closeDataset()\r\n isLoading.value = false\r\n error.value = null\r\n }\r\n\r\n return {\r\n isLoading,\r\n error,\r\n dataset,\r\n metadata,\r\n variableData,\r\n dataStats,\r\n loadNetCdfFile,\r\n getVariableData,\r\n getSlicedVariableData,\r\n getDataAtCoordinate,\r\n closeDataset,\r\n reset,\r\n detect2dVariables: () => detect2dVariables(metadata.variables)\r\n }\r\n}\r\n","import { ref, computed } from 'vue'\r\nimport { useNetCdf, detect2dVariables } from '../composables/useNetCdf'\r\nimport type { VariableDataEntry, NetCdfMetadata, VariableStatsEntry } from '../types/netcdf'\r\nimport {\r\n getGlobalErrorHandler,\r\n ErrorType,\r\n ErrorSeverity,\r\n AppError,\r\n Validator\r\n} from '../utils/errorHandling'\r\n\r\n\r\n\r\n\r\ninterface LoadResult {\r\n success: boolean;\r\n metadata: NetCdfMetadata ;\r\n variableData: Record<string, VariableDataEntry>;\r\n dataStats: Record<string, VariableStatsEntry>;\r\n}\r\n\r\n\r\nexport const useLoadFile = (call:{\r\n dataLoaded:Function\r\n}) => {\r\n\r\n \r\n\r\n const currentFile = ref<File | null>(null)\r\n const errorHandler = getGlobalErrorHandler()\r\n const validationErrors = ref<string[]>([])\r\n const isLoading = ref(false)\r\n const loadError = ref<string | null>(null)\r\n // 使用 netCDF 组合式函数\r\n const {\r\n isLoading: netcdfLoading,\r\n error: netcdfError,\r\n metadata,\r\n variableData,\r\n dataStats,\r\n loadNetCdfFile\r\n } = useNetCdf()\r\n\r\n// 将组合式函数错误暴露给模板\r\nconst error = netcdfError\r\n\r\n// 检测到的可显示二维变量\r\nconst displayableVariables = computed(() => detect2dVariables(metadata.variables || {}))\r\n\r\n\r\nasync function handleFileSelect(file:File): Promise<LoadResult | void> {\r\n if (!file) return\r\n // 重置状态\r\n validationErrors.value = []\r\n loadError.value = null\r\n \r\n // 验证文件\r\n const fileErrors = Validator.validateNetCDFFile(file)\r\n if (fileErrors.length > 0) {\r\n validationErrors.value = fileErrors\r\n fileErrors.forEach(err => {\r\n errorHandler.handle(\r\n new AppError(ErrorType.FILE_READ, err, ErrorSeverity.ERROR),\r\n { fileName: file.name }\r\n )\r\n })\r\n return\r\n }\r\n \r\n currentFile.value = file\r\n isLoading.value = true\r\n \r\n try {\r\n const result = await loadNetCdfFile(file)\r\n \r\n if (result.success) {\r\n console.log('File loaded successfully:', file.name)\r\n console.log('Metadata:', metadata)\r\n \r\n // 验证元数据\r\n const metadataErrors = Validator.validateNetCDFMetadata(metadata)\r\n if (metadataErrors.length > 0) {\r\n validationErrors.value = metadataErrors\r\n metadataErrors.forEach(err => {\r\n errorHandler.handle(\r\n new AppError(ErrorType.NETCDF_PARSE, err, ErrorSeverity.WARNING),\r\n { fileName: file.name }\r\n )\r\n })\r\n }\r\n \r\n console.log(call,'回调函数')\r\n call && call.dataLoaded && call.dataLoaded({\r\n variableData: variableData,\r\n metadata: metadata,\r\n dataStats: dataStats\r\n })\r\n return {\r\n success: true,\r\n variableData: variableData,\r\n metadata: metadata,\r\n dataStats: dataStats\r\n }\r\n } else {\r\n throw new Error(result.error || 'Failed to load netCDF file')\r\n }\r\n } catch (err) {\r\n const errMsg = err instanceof Error ? err.message : String(err)\r\n loadError.value = errMsg\r\n errorHandler.handle(\r\n new AppError(ErrorType.NETCDF_LOAD, errMsg, ErrorSeverity.ERROR, err instanceof Error ? err : null),\r\n { fileName: file.name }\r\n )\r\n } finally {\r\n isLoading.value = false\r\n }\r\n}\r\n\r\n\r\n function formatFileSize(bytes: number ): string {\r\n if (bytes === 0) return '0 Bytes'\r\n const size = bytes ?? currentFile.value?.size ?? 0\r\n const k = 1024\r\n const sizes = ['Bytes', 'KB', 'MB', 'GB']\r\n const i = Math.floor(Math.log(bytes) / Math.log(k))\r\n return parseFloat((size / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i]\r\n}\r\n\r\n\r\n return {\r\n isLoading,\r\n netcdfLoading,\r\n displayableVariables,\r\n handleFileSelect,\r\n formatFileSize,\r\n currentFile,\r\n error,\r\n loadError,\r\n validationErrors\r\n }\r\n}\r\n","/**\n * @module ol/console\n */\n\n/**\n * @typedef {'info'|'warn'|'error'|'none'} Level\n */\n\n/**\n * @type {Object<Level, number>}\n */\nconst levels = {\n info: 1,\n warn: 2,\n error: 3,\n none: 4,\n};\n\n/**\n * @type {number}\n */\nlet level = levels.info;\n\n/**\n * Set the logging level. By default, the level is set to 'info' and all\n * messages will be logged. Set to 'warn' to only display warnings and errors.\n * Set to 'error' to only display errors. Set to 'none' to silence all messages.\n *\n * @param {Level} l The new level.\n */\nexport function setLevel(l) {\n level = levels[l];\n}\n\n/**\n * @param {...any} args Arguments to log\n */\nexport function log(...args) {\n if (level > levels.info) {\n return;\n }\n console.log(...args); // eslint-disable-line no-console\n}\n\n/**\n * @param {...any} args Arguments to log\n */\nexport function warn(...args) {\n if (level > levels.warn) {\n return;\n }\n console.warn(...args); // eslint-disable-line no-console\n}\n\n/**\n * @param {...any} args Arguments to log\n */\nexport function error(...args) {\n if (level > levels.error) {\n return;\n }\n console.error(...args); // eslint-disable-line no-console\n}\n","/**\n * @module ol/extent/Relationship\n */\n\n/**\n * Relationship to an extent.\n * @enum {number}\n */\nexport default {\n UNKNOWN: 0,\n INTERSECTING: 1,\n ABOVE: 2,\n RIGHT: 4,\n BELOW: 8,\n LEFT: 16,\n};\n","/**\n * @module ol/extent\n */\nimport Relationship from './extent/Relationship.js';\n\n/**\n * An array of numbers representing an extent: `[minx, miny, maxx, maxy]`.\n * @typedef {Array<number>} Extent\n * @api\n */\n\n/**\n * Extent corner.\n * @typedef {'bottom-left' | 'bottom-right' | 'top-left' | 'top-right'} Corner\n */\n\n/**\n * Build an extent that includes all given coordinates.\n *\n * @param {Array<import(\"./coordinate.js\").Coordinate>} coordinates Coordinates.\n * @return {Extent} Bounding extent.\n * @api\n */\nexport function boundingExtent(coordinates) {\n const extent = createEmpty();\n for (let i = 0, ii = coordinates.length; i < ii; ++i) {\n extendCoordinate(extent, coordinates[i]);\n }\n return extent;\n}\n\n/**\n * @param {Array<number>} xs Xs.\n * @param {Array<number>} ys Ys.\n * @param {Extent} [dest] Destination extent.\n * @private\n * @return {Extent} Extent.\n */\nfunction _boundingExtentXYs(xs, ys, dest) {\n const minX = Math.min.apply(null, xs);\n const minY = Math.min.apply(null, ys);\n const maxX = Math.max.apply(null, xs);\n const maxY = Math.max.apply(null, ys);\n return createOrUpdate(minX, minY, maxX, maxY, dest);\n}\n\n/**\n * Return extent increased by the provided value.\n * @param {Extent} extent Extent.\n * @param {number} value The amount by which the extent should be buffered.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n * @api\n */\nexport function buffer(extent, value, dest) {\n if (dest) {\n dest[0] = extent[0] - value;\n dest[1] = extent[1] - value;\n dest[2] = extent[2] + value;\n dest[3] = extent[3] + value;\n return dest;\n }\n return [\n extent[0] - value,\n extent[1] - value,\n extent[2] + value,\n extent[3] + value,\n ];\n}\n\n/**\n * Creates a clone of an extent.\n *\n * @param {Extent} extent Extent to clone.\n * @param {Extent} [dest] Extent.\n * @return {Extent} The clone.\n */\nexport function clone(extent, dest) {\n if (dest) {\n dest[0] = extent[0];\n dest[1] = extent[1];\n dest[2] = extent[2];\n dest[3] = extent[3];\n return dest;\n }\n return extent.slice();\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {number} x X.\n * @param {number} y Y.\n * @return {number} Closest squared distance.\n */\nexport function closestSquaredDistanceXY(extent, x, y) {\n let dx, dy;\n if (x < extent[0]) {\n dx = extent[0] - x;\n } else if (extent[2] < x) {\n dx = x - extent[2];\n } else {\n dx = 0;\n }\n if (y < extent[1]) {\n dy = extent[1] - y;\n } else if (extent[3] < y) {\n dy = y - extent[3];\n } else {\n dy = 0;\n }\n return dx * dx + dy * dy;\n}\n\n/**\n * Check if the passed coordinate is contained or on the edge of the extent.\n *\n * @param {Extent} extent Extent.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @return {boolean} The coordinate is contained in the extent.\n * @api\n */\nexport function containsCoordinate(extent, coordinate) {\n return containsXY(extent, coordinate[0], coordinate[1]);\n}\n\n/**\n * Check if one extent contains another.\n *\n * An extent is deemed contained if it lies completely within the other extent,\n * including if they share one or more edges.\n *\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @return {boolean} The second extent is contained by or on the edge of the\n * first.\n * @api\n */\nexport function containsExtent(extent1, extent2) {\n return (\n extent1[0] <= extent2[0] &&\n extent2[2] <= extent1[2] &&\n extent1[1] <= extent2[1] &&\n extent2[3] <= extent1[3]\n );\n}\n\n/**\n * Check if the passed coordinate is contained or on the edge of the extent.\n *\n * @param {Extent} extent Extent.\n * @param {number} x X coordinate.\n * @param {number} y Y coordinate.\n * @return {boolean} The x, y values are contained in the extent.\n * @api\n */\nexport function containsXY(extent, x, y) {\n return extent[0] <= x && x <= extent[2] && extent[1] <= y && y <= extent[3];\n}\n\n/**\n * Get the relationship between a coordinate and extent.\n * @param {Extent} extent The extent.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate The coordinate.\n * @return {import(\"./extent/Relationship.js\").default} The relationship (bitwise compare with\n * import(\"./extent/Relationship.js\").Relationship).\n */\nexport function coordinateRelationship(extent, coordinate) {\n const minX = extent[0];\n const minY = extent[1];\n const maxX = extent[2];\n const maxY = extent[3];\n const x = coordinate[0];\n const y = coordinate[1];\n let relationship = Relationship.UNKNOWN;\n if (x < minX) {\n relationship = relationship | Relationship.LEFT;\n } else if (x > maxX) {\n relationship = relationship | Relationship.RIGHT;\n }\n if (y < minY) {\n relationship = relationship | Relationship.BELOW;\n } else if (y > maxY) {\n relationship = relationship | Relationship.ABOVE;\n }\n if (relationship === Relationship.UNKNOWN) {\n relationship = Relationship.INTERSECTING;\n }\n return relationship;\n}\n\n/**\n * Create an empty extent.\n * @return {Extent} Empty extent.\n * @api\n */\nexport function createEmpty() {\n return [Infinity, Infinity, -Infinity, -Infinity];\n}\n\n/**\n * Create a new extent or update the provided extent.\n * @param {number} minX Minimum X.\n * @param {number} minY Minimum Y.\n * @param {number} maxX Maximum X.\n * @param {number} maxY Maximum Y.\n * @param {Extent} [dest] Destination extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdate(minX, minY, maxX, maxY, dest) {\n if (dest) {\n dest[0] = minX;\n dest[1] = minY;\n dest[2] = maxX;\n dest[3] = maxY;\n return dest;\n }\n return [minX, minY, maxX, maxY];\n}\n\n/**\n * Create a new empty extent or make the provided one empty.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdateEmpty(dest) {\n return createOrUpdate(Infinity, Infinity, -Infinity, -Infinity, dest);\n}\n\n/**\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdateFromCoordinate(coordinate, dest) {\n const x = coordinate[0];\n const y = coordinate[1];\n return createOrUpdate(x, y, x, y, dest);\n}\n\n/**\n * @param {Array<import(\"./coordinate.js\").Coordinate>} coordinates Coordinates.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdateFromCoordinates(coordinates, dest) {\n const extent = createOrUpdateEmpty(dest);\n return extendCoordinates(extent, coordinates);\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdateFromFlatCoordinates(\n flatCoordinates,\n offset,\n end,\n stride,\n dest,\n) {\n const extent = createOrUpdateEmpty(dest);\n return extendFlatCoordinates(extent, flatCoordinates, offset, end, stride);\n}\n\n/**\n * @param {Array<Array<import(\"./coordinate.js\").Coordinate>>} rings Rings.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function createOrUpdateFromRings(rings, dest) {\n const extent = createOrUpdateEmpty(dest);\n return extendRings(extent, rings);\n}\n\n/**\n * Determine if two extents are equivalent.\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @return {boolean} The two extents are equivalent.\n * @api\n */\nexport function equals(extent1, extent2) {\n return (\n extent1[0] == extent2[0] &&\n extent1[2] == extent2[2] &&\n extent1[1] == extent2[1] &&\n extent1[3] == extent2[3]\n );\n}\n\n/**\n * Determine if two extents are approximately equivalent.\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @param {number} tolerance Tolerance in extent coordinate units.\n * @return {boolean} The two extents differ by less than the tolerance.\n */\nexport function approximatelyEquals(extent1, extent2, tolerance) {\n return (\n Math.abs(extent1[0] - extent2[0]) < tolerance &&\n Math.abs(extent1[2] - extent2[2]) < tolerance &&\n Math.abs(extent1[1] - extent2[1]) < tolerance &&\n Math.abs(extent1[3] - extent2[3]) < tolerance\n );\n}\n\n/**\n * Modify an extent to include another extent.\n * @param {Extent} extent1 The extent to be modified.\n * @param {Extent} extent2 The extent that will be included in the first.\n * @return {Extent} A reference to the first (extended) extent.\n * @api\n */\nexport function extend(extent1, extent2) {\n if (extent2[0] < extent1[0]) {\n extent1[0] = extent2[0];\n }\n if (extent2[2] > extent1[2]) {\n extent1[2] = extent2[2];\n }\n if (extent2[1] < extent1[1]) {\n extent1[1] = extent2[1];\n }\n if (extent2[3] > extent1[3]) {\n extent1[3] = extent2[3];\n }\n return extent1;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n */\nexport function extendCoordinate(extent, coordinate) {\n if (coordinate[0] < extent[0]) {\n extent[0] = coordinate[0];\n }\n if (coordinate[0] > extent[2]) {\n extent[2] = coordinate[0];\n }\n if (coordinate[1] < extent[1]) {\n extent[1] = coordinate[1];\n }\n if (coordinate[1] > extent[3]) {\n extent[3] = coordinate[1];\n }\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {Array<import(\"./coordinate.js\").Coordinate>} coordinates Coordinates.\n * @return {Extent} Extent.\n */\nexport function extendCoordinates(extent, coordinates) {\n for (let i = 0, ii = coordinates.length; i < ii; ++i) {\n extendCoordinate(extent, coordinates[i]);\n }\n return extent;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @return {Extent} Extent.\n */\nexport function extendFlatCoordinates(\n extent,\n flatCoordinates,\n offset,\n end,\n stride,\n) {\n for (; offset < end; offset += stride) {\n extendXY(extent, flatCoordinates[offset], flatCoordinates[offset + 1]);\n }\n return extent;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {Array<Array<import(\"./coordinate.js\").Coordinate>>} rings Rings.\n * @return {Extent} Extent.\n */\nexport function extendRings(extent, rings) {\n for (let i = 0, ii = rings.length; i < ii; ++i) {\n extendCoordinates(extent, rings[i]);\n }\n return extent;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {number} x X.\n * @param {number} y Y.\n */\nexport function extendXY(extent, x, y) {\n extent[0] = Math.min(extent[0], x);\n extent[1] = Math.min(extent[1], y);\n extent[2] = Math.max(extent[2], x);\n extent[3] = Math.max(extent[3], y);\n}\n\n/**\n * This function calls `callback` for each corner of the extent. If the\n * callback returns a truthy value the function returns that value\n * immediately. Otherwise the function returns `false`.\n * @param {Extent} extent Extent.\n * @param {function(import(\"./coordinate.js\").Coordinate): S} callback Callback.\n * @return {S|boolean} Value.\n * @template S\n */\nexport function forEachCorner(extent, callback) {\n let val;\n val = callback(getBottomLeft(extent));\n if (val) {\n return val;\n }\n val = callback(getBottomRight(extent));\n if (val) {\n return val;\n }\n val = callback(getTopRight(extent));\n if (val) {\n return val;\n }\n val = callback(getTopLeft(extent));\n if (val) {\n return val;\n }\n return false;\n}\n\n/**\n * Get the size of an extent.\n * @param {Extent} extent Extent.\n * @return {number} Area.\n * @api\n */\nexport function getArea(extent) {\n let area = 0;\n if (!isEmpty(extent)) {\n area = getWidth(extent) * getHeight(extent);\n }\n return area;\n}\n\n/**\n * Get the bottom left coordinate of an extent.\n * @param {Extent} extent Extent.\n * @return {import(\"./coordinate.js\").Coordinate} Bottom left coordinate.\n * @api\n */\nexport function getBottomLeft(extent) {\n return [extent[0], extent[1]];\n}\n\n/**\n * Get the bottom right coordinate of an extent.\n * @param {Extent} extent Extent.\n * @return {import(\"./coordinate.js\").Coordinate} Bottom right coordinate.\n * @api\n */\nexport function getBottomRight(extent) {\n return [extent[2], extent[1]];\n}\n\n/**\n * Get the center coordinate of an extent.\n * @param {Extent} extent Extent.\n * @return {import(\"./coordinate.js\").Coordinate} Center.\n * @api\n */\nexport function getCenter(extent) {\n return [(extent[0] + extent[2]) / 2, (extent[1] + extent[3]) / 2];\n}\n\n/**\n * Get a corner coordinate of an extent.\n * @param {Extent} extent Extent.\n * @param {Corner} corner Corner.\n * @return {import(\"./coordinate.js\").Coordinate} Corner coordinate.\n */\nexport function getCorner(extent, corner) {\n let coordinate;\n if (corner === 'bottom-left') {\n coordinate = getBottomLeft(extent);\n } else if (corner === 'bottom-right') {\n coordinate = getBottomRight(extent);\n } else if (corner === 'top-left') {\n coordinate = getTopLeft(extent);\n } else if (corner === 'top-right') {\n coordinate = getTopRight(extent);\n } else {\n throw new Error('Invalid corner');\n }\n return coordinate;\n}\n\n/**\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @return {number} Enlarged area.\n */\nexport function getEnlargedArea(extent1, extent2) {\n const minX = Math.min(extent1[0], extent2[0]);\n const minY = Math.min(extent1[1], extent2[1]);\n const maxX = Math.max(extent1[2], extent2[2]);\n const maxY = Math.max(extent1[3], extent2[3]);\n return (maxX - minX) * (maxY - minY);\n}\n\n/**\n * @param {import(\"./coordinate.js\").Coordinate} center Center.\n * @param {number} resolution Resolution.\n * @param {number} rotation Rotation.\n * @param {import(\"./size.js\").Size} size Size.\n * @param {Extent} [dest] Destination extent.\n * @return {Extent} Extent.\n */\nexport function getForViewAndSize(center, resolution, rotation, size, dest) {\n const [x0, y0, x1, y1, x2, y2, x3, y3] = getRotatedViewport(\n center,\n resolution,\n rotation,\n size,\n );\n return createOrUpdate(\n Math.min(x0, x1, x2, x3),\n Math.min(y0, y1, y2, y3),\n Math.max(x0, x1, x2, x3),\n Math.max(y0, y1, y2, y3),\n dest,\n );\n}\n\n/**\n * @param {import(\"./coordinate.js\").Coordinate} center Center.\n * @param {number} resolution Resolution.\n * @param {number} rotation Rotation.\n * @param {import(\"./size.js\").Size} size Size.\n * @return {Array<number>} Linear ring representing the viewport.\n */\nexport function getRotatedViewport(center, resolution, rotation, size) {\n const dx = (resolution * size[0]) / 2;\n const dy = (resolution * size[1]) / 2;\n const cosRotation = Math.cos(rotation);\n const sinRotation = Math.sin(rotation);\n const xCos = dx * cosRotation;\n const xSin = dx * sinRotation;\n const yCos = dy * cosRotation;\n const ySin = dy * sinRotation;\n const x = center[0];\n const y = center[1];\n return [\n x - xCos + ySin,\n y - xSin - yCos,\n x - xCos - ySin,\n y - xSin + yCos,\n x + xCos - ySin,\n y + xSin + yCos,\n x + xCos + ySin,\n y + xSin - yCos,\n x - xCos + ySin,\n y - xSin - yCos,\n ];\n}\n\n/**\n * Get the height of an extent.\n * @param {Extent} extent Extent.\n * @return {number} Height.\n * @api\n */\nexport function getHeight(extent) {\n return extent[3] - extent[1];\n}\n\n/**\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @return {number} Intersection area.\n */\nexport function getIntersectionArea(extent1, extent2) {\n const intersection = getIntersection(extent1, extent2);\n return getArea(intersection);\n}\n\n/**\n * Get the intersection of two extents.\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent 2.\n * @param {Extent} [dest] Optional extent to populate with intersection.\n * @return {Extent} Intersecting extent.\n * @api\n */\nexport function getIntersection(extent1, extent2, dest) {\n const intersection = dest ? dest : createEmpty();\n if (intersects(extent1, extent2)) {\n if (extent1[0] > extent2[0]) {\n intersection[0] = extent1[0];\n } else {\n intersection[0] = extent2[0];\n }\n if (extent1[1] > extent2[1]) {\n intersection[1] = extent1[1];\n } else {\n intersection[1] = extent2[1];\n }\n if (extent1[2] < extent2[2]) {\n intersection[2] = extent1[2];\n } else {\n intersection[2] = extent2[2];\n }\n if (extent1[3] < extent2[3]) {\n intersection[3] = extent1[3];\n } else {\n intersection[3] = extent2[3];\n }\n } else {\n createOrUpdateEmpty(intersection);\n }\n return intersection;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @return {number} Margin.\n */\nexport function getMargin(extent) {\n return getWidth(extent) + getHeight(extent);\n}\n\n/**\n * Get the size (width, height) of an extent.\n * @param {Extent} extent The extent.\n * @return {import(\"./size.js\").Size} The extent size.\n * @api\n */\nexport function getSize(extent) {\n return [extent[2] - extent[0], extent[3] - extent[1]];\n}\n\n/**\n * Get the top left coordinate of an extent.\n * @param {Extent} extent Extent.\n * @return {import(\"./coordinate.js\").Coordinate} Top left coordinate.\n * @api\n */\nexport function getTopLeft(extent) {\n return [extent[0], extent[3]];\n}\n\n/**\n * Get the top right coordinate of an extent.\n * @param {Extent} extent Extent.\n * @return {import(\"./coordinate.js\").Coordinate} Top right coordinate.\n * @api\n */\nexport function getTopRight(extent) {\n return [extent[2], extent[3]];\n}\n\n/**\n * Get the width of an extent.\n * @param {Extent} extent Extent.\n * @return {number} Width.\n * @api\n */\nexport function getWidth(extent) {\n return extent[2] - extent[0];\n}\n\n/**\n * Determine if one extent intersects another.\n * @param {Extent} extent1 Extent 1.\n * @param {Extent} extent2 Extent.\n * @return {boolean} The two extents intersect.\n * @api\n */\nexport function intersects(extent1, extent2) {\n return (\n extent1[0] <= extent2[2] &&\n extent1[2] >= extent2[0] &&\n extent1[1] <= extent2[3] &&\n extent1[3] >= extent2[1]\n );\n}\n\n/**\n * Determine if an extent is empty.\n * @param {Extent} extent Extent.\n * @return {boolean} Is empty.\n * @api\n */\nexport function isEmpty(extent) {\n return extent[2] < extent[0] || extent[3] < extent[1];\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {Extent} [dest] Extent.\n * @return {Extent} Extent.\n */\nexport function returnOrUpdate(extent, dest) {\n if (dest) {\n dest[0] = extent[0];\n dest[1] = extent[1];\n dest[2] = extent[2];\n dest[3] = extent[3];\n return dest;\n }\n return extent;\n}\n\n/**\n * @param {Extent} extent Extent.\n * @param {number} value Value.\n */\nexport function scaleFromCenter(extent, value) {\n const deltaX = ((extent[2] - extent[0]) / 2) * (value - 1);\n const deltaY = ((extent[3] - extent[1]) / 2) * (value - 1);\n extent[0] -= deltaX;\n extent[2] += deltaX;\n extent[1] -= deltaY;\n extent[3] += deltaY;\n}\n\n/**\n * Determine if the segment between two coordinates intersects (crosses,\n * touches, or is contained by) the provided extent.\n * @param {Extent} extent The extent.\n * @param {import(\"./coordinate.js\").Coordinate} start Segment start coordinate.\n * @param {import(\"./coordinate.js\").Coordinate} end Segment end coordinate.\n * @return {boolean} The segment intersects the extent.\n */\nexport function intersectsSegment(extent, start, end) {\n let intersects = false;\n const startRel = coordinateRelationship(extent, start);\n const endRel = coordinateRelationship(extent, end);\n if (\n startRel === Relationship.INTERSECTING ||\n endRel === Relationship.INTERSECTING\n ) {\n intersects = true;\n } else {\n const minX = extent[0];\n const minY = extent[1];\n const maxX = extent[2];\n const maxY = extent[3];\n const startX = start[0];\n const startY = start[1];\n const endX = end[0];\n const endY = end[1];\n const slope = (endY - startY) / (endX - startX);\n let x, y;\n if (!!(endRel & Relationship.ABOVE) && !(startRel & Relationship.ABOVE)) {\n // potentially intersects top\n x = endX - (endY - maxY) / slope;\n intersects = x >= minX && x <= maxX;\n }\n if (\n !intersects &&\n !!(endRel & Relationship.RIGHT) &&\n !(startRel & Relationship.RIGHT)\n ) {\n // potentially intersects right\n y = endY - (endX - maxX) * slope;\n intersects = y >= minY && y <= maxY;\n }\n if (\n !intersects &&\n !!(endRel & Relationship.BELOW) &&\n !(startRel & Relationship.BELOW)\n ) {\n // potentially intersects bottom\n x = endX - (endY - minY) / slope;\n intersects = x >= minX && x <= maxX;\n }\n if (\n !intersects &&\n !!(endRel & Relationship.LEFT) &&\n !(startRel & Relationship.LEFT)\n ) {\n // potentially intersects left\n y = endY - (endX - minX) * slope;\n intersects = y >= minY && y <= maxY;\n }\n }\n return intersects;\n}\n\n/**\n * Apply a transform function to the extent.\n * @param {Extent} extent Extent.\n * @param {import(\"./proj.js\").TransformFunction} transformFn Transform function.\n * Called with `[minX, minY, maxX, maxY]` extent coordinates.\n * @param {Extent} [dest] Destination extent.\n * @param {number} [stops] Number of stops per side used for the transform.\n * By default only the corners are used.\n * @return {Extent} Extent.\n * @api\n */\nexport function applyTransform(extent, transformFn, dest, stops) {\n if (isEmpty(extent)) {\n return createOrUpdateEmpty(dest);\n }\n let coordinates = [];\n if (stops > 1) {\n const width = extent[2] - extent[0];\n const height = extent[3] - extent[1];\n for (let i = 0; i < stops; ++i) {\n coordinates.push(\n extent[0] + (width * i) / stops,\n extent[1],\n extent[2],\n extent[1] + (height * i) / stops,\n extent[2] - (width * i) / stops,\n extent[3],\n extent[0],\n extent[3] - (height * i) / stops,\n );\n }\n } else {\n coordinates = [\n extent[0],\n extent[1],\n extent[2],\n extent[1],\n extent[2],\n extent[3],\n extent[0],\n extent[3],\n ];\n }\n transformFn(coordinates, coordinates, 2);\n const xs = [];\n const ys = [];\n for (let i = 0, l = coordinates.length; i < l; i += 2) {\n xs.push(coordinates[i]);\n ys.push(coordinates[i + 1]);\n }\n return _boundingExtentXYs(xs, ys, dest);\n}\n\n/**\n * Modifies the provided extent in-place to be within the real world\n * extent.\n *\n * @param {Extent} extent Extent.\n * @param {import(\"./proj/Projection.js\").default} projection Projection\n * @return {Extent} The extent within the real world extent.\n */\nexport function wrapX(extent, projection) {\n const projectionExtent = projection.getExtent();\n const center = getCenter(extent);\n if (\n projection.canWrapX() &&\n (center[0] < projectionExtent[0] || center[0] >= projectionExtent[2])\n ) {\n const worldWidth = getWidth(projectionExtent);\n const worldsAway = Math.floor(\n (center[0] - projectionExtent[0]) / worldWidth,\n );\n const offset = worldsAway * worldWidth;\n extent[0] -= offset;\n extent[2] -= offset;\n }\n return extent;\n}\n\n/**\n * Fits the extent to the real world\n *\n * If the extent does not cross the anti meridian, this will return the extent in an array\n * If the extent crosses the anti meridian, the extent will be sliced, so each part fits within the\n * real world\n *\n *\n * @param {Extent} extent Extent.\n * @param {import(\"./proj/Projection.js\").default} projection Projection\n * @param {boolean} [multiWorld] Return all worlds\n * @return {Array<Extent>} The extent within the real world extent.\n */\nexport function wrapAndSliceX(extent, projection, multiWorld) {\n if (projection.canWrapX()) {\n const projectionExtent = projection.getExtent();\n\n if (!isFinite(extent[0]) || !isFinite(extent[2])) {\n return [[projectionExtent[0], extent[1], projectionExtent[2], extent[3]]];\n }\n\n wrapX(extent, projection);\n const worldWidth = getWidth(projectionExtent);\n\n if (getWidth(extent) > worldWidth && !multiWorld) {\n // the extent wraps around on itself\n return [[projectionExtent[0], extent[1], projectionExtent[2], extent[3]]];\n }\n if (extent[0] < projectionExtent[0]) {\n // the extent crosses the anti meridian, so it needs to be sliced\n return [\n [extent[0] + worldWidth, extent[1], projectionExtent[2], extent[3]],\n [projectionExtent[0], extent[1], extent[2], extent[3]],\n ];\n }\n if (extent[2] > projectionExtent[2]) {\n // the extent crosses the anti meridian, so it needs to be sliced\n return [\n [extent[0], extent[1], projectionExtent[2], extent[3]],\n [projectionExtent[0], extent[1], extent[2] - worldWidth, extent[3]],\n ];\n }\n }\n\n return [extent];\n}\n","/**\n * @module ol/math\n */\n\n/**\n * Takes a number and clamps it to within the provided bounds.\n * @param {number} value The input number.\n * @param {number} min The minimum value to return.\n * @param {number} max The maximum value to return.\n * @return {number} The input number if it is within bounds, or the nearest\n * number within the bounds.\n */\nexport function clamp(value, min, max) {\n return Math.min(Math.max(value, min), max);\n}\n\n/**\n * Returns the square of the closest distance between the point (x, y) and the\n * line segment (x1, y1) to (x2, y2).\n * @param {number} x X.\n * @param {number} y Y.\n * @param {number} x1 X1.\n * @param {number} y1 Y1.\n * @param {number} x2 X2.\n * @param {number} y2 Y2.\n * @return {number} Squared distance.\n */\nexport function squaredSegmentDistance(x, y, x1, y1, x2, y2) {\n const dx = x2 - x1;\n const dy = y2 - y1;\n if (dx !== 0 || dy !== 0) {\n const t = ((x - x1) * dx + (y - y1) * dy) / (dx * dx + dy * dy);\n if (t > 1) {\n x1 = x2;\n y1 = y2;\n } else if (t > 0) {\n x1 += dx * t;\n y1 += dy * t;\n }\n }\n return squaredDistance(x, y, x1, y1);\n}\n\n/**\n * Returns the square of the distance between the points (x1, y1) and (x2, y2).\n * @param {number} x1 X1.\n * @param {number} y1 Y1.\n * @param {number} x2 X2.\n * @param {number} y2 Y2.\n * @return {number} Squared distance.\n */\nexport function squaredDistance(x1, y1, x2, y2) {\n const dx = x2 - x1;\n const dy = y2 - y1;\n return dx * dx + dy * dy;\n}\n\n/**\n * Solves system of linear equations using Gaussian elimination method.\n *\n * @param {Array<Array<number>>} mat Augmented matrix (n x n + 1 column)\n * in row-major order.\n * @return {Array<number>|null} The resulting vector.\n */\nexport function solveLinearSystem(mat) {\n const n = mat.length;\n\n for (let i = 0; i < n; i++) {\n // Find max in the i-th column (ignoring i - 1 first rows)\n let maxRow = i;\n let maxEl = Math.abs(mat[i][i]);\n for (let r = i + 1; r < n; r++) {\n const absValue = Math.abs(mat[r][i]);\n if (absValue > maxEl) {\n maxEl = absValue;\n maxRow = r;\n }\n }\n\n if (maxEl === 0) {\n return null; // matrix is singular\n }\n\n // Swap max row with i-th (current) row\n const tmp = mat[maxRow];\n mat[maxRow] = mat[i];\n mat[i] = tmp;\n\n // Subtract the i-th row to make all the remaining rows 0 in the i-th column\n for (let j = i + 1; j < n; j++) {\n const coef = -mat[j][i] / mat[i][i];\n for (let k = i; k < n + 1; k++) {\n if (i == k) {\n mat[j][k] = 0;\n } else {\n mat[j][k] += coef * mat[i][k];\n }\n }\n }\n }\n\n // Solve Ax=b for upper triangular matrix A (mat)\n const x = new Array(n);\n for (let l = n - 1; l >= 0; l--) {\n x[l] = mat[l][n] / mat[l][l];\n for (let m = l - 1; m >= 0; m--) {\n mat[m][n] -= mat[m][l] * x[l];\n }\n }\n return x;\n}\n\n/**\n * Converts radians to to degrees.\n *\n * @param {number} angleInRadians Angle in radians.\n * @return {number} Angle in degrees.\n */\nexport function toDegrees(angleInRadians) {\n return (angleInRadians * 180) / Math.PI;\n}\n\n/**\n * Converts degrees to radians.\n *\n * @param {number} angleInDegrees Angle in degrees.\n * @return {number} Angle in radians.\n */\nexport function toRadians(angleInDegrees) {\n return (angleInDegrees * Math.PI) / 180;\n}\n\n/**\n * Returns the modulo of a / b, depending on the sign of b.\n *\n * @param {number} a Dividend.\n * @param {number} b Divisor.\n * @return {number} Modulo.\n */\nexport function modulo(a, b) {\n const r = a % b;\n return r * b < 0 ? r + b : r;\n}\n\n/**\n * Calculates the linearly interpolated value of x between a and b.\n *\n * @param {number} a Number\n * @param {number} b Number\n * @param {number} x Value to be interpolated.\n * @return {number} Interpolated value.\n */\nexport function lerp(a, b, x) {\n return a + x * (b - a);\n}\n\n/**\n * Returns a number with a limited number of decimal digits.\n * @param {number} n The input number.\n * @param {number} decimals The maximum number of decimal digits.\n * @return {number} The input number with a limited number of decimal digits.\n */\nexport function toFixed(n, decimals) {\n const factor = Math.pow(10, decimals);\n return Math.round(n * factor) / factor;\n}\n\n/**\n * Rounds a number to the nearest integer value considering only the given number\n * of decimal digits (with rounding on the final digit).\n * @param {number} n The input number.\n * @param {number} decimals The maximum number of decimal digits.\n * @return {number} The nearest integer.\n */\nexport function round(n, decimals) {\n return Math.round(toFixed(n, decimals));\n}\n\n/**\n * Rounds a number to the next smaller integer considering only the given number\n * of decimal digits (with rounding on the final digit).\n * @param {number} n The input number.\n * @param {number} decimals The maximum number of decimal digits.\n * @return {number} The next smaller integer.\n */\nexport function floor(n, decimals) {\n return Math.floor(toFixed(n, decimals));\n}\n\n/**\n * Rounds a number to the next bigger integer considering only the given number\n * of decimal digits (with rounding on the final digit).\n * @param {number} n The input number.\n * @param {number} decimals The maximum number of decimal digits.\n * @return {number} The next bigger integer.\n */\nexport function ceil(n, decimals) {\n return Math.ceil(toFixed(n, decimals));\n}\n\n/**\n * Wraps a number between some minimum and maximum values.\n * @param {number} n The number to wrap.\n * @param {number} min The minimum of the range (inclusive).\n * @param {number} max The maximum of the range (exclusive).\n * @return {number} The wrapped number.\n */\nexport function wrap(n, min, max) {\n if (n >= min && n < max) {\n return n;\n }\n const range = max - min;\n return ((((n - min) % range) + range) % range) + min;\n}\n","/**\n * @module ol/coordinate\n */\nimport {getWidth} from './extent.js';\nimport {clamp, modulo, toFixed} from './math.js';\nimport {padNumber} from './string.js';\n\n/**\n * An array of numbers representing an `xy`, `xyz` or `xyzm` coordinate.\n * Example: `[16, 48]`.\n * @typedef {Array<number>} Coordinate\n * @api\n */\n\n/**\n * A function that takes a {@link module:ol/coordinate~Coordinate} and\n * transforms it into a `{string}`.\n *\n * @typedef {function((Coordinate|undefined)): string} CoordinateFormat\n * @api\n */\n\n/**\n * Add `delta` to `coordinate`. `coordinate` is modified in place and returned\n * by the function.\n *\n * Example:\n *\n * import {add} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * add(coord, [-2, 4]);\n * // coord is now [5.85, 51.983333]\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {Coordinate} delta Delta.\n * @return {Coordinate} The input coordinate adjusted by\n * the given delta.\n * @api\n */\nexport function add(coordinate, delta) {\n coordinate[0] += +delta[0];\n coordinate[1] += +delta[1];\n return coordinate;\n}\n\n/**\n * Calculates the point closest to the passed coordinate on the passed circle.\n *\n * @param {Coordinate} coordinate The coordinate.\n * @param {import(\"./geom/Circle.js\").default} circle The circle.\n * @return {Coordinate} Closest point on the circumference.\n */\nexport function closestOnCircle(coordinate, circle) {\n const r = circle.getRadius();\n const center = circle.getCenter();\n const x0 = center[0];\n const y0 = center[1];\n const x1 = coordinate[0];\n const y1 = coordinate[1];\n\n let dx = x1 - x0;\n const dy = y1 - y0;\n if (dx === 0 && dy === 0) {\n dx = 1;\n }\n const d = Math.sqrt(dx * dx + dy * dy);\n\n const x = x0 + (r * dx) / d;\n const y = y0 + (r * dy) / d;\n\n return [x, y];\n}\n\n/**\n * Calculates the point closest to the passed coordinate on the passed segment.\n * This is the foot of the perpendicular of the coordinate to the segment when\n * the foot is on the segment, or the closest segment coordinate when the foot\n * is outside the segment.\n *\n * @param {Coordinate} coordinate The coordinate.\n * @param {Array<Coordinate>} segment The two coordinates\n * of the segment.\n * @return {Coordinate} The foot of the perpendicular of\n * the coordinate to the segment.\n */\nexport function closestOnSegment(coordinate, segment) {\n const x0 = coordinate[0];\n const y0 = coordinate[1];\n const start = segment[0];\n const end = segment[1];\n const x1 = start[0];\n const y1 = start[1];\n const x2 = end[0];\n const y2 = end[1];\n const dx = x2 - x1;\n const dy = y2 - y1;\n const along =\n dx === 0 && dy === 0\n ? 0\n : (dx * (x0 - x1) + dy * (y0 - y1)) / (dx * dx + dy * dy || 0);\n let x, y;\n if (along <= 0) {\n x = x1;\n y = y1;\n } else if (along >= 1) {\n x = x2;\n y = y2;\n } else {\n x = x1 + along * dx;\n y = y1 + along * dy;\n }\n return [x, y];\n}\n\n/**\n * Returns a {@link module:ol/coordinate~CoordinateFormat} function that can be\n * used to format\n * a {Coordinate} to a string.\n *\n * Example without specifying the fractional digits:\n *\n * import {createStringXY} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const stringifyFunc = createStringXY();\n * const out = stringifyFunc(coord);\n * // out is now '8, 48'\n *\n * Example with explicitly specifying 2 fractional digits:\n *\n * import {createStringXY} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const stringifyFunc = createStringXY(2);\n * const out = stringifyFunc(coord);\n * // out is now '7.85, 47.98'\n *\n * @param {number} [fractionDigits] The number of digits to include\n * after the decimal point. Default is `0`.\n * @return {CoordinateFormat} Coordinate format.\n * @api\n */\nexport function createStringXY(fractionDigits) {\n return (\n /**\n * @param {Coordinate} coordinate Coordinate.\n * @return {string} String XY.\n */\n function (coordinate) {\n return toStringXY(coordinate, fractionDigits);\n }\n );\n}\n\n/**\n * @param {string} hemispheres Hemispheres.\n * @param {number} degrees Degrees.\n * @param {number} [fractionDigits] The number of digits to include\n * after the decimal point. Default is `0`.\n * @return {string} String.\n */\nexport function degreesToStringHDMS(hemispheres, degrees, fractionDigits) {\n const normalizedDegrees = modulo(degrees + 180, 360) - 180;\n const x = Math.abs(3600 * normalizedDegrees);\n const decimals = fractionDigits || 0;\n\n let deg = Math.floor(x / 3600);\n let min = Math.floor((x - deg * 3600) / 60);\n let sec = toFixed(x - deg * 3600 - min * 60, decimals);\n\n if (sec >= 60) {\n sec = 0;\n min += 1;\n }\n\n if (min >= 60) {\n min = 0;\n deg += 1;\n }\n\n let hdms = deg + '\\u00b0';\n if (min !== 0 || sec !== 0) {\n hdms += ' ' + padNumber(min, 2) + '\\u2032';\n }\n if (sec !== 0) {\n hdms += ' ' + padNumber(sec, 2, decimals) + '\\u2033';\n }\n if (normalizedDegrees !== 0) {\n hdms += ' ' + hemispheres.charAt(normalizedDegrees < 0 ? 1 : 0);\n }\n\n return hdms;\n}\n\n/**\n * Transforms the given {@link module:ol/coordinate~Coordinate} to a string\n * using the given string template. The strings `{x}` and `{y}` in the template\n * will be replaced with the first and second coordinate values respectively.\n *\n * Example without specifying the fractional digits:\n *\n * import {format} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const template = 'Coordinate is ({x}|{y}).';\n * const out = format(coord, template);\n * // out is now 'Coordinate is (8|48).'\n *\n * Example explicitly specifying the fractional digits:\n *\n * import {format} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const template = 'Coordinate is ({x}|{y}).';\n * const out = format(coord, template, 2);\n * // out is now 'Coordinate is (7.85|47.98).'\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {string} template A template string with `{x}` and `{y}` placeholders\n * that will be replaced by first and second coordinate values.\n * @param {number} [fractionDigits] The number of digits to include\n * after the decimal point. Default is `0`.\n * @return {string} Formatted coordinate.\n * @api\n */\nexport function format(coordinate, template, fractionDigits) {\n if (coordinate) {\n return template\n .replace('{x}', coordinate[0].toFixed(fractionDigits))\n .replace('{y}', coordinate[1].toFixed(fractionDigits));\n }\n return '';\n}\n\n/**\n * @param {Coordinate} coordinate1 First coordinate.\n * @param {Coordinate} coordinate2 Second coordinate.\n * @return {boolean} The two coordinates are equal.\n */\nexport function equals(coordinate1, coordinate2) {\n let equals = true;\n for (let i = coordinate1.length - 1; i >= 0; --i) {\n if (coordinate1[i] != coordinate2[i]) {\n equals = false;\n break;\n }\n }\n return equals;\n}\n\n/**\n * Rotate `coordinate` by `angle`. `coordinate` is modified in place and\n * returned by the function.\n *\n * Example:\n *\n * import {rotate} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const rotateRadians = Math.PI / 2; // 90 degrees\n * rotate(coord, rotateRadians);\n * // coord is now [-47.983333, 7.85]\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {number} angle Angle in radian.\n * @return {Coordinate} Coordinate.\n * @api\n */\nexport function rotate(coordinate, angle) {\n const cosAngle = Math.cos(angle);\n const sinAngle = Math.sin(angle);\n const x = coordinate[0] * cosAngle - coordinate[1] * sinAngle;\n const y = coordinate[1] * cosAngle + coordinate[0] * sinAngle;\n coordinate[0] = x;\n coordinate[1] = y;\n return coordinate;\n}\n\n/**\n * Scale `coordinate` by `scale`. `coordinate` is modified in place and returned\n * by the function.\n *\n * Example:\n *\n * import {scale as scaleCoordinate} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const scale = 1.2;\n * scaleCoordinate(coord, scale);\n * // coord is now [9.42, 57.5799996]\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {number} scale Scale factor.\n * @return {Coordinate} Coordinate.\n */\nexport function scale(coordinate, scale) {\n coordinate[0] *= scale;\n coordinate[1] *= scale;\n return coordinate;\n}\n\n/**\n * @param {Coordinate} coord1 First coordinate.\n * @param {Coordinate} coord2 Second coordinate.\n * @return {number} Squared distance between coord1 and coord2.\n */\nexport function squaredDistance(coord1, coord2) {\n const dx = coord1[0] - coord2[0];\n const dy = coord1[1] - coord2[1];\n return dx * dx + dy * dy;\n}\n\n/**\n * @param {Coordinate} coord1 First coordinate.\n * @param {Coordinate} coord2 Second coordinate.\n * @return {number} Distance between coord1 and coord2.\n */\nexport function distance(coord1, coord2) {\n return Math.sqrt(squaredDistance(coord1, coord2));\n}\n\n/**\n * Calculate the squared distance from a coordinate to a line segment.\n *\n * @param {Coordinate} coordinate Coordinate of the point.\n * @param {Array<Coordinate>} segment Line segment (2\n * coordinates).\n * @return {number} Squared distance from the point to the line segment.\n */\nexport function squaredDistanceToSegment(coordinate, segment) {\n return squaredDistance(coordinate, closestOnSegment(coordinate, segment));\n}\n\n/**\n * Format a geographic coordinate with the hemisphere, degrees, minutes, and\n * seconds.\n *\n * Example without specifying fractional digits:\n *\n * import {toStringHDMS} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const out = toStringHDMS(coord);\n * // out is now '47° 58′ 60″ N 7° 50′ 60″ E'\n *\n * Example explicitly specifying 1 fractional digit:\n *\n * import {toStringHDMS} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const out = toStringHDMS(coord, 1);\n * // out is now '47° 58′ 60.0″ N 7° 50′ 60.0″ E'\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {number} [fractionDigits] The number of digits to include\n * after the decimal point. Default is `0`.\n * @return {string} Hemisphere, degrees, minutes and seconds.\n * @api\n */\nexport function toStringHDMS(coordinate, fractionDigits) {\n if (coordinate) {\n return (\n degreesToStringHDMS('NS', coordinate[1], fractionDigits) +\n ' ' +\n degreesToStringHDMS('EW', coordinate[0], fractionDigits)\n );\n }\n return '';\n}\n\n/**\n * Format a coordinate as a comma delimited string.\n *\n * Example without specifying fractional digits:\n *\n * import {toStringXY} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const out = toStringXY(coord);\n * // out is now '8, 48'\n *\n * Example explicitly specifying 1 fractional digit:\n *\n * import {toStringXY} from 'ol/coordinate.js';\n *\n * const coord = [7.85, 47.983333];\n * const out = toStringXY(coord, 1);\n * // out is now '7.8, 48.0'\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {number} [fractionDigits] The number of digits to include\n * after the decimal point. Default is `0`.\n * @return {string} XY.\n * @api\n */\nexport function toStringXY(coordinate, fractionDigits) {\n return format(coordinate, '{x}, {y}', fractionDigits);\n}\n\n/**\n * Modifies the provided coordinate in-place to be within the real world\n * extent. The lower projection extent boundary is inclusive, the upper one\n * exclusive.\n *\n * @param {Coordinate} coordinate Coordinate.\n * @param {import(\"./proj/Projection.js\").default} projection Projection.\n * @return {Coordinate} The coordinate within the real world extent.\n */\nexport function wrapX(coordinate, projection) {\n if (projection.canWrapX()) {\n const worldWidth = getWidth(projection.getExtent());\n const worldsAway = getWorldsAway(coordinate, projection, worldWidth);\n if (worldsAway) {\n coordinate[0] -= worldsAway * worldWidth;\n }\n }\n return coordinate;\n}\n/**\n * @param {Coordinate} coordinate Coordinate.\n * @param {import(\"./proj/Projection.js\").default} projection Projection.\n * @param {number} [sourceExtentWidth] Width of the source extent.\n * @return {number} Offset in world widths.\n */\nexport function getWorldsAway(coordinate, projection, sourceExtentWidth) {\n const projectionExtent = projection.getExtent();\n let worldsAway = 0;\n if (\n projection.canWrapX() &&\n (coordinate[0] < projectionExtent[0] || coordinate[0] > projectionExtent[2])\n ) {\n sourceExtentWidth = sourceExtentWidth || getWidth(projectionExtent);\n worldsAway = Math.floor(\n (coordinate[0] - projectionExtent[0]) / sourceExtentWidth,\n );\n }\n return worldsAway;\n}\n\n/**\n * Compute the angle between p0pA and p0pB\n * @param {Coordinate} p0 Point 0\n * @param {Coordinate} pA Point A\n * @param {Coordinate} pB Point B\n * @return {number} a value in [0, 2PI]\n */\nexport function angleBetween(p0, pA, pB) {\n const lenA = Math.sqrt(\n (pA[0] - p0[0]) * (pA[0] - p0[0]) + (pA[1] - p0[1]) * (pA[1] - p0[1]),\n );\n const tangentA = [(pA[0] - p0[0]) / lenA, (pA[1] - p0[1]) / lenA];\n const orthoA = [-tangentA[1], tangentA[0]];\n const lenB = Math.sqrt(\n (pB[0] - p0[0]) * (pB[0] - p0[0]) + (pB[1] - p0[1]) * (pB[1] - p0[1]),\n );\n const tangentB = [(pB[0] - p0[0]) / lenB, (pB[1] - p0[1]) / lenB];\n\n // this angle can be clockwise or anticlockwise; hence the computation afterwards\n let angle =\n lenA === 0 || lenB === 0\n ? 0\n : Math.acos(\n clamp(tangentB[0] * tangentA[0] + tangentB[1] * tangentA[1], -1, 1),\n );\n angle = Math.max(angle, 0.00001); // avoid a zero angle otherwise this is detected as a line cap\n const isClockwise = tangentB[0] * orthoA[0] + tangentB[1] * orthoA[1] > 0;\n return !isClockwise ? Math.PI * 2 - angle : angle;\n}\n","/**\n * @module ol/proj/Units\n */\n\n/**\n * @typedef {'radians' | 'degrees' | 'ft' | 'm' | 'pixels' | 'tile-pixels' | 'us-ft'} Units\n * Projection units.\n */\n\n/**\n * See http://duff.ess.washington.edu/data/raster/drg/docs/geotiff.txt\n * @type {Object<number, Units>}\n */\nconst unitByCode = {\n '9001': 'm',\n '9002': 'ft',\n '9003': 'us-ft',\n '9101': 'radians',\n '9102': 'degrees',\n};\n\n/**\n * @param {number} code Unit code.\n * @return {Units} Units.\n */\nexport function fromCode(code) {\n return unitByCode[code];\n}\n\n/**\n * @typedef {Object} MetersPerUnitLookup\n * @property {number} radians Radians\n * @property {number} degrees Degrees\n * @property {number} ft Feet\n * @property {number} m Meters\n * @property {number} us-ft US feet\n */\n\n/**\n * Meters per unit lookup table.\n * @const\n * @type {MetersPerUnitLookup}\n * @api\n */\nexport const METERS_PER_UNIT = {\n // use the radius of the Normal sphere\n 'radians': 6370997 / (2 * Math.PI),\n 'degrees': (2 * Math.PI * 6370997) / 360,\n 'ft': 0.3048,\n 'm': 1,\n 'us-ft': 1200 / 3937,\n};\n","/**\n * @module ol/proj/Projection\n */\nimport {METERS_PER_UNIT} from './Units.js';\n\n/**\n * The function is called with a `number` view resolution and a\n * {@link module:ol/coordinate~Coordinate} as arguments, and returns the `number` resolution\n * in projection units at the passed coordinate.\n * @typedef {function(number, import(\"../coordinate.js\").Coordinate):number} GetPointResolution\n * @api\n */\n\n/**\n * @typedef {Object} Options\n * @property {string} code The SRS identifier code, e.g. `EPSG:4326`.\n * @property {import(\"./Units.js\").Units} [units] Units. Required unless a\n * proj4 projection is defined for `code`.\n * @property {import(\"../extent.js\").Extent} [extent] The validity extent for the SRS.\n * @property {string} [axisOrientation='enu'] The axis orientation as specified in Proj4.\n * @property {boolean} [global=false] Whether the projection is valid for the whole globe.\n * @property {number} [metersPerUnit] The meters per unit for the SRS.\n * If not provided, the `units` are used to get the meters per unit from the {@link METERS_PER_UNIT}\n * lookup table.\n * @property {import(\"../extent.js\").Extent} [worldExtent] The world extent for the SRS.\n * @property {GetPointResolution} [getPointResolution]\n * Function to determine resolution at a point. The function is called with a\n * `number` view resolution and a {@link module:ol/coordinate~Coordinate} as arguments, and returns\n * the `number` resolution in projection units at the passed coordinate. If this is `undefined`,\n * the default {@link module:ol/proj.getPointResolution} function will be used.\n */\n\n/**\n * @classdesc\n * In most cases, you should not need to create instances of this class.\n * Instead, where projection information is required, you can use a string\n * projection code or identifier (e.g. `EPSG:4326`) instead of a projection\n * instance.\n *\n * The library includes support for transforming coordinates between the following\n * projections:\n *\n * WGS 84 / Geographic - Using codes `EPSG:4326`, `CRS:84`, `urn:ogc:def:crs:EPSG:6.6:4326`,\n * `urn:ogc:def:crs:OGC:1.3:CRS84`, `urn:ogc:def:crs:OGC:2:84`, `http://www.opengis.net/gml/srs/epsg.xml#4326`,\n * or `urn:x-ogc:def:crs:EPSG:4326`\n * WGS 84 / Spherical Mercator - Using codes `EPSG:3857`, `EPSG:102100`, `EPSG:102113`, `EPSG:900913`,\n * `urn:ogc:def:crs:EPSG:6.18:3:3857`, or `http://www.opengis.net/gml/srs/epsg.xml#3857`\n * WGS 84 / UTM zones - Using codes `EPSG:32601` through `EPSG:32660` for northern zones\n * and `EPSG:32701` through `EPSG:32760` for southern zones. Note that the built-in UTM transforms\n * are lower accuracy (with errors on the order of 0.1 m) than those that you might get in a\n * library like [proj4js](https://github.com/proj4js/proj4js).\n *\n * For additional projection support, or to use higher accuracy transforms than the built-in ones, you can use\n * the [proj4js](https://github.com/proj4js/proj4js) library. With `proj4js`, after adding any new projection\n * definitions, call the {@link module:ol/proj/proj4.register} function.\n *\n * You can use the {@link module:ol/proj.get} function to retrieve a projection instance\n * for one of the registered projections.\n *\n * @api\n */\nclass Projection {\n /**\n * @param {Options} options Projection options.\n */\n constructor(options) {\n /**\n * @private\n * @type {string}\n */\n this.code_ = options.code;\n\n /**\n * Units of projected coordinates. When set to `TILE_PIXELS`, a\n * `this.extent_` and `this.worldExtent_` must be configured properly for each\n * tile.\n * @private\n * @type {import(\"./Units.js\").Units}\n */\n this.units_ = /** @type {import(\"./Units.js\").Units} */ (options.units);\n\n /**\n * Validity extent of the projection in projected coordinates. For projections\n * with `TILE_PIXELS` units, this is the extent of the tile in\n * tile pixel space.\n * @private\n * @type {import(\"../extent.js\").Extent}\n */\n this.extent_ = options.extent !== undefined ? options.extent : null;\n\n /**\n * Extent of the world in EPSG:4326. For projections with\n * `TILE_PIXELS` units, this is the extent of the tile in\n * projected coordinate space.\n * @private\n * @type {import(\"../extent.js\").Extent}\n */\n this.worldExtent_ =\n options.worldExtent !== undefined ? options.worldExtent : null;\n\n /**\n * @private\n * @type {string}\n */\n this.axisOrientation_ =\n options.axisOrientation !== undefined ? options.axisOrientation : 'enu';\n\n /**\n * @private\n * @type {boolean}\n */\n this.global_ = options.global !== undefined ? options.global : false;\n\n /**\n * @private\n * @type {boolean}\n */\n this.canWrapX_ = !!(this.global_ && this.extent_);\n\n /**\n * @private\n * @type {GetPointResolution|undefined}\n */\n this.getPointResolutionFunc_ = options.getPointResolution;\n\n /**\n * @private\n * @type {import(\"../tilegrid/TileGrid.js\").default}\n */\n this.defaultTileGrid_ = null;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.metersPerUnit_ = options.metersPerUnit;\n }\n\n /**\n * @return {boolean} The projection is suitable for wrapping the x-axis\n */\n canWrapX() {\n return this.canWrapX_;\n }\n\n /**\n * Get the code for this projection, e.g. 'EPSG:4326'.\n * @return {string} Code.\n * @api\n */\n getCode() {\n return this.code_;\n }\n\n /**\n * Get the validity extent for this projection.\n * @return {import(\"../extent.js\").Extent} Extent.\n * @api\n */\n getExtent() {\n return this.extent_;\n }\n\n /**\n * Get the units of this projection.\n * @return {import(\"./Units.js\").Units} Units.\n * @api\n */\n getUnits() {\n return this.units_;\n }\n\n /**\n * Get the amount of meters per unit of this projection. If the projection is\n * not configured with `metersPerUnit` or a units identifier, the return is\n * `undefined`.\n * @return {number|undefined} Meters.\n * @api\n */\n getMetersPerUnit() {\n return this.metersPerUnit_ || METERS_PER_UNIT[this.units_];\n }\n\n /**\n * Get the world extent for this projection.\n * @return {import(\"../extent.js\").Extent} Extent.\n * @api\n */\n getWorldExtent() {\n return this.worldExtent_;\n }\n\n /**\n * Get the axis orientation of this projection.\n * Example values are:\n * enu - the default easting, northing, elevation.\n * neu - northing, easting, up - useful for \"lat/long\" geographic coordinates,\n * or south orientated transverse mercator.\n * wnu - westing, northing, up - some planetary coordinate systems have\n * \"west positive\" coordinate systems\n * @return {string} Axis orientation.\n * @api\n */\n getAxisOrientation() {\n return this.axisOrientation_;\n }\n\n /**\n * Is this projection a global projection which spans the whole world?\n * @return {boolean} Whether the projection is global.\n * @api\n */\n isGlobal() {\n return this.global_;\n }\n\n /**\n * Set if the projection is a global projection which spans the whole world\n * @param {boolean} global Whether the projection is global.\n * @api\n */\n setGlobal(global) {\n this.global_ = global;\n this.canWrapX_ = !!(global && this.extent_);\n }\n\n /**\n * @return {import(\"../tilegrid/TileGrid.js\").default} The default tile grid.\n */\n getDefaultTileGrid() {\n return this.defaultTileGrid_;\n }\n\n /**\n * @param {import(\"../tilegrid/TileGrid.js\").default} tileGrid The default tile grid.\n */\n setDefaultTileGrid(tileGrid) {\n this.defaultTileGrid_ = tileGrid;\n }\n\n /**\n * Set the validity extent for this projection.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @api\n */\n setExtent(extent) {\n this.extent_ = extent;\n this.canWrapX_ = !!(this.global_ && extent);\n }\n\n /**\n * Set the world extent for this projection.\n * @param {import(\"../extent.js\").Extent} worldExtent World extent\n * [minlon, minlat, maxlon, maxlat].\n * @api\n */\n setWorldExtent(worldExtent) {\n this.worldExtent_ = worldExtent;\n }\n\n /**\n * Set the getPointResolution function (see {@link module:ol/proj.getPointResolution}\n * for this projection.\n * @param {function(number, import(\"../coordinate.js\").Coordinate):number} func Function\n * @api\n */\n setGetPointResolution(func) {\n this.getPointResolutionFunc_ = func;\n }\n\n /**\n * Get the custom point resolution function for this projection (if set).\n * @return {GetPointResolution|undefined} The custom point\n * resolution function (if set).\n */\n getPointResolutionFunc() {\n return this.getPointResolutionFunc_;\n }\n}\n\nexport default Projection;\n","/**\n * @module ol/proj/epsg3857\n */\nimport Projection from './Projection.js';\n\n/**\n * Radius of WGS84 sphere\n *\n * @const\n * @type {number}\n */\nexport const RADIUS = 6378137;\n\n/**\n * @const\n * @type {number}\n */\nexport const HALF_SIZE = Math.PI * RADIUS;\n\n/**\n * @const\n * @type {import(\"../extent.js\").Extent}\n */\nexport const EXTENT = [-HALF_SIZE, -HALF_SIZE, HALF_SIZE, HALF_SIZE];\n\n/**\n * @const\n * @type {import(\"../extent.js\").Extent}\n */\nexport const WORLD_EXTENT = [-180, -85, 180, 85];\n\n/**\n * Maximum safe value in y direction\n * @const\n * @type {number}\n */\nexport const MAX_SAFE_Y = RADIUS * Math.log(Math.tan(Math.PI / 2));\n\n/**\n * @classdesc\n * Projection object for web/spherical Mercator (EPSG:3857).\n */\nclass EPSG3857Projection extends Projection {\n /**\n * @param {string} code Code.\n */\n constructor(code) {\n super({\n code: code,\n units: 'm',\n extent: EXTENT,\n global: true,\n worldExtent: WORLD_EXTENT,\n getPointResolution: function (resolution, point) {\n return resolution / Math.cosh(point[1] / RADIUS);\n },\n });\n }\n}\n\n/**\n * Projections equal to EPSG:3857.\n *\n * @const\n * @type {Array<import(\"./Projection.js\").default>}\n */\nexport const PROJECTIONS = [\n new EPSG3857Projection('EPSG:3857'),\n new EPSG3857Projection('EPSG:102100'),\n new EPSG3857Projection('EPSG:102113'),\n new EPSG3857Projection('EPSG:900913'),\n new EPSG3857Projection('http://www.opengis.net/def/crs/EPSG/0/3857'),\n new EPSG3857Projection('http://www.opengis.net/gml/srs/epsg.xml#3857'),\n];\n\n/**\n * Transformation from EPSG:4326 to EPSG:3857.\n *\n * @param {Array<number>} input Input array of coordinate values.\n * @param {Array<number>} [output] Output array of coordinate values.\n * @param {number} [dimension] Dimension (default is `2`).\n * @param {number} [stride] Stride (default is `dimension`).\n * @return {Array<number>} Output array of coordinate values.\n */\nexport function fromEPSG4326(input, output, dimension, stride) {\n const length = input.length;\n dimension = dimension > 1 ? dimension : 2;\n stride = stride ?? dimension;\n if (output === undefined) {\n if (dimension > 2) {\n // preserve values beyond second dimension\n output = input.slice();\n } else {\n output = new Array(length);\n }\n }\n for (let i = 0; i < length; i += stride) {\n output[i] = (HALF_SIZE * input[i]) / 180;\n let y = RADIUS * Math.log(Math.tan((Math.PI * (+input[i + 1] + 90)) / 360));\n if (y > MAX_SAFE_Y) {\n y = MAX_SAFE_Y;\n } else if (y < -MAX_SAFE_Y) {\n y = -MAX_SAFE_Y;\n }\n output[i + 1] = y;\n }\n return output;\n}\n\n/**\n * Transformation from EPSG:3857 to EPSG:4326.\n *\n * @param {Array<number>} input Input array of coordinate values.\n * @param {Array<number>} [output] Output array of coordinate values.\n * @param {number} [dimension] Dimension (default is `2`).\n * @param {number} [stride] Stride (default is `dimension`).\n * @return {Array<number>} Output array of coordinate values.\n */\nexport function toEPSG4326(input, output, dimension, stride) {\n const length = input.length;\n dimension = dimension > 1 ? dimension : 2;\n stride = stride ?? dimension;\n if (output === undefined) {\n if (dimension > 2) {\n // preserve values beyond second dimension\n output = input.slice();\n } else {\n output = new Array(length);\n }\n }\n for (let i = 0; i < length; i += stride) {\n output[i] = (180 * input[i]) / HALF_SIZE;\n output[i + 1] =\n (360 * Math.atan(Math.exp(input[i + 1] / RADIUS))) / Math.PI - 90;\n }\n return output;\n}\n","/**\n * @module ol/proj/epsg4326\n */\nimport Projection from './Projection.js';\n\n/**\n * Semi-major radius of the WGS84 ellipsoid.\n *\n * @const\n * @type {number}\n */\nexport const RADIUS = 6378137;\n\n/**\n * Extent of the EPSG:4326 projection which is the whole world.\n *\n * @const\n * @type {import(\"../extent.js\").Extent}\n */\nexport const EXTENT = [-180, -90, 180, 90];\n\n/**\n * @const\n * @type {number}\n */\nexport const METERS_PER_UNIT = (Math.PI * RADIUS) / 180;\n\n/**\n * @classdesc\n * Projection object for WGS84 geographic coordinates (EPSG:4326).\n *\n * Note that OpenLayers does not strictly comply with the EPSG definition.\n * The EPSG registry defines 4326 as a CRS for Latitude,Longitude (y,x).\n * OpenLayers treats EPSG:4326 as a pseudo-projection, with x,y coordinates.\n */\nclass EPSG4326Projection extends Projection {\n /**\n * @param {string} code Code.\n * @param {string} [axisOrientation] Axis orientation.\n */\n constructor(code, axisOrientation) {\n super({\n code: code,\n units: 'degrees',\n extent: EXTENT,\n axisOrientation: axisOrientation,\n global: true,\n metersPerUnit: METERS_PER_UNIT,\n worldExtent: EXTENT,\n });\n }\n}\n\n/**\n * Projections equal to EPSG:4326.\n *\n * @const\n * @type {Array<import(\"./Projection.js\").default>}\n */\nexport const PROJECTIONS = [\n new EPSG4326Projection('CRS:84'),\n new EPSG4326Projection('EPSG:4326', 'neu'),\n new EPSG4326Projection('urn:ogc:def:crs:OGC:1.3:CRS84'),\n new EPSG4326Projection('urn:ogc:def:crs:OGC:2:84'),\n new EPSG4326Projection('http://www.opengis.net/def/crs/OGC/1.3/CRS84'),\n new EPSG4326Projection('http://www.opengis.net/gml/srs/epsg.xml#4326', 'neu'),\n new EPSG4326Projection('http://www.opengis.net/def/crs/EPSG/0/4326', 'neu'),\n];\n","/**\n * @module ol/proj/projections\n */\n\n/**\n * @type {Object<string, import(\"./Projection.js\").default>}\n */\nlet cache = {};\n\n/**\n * Clear the projections cache.\n */\nexport function clear() {\n cache = {};\n}\n\n/**\n * Get a cached projection by code.\n * @param {string} code The code for the projection.\n * @return {import(\"./Projection.js\").default|null} The projection (if cached).\n */\nexport function get(code) {\n return (\n cache[code] ||\n cache[code.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\\w+)$/, 'EPSG:$3')] ||\n null\n );\n}\n\n/**\n * Add a projection to the cache.\n * @param {string} code The projection code.\n * @param {import(\"./Projection.js\").default} projection The projection to cache.\n */\nexport function add(code, projection) {\n cache[code] = projection;\n}\n","/**\n * @module ol/obj\n */\n\n/**\n * Removes all properties from an object.\n * @param {Object<string, unknown>} object The object to clear.\n */\nexport function clear(object) {\n for (const property in object) {\n delete object[property];\n }\n}\n\n/**\n * Determine if an object has any properties.\n * @param {Object} object The object to check.\n * @return {boolean} The object is empty.\n */\nexport function isEmpty(object) {\n let property;\n for (property in object) {\n return false;\n }\n return !property;\n}\n","/**\n * @module ol/proj/transforms\n */\nimport {isEmpty} from '../obj.js';\n\n/**\n * @private\n * @type {!Object<string, Object<string, import(\"../proj.js\").TransformFunction>>}\n */\nlet transforms = {};\n\n/**\n * Clear the transform cache.\n */\nexport function clear() {\n transforms = {};\n}\n\n/**\n * Registers a conversion function to convert coordinates from the source\n * projection to the destination projection.\n *\n * @param {import(\"./Projection.js\").default} source Source.\n * @param {import(\"./Projection.js\").default} destination Destination.\n * @param {import(\"../proj.js\").TransformFunction} transformFn Transform.\n */\nexport function add(source, destination, transformFn) {\n const sourceCode = source.getCode();\n const destinationCode = destination.getCode();\n if (!(sourceCode in transforms)) {\n transforms[sourceCode] = {};\n }\n transforms[sourceCode][destinationCode] = transformFn;\n}\n\n/**\n * Unregisters the conversion function to convert coordinates from the source\n * projection to the destination projection. This method is used to clean up\n * cached transforms during testing.\n *\n * @param {import(\"./Projection.js\").default} source Source projection.\n * @param {import(\"./Projection.js\").default} destination Destination projection.\n * @return {import(\"../proj.js\").TransformFunction} transformFn The unregistered transform.\n */\nexport function remove(source, destination) {\n const sourceCode = source.getCode();\n const destinationCode = destination.getCode();\n const transform = transforms[sourceCode][destinationCode];\n delete transforms[sourceCode][destinationCode];\n if (isEmpty(transforms[sourceCode])) {\n delete transforms[sourceCode];\n }\n return transform;\n}\n\n/**\n * Get a transform given a source code and a destination code.\n * @param {string} sourceCode The code for the source projection.\n * @param {string} destinationCode The code for the destination projection.\n * @return {import(\"../proj.js\").TransformFunction|null} The transform function (if found).\n */\nexport function get(sourceCode, destinationCode) {\n if (sourceCode in transforms && destinationCode in transforms[sourceCode]) {\n return transforms[sourceCode][destinationCode];\n }\n return null;\n}\n","/**\n * @module ol/proj/utm\n */\n\n/**\n * Adapted from https://github.com/Turbo87/utm\n * Copyright (c) 2012-2017 Tobias Bieniek\n *\n * The functions here provide approximate transforms to and from UTM.\n * They are not appropriate for use beyond the validity extend of a UTM\n * zone, and the accuracy of the transform decreases toward the zone\n * edges.\n */\n\nimport {toDegrees, toRadians, wrap} from '../math.js';\nimport Projection from './Projection.js';\n\n/**\n * @typedef {Object} UTMZone\n * @property {number} number The zone number (1 - 60).\n * @property {boolean} north The northern hemisphere.\n */\n\nconst K0 = 0.9996;\n\nconst E = 0.00669438;\nconst E2 = E * E;\nconst E3 = E2 * E;\nconst E_P2 = E / (1 - E);\n\nconst SQRT_E = Math.sqrt(1 - E);\nconst _E = (1 - SQRT_E) / (1 + SQRT_E);\nconst _E2 = _E * _E;\nconst _E3 = _E2 * _E;\nconst _E4 = _E3 * _E;\nconst _E5 = _E4 * _E;\n\nconst M1 = 1 - E / 4 - (3 * E2) / 64 - (5 * E3) / 256;\nconst M2 = (3 * E) / 8 + (3 * E2) / 32 + (45 * E3) / 1024;\nconst M3 = (15 * E2) / 256 + (45 * E3) / 1024;\nconst M4 = (35 * E3) / 3072;\n\nconst P2 = (3 / 2) * _E - (27 / 32) * _E3 + (269 / 512) * _E5;\nconst P3 = (21 / 16) * _E2 - (55 / 32) * _E4;\nconst P4 = (151 / 96) * _E3 - (417 / 128) * _E5;\nconst P5 = (1097 / 512) * _E4;\n\nconst R = 6378137;\n\n/**\n * @param {number} easting Easting value of coordinate.\n * @param {number} northing Northing value of coordinate.\n * @param {UTMZone} zone The UTM zone.\n * @return {import(\"../coordinate.js\").Coordinate} The transformed coordinate.\n */\nfunction toLonLat(easting, northing, zone) {\n const x = easting - 500000;\n const y = zone.north ? northing : northing - 10000000;\n\n const m = y / K0;\n const mu = m / (R * M1);\n\n const pRad =\n mu +\n P2 * Math.sin(2 * mu) +\n P3 * Math.sin(4 * mu) +\n P4 * Math.sin(6 * mu) +\n P5 * Math.sin(8 * mu);\n\n const pSin = Math.sin(pRad);\n const pSin2 = pSin * pSin;\n\n const pCos = Math.cos(pRad);\n\n const pTan = pSin / pCos;\n const pTan2 = pTan * pTan;\n const pTan4 = pTan2 * pTan2;\n\n const epSin = 1 - E * pSin2;\n const epSinSqrt = Math.sqrt(1 - E * pSin2);\n\n const n = R / epSinSqrt;\n const r = (1 - E) / epSin;\n\n const c = E_P2 * pCos ** 2;\n const c2 = c * c;\n\n const d = x / (n * K0);\n const d2 = d * d;\n const d3 = d2 * d;\n const d4 = d3 * d;\n const d5 = d4 * d;\n const d6 = d5 * d;\n\n const latitude =\n pRad -\n (pTan / r) *\n (d2 / 2 - (d4 / 24) * (5 + 3 * pTan2 + 10 * c - 4 * c2 - 9 * E_P2)) +\n (d6 / 720) * (61 + 90 * pTan2 + 298 * c + 45 * pTan4 - 252 * E_P2 - 3 * c2);\n\n let longitude =\n (d -\n (d3 / 6) * (1 + 2 * pTan2 + c) +\n (d5 / 120) * (5 - 2 * c + 28 * pTan2 - 3 * c2 + 8 * E_P2 + 24 * pTan4)) /\n pCos;\n\n longitude = wrap(\n longitude + toRadians(zoneToCentralLongitude(zone.number)),\n -Math.PI,\n Math.PI,\n );\n\n return [toDegrees(longitude), toDegrees(latitude)];\n}\n\nconst MIN_LATITUDE = -80;\nconst MAX_LATITUDE = 84;\nconst MIN_LONGITUDE = -180;\nconst MAX_LONGITUDE = 180;\n\n/**\n * @param {number} longitude The longitude.\n * @param {number} latitude The latitude.\n * @param {UTMZone} zone The UTM zone.\n * @return {import('../coordinate.js').Coordinate} The UTM coordinate.\n */\nfunction fromLonLat(longitude, latitude, zone) {\n longitude = wrap(longitude, MIN_LONGITUDE, MAX_LONGITUDE);\n\n if (latitude < MIN_LATITUDE) {\n latitude = MIN_LATITUDE;\n } else if (latitude > MAX_LATITUDE) {\n latitude = MAX_LATITUDE;\n }\n\n const latRad = toRadians(latitude);\n const latSin = Math.sin(latRad);\n const latCos = Math.cos(latRad);\n\n const latTan = latSin / latCos;\n const latTan2 = latTan * latTan;\n const latTan4 = latTan2 * latTan2;\n\n const lonRad = toRadians(longitude);\n const centralLon = zoneToCentralLongitude(zone.number);\n const centralLonRad = toRadians(centralLon);\n\n const n = R / Math.sqrt(1 - E * latSin ** 2);\n const c = E_P2 * latCos ** 2;\n\n const a = latCos * wrap(lonRad - centralLonRad, -Math.PI, Math.PI);\n const a2 = a * a;\n const a3 = a2 * a;\n const a4 = a3 * a;\n const a5 = a4 * a;\n const a6 = a5 * a;\n\n const m =\n R *\n (M1 * latRad -\n M2 * Math.sin(2 * latRad) +\n M3 * Math.sin(4 * latRad) -\n M4 * Math.sin(6 * latRad));\n\n const easting =\n K0 *\n n *\n (a +\n (a3 / 6) * (1 - latTan2 + c) +\n (a5 / 120) * (5 - 18 * latTan2 + latTan4 + 72 * c - 58 * E_P2)) +\n 500000;\n\n let northing =\n K0 *\n (m +\n n *\n latTan *\n (a2 / 2 +\n (a4 / 24) * (5 - latTan2 + 9 * c + 4 * c ** 2) +\n (a6 / 720) * (61 - 58 * latTan2 + latTan4 + 600 * c - 330 * E_P2)));\n\n if (!zone.north) {\n northing += 10000000;\n }\n\n return [easting, northing];\n}\n\n/**\n * @param {number} zone The zone number.\n * @return {number} The central longitude in degrees.\n */\nfunction zoneToCentralLongitude(zone) {\n return (zone - 1) * 6 - 180 + 3;\n}\n\n/**\n * @type {Array<RegExp>}\n */\nconst epsgRegExes = [\n /^EPSG:(\\d+)$/,\n /^urn:ogc:def:crs:EPSG::(\\d+)$/,\n /^http:\\/\\/www\\.opengis\\.net\\/def\\/crs\\/EPSG\\/0\\/(\\d+)$/,\n];\n\n/**\n * @param {string} code The projection code.\n * @return {UTMZone|null} The UTM zone info (or null if not UTM).\n */\nexport function zoneFromCode(code) {\n let epsgId = 0;\n for (const re of epsgRegExes) {\n const match = code.match(re);\n if (match) {\n epsgId = parseInt(match[1]);\n break;\n }\n }\n if (!epsgId) {\n return null;\n }\n\n let number = 0;\n let north = false;\n if (epsgId > 32700 && epsgId < 32761) {\n number = epsgId - 32700;\n } else if (epsgId > 32600 && epsgId < 32661) {\n north = true;\n number = epsgId - 32600;\n }\n if (!number) {\n return null;\n }\n\n return {number, north};\n}\n\n/**\n * @param {function(number, number, UTMZone): import('../coordinate.js').Coordinate} transformer The transformer.\n * @param {UTMZone} zone The UTM zone.\n * @return {import('../proj.js').TransformFunction} The transform function.\n */\nfunction makeTransformFunction(transformer, zone) {\n return function (input, output, dimension, stride) {\n const length = input.length;\n dimension = dimension > 1 ? dimension : 2;\n stride = stride ?? dimension;\n if (!output) {\n if (dimension > 2) {\n output = input.slice();\n } else {\n output = new Array(length);\n }\n }\n for (let i = 0; i < length; i += stride) {\n const x = input[i];\n const y = input[i + 1];\n const coord = transformer(x, y, zone);\n output[i] = coord[0];\n output[i + 1] = coord[1];\n }\n return output;\n };\n}\n\n/**\n * @param {string} code The projection code.\n * @return {import('./Projection.js').default|null} A projection or null if unable to create one.\n */\nexport function makeProjection(code) {\n const zone = zoneFromCode(code);\n if (!zone) {\n return null;\n }\n return new Projection({code, units: 'm'});\n}\n\n/**\n * @param {import('./Projection.js').default} projection The projection.\n * @return {import('../proj.js').Transforms|null} The transforms lookup or null if unable to handle projection.\n */\nexport function makeTransforms(projection) {\n const zone = zoneFromCode(projection.getCode());\n if (!zone) {\n return null;\n }\n\n return {\n forward: makeTransformFunction(fromLonLat, zone),\n inverse: makeTransformFunction(toLonLat, zone),\n };\n}\n","/**\n * @module ol/sphere\n */\nimport {toDegrees, toRadians} from './math.js';\n\n/**\n * Object literal with options for the {@link getLength} or {@link getArea}\n * functions.\n * @typedef {Object} SphereMetricOptions\n * @property {import(\"./proj.js\").ProjectionLike} [projection='EPSG:3857']\n * Projection of the geometry. By default, the geometry is assumed to be in\n * Web Mercator.\n * @property {number} [radius=6371008.8] Sphere radius. By default, the\n * [mean Earth radius](https://en.wikipedia.org/wiki/Earth_radius#Mean_radius)\n * for the WGS84 ellipsoid is used.\n */\n\n/**\n * The mean Earth radius (1/3 * (2a + b)) for the WGS84 ellipsoid.\n * https://en.wikipedia.org/wiki/Earth_radius#Mean_radius\n * @type {number}\n */\nexport const DEFAULT_RADIUS = 6371008.8;\n\n/**\n * Get the great circle distance (in meters) between two geographic coordinates.\n * @param {Array} c1 Starting coordinate.\n * @param {Array} c2 Ending coordinate.\n * @param {number} [radius] The sphere radius to use. Defaults to the Earth's\n * mean radius using the WGS84 ellipsoid.\n * @return {number} The great circle distance between the points (in meters).\n * @api\n */\nexport function getDistance(c1, c2, radius) {\n radius = radius || DEFAULT_RADIUS;\n const lat1 = toRadians(c1[1]);\n const lat2 = toRadians(c2[1]);\n const deltaLatBy2 = (lat2 - lat1) / 2;\n const deltaLonBy2 = toRadians(c2[0] - c1[0]) / 2;\n const a =\n Math.sin(deltaLatBy2) * Math.sin(deltaLatBy2) +\n Math.sin(deltaLonBy2) *\n Math.sin(deltaLonBy2) *\n Math.cos(lat1) *\n Math.cos(lat2);\n return 2 * radius * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n}\n\n/**\n * Get the cumulative great circle length of linestring coordinates (geographic).\n * @param {Array} coordinates Linestring coordinates.\n * @param {number} radius The sphere radius to use.\n * @return {number} The length (in meters).\n */\nfunction getLengthInternal(coordinates, radius) {\n let length = 0;\n for (let i = 0, ii = coordinates.length; i < ii - 1; ++i) {\n length += getDistance(coordinates[i], coordinates[i + 1], radius);\n }\n return length;\n}\n\n/**\n * Get the spherical length of a geometry. This length is the sum of the\n * great circle distances between coordinates. For polygons, the length is\n * the sum of all rings. For points, the length is zero. For multi-part\n * geometries, the length is the sum of the length of each part.\n * @param {import(\"./geom/Geometry.js\").default} geometry A geometry.\n * @param {SphereMetricOptions} [options] Options for the\n * length calculation. By default, geometries are assumed to be in 'EPSG:3857'.\n * You can change this by providing a `projection` option.\n * @return {number} The spherical length (in meters).\n * @api\n */\nexport function getLength(geometry, options) {\n options = options || {};\n const radius = options.radius || DEFAULT_RADIUS;\n const projection = options.projection || 'EPSG:3857';\n const type = geometry.getType();\n if (type !== 'GeometryCollection') {\n geometry = geometry.clone().transform(projection, 'EPSG:4326');\n }\n let length = 0;\n let coordinates, coords, i, ii, j, jj;\n switch (type) {\n case 'Point':\n case 'MultiPoint': {\n break;\n }\n case 'LineString':\n case 'LinearRing': {\n coordinates = /** @type {import(\"./geom/SimpleGeometry.js\").default} */ (\n geometry\n ).getCoordinates();\n length = getLengthInternal(coordinates, radius);\n break;\n }\n case 'MultiLineString':\n case 'Polygon': {\n coordinates = /** @type {import(\"./geom/SimpleGeometry.js\").default} */ (\n geometry\n ).getCoordinates();\n for (i = 0, ii = coordinates.length; i < ii; ++i) {\n length += getLengthInternal(coordinates[i], radius);\n }\n break;\n }\n case 'MultiPolygon': {\n coordinates = /** @type {import(\"./geom/SimpleGeometry.js\").default} */ (\n geometry\n ).getCoordinates();\n for (i = 0, ii = coordinates.length; i < ii; ++i) {\n coords = coordinates[i];\n for (j = 0, jj = coords.length; j < jj; ++j) {\n length += getLengthInternal(coords[j], radius);\n }\n }\n break;\n }\n case 'GeometryCollection': {\n const geometries =\n /** @type {import(\"./geom/GeometryCollection.js\").default} */ (\n geometry\n ).getGeometries();\n for (i = 0, ii = geometries.length; i < ii; ++i) {\n length += getLength(geometries[i], options);\n }\n break;\n }\n default: {\n throw new Error('Unsupported geometry type: ' + type);\n }\n }\n return length;\n}\n\n/**\n * Returns the spherical area for a list of coordinates.\n *\n * [Reference](https://trs.jpl.nasa.gov/handle/2014/40409)\n * Robert. G. Chamberlain and William H. Duquette, \"Some Algorithms for\n * Polygons on a Sphere\", JPL Publication 07-03, Jet Propulsion\n * Laboratory, Pasadena, CA, June 2007\n *\n * @param {Array<import(\"./coordinate.js\").Coordinate>} coordinates List of coordinates of a linear\n * ring. If the ring is oriented clockwise, the area will be positive,\n * otherwise it will be negative.\n * @param {number} radius The sphere radius.\n * @return {number} Area (in square meters).\n */\nfunction getAreaInternal(coordinates, radius) {\n let area = 0;\n const len = coordinates.length;\n let x1 = coordinates[len - 1][0];\n let y1 = coordinates[len - 1][1];\n for (let i = 0; i < len; i++) {\n const x2 = coordinates[i][0];\n const y2 = coordinates[i][1];\n area +=\n toRadians(x2 - x1) *\n (2 + Math.sin(toRadians(y1)) + Math.sin(toRadians(y2)));\n x1 = x2;\n y1 = y2;\n }\n return (area * radius * radius) / 2.0;\n}\n\n/**\n * Get the spherical area of a geometry. This is the area (in meters) assuming\n * that polygon edges are segments of great circles on a sphere.\n * @param {import(\"./geom/Geometry.js\").default} geometry A geometry.\n * @param {SphereMetricOptions} [options] Options for the area\n * calculation. By default, geometries are assumed to be in 'EPSG:3857'.\n * You can change this by providing a `projection` option.\n * @return {number} The spherical area (in square meters).\n * @api\n */\nexport function getArea(geometry, options) {\n options = options || {};\n const radius = options.radius || DEFAULT_RADIUS;\n const projection = options.projection || 'EPSG:3857';\n const type = geometry.getType();\n if (type !== 'GeometryCollection') {\n geometry = geometry.clone().transform(projection, 'EPSG:4326');\n }\n let area = 0;\n let coordinates, coords, i, ii, j, jj;\n switch (type) {\n case 'Point':\n case 'MultiPoint':\n case 'LineString':\n case 'MultiLineString':\n case 'LinearRing': {\n break;\n }\n case 'Polygon': {\n coordinates = /** @type {import(\"./geom/Polygon.js\").default} */ (\n geometry\n ).getCoordinates();\n area = Math.abs(getAreaInternal(coordinates[0], radius));\n for (i = 1, ii = coordinates.length; i < ii; ++i) {\n area -= Math.abs(getAreaInternal(coordinates[i], radius));\n }\n break;\n }\n case 'MultiPolygon': {\n coordinates = /** @type {import(\"./geom/SimpleGeometry.js\").default} */ (\n geometry\n ).getCoordinates();\n for (i = 0, ii = coordinates.length; i < ii; ++i) {\n coords = coordinates[i];\n area += Math.abs(getAreaInternal(coords[0], radius));\n for (j = 1, jj = coords.length; j < jj; ++j) {\n area -= Math.abs(getAreaInternal(coords[j], radius));\n }\n }\n break;\n }\n case 'GeometryCollection': {\n const geometries =\n /** @type {import(\"./geom/GeometryCollection.js\").default} */ (\n geometry\n ).getGeometries();\n for (i = 0, ii = geometries.length; i < ii; ++i) {\n area += getArea(geometries[i], options);\n }\n break;\n }\n default: {\n throw new Error('Unsupported geometry type: ' + type);\n }\n }\n return area;\n}\n\n/**\n * Returns the coordinate at the given distance and bearing from `c1`.\n *\n * @param {import(\"./coordinate.js\").Coordinate} c1 The origin point (`[lon, lat]` in degrees).\n * @param {number} distance The great-circle distance between the origin\n * point and the target point.\n * @param {number} bearing The bearing (in radians).\n * @param {number} [radius] The sphere radius to use. Defaults to the Earth's\n * mean radius using the WGS84 ellipsoid.\n * @return {import(\"./coordinate.js\").Coordinate} The target point.\n */\nexport function offset(c1, distance, bearing, radius) {\n radius = radius || DEFAULT_RADIUS;\n const lat1 = toRadians(c1[1]);\n const lon1 = toRadians(c1[0]);\n const dByR = distance / radius;\n const lat = Math.asin(\n Math.sin(lat1) * Math.cos(dByR) +\n Math.cos(lat1) * Math.sin(dByR) * Math.cos(bearing),\n );\n const lon =\n lon1 +\n Math.atan2(\n Math.sin(bearing) * Math.sin(dByR) * Math.cos(lat1),\n Math.cos(dByR) - Math.sin(lat1) * Math.sin(lat),\n );\n return [toDegrees(lon), toDegrees(lat)];\n}\n","/**\n * @module ol/proj\n */\n\n/**\n * The ol/proj module stores:\n * a list of {@link module:ol/proj/Projection~Projection}\n * objects, one for each projection supported by the application\n * a list of transform functions needed to convert coordinates in one projection\n * into another.\n *\n * The static functions are the methods used to maintain these.\n * Each transform function can handle not only simple coordinate pairs, but also\n * large arrays of coordinates such as vector geometries.\n *\n * When loaded, the library adds projection objects for EPSG:4326 (WGS84\n * geographic coordinates) and EPSG:3857 (Web or Spherical Mercator, as used\n * for example by Bing Maps or OpenStreetMap), together with the relevant\n * transform functions.\n *\n * Additional transforms may be added by using the http://proj4js.org/\n * library (version 2.2 or later). You can use the full build supplied by\n * Proj4js, or create a custom build to support those projections you need; see\n * the Proj4js website for how to do this. You also need the Proj4js definitions\n * for the required projections. These definitions can be obtained from\n * https://spatialreference.org/, and are a JS function, so can be loaded in a\n * script tag (as in the examples) or pasted into your application.\n *\n * After all required projection definitions are added to proj4's registry (by\n * using `proj4.defs()`), simply call `register(proj4)` from the `ol/proj/proj4`\n * package. Existing transforms are not changed by this function. See\n * examples/wms-image-custom-proj for an example of this.\n *\n * Additional projection definitions can be registered with `proj4.defs()` any\n * time. Just make sure to call `register(proj4)` again; for example, with user-supplied data where you don't\n * know in advance what projections are needed, you can initially load minimal\n * support and then load whichever are requested.\n *\n * Note that Proj4js does not support projection extents. If you want to add\n * one for creating default tile grids, you can add it after the Projection\n * object has been created with `setExtent`, for example,\n * `get('EPSG:1234').setExtent(extent)`.\n *\n * In addition to Proj4js support, any transform functions can be added with\n * {@link module:ol/proj.addCoordinateTransforms}. To use this, you must first create\n * a {@link module:ol/proj/Projection~Projection} object for the new projection and add it with\n * {@link module:ol/proj.addProjection}. You can then add the forward and inverse\n * functions with {@link module:ol/proj.addCoordinateTransforms}. See\n * examples/wms-custom-proj for an example of this.\n *\n * Note that if no transforms are needed and you only need to define the\n * projection, just add a {@link module:ol/proj/Projection~Projection} with\n * {@link module:ol/proj.addProjection}. See examples/wms-no-proj for an example of\n * this.\n */\nimport {warn} from './console.js';\nimport {equals, getWorldsAway} from './coordinate.js';\nimport {applyTransform, getWidth} from './extent.js';\nimport {clamp, modulo} from './math.js';\nimport Projection from './proj/Projection.js';\nimport {METERS_PER_UNIT} from './proj/Units.js';\nimport {\n PROJECTIONS as EPSG3857_PROJECTIONS,\n fromEPSG4326,\n toEPSG4326,\n} from './proj/epsg3857.js';\nimport {PROJECTIONS as EPSG4326_PROJECTIONS} from './proj/epsg4326.js';\nimport {\n add as addProj,\n clear as clearProj,\n get as getProj,\n} from './proj/projections.js';\nimport {\n add as addTransformFunc,\n clear as clearTransformFuncs,\n get as getTransformFunc,\n} from './proj/transforms.js';\nimport {\n makeProjection as makeUTMProjection,\n makeTransforms as makeUTMTransforms,\n} from './proj/utm.js';\nimport {getDistance} from './sphere.js';\n\n/**\n * A projection as {@link module:ol/proj/Projection~Projection}, SRS identifier\n * string or undefined.\n * @typedef {Projection|string|undefined} ProjectionLike\n * @api\n */\n\n/**\n * @typedef {Object} Transforms\n * @property {TransformFunction} forward The forward transform (from geographic).\n * @property {TransformFunction} inverse The inverse transform (to geographic).\n */\n\n/**\n * @type {Array<function(Projection): Transforms|null>}\n */\nconst transformFactories = [makeUTMTransforms];\n\n/**\n * @type {Array<function(string): Projection|null>}\n */\nconst projectionFactories = [makeUTMProjection];\n\n/**\n * A transform function accepts an array of input coordinate values, an optional\n * output array, and an optional dimension (default should be 2). The function\n * transforms the input coordinate values, populates the output array, and\n * returns the output array.\n *\n * @callback TransformFunction\n * @param {Array<number>} input\n * @param {Array<number>} [output]\n * @param {number} [dimension]\n * @param {number} [stride]\n * @return {Array<number>}\n *\n * @api\n */\n\nexport {METERS_PER_UNIT};\n\nexport {Projection};\n\nlet showCoordinateWarning = true;\n\n/**\n * @param {boolean} [disable] Disable console info about `useGeographic()`\n */\nexport function disableCoordinateWarning(disable) {\n const hide = disable === undefined ? true : disable;\n showCoordinateWarning = !hide;\n}\n\n/**\n * @param {Array<number>} input Input coordinate array.\n * @param {Array<number>} [output] Output array of coordinate values.\n * @return {Array<number>} Output coordinate array (new array, same coordinate\n * values).\n */\nexport function cloneTransform(input, output) {\n if (output !== undefined) {\n for (let i = 0, ii = input.length; i < ii; ++i) {\n output[i] = input[i];\n }\n output = output;\n } else {\n output = input.slice();\n }\n return output;\n}\n\n/**\n * @param {Array<number>} input Input coordinate array.\n * @param {Array<number>} [output] Output array of coordinate values.\n * @return {Array<number>} Input coordinate array (same array as input).\n */\nexport function identityTransform(input, output) {\n if (output !== undefined && input !== output) {\n for (let i = 0, ii = input.length; i < ii; ++i) {\n output[i] = input[i];\n }\n input = output;\n }\n return input;\n}\n\n/**\n * Add a Projection object to the list of supported projections that can be\n * looked up by their code.\n *\n * @param {Projection} projection Projection instance.\n * @api\n */\nexport function addProjection(projection) {\n addProj(projection.getCode(), projection);\n addTransformFunc(projection, projection, cloneTransform);\n}\n\n/**\n * @param {Array<Projection>} projections Projections.\n */\nexport function addProjections(projections) {\n projections.forEach(addProjection);\n}\n\n/**\n * Fetches a Projection object for the code specified.\n *\n * @param {ProjectionLike} projectionLike Either a code string which is\n * a combination of authority and identifier such as \"EPSG:4326\", or an\n * existing projection object, or undefined.\n * @return {Projection|null} Projection object, or null if not in list.\n * @api\n */\nexport function get(projectionLike) {\n if (!(typeof projectionLike === 'string')) {\n return projectionLike;\n }\n const projection = getProj(projectionLike);\n if (projection) {\n return projection;\n }\n for (const makeProjection of projectionFactories) {\n const projection = makeProjection(projectionLike);\n if (projection) {\n return projection;\n }\n }\n return null;\n}\n\n/**\n * Get the resolution of the point in degrees or distance units.\n * For projections with degrees as the unit this will simply return the\n * provided resolution. For other projections the point resolution is\n * by default estimated by transforming the `point` pixel to EPSG:4326,\n * measuring its width and height on the normal sphere,\n * and taking the average of the width and height.\n * A custom function can be provided for a specific projection, either\n * by setting the `getPointResolution` option in the\n * {@link module:ol/proj/Projection~Projection} constructor or by using\n * {@link module:ol/proj/Projection~Projection#setGetPointResolution} to change an existing\n * projection object.\n * @param {ProjectionLike} projection The projection.\n * @param {number} resolution Nominal resolution in projection units.\n * @param {import(\"./coordinate.js\").Coordinate} point Point to find adjusted resolution at.\n * @param {import(\"./proj/Units.js\").Units} [units] Units to get the point resolution in.\n * Default is the projection's units.\n * @return {number} Point resolution.\n * @api\n */\nexport function getPointResolution(projection, resolution, point, units) {\n projection = get(projection);\n let pointResolution;\n const getter = projection.getPointResolutionFunc();\n if (getter) {\n pointResolution = getter(resolution, point);\n if (units && units !== projection.getUnits()) {\n const metersPerUnit = projection.getMetersPerUnit();\n if (metersPerUnit) {\n pointResolution =\n (pointResolution * metersPerUnit) / METERS_PER_UNIT[units];\n }\n }\n } else {\n const projUnits = projection.getUnits();\n if ((projUnits == 'degrees' && !units) || units == 'degrees') {\n pointResolution = resolution;\n } else {\n // Estimate point resolution by transforming the center pixel to EPSG:4326,\n // measuring its width and height on the normal sphere, and taking the\n // average of the width and height.\n const toEPSG4326 = getTransformFromProjections(\n projection,\n get('EPSG:4326'),\n );\n if (!toEPSG4326 && projUnits !== 'degrees') {\n // no transform is available\n pointResolution = resolution * projection.getMetersPerUnit();\n } else {\n let vertices = [\n point[0] - resolution / 2,\n point[1],\n point[0] + resolution / 2,\n point[1],\n point[0],\n point[1] - resolution / 2,\n point[0],\n point[1] + resolution / 2,\n ];\n vertices = toEPSG4326(vertices, vertices, 2);\n const width = getDistance(vertices.slice(0, 2), vertices.slice(2, 4));\n const height = getDistance(vertices.slice(4, 6), vertices.slice(6, 8));\n pointResolution = (width + height) / 2;\n }\n const metersPerUnit = units\n ? METERS_PER_UNIT[units]\n : projection.getMetersPerUnit();\n if (metersPerUnit !== undefined) {\n pointResolution /= metersPerUnit;\n }\n }\n }\n return pointResolution;\n}\n\n/**\n * Registers transformation functions that don't alter coordinates. Those allow\n * to transform between projections with equal meaning.\n *\n * @param {Array<Projection>} projections Projections.\n * @api\n */\nexport function addEquivalentProjections(projections) {\n addProjections(projections);\n projections.forEach(function (source) {\n projections.forEach(function (destination) {\n if (source !== destination) {\n addTransformFunc(source, destination, cloneTransform);\n }\n });\n });\n}\n\n/**\n * Registers transformation functions to convert coordinates in any projection\n * in projection1 to any projection in projection2.\n *\n * @param {Array<Projection>} projections1 Projections with equal\n * meaning.\n * @param {Array<Projection>} projections2 Projections with equal\n * meaning.\n * @param {TransformFunction} forwardTransform Transformation from any\n * projection in projection1 to any projection in projection2.\n * @param {TransformFunction} inverseTransform Transform from any projection\n * in projection2 to any projection in projection1..\n */\nexport function addEquivalentTransforms(\n projections1,\n projections2,\n forwardTransform,\n inverseTransform,\n) {\n projections1.forEach(function (projection1) {\n projections2.forEach(function (projection2) {\n addTransformFunc(projection1, projection2, forwardTransform);\n addTransformFunc(projection2, projection1, inverseTransform);\n });\n });\n}\n\n/**\n * Clear all cached projections and transforms.\n */\nexport function clearAllProjections() {\n clearProj();\n clearTransformFuncs();\n}\n\n/**\n * @param {Projection|string|undefined} projection Projection.\n * @param {string} defaultCode Default code.\n * @return {Projection} Projection.\n */\nexport function createProjection(projection, defaultCode) {\n if (!projection) {\n return get(defaultCode);\n }\n if (typeof projection === 'string') {\n return get(projection);\n }\n return /** @type {Projection} */ (projection);\n}\n\n/**\n * Creates a {@link module:ol/proj~TransformFunction} from a simple 2D coordinate transform\n * function.\n * @param {function(import(\"./coordinate.js\").Coordinate): import(\"./coordinate.js\").Coordinate} coordTransform Coordinate\n * transform.\n * @return {TransformFunction} Transform function.\n */\nexport function createTransformFromCoordinateTransform(coordTransform) {\n return (\n /**\n * @param {Array<number>} input Input.\n * @param {Array<number>} [output] Output.\n * @param {number} [dimension] Dimensions that should be transformed.\n * @param {number} [stride] Stride.\n * @return {Array<number>} Output.\n */\n function (input, output, dimension, stride) {\n const length = input.length;\n dimension = dimension !== undefined ? dimension : 2;\n stride = stride ?? dimension;\n output = output !== undefined ? output : new Array(length);\n for (let i = 0; i < length; i += stride) {\n const point = coordTransform(input.slice(i, i + dimension));\n const pointLength = point.length;\n for (let j = 0, jj = stride; j < jj; ++j) {\n output[i + j] = j >= pointLength ? input[i + j] : point[j];\n }\n }\n return output;\n }\n );\n}\n\n/**\n * Registers coordinate transform functions to convert coordinates between the\n * source projection and the destination projection.\n * The forward and inverse functions convert coordinate pairs; this function\n * converts these into the functions used internally which also handle\n * extents and coordinate arrays.\n *\n * @param {ProjectionLike} source Source projection.\n * @param {ProjectionLike} destination Destination projection.\n * @param {function(import(\"./coordinate.js\").Coordinate): import(\"./coordinate.js\").Coordinate} forward The forward transform\n * function (that is, from the source projection to the destination\n * projection) that takes a {@link module:ol/coordinate~Coordinate} as argument and returns\n * the transformed {@link module:ol/coordinate~Coordinate}.\n * @param {function(import(\"./coordinate.js\").Coordinate): import(\"./coordinate.js\").Coordinate} inverse The inverse transform\n * function (that is, from the destination projection to the source\n * projection) that takes a {@link module:ol/coordinate~Coordinate} as argument and returns\n * the transformed {@link module:ol/coordinate~Coordinate}. If the transform function can only\n * transform less dimensions than the input coordinate, it is supposeed to return a coordinate\n * with only the length it can transform. The other dimensions will be taken unchanged from the\n * source.\n * @api\n */\nexport function addCoordinateTransforms(source, destination, forward, inverse) {\n const sourceProj = get(source);\n const destProj = get(destination);\n addTransformFunc(\n sourceProj,\n destProj,\n createTransformFromCoordinateTransform(forward),\n );\n addTransformFunc(\n destProj,\n sourceProj,\n createTransformFromCoordinateTransform(inverse),\n );\n}\n\n/**\n * Transforms a coordinate from longitude/latitude to a different projection.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate as longitude and latitude, i.e.\n * an array with longitude as 1st and latitude as 2nd element.\n * @param {ProjectionLike} [projection] Target projection. The\n * default is Web Mercator, i.e. 'EPSG:3857'.\n * @return {import(\"./coordinate.js\").Coordinate} Coordinate projected to the target projection.\n * @api\n */\nexport function fromLonLat(coordinate, projection) {\n disableCoordinateWarning();\n return transform(\n coordinate,\n 'EPSG:4326',\n projection !== undefined ? projection : 'EPSG:3857',\n );\n}\n\n/**\n * Transforms a coordinate to longitude/latitude.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Projected coordinate.\n * @param {ProjectionLike} [projection] Projection of the coordinate.\n * The default is Web Mercator, i.e. 'EPSG:3857'.\n * @return {import(\"./coordinate.js\").Coordinate} Coordinate as longitude and latitude, i.e. an array\n * with longitude as 1st and latitude as 2nd element.\n * @api\n */\nexport function toLonLat(coordinate, projection) {\n const lonLat = transform(\n coordinate,\n projection !== undefined ? projection : 'EPSG:3857',\n 'EPSG:4326',\n );\n const lon = lonLat[0];\n if (lon < -180 || lon > 180) {\n lonLat[0] = modulo(lon + 180, 360) - 180;\n }\n return lonLat;\n}\n\n/**\n * Checks if two projections are the same, that is every coordinate in one\n * projection does represent the same geographic point as the same coordinate in\n * the other projection.\n *\n * @param {Projection} projection1 Projection 1.\n * @param {Projection} projection2 Projection 2.\n * @return {boolean} Equivalent.\n * @api\n */\nexport function equivalent(projection1, projection2) {\n if (projection1 === projection2) {\n return true;\n }\n const equalUnits = projection1.getUnits() === projection2.getUnits();\n if (projection1.getCode() === projection2.getCode()) {\n return equalUnits;\n }\n const transformFunc = getTransformFromProjections(projection1, projection2);\n return transformFunc === cloneTransform && equalUnits;\n}\n\n/**\n * Searches in the list of transform functions for the function for converting\n * coordinates from the source projection to the destination projection.\n *\n * @param {Projection} source Source Projection object.\n * @param {Projection} destination Destination Projection\n * object.\n * @return {TransformFunction|null} Transform function.\n */\nexport function getTransformFromProjections(source, destination) {\n const sourceCode = source.getCode();\n const destinationCode = destination.getCode();\n let transformFunc = getTransformFunc(sourceCode, destinationCode);\n if (transformFunc) {\n return transformFunc;\n }\n\n /**\n * @type {Transforms|null}\n */\n let sourceTransforms = null;\n\n /**\n * @type {Transforms|null}\n */\n let destinationTransforms = null;\n\n // lazily add projections if we have supported transforms\n for (const makeTransforms of transformFactories) {\n if (!sourceTransforms) {\n sourceTransforms = makeTransforms(source);\n }\n if (!destinationTransforms) {\n destinationTransforms = makeTransforms(destination);\n }\n }\n\n if (!sourceTransforms && !destinationTransforms) {\n return null;\n }\n\n const intermediateCode = 'EPSG:4326';\n if (!destinationTransforms) {\n const toDestination = getTransformFunc(intermediateCode, destinationCode);\n if (toDestination) {\n transformFunc = composeTransformFuncs(\n sourceTransforms.inverse,\n toDestination,\n );\n }\n } else if (!sourceTransforms) {\n const fromSource = getTransformFunc(sourceCode, intermediateCode);\n if (fromSource) {\n transformFunc = composeTransformFuncs(\n fromSource,\n destinationTransforms.forward,\n );\n }\n } else {\n transformFunc = composeTransformFuncs(\n sourceTransforms.inverse,\n destinationTransforms.forward,\n );\n }\n\n if (transformFunc) {\n addProjection(source);\n addProjection(destination);\n addTransformFunc(source, destination, transformFunc);\n }\n\n return transformFunc;\n}\n\n/**\n * @param {TransformFunction} t1 The first transform function.\n * @param {TransformFunction} t2 The second transform function.\n * @return {TransformFunction} The composed transform function.\n */\nfunction composeTransformFuncs(t1, t2) {\n return function (input, output, dimensions, stride) {\n output = t1(input, output, dimensions, stride);\n return t2(output, output, dimensions, stride);\n };\n}\n\n/**\n * Given the projection-like objects, searches for a transformation\n * function to convert a coordinates array from the source projection to the\n * destination projection.\n *\n * @param {ProjectionLike} source Source.\n * @param {ProjectionLike} destination Destination.\n * @return {TransformFunction} Transform function.\n * @api\n */\nexport function getTransform(source, destination) {\n const sourceProjection = get(source);\n const destinationProjection = get(destination);\n return getTransformFromProjections(sourceProjection, destinationProjection);\n}\n\n/**\n * Transforms a coordinate from source projection to destination projection.\n * This returns a new coordinate (and does not modify the original). If there\n * is no available transform between the two projection, the function will throw\n * an error.\n *\n * See {@link module:ol/proj.transformExtent} for extent transformation.\n * See the transform method of {@link module:ol/geom/Geometry~Geometry} and its\n * subclasses for geometry transforms.\n *\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {ProjectionLike} source Source projection-like.\n * @param {ProjectionLike} destination Destination projection-like.\n * @return {import(\"./coordinate.js\").Coordinate} Coordinate.\n * @api\n */\nexport function transform(coordinate, source, destination) {\n const transformFunc = getTransform(source, destination);\n if (!transformFunc) {\n const sourceCode = get(source).getCode();\n const destinationCode = get(destination).getCode();\n throw new Error(\n `No transform available between ${sourceCode} and ${destinationCode}`,\n );\n }\n return transformFunc(coordinate, undefined, coordinate.length);\n}\n\n/**\n * Transforms an extent from source projection to destination projection. This\n * returns a new extent (and does not modify the original).\n *\n * @param {import(\"./extent.js\").Extent} extent The extent to transform.\n * @param {ProjectionLike} source Source projection-like.\n * @param {ProjectionLike} destination Destination projection-like.\n * @param {number} [stops] Number of stops per side used for the transform.\n * By default only the corners are used.\n * @return {import(\"./extent.js\").Extent} The transformed extent.\n * @api\n */\nexport function transformExtent(extent, source, destination, stops) {\n const transformFunc = getTransform(source, destination);\n return applyTransform(extent, transformFunc, undefined, stops);\n}\n\n/**\n * Transforms the given point to the destination projection.\n *\n * @param {import(\"./coordinate.js\").Coordinate} point Point.\n * @param {Projection} sourceProjection Source projection.\n * @param {Projection} destinationProjection Destination projection.\n * @return {import(\"./coordinate.js\").Coordinate} Point.\n */\nexport function transformWithProjections(\n point,\n sourceProjection,\n destinationProjection,\n) {\n const transformFunc = getTransformFromProjections(\n sourceProjection,\n destinationProjection,\n );\n return transformFunc(point);\n}\n\n/**\n * @type {Projection|null}\n */\nlet userProjection = null;\n\n/**\n * Set the projection for coordinates supplied from and returned by API methods.\n * This includes all API methods except for those interacting with tile grids,\n * plus {@link import(\"./Map.js\").FrameState} and {@link import(\"./View.js\").State}.\n * @param {ProjectionLike} projection The user projection.\n * @api\n */\nexport function setUserProjection(projection) {\n userProjection = get(projection);\n}\n\n/**\n * Clear the user projection if set.\n * @api\n */\nexport function clearUserProjection() {\n userProjection = null;\n}\n\n/**\n * Get the projection for coordinates supplied from and returned by API methods.\n * @return {Projection|null} The user projection (or null if not set).\n * @api\n */\nexport function getUserProjection() {\n return userProjection;\n}\n\n/**\n * Use geographic coordinates (WGS-84 datum) in API methods.\n * This includes all API methods except for those interacting with tile grids,\n * plus {@link import(\"./Map.js\").FrameState} and {@link import(\"./View.js\").State}.\n * @api\n */\nexport function useGeographic() {\n setUserProjection('EPSG:4326');\n}\n\n/**\n * Return a coordinate transformed into the user projection. If no user projection\n * is set, the original coordinate is returned.\n * @param {Array<number>} coordinate Input coordinate.\n * @param {ProjectionLike} sourceProjection The input coordinate projection.\n * @return {Array<number>} The input coordinate in the user projection.\n */\nexport function toUserCoordinate(coordinate, sourceProjection) {\n if (!userProjection) {\n return coordinate;\n }\n return transform(coordinate, sourceProjection, userProjection);\n}\n\n/**\n * Return a coordinate transformed from the user projection. If no user projection\n * is set, the original coordinate is returned.\n * @param {Array<number>} coordinate Input coordinate.\n * @param {ProjectionLike} destProjection The destination projection.\n * @return {Array<number>} The input coordinate transformed.\n */\nexport function fromUserCoordinate(coordinate, destProjection) {\n if (!userProjection) {\n if (\n showCoordinateWarning &&\n !equals(coordinate, [0, 0]) &&\n coordinate[0] >= -180 &&\n coordinate[0] <= 180 &&\n coordinate[1] >= -90 &&\n coordinate[1] <= 90\n ) {\n showCoordinateWarning = false;\n warn(\n 'Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.',\n );\n }\n return coordinate;\n }\n return transform(coordinate, userProjection, destProjection);\n}\n\n/**\n * Return an extent transformed into the user projection. If no user projection\n * is set, the original extent is returned.\n * @param {import(\"./extent.js\").Extent} extent Input extent.\n * @param {ProjectionLike} sourceProjection The input extent projection.\n * @return {import(\"./extent.js\").Extent} The input extent in the user projection.\n */\nexport function toUserExtent(extent, sourceProjection) {\n if (!userProjection) {\n return extent;\n }\n return transformExtent(extent, sourceProjection, userProjection);\n}\n\n/**\n * Return an extent transformed from the user projection. If no user projection\n * is set, the original extent is returned.\n * @param {import(\"./extent.js\").Extent} extent Input extent.\n * @param {ProjectionLike} destProjection The destination projection.\n * @return {import(\"./extent.js\").Extent} The input extent transformed.\n */\nexport function fromUserExtent(extent, destProjection) {\n if (!userProjection) {\n return extent;\n }\n return transformExtent(extent, userProjection, destProjection);\n}\n\n/**\n * Return the resolution in user projection units per pixel. If no user projection\n * is set, or source or user projection are missing units, the original resolution\n * is returned.\n * @param {number} resolution Resolution in input projection units per pixel.\n * @param {ProjectionLike} sourceProjection The input projection.\n * @return {number} Resolution in user projection units per pixel.\n */\nexport function toUserResolution(resolution, sourceProjection) {\n if (!userProjection) {\n return resolution;\n }\n const sourceMetersPerUnit = get(sourceProjection).getMetersPerUnit();\n const userMetersPerUnit = userProjection.getMetersPerUnit();\n return sourceMetersPerUnit && userMetersPerUnit\n ? (resolution * sourceMetersPerUnit) / userMetersPerUnit\n : resolution;\n}\n\n/**\n * Return the resolution in user projection units per pixel. If no user projection\n * is set, or source or user projection are missing units, the original resolution\n * is returned.\n * @param {number} resolution Resolution in user projection units per pixel.\n * @param {ProjectionLike} destProjection The destination projection.\n * @return {number} Resolution in destination projection units per pixel.\n */\nexport function fromUserResolution(resolution, destProjection) {\n if (!userProjection) {\n return resolution;\n }\n const destMetersPerUnit = get(destProjection).getMetersPerUnit();\n const userMetersPerUnit = userProjection.getMetersPerUnit();\n return destMetersPerUnit && userMetersPerUnit\n ? (resolution * userMetersPerUnit) / destMetersPerUnit\n : resolution;\n}\n\n/**\n * Creates a safe coordinate transform function from a coordinate transform function.\n * \"Safe\" means that it can handle wrapping of x-coordinates for global projections,\n * and that coordinates exceeding the source projection validity extent's range will be\n * clamped to the validity range.\n * @param {Projection} sourceProj Source projection.\n * @param {Projection} destProj Destination projection.\n * @param {function(import(\"./coordinate.js\").Coordinate): import(\"./coordinate.js\").Coordinate} transform Transform function (source to destination).\n * @return {function(import(\"./coordinate.js\").Coordinate): import(\"./coordinate.js\").Coordinate} Safe transform function (source to destination).\n */\nexport function createSafeCoordinateTransform(sourceProj, destProj, transform) {\n return function (coord) {\n let transformed, worldsAway;\n if (sourceProj.canWrapX()) {\n const sourceExtent = sourceProj.getExtent();\n const sourceExtentWidth = getWidth(sourceExtent);\n coord = coord.slice(0);\n worldsAway = getWorldsAway(coord, sourceProj, sourceExtentWidth);\n if (worldsAway) {\n // Move x to the real world\n coord[0] = coord[0] - worldsAway * sourceExtentWidth;\n }\n coord[0] = clamp(coord[0], sourceExtent[0], sourceExtent[2]);\n coord[1] = clamp(coord[1], sourceExtent[1], sourceExtent[3]);\n transformed = transform(coord);\n } else {\n transformed = transform(coord);\n }\n if (worldsAway && destProj.canWrapX()) {\n // Move transformed coordinate back to the offset world\n transformed[0] += worldsAway * getWidth(destProj.getExtent());\n }\n return transformed;\n };\n}\n\n/**\n * Add transforms to and from EPSG:4326 and EPSG:3857. This function is called\n * by when this module is executed and should only need to be called again after\n * `clearAllProjections()` is called (e.g. in tests).\n */\nexport function addCommon() {\n // Add transformations that don't alter coordinates to convert within set of\n // projections with equal meaning.\n addEquivalentProjections(EPSG3857_PROJECTIONS);\n addEquivalentProjections(EPSG4326_PROJECTIONS);\n // Add transformations to convert EPSG:4326 like coordinates to EPSG:3857 like\n // coordinates and back.\n addEquivalentTransforms(\n EPSG4326_PROJECTIONS,\n EPSG3857_PROJECTIONS,\n fromEPSG4326,\n toEPSG4326,\n );\n}\n\naddCommon();\n","import { onUnmounted, ref, reactive } from 'vue'\r\nimport { Ref, Reactive } from 'vue'\r\n\r\nimport Map from 'ol/Map'\r\n\r\nimport { fromLonLat, toLonLat } from 'ol/proj'\r\n\r\ninterface CurrentCoords {\r\n lat: number\r\n lng: number\r\n}\r\n\r\ninterface MouseEvents {\r\n isMoving: boolean\r\n lastMoveTime: number\r\n moveTimeout: ReturnType<typeof setTimeout> | null\r\n}\r\n\r\ninterface MapBounds {\r\n southWest: { lat: number; lng: number }\r\n northEast: { lat: number; lng: number }\r\n}\r\n\r\n\r\nexport interface MapInfo {\r\n map: Ref<Map | null>;\r\n mapInitialized: Ref<boolean>;\r\n mapError: Ref<string | null>;\r\n isLoading: Ref<boolean>;\r\n currentCoords: Reactive<CurrentCoords>;\r\n}\r\n\r\nconst mapState = ref(false)\r\nconst map = ref<Map | null>(null)\r\nconst mapInitialized = ref(false)\r\nconst mapError = ref<string | null>(null)\r\nconst isLoading = ref(false)\r\nconst currentCoords = reactive<CurrentCoords>({\r\n lat: 112.750412,\r\n lng: 33.741496\r\n})\r\nconst mouseEvents = reactive<MouseEvents>({\r\n isMoving: false,\r\n lastMoveTime: 0,\r\n moveTimeout: null\r\n })\r\n\r\nfunction setupEventHandlers() {\r\n\r\n if (!map.value) return\r\n\r\n map.value.on('pointermove', (evt) => {\r\n console.log(evt,'pointermove')\r\n\r\n const coord = evt.coordinate\r\n console.log('地图坐标更新:', coord)\r\n\r\n currentCoords.lng = coord[0]\r\n currentCoords.lat = coord[1]\r\n\r\n mouseEvents.isMoving = true\r\n mouseEvents.lastMoveTime = Date.now()\r\n\r\n if (mouseEvents.moveTimeout)\r\n clearTimeout(mouseEvents.moveTimeout)\r\n\r\n mouseEvents.moveTimeout = setTimeout(() => {\r\n mouseEvents.isMoving = false\r\n }, 100)\r\n\r\n })\r\n\r\n\r\n\r\n }\r\nexport const useMapInfo = ({map, mapInitialized, mapError, isLoading, currentCoords: mapCoords}:MapInfo) => {\r\n map.value = map.value\r\n mapInitialized.value = mapInitialized.value\r\n mapError.value = mapError.value\r\n isLoading.value = isLoading.value\r\n currentCoords.lat = mapCoords.lat\r\n currentCoords.lng = mapCoords.lng\r\n\r\n mapState.value = true\r\n console.log(map,'地图状态已更新')\r\n return {\r\n setupEventHandlers,\r\n }\r\n}\r\n\r\nexport function useOpenLayersMap({map, mapInitialized, mapError, isLoading, currentCoords: mapCoords}:MapInfo) {\r\n\r\n console.log(map,'useOpenLayersMap')\r\n mapState.value = true\r\n setupEventHandlers()\r\n currentCoords.lat = mapCoords.lat\r\n currentCoords.lng = mapCoords.lng\r\n function destroyMap() {\r\n\r\n if (!map.value) return\r\n\r\n map.value.setTarget(undefined)\r\n\r\n map.value = null\r\n\r\n mapInitialized.value = false\r\n\r\n console.log('地图已销毁')\r\n\r\n }\r\n\r\n function setView(lat: number, lng: number, zoom?: number) {\r\n\r\n if (!map.value) return\r\n\r\n const view = map.value.getView()\r\n\r\n view.animate({\r\n center: fromLonLat([lng, lat]),\r\n zoom: zoom ?? view.getZoom(),\r\n duration: 500\r\n })\r\n\r\n }\r\n\r\n function getCenter() {\r\n\r\n if (!map.value) return null\r\n\r\n const center = toLonLat(map.value.getView().getCenter()!)\r\n\r\n return {\r\n lat: center[1],\r\n lng: center[0]\r\n }\r\n\r\n }\r\n\r\n function getZoom() {\r\n\r\n if (!map.value) return null\r\n\r\n return map.value.getView().getZoom()\r\n\r\n }\r\n\r\n function fitBounds(bounds: MapBounds) {\r\n\r\n if (!map.value) return\r\n\r\n const view = map.value.getView()\r\n\r\n const extent = [\r\n ...fromLonLat([bounds.southWest.lng, bounds.southWest.lat]),\r\n ...fromLonLat([bounds.northEast.lng, bounds.northEast.lat])\r\n ]\r\n\r\n view.fit(extent, {\r\n padding: [50, 50, 50, 50],\r\n duration: 1000,\r\n maxZoom: 15\r\n })\r\n\r\n }\r\n\r\n function formatCoords(coords: CurrentCoords, precision = 6) {\r\n return {\r\n lat: coords.lat.toFixed(precision),\r\n lng: coords.lng.toFixed(precision)\r\n }\r\n\r\n }\r\n\r\n if(!mapState.value) {\r\n return {\r\n mapState: mapState.value,\r\n map: map,\r\n mapInitialized,\r\n mapError,\r\n isLoading,\r\n currentCoords,\r\n mouseEvents,\r\n destroyMap,\r\n setView,\r\n getCenter,\r\n getZoom,\r\n fitBounds,\r\n formatCoords\r\n\r\n }\r\n } \r\n\r\n return {\r\n mapState: mapState.value,\r\n map: map,\r\n mapInitialized,\r\n mapError,\r\n isLoading,\r\n currentCoords,\r\n mouseEvents,\r\n destroyMap,\r\n setView,\r\n getCenter,\r\n getZoom,\r\n fitBounds,\r\n formatCoords\r\n\r\n }\r\n\r\n}","/**\n * @module ol/ImageState\n */\n\n/**\n * @enum {number}\n */\nexport default {\n IDLE: 0,\n LOADING: 1,\n LOADED: 2,\n ERROR: 3,\n EMPTY: 4,\n};\n","/**\n * @module ol/ViewHint\n */\n\n/**\n * @enum {number}\n */\nexport default {\n ANIMATING: 0,\n INTERACTING: 1,\n};\n","/**\n * @module ol/asserts\n */\n\n/**\n * @param {*} assertion Assertion we expected to be truthy.\n * @param {string} errorMessage Error message.\n */\nexport function assert(assertion, errorMessage) {\n if (!assertion) {\n throw new Error(errorMessage);\n }\n}\n","/**\n * @module ol/transform\n */\nimport {assert} from './asserts.js';\n\n/**\n * An array representing an affine 2d transformation for use with\n * {@link module:ol/transform} functions. The array has 6 elements.\n * @typedef {!Array<number>} Transform\n * @api\n */\n\n/**\n * Collection of affine 2d transformation functions. The functions work on an\n * array of 6 elements. The element order is compatible with the [SVGMatrix\n * interface](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix) and is\n * a subset (elements a to f) of a 3×3 matrix:\n * ```\n * [ a c e ]\n * [ b d f ]\n * [ 0 0 1 ]\n * ```\n */\n\n/**\n * @private\n * @type {Transform}\n */\nconst tmp_ = new Array(6);\n\n/**\n * Create an identity transform.\n * @return {!Transform} Identity transform.\n */\nexport function create() {\n return [1, 0, 0, 1, 0, 0];\n}\n\n/**\n * Resets the given transform to an identity transform.\n * @param {!Transform} transform Transform.\n * @return {!Transform} Transform.\n */\nexport function reset(transform) {\n return set(transform, 1, 0, 0, 1, 0, 0);\n}\n\n/**\n * Multiply the underlying matrices of two transforms and return the result in\n * the first transform.\n * @param {!Transform} transform1 Transform parameters of matrix 1.\n * @param {!Transform} transform2 Transform parameters of matrix 2.\n * @return {!Transform} transform1 multiplied with transform2.\n */\nexport function multiply(transform1, transform2) {\n const a1 = transform1[0];\n const b1 = transform1[1];\n const c1 = transform1[2];\n const d1 = transform1[3];\n const e1 = transform1[4];\n const f1 = transform1[5];\n const a2 = transform2[0];\n const b2 = transform2[1];\n const c2 = transform2[2];\n const d2 = transform2[3];\n const e2 = transform2[4];\n const f2 = transform2[5];\n\n transform1[0] = a1 * a2 + c1 * b2;\n transform1[1] = b1 * a2 + d1 * b2;\n transform1[2] = a1 * c2 + c1 * d2;\n transform1[3] = b1 * c2 + d1 * d2;\n transform1[4] = a1 * e2 + c1 * f2 + e1;\n transform1[5] = b1 * e2 + d1 * f2 + f1;\n\n return transform1;\n}\n\n/**\n * Set the transform components a-f on a given transform.\n * @param {!Transform} transform Transform.\n * @param {number} a The a component of the transform.\n * @param {number} b The b component of the transform.\n * @param {number} c The c component of the transform.\n * @param {number} d The d component of the transform.\n * @param {number} e The e component of the transform.\n * @param {number} f The f component of the transform.\n * @return {!Transform} Matrix with transform applied.\n */\nexport function set(transform, a, b, c, d, e, f) {\n transform[0] = a;\n transform[1] = b;\n transform[2] = c;\n transform[3] = d;\n transform[4] = e;\n transform[5] = f;\n return transform;\n}\n\n/**\n * Set transform on one matrix from another matrix.\n * @param {!Transform} transform1 Matrix to set transform to.\n * @param {!Transform} transform2 Matrix to set transform from.\n * @return {!Transform} transform1 with transform from transform2 applied.\n */\nexport function setFromArray(transform1, transform2) {\n transform1[0] = transform2[0];\n transform1[1] = transform2[1];\n transform1[2] = transform2[2];\n transform1[3] = transform2[3];\n transform1[4] = transform2[4];\n transform1[5] = transform2[5];\n return transform1;\n}\n\n/**\n * Transforms the given coordinate with the given transform returning the\n * resulting, transformed coordinate. The coordinate will be modified in-place.\n *\n * @param {Transform} transform The transformation.\n * @param {import(\"./coordinate.js\").Coordinate|import(\"./pixel.js\").Pixel} coordinate The coordinate to transform.\n * @return {import(\"./coordinate.js\").Coordinate|import(\"./pixel.js\").Pixel} return coordinate so that operations can be\n * chained together.\n */\nexport function apply(transform, coordinate) {\n const x = coordinate[0];\n const y = coordinate[1];\n coordinate[0] = transform[0] * x + transform[2] * y + transform[4];\n coordinate[1] = transform[1] * x + transform[3] * y + transform[5];\n return coordinate;\n}\n\n/**\n * Applies rotation to the given transform.\n * @param {!Transform} transform Transform.\n * @param {number} angle Angle in radians.\n * @return {!Transform} The rotated transform.\n */\nexport function rotate(transform, angle) {\n const cos = Math.cos(angle);\n const sin = Math.sin(angle);\n return multiply(transform, set(tmp_, cos, sin, -sin, cos, 0, 0));\n}\n\n/**\n * Applies scale to a given transform.\n * @param {!Transform} transform Transform.\n * @param {number} x Scale factor x.\n * @param {number} y Scale factor y.\n * @return {!Transform} The scaled transform.\n */\nexport function scale(transform, x, y) {\n return multiply(transform, set(tmp_, x, 0, 0, y, 0, 0));\n}\n\n/**\n * Creates a scale transform.\n * @param {!Transform} target Transform to overwrite.\n * @param {number} x Scale factor x.\n * @param {number} y Scale factor y.\n * @return {!Transform} The scale transform.\n */\nexport function makeScale(target, x, y) {\n return set(target, x, 0, 0, y, 0, 0);\n}\n\n/**\n * Applies translation to the given transform.\n * @param {!Transform} transform Transform.\n * @param {number} dx Translation x.\n * @param {number} dy Translation y.\n * @return {!Transform} The translated transform.\n */\nexport function translate(transform, dx, dy) {\n return multiply(transform, set(tmp_, 1, 0, 0, 1, dx, dy));\n}\n\n/**\n * Creates a composite transform given an initial translation, scale, rotation, and\n * final translation (in that order only, not commutative).\n * @param {!Transform} transform The transform (will be modified in place).\n * @param {number} dx1 Initial translation x.\n * @param {number} dy1 Initial translation y.\n * @param {number} sx Scale factor x.\n * @param {number} sy Scale factor y.\n * @param {number} angle Rotation (in counter-clockwise radians).\n * @param {number} dx2 Final translation x.\n * @param {number} dy2 Final translation y.\n * @return {!Transform} The composite transform.\n */\nexport function compose(transform, dx1, dy1, sx, sy, angle, dx2, dy2) {\n const sin = Math.sin(angle);\n const cos = Math.cos(angle);\n transform[0] = sx * cos;\n transform[1] = sy * sin;\n transform[2] = -sx * sin;\n transform[3] = sy * cos;\n transform[4] = dx2 * sx * cos - dy2 * sx * sin + dx1;\n transform[5] = dx2 * sy * sin + dy2 * sy * cos + dy1;\n return transform;\n}\n\n/**\n * Creates a composite transform given an initial translation, scale, rotation, and\n * final translation (in that order only, not commutative). The resulting transform\n * string can be applied as `transform` property of an HTMLElement's style.\n * @param {number} dx1 Initial translation x.\n * @param {number} dy1 Initial translation y.\n * @param {number} sx Scale factor x.\n * @param {number} sy Scale factor y.\n * @param {number} angle Rotation (in counter-clockwise radians).\n * @param {number} dx2 Final translation x.\n * @param {number} dy2 Final translation y.\n * @return {string} The composite css transform.\n * @api\n */\nexport function composeCssTransform(dx1, dy1, sx, sy, angle, dx2, dy2) {\n return toString(compose(create(), dx1, dy1, sx, sy, angle, dx2, dy2));\n}\n\n/**\n * Invert the given transform.\n * @param {!Transform} source The source transform to invert.\n * @return {!Transform} The inverted (source) transform.\n */\nexport function invert(source) {\n return makeInverse(source, source);\n}\n\n/**\n * Invert the given transform.\n * @param {!Transform} target Transform to be set as the inverse of\n * the source transform.\n * @param {!Transform} source The source transform to invert.\n * @return {!Transform} The inverted (target) transform.\n */\nexport function makeInverse(target, source) {\n const det = determinant(source);\n assert(det !== 0, 'Transformation matrix cannot be inverted');\n\n const a = source[0];\n const b = source[1];\n const c = source[2];\n const d = source[3];\n const e = source[4];\n const f = source[5];\n\n target[0] = d / det;\n target[1] = -b / det;\n target[2] = -c / det;\n target[3] = a / det;\n target[4] = (c * f - d * e) / det;\n target[5] = -(a * f - b * e) / det;\n\n return target;\n}\n\n/**\n * Returns the determinant of the given matrix.\n * @param {!Transform} mat Matrix.\n * @return {number} Determinant.\n */\nexport function determinant(mat) {\n return mat[0] * mat[3] - mat[1] * mat[2];\n}\n\n/**\n * @type {Array}\n */\nconst matrixPrecision = [1e5, 1e5, 1e5, 1e5, 2, 2];\n\n/**\n * A matrix string version of the transform. This can be used\n * for CSS transforms.\n * @param {!Transform} mat Matrix.\n * @return {string} The transform as a string.\n */\nexport function toString(mat) {\n const transformString = 'matrix(' + mat.join(', ') + ')';\n return transformString;\n}\n\n/**\n * Create a transform from a CSS transform matrix string.\n * @param {string} cssTransform The CSS string to parse.\n * @return {!Transform} The transform.\n */\nexport function fromString(cssTransform) {\n const values = cssTransform.substring(7, cssTransform.length - 1).split(',');\n return values.map(parseFloat);\n}\n\n/**\n * Compare two matrices for equality.\n * @param {!string} cssTransform1 A CSS transform matrix string.\n * @param {!string} cssTransform2 A CSS transform matrix string.\n * @return {boolean} The two matrices are equal.\n */\nexport function equivalent(cssTransform1, cssTransform2) {\n const mat1 = fromString(cssTransform1);\n const mat2 = fromString(cssTransform2);\n for (let i = 0; i < 6; ++i) {\n if (Math.round((mat1[i] - mat2[i]) * matrixPrecision[i]) !== 0) {\n return false;\n }\n }\n return true;\n}\n","/**\n * @module ol/array\n */\n\n/**\n * Performs a binary search on the provided sorted list and returns the index of the item if found. If it can't be found it'll return -1.\n * https://github.com/darkskyapp/binary-search\n *\n * @param {Array<*>} haystack Items to search through.\n * @param {*} needle The item to look for.\n * @param {Function} [comparator] Comparator function.\n * @return {number} The index of the item if found, -1 if not.\n */\nexport function binarySearch(haystack, needle, comparator) {\n let mid, cmp;\n comparator = comparator || ascending;\n let low = 0;\n let high = haystack.length;\n let found = false;\n\n while (low < high) {\n /* Note that \"(low + high) >>> 1\" may overflow, and results in a typecast\n * to double (which gives the wrong results). */\n mid = low + ((high - low) >> 1);\n cmp = +comparator(haystack[mid], needle);\n\n if (cmp < 0.0) {\n /* Too low. */\n low = mid + 1;\n } else {\n /* Key found or too high */\n high = mid;\n found = !cmp;\n }\n }\n\n /* Key not found. */\n return found ? low : ~low;\n}\n\n/**\n * Compare function sorting arrays in ascending order. Safe to use for numeric values.\n * @param {*} a The first object to be compared.\n * @param {*} b The second object to be compared.\n * @return {number} A negative number, zero, or a positive number as the first\n * argument is less than, equal to, or greater than the second.\n */\nexport function ascending(a, b) {\n return a > b ? 1 : a < b ? -1 : 0;\n}\n\n/**\n * Compare function sorting arrays in descending order. Safe to use for numeric values.\n * @param {*} a The first object to be compared.\n * @param {*} b The second object to be compared.\n * @return {number} A negative number, zero, or a positive number as the first\n * argument is greater than, equal to, or less than the second.\n */\nexport function descending(a, b) {\n return a < b ? 1 : a > b ? -1 : 0;\n}\n\n/**\n * {@link module:ol/tilegrid/TileGrid~TileGrid#getZForResolution} can use a function\n * of this type to determine which nearest resolution to use.\n *\n * This function takes a `{number}` representing a value between two array entries,\n * a `{number}` representing the value of the nearest higher entry and\n * a `{number}` representing the value of the nearest lower entry\n * as arguments and returns a `{number}`. If a negative number or zero is returned\n * the lower value will be used, if a positive number is returned the higher value\n * will be used.\n * @typedef {function(number, number, number): number} NearestDirectionFunction\n * @api\n */\n\n/**\n * @param {Array<number>} arr Array in descending order.\n * @param {number} target Target.\n * @param {number|NearestDirectionFunction} direction\n * 0 means return the nearest,\n * > 0 means return the largest nearest,\n * < 0 means return the smallest nearest.\n * @return {number} Index.\n */\nexport function linearFindNearest(arr, target, direction) {\n if (arr[0] <= target) {\n return 0;\n }\n\n const n = arr.length;\n if (target <= arr[n - 1]) {\n return n - 1;\n }\n\n if (typeof direction === 'function') {\n for (let i = 1; i < n; ++i) {\n const candidate = arr[i];\n if (candidate === target) {\n return i;\n }\n if (candidate < target) {\n if (direction(target, arr[i - 1], candidate) > 0) {\n return i - 1;\n }\n return i;\n }\n }\n return n - 1;\n }\n\n if (direction > 0) {\n for (let i = 1; i < n; ++i) {\n if (arr[i] < target) {\n return i - 1;\n }\n }\n return n - 1;\n }\n\n if (direction < 0) {\n for (let i = 1; i < n; ++i) {\n if (arr[i] <= target) {\n return i;\n }\n }\n return n - 1;\n }\n\n for (let i = 1; i < n; ++i) {\n if (arr[i] == target) {\n return i;\n }\n if (arr[i] < target) {\n if (arr[i - 1] - target < target - arr[i]) {\n return i - 1;\n }\n return i;\n }\n }\n return n - 1;\n}\n\n/**\n * @param {Array<*>} arr Array.\n * @param {number} begin Begin index.\n * @param {number} end End index.\n */\nexport function reverseSubArray(arr, begin, end) {\n while (begin < end) {\n const tmp = arr[begin];\n arr[begin] = arr[end];\n arr[end] = tmp;\n ++begin;\n --end;\n }\n}\n\n/**\n * @param {Array<VALUE>} arr The array to modify.\n * @param {!Array<VALUE>|VALUE} data The elements or arrays of elements to add to arr.\n * @template VALUE\n */\nexport function extend(arr, data) {\n const extension = Array.isArray(data) ? data : [data];\n const length = extension.length;\n for (let i = 0; i < length; i++) {\n arr[arr.length] = extension[i];\n }\n}\n\n/**\n * @param {Array<VALUE>} arr The array to modify.\n * @param {VALUE} obj The element to remove.\n * @template VALUE\n * @return {boolean} If the element was removed.\n */\nexport function remove(arr, obj) {\n const i = arr.indexOf(obj);\n const found = i > -1;\n if (found) {\n arr.splice(i, 1);\n }\n return found;\n}\n\n/**\n * @param {Array<any>|Uint8ClampedArray} arr1 The first array to compare.\n * @param {Array<any>|Uint8ClampedArray} arr2 The second array to compare.\n * @return {boolean} Whether the two arrays are equal.\n */\nexport function equals(arr1, arr2) {\n const len1 = arr1.length;\n if (len1 !== arr2.length) {\n return false;\n }\n for (let i = 0; i < len1; i++) {\n if (arr1[i] !== arr2[i]) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Sort the passed array such that the relative order of equal elements is preserved.\n * See https://en.wikipedia.org/wiki/Sorting_algorithm#Stability for details.\n * @param {Array<*>} arr The array to sort (modifies original).\n * @param {!function(*, *): number} compareFnc Comparison function.\n * @api\n * @deprecated\n */\nexport function stableSort(arr, compareFnc) {\n const length = arr.length;\n const tmp = Array(arr.length);\n let i;\n for (i = 0; i < length; i++) {\n tmp[i] = {index: i, value: arr[i]};\n }\n tmp.sort(function (a, b) {\n return compareFnc(a.value, b.value) || a.index - b.index;\n });\n for (i = 0; i < arr.length; i++) {\n arr[i] = tmp[i].value;\n }\n}\n\n/**\n * @param {Array<*>} arr The array to test.\n * @param {Function} [func] Comparison function.\n * @param {boolean} [strict] Strictly sorted (default false).\n * @return {boolean} Return index.\n */\nexport function isSorted(arr, func, strict) {\n const compare = func || ascending;\n return arr.every(function (currentVal, index) {\n if (index === 0) {\n return true;\n }\n const res = compare(arr[index - 1], currentVal);\n return !(res > 0 || (strict && res === 0));\n });\n}\n","/**\n * @module ol/has\n */\n\nconst ua =\n typeof navigator !== 'undefined' && typeof navigator.userAgent !== 'undefined'\n ? navigator.userAgent.toLowerCase()\n : '';\n\n/**\n * User agent string says we are dealing with Safari as browser.\n * @type {boolean}\n */\nexport const SAFARI = ua.includes('safari') && !ua.includes('chrom');\n\n/**\n * https://bugs.webkit.org/show_bug.cgi?id=237906\n * @type {boolean}\n */\nexport const SAFARI_BUG_237906 =\n SAFARI &&\n (ua.includes('version/15.4') ||\n /cpu (os|iphone os) 15_4 like mac os x/.test(ua));\n\n/**\n * User agent string says we are dealing with a WebKit engine.\n * @type {boolean}\n */\nexport const WEBKIT = ua.includes('webkit') && !ua.includes('edge');\n\n/**\n * User agent string says we are dealing with a Mac as platform.\n * @type {boolean}\n */\nexport const MAC = ua.includes('macintosh');\n\n/**\n * The ratio between physical pixels and device-independent pixels\n * (dips) on the device (`window.devicePixelRatio`).\n * @const\n * @type {number}\n * @api\n */\nexport const DEVICE_PIXEL_RATIO =\n typeof devicePixelRatio !== 'undefined' ? devicePixelRatio : 1;\n\n/**\n * The execution context is a worker with OffscreenCanvas available.\n * @const\n * @type {boolean}\n */\nexport const WORKER_OFFSCREEN_CANVAS =\n typeof WorkerGlobalScope !== 'undefined' &&\n typeof OffscreenCanvas !== 'undefined' &&\n self instanceof WorkerGlobalScope; //eslint-disable-line\n\n/**\n * Image.prototype.decode() is supported.\n * @type {boolean}\n */\nexport const IMAGE_DECODE =\n typeof Image !== 'undefined' && Image.prototype.decode;\n\n/**\n * createImageBitmap() is supported.\n * @type {boolean}\n */\nexport const CREATE_IMAGE_BITMAP = typeof createImageBitmap === 'function';\n\n/**\n * @type {boolean}\n */\nexport const PASSIVE_EVENT_LISTENERS = (function () {\n let passive = false;\n try {\n const options = Object.defineProperty({}, 'passive', {\n get: function () {\n passive = true;\n },\n });\n\n // @ts-ignore Ignore invalid event type '_'\n window.addEventListener('_', null, options);\n // @ts-ignore Ignore invalid event type '_'\n window.removeEventListener('_', null, options);\n } catch {\n // passive not supported\n }\n return passive;\n})();\n","import {WORKER_OFFSCREEN_CANVAS} from './has.js';\n\n/**\n * @module ol/dom\n */\n\n/**\n * @typedef {Object} ImageAttributes\n * @property {string|null} [crossOrigin] Cross origin.\n * @property {ReferrerPolicy} [referrerPolicy] Referrer policy.\n */\n\n//FIXME Move this function to the canvas module\n/**\n * Create an html canvas element and returns its 2d context.\n * @param {number} [width] Canvas width.\n * @param {number} [height] Canvas height.\n * @param {Array<HTMLCanvasElement|OffscreenCanvas>} [canvasPool] Canvas pool to take existing canvas from.\n * @param {CanvasRenderingContext2DSettings} [settings] CanvasRenderingContext2DSettings\n * @return {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} The context.\n */\nexport function createCanvasContext2D(width, height, canvasPool, settings) {\n /** @type {HTMLCanvasElement|OffscreenCanvas} */\n let canvas;\n if (canvasPool && canvasPool.length) {\n canvas = /** @type {HTMLCanvasElement} */ (canvasPool.shift());\n } else if (WORKER_OFFSCREEN_CANVAS) {\n canvas = new (class extends OffscreenCanvas {\n style = {};\n })(width ?? 300, height ?? 150);\n } else {\n canvas = document.createElement('canvas');\n }\n if (width) {\n canvas.width = width;\n }\n if (height) {\n canvas.height = height;\n }\n return /** @type {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} */ (\n canvas.getContext('2d', settings)\n );\n}\n\n/**\n * @type {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D}\n */\nlet sharedCanvasContext;\n\n/**\n * @return {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} Shared canvas context.\n */\nexport function getSharedCanvasContext2D() {\n if (!sharedCanvasContext) {\n sharedCanvasContext = createCanvasContext2D(1, 1);\n }\n return sharedCanvasContext;\n}\n\n/**\n * Releases canvas memory to avoid exceeding memory limits in Safari.\n * See https://pqina.nl/blog/total-canvas-memory-use-exceeds-the-maximum-limit/\n * @param {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} context Context.\n */\nexport function releaseCanvas(context) {\n const canvas = context.canvas;\n canvas.width = 1;\n canvas.height = 1;\n context.clearRect(0, 0, 1, 1);\n}\n\n/**\n * Get the current computed width for the given element including margin,\n * padding and border.\n * Equivalent to jQuery's `$(el).outerWidth(true)`.\n * @param {!HTMLElement} element Element.\n * @return {number} The width.\n */\nexport function outerWidth(element) {\n let width = element.offsetWidth;\n const style = getComputedStyle(element);\n width += parseInt(style.marginLeft, 10) + parseInt(style.marginRight, 10);\n\n return width;\n}\n\n/**\n * Get the current computed height for the given element including margin,\n * padding and border.\n * Equivalent to jQuery's `$(el).outerHeight(true)`.\n * @param {!HTMLElement} element Element.\n * @return {number} The height.\n */\nexport function outerHeight(element) {\n let height = element.offsetHeight;\n const style = getComputedStyle(element);\n height += parseInt(style.marginTop, 10) + parseInt(style.marginBottom, 10);\n\n return height;\n}\n\n/**\n * @param {Node} newNode Node to replace old node\n * @param {Node} oldNode The node to be replaced\n */\nexport function replaceNode(newNode, oldNode) {\n const parent = oldNode.parentNode;\n if (parent) {\n parent.replaceChild(newNode, oldNode);\n }\n}\n\n/**\n * @param {Node} node The node to remove the children from.\n */\nexport function removeChildren(node) {\n while (node.lastChild) {\n node.lastChild.remove();\n }\n}\n\n/**\n * Transform the children of a parent node so they match the\n * provided list of children. This function aims to efficiently\n * remove, add, and reorder child nodes while maintaining a simple\n * implementation (it is not guaranteed to minimize DOM operations).\n * @param {Node} node The parent node whose children need reworking.\n * @param {Array<Node>} children The desired children.\n */\nexport function replaceChildren(node, children) {\n const oldChildren = node.childNodes;\n\n for (let i = 0; true; ++i) {\n const oldChild = oldChildren[i];\n const newChild = children[i];\n\n // check if our work is done\n if (!oldChild && !newChild) {\n break;\n }\n\n // check if children match\n if (oldChild === newChild) {\n continue;\n }\n\n // check if a new child needs to be added\n if (!oldChild) {\n node.appendChild(newChild);\n continue;\n }\n\n // check if an old child needs to be removed\n if (!newChild) {\n node.removeChild(oldChild);\n --i;\n continue;\n }\n\n // reorder\n node.insertBefore(newChild, oldChild);\n }\n}\n\n/**\n * Creates a minimal structure that mocks a DIV to be used by the composite and\n * layer renderer in a worker environment\n * @return {HTMLDivElement} mocked DIV\n */\nexport function createMockDiv() {\n const mockedDiv = new Proxy(\n {\n /**\n * @type {Array<HTMLElement>}\n */\n childNodes: [],\n /**\n * @param {HTMLElement} node html node.\n * @return {HTMLElement} html node.\n */\n appendChild: function (node) {\n this.childNodes.push(node);\n return node;\n },\n /**\n * dummy function, as this structure is not supposed to have a parent.\n */\n remove: function () {},\n /**\n * @param {HTMLElement} node html node.\n * @return {HTMLElement} html node.\n */\n removeChild: function (node) {\n const index = this.childNodes.indexOf(node);\n if (index === -1) {\n throw new Error('Node to remove was not found');\n }\n this.childNodes.splice(index, 1);\n return node;\n },\n /**\n * @param {HTMLElement} newNode new html node.\n * @param {HTMLElement} referenceNode reference html node.\n * @return {HTMLElement} new html node.\n */\n insertBefore: function (newNode, referenceNode) {\n const index = this.childNodes.indexOf(referenceNode);\n if (index === -1) {\n throw new Error('Reference node not found');\n }\n this.childNodes.splice(index, 0, newNode);\n return newNode;\n },\n style: {},\n },\n {\n get(target, prop, receiver) {\n if (prop === 'firstElementChild') {\n return target.childNodes.length > 0 ? target.childNodes[0] : null;\n }\n return Reflect.get(target, prop, receiver);\n },\n },\n );\n return /** @type {HTMLDivElement} */ (/** @type {*} */ (mockedDiv));\n}\n\n/***\n * @param {*} obj The object to check.\n * @return {obj is (HTMLCanvasElement | OffscreenCanvas)} The object is a canvas.\n */\nexport function isCanvas(obj) {\n return (\n (typeof HTMLCanvasElement !== 'undefined' &&\n obj instanceof HTMLCanvasElement) ||\n (typeof OffscreenCanvas !== 'undefined' && obj instanceof OffscreenCanvas)\n );\n}\n","/**\n * @module ol/color\n */\nimport {createCanvasContext2D} from './dom.js';\nimport {clamp, toFixed} from './math.js';\n\n/**\n * A color represented as a short array [red, green, blue, alpha].\n * red, green, and blue should be integers in the range 0..255 inclusive.\n * alpha should be a float in the range 0..1 inclusive. If no alpha value is\n * given then `1` will be used.\n * @typedef {Array<number>} Color\n * @api\n */\n\n/**\n * Color to indicate that no color should be rendered. This is meant to be used for per-reference\n * comparisons only.\n * @type {Color}\n */\nexport const NO_COLOR = [NaN, NaN, NaN, 0];\n\nlet colorParseContext;\n/**\n * @return {CanvasRenderingContext2D} The color parse context\n */\nfunction getColorParseContext() {\n if (!colorParseContext) {\n colorParseContext = createCanvasContext2D(1, 1, undefined, {\n willReadFrequently: true,\n desynchronized: true,\n });\n }\n return colorParseContext;\n}\n\nconst rgbModernRegEx =\n /^rgba?\\(\\s*(\\d+%?)\\s+(\\d+%?)\\s+(\\d+%?)(?:\\s*\\/\\s*(\\d+%|\\d*\\.\\d+|[01]))?\\s*\\)$/i;\nconst rgbLegacyAbsoluteRegEx =\n /^rgba?\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)(?:\\s*,\\s*(\\d+%|\\d*\\.\\d+|[01]))?\\s*\\)$/i;\nconst rgbLegacyPercentageRegEx =\n /^rgba?\\(\\s*(\\d+%)\\s*,\\s*(\\d+%)\\s*,\\s*(\\d+%)(?:\\s*,\\s*(\\d+%|\\d*\\.\\d+|[01]))?\\s*\\)$/i;\nconst hexRegEx = /^#([\\da-f]{3,4}|[\\da-f]{6}|[\\da-f]{8})$/i;\n\n/**\n * @param {string} s Color component as number or percentage.\n * @param {number} divider Divider for percentage.\n * @return {number} Color component.\n */\nfunction toColorComponent(s, divider) {\n return s.endsWith('%')\n ? Number(s.substring(0, s.length - 1)) / divider\n : Number(s);\n}\n\n/**\n * @param {string} color Color string.\n */\nfunction throwInvalidColor(color) {\n throw new Error('failed to parse \"' + color + '\" as color');\n}\n\n/**\n * @param {string} color Color string.\n * @return {Color} RGBa color array.\n */\nfunction parseRgba(color) {\n // Fast lane for rgb(a) colors\n if (color.toLowerCase().startsWith('rgb')) {\n const rgb =\n color.match(rgbLegacyAbsoluteRegEx) ||\n color.match(rgbModernRegEx) ||\n color.match(rgbLegacyPercentageRegEx);\n if (rgb) {\n const alpha = rgb[4];\n const rgbDivider = 100 / 255;\n return [\n clamp((toColorComponent(rgb[1], rgbDivider) + 0.5) | 0, 0, 255),\n clamp((toColorComponent(rgb[2], rgbDivider) + 0.5) | 0, 0, 255),\n clamp((toColorComponent(rgb[3], rgbDivider) + 0.5) | 0, 0, 255),\n alpha !== undefined ? clamp(toColorComponent(alpha, 100), 0, 1) : 1,\n ];\n }\n throwInvalidColor(color);\n }\n // Fast lane for hex colors (also with alpha)\n if (color.startsWith('#')) {\n if (hexRegEx.test(color)) {\n const hex = color.substring(1);\n const step = hex.length <= 4 ? 1 : 2;\n const colorFromHex = [0, 0, 0, 255];\n for (let i = 0, ii = hex.length; i < ii; i += step) {\n let colorComponent = parseInt(hex.substring(i, i + step), 16);\n if (step === 1) {\n colorComponent += colorComponent << 4;\n }\n colorFromHex[i / step] = colorComponent;\n }\n colorFromHex[3] = colorFromHex[3] / 255;\n return colorFromHex;\n }\n throwInvalidColor(color);\n }\n // Use canvas color serialization to parse the color into hex or rgba\n // See https://www.w3.org/TR/2021/SPSD-2dcontext-20210128/#serialization-of-a-color\n const context = getColorParseContext();\n context.fillStyle = '#abcdef';\n let invalidCheckFillStyle = context.fillStyle;\n context.fillStyle = color;\n if (context.fillStyle === invalidCheckFillStyle) {\n context.fillStyle = '#fedcba';\n invalidCheckFillStyle = context.fillStyle;\n context.fillStyle = color;\n if (context.fillStyle === invalidCheckFillStyle) {\n throwInvalidColor(color);\n }\n }\n const colorString = context.fillStyle;\n if (colorString.startsWith('#') || colorString.startsWith('rgba')) {\n return parseRgba(colorString);\n }\n context.clearRect(0, 0, 1, 1);\n context.fillRect(0, 0, 1, 1);\n const colorFromImage = Array.from(context.getImageData(0, 0, 1, 1).data);\n colorFromImage[3] = toFixed(colorFromImage[3] / 255, 3);\n return colorFromImage;\n}\n\n/**\n * Return the color as an rgba string.\n * @param {Color|string} color Color.\n * @return {string} Rgba string.\n * @api\n */\nexport function asString(color) {\n if (typeof color === 'string') {\n return color;\n }\n return toString(color);\n}\n\n/**\n * @type {number}\n */\nconst MAX_CACHE_SIZE = 1024;\n\n/**\n * We maintain a small cache of parsed strings. Whenever the cache grows too large,\n * we delete an arbitrary set of the entries.\n *\n * @type {Object<string, Color>}\n */\nconst cache = {};\n\n/**\n * @type {number}\n */\nlet cacheSize = 0;\n\n/**\n * @param {Color} color A color that may or may not have an alpha channel.\n * @return {Color} The input color with an alpha channel. If the input color has\n * an alpha channel, the input color will be returned unchanged. Otherwise, a new\n * array will be returned with the input color and an alpha channel of 1.\n */\nexport function withAlpha(color) {\n if (color.length === 4) {\n return color;\n }\n const output = color.slice();\n output[3] = 1;\n return output;\n}\n\n// The functions b1, b2, a1, a2, rgbaToLcha and lchaToRgba below are adapted from\n// https://stackoverflow.com/a/67219995/2389327\n\n/**\n * @param {number} v Input value.\n * @return {number} Output value.\n */\nfunction b1(v) {\n return v > 0.0031308 ? Math.pow(v, 1 / 2.4) * 269.025 - 14.025 : v * 3294.6;\n}\n\n/**\n * @param {number} v Input value.\n * @return {number} Output value.\n */\nfunction b2(v) {\n return v > 0.2068965 ? Math.pow(v, 3) : (v - 4 / 29) * (108 / 841);\n}\n\n/**\n * @param {number} v Input value.\n * @return {number} Output value.\n */\nfunction a1(v) {\n return v > 10.314724 ? Math.pow((v + 14.025) / 269.025, 2.4) : v / 3294.6;\n}\n\n/**\n * @param {number} v Input value.\n * @return {number} Output value.\n */\nfunction a2(v) {\n return v > 0.0088564 ? Math.pow(v, 1 / 3) : v / (108 / 841) + 4 / 29;\n}\n\n/**\n * @param {Color} color RGBA color.\n * @return {Color} LCHuv color with alpha.\n */\nexport function rgbaToLcha(color) {\n const r = a1(color[0]);\n const g = a1(color[1]);\n const b = a1(color[2]);\n const y = a2(r * 0.222488403 + g * 0.716873169 + b * 0.06060791);\n const l = 500 * (a2(r * 0.452247074 + g * 0.399439023 + b * 0.148375274) - y);\n const q = 200 * (y - a2(r * 0.016863605 + g * 0.117638439 + b * 0.865350722));\n const h = Math.atan2(q, l) * (180 / Math.PI);\n return [\n 116 * y - 16,\n Math.sqrt(l * l + q * q),\n h < 0 ? h + 360 : h,\n color[3],\n ];\n}\n\n/**\n * @param {Color} color LCHuv color with alpha.\n * @return {Color} RGBA color.\n */\nexport function lchaToRgba(color) {\n const l = (color[0] + 16) / 116;\n const c = color[1];\n const h = (color[2] * Math.PI) / 180;\n const y = b2(l);\n const x = b2(l + (c / 500) * Math.cos(h));\n const z = b2(l - (c / 200) * Math.sin(h));\n const r = b1(x * 3.021973625 - y * 1.617392459 - z * 0.404875592);\n const g = b1(x * -0.943766287 + y * 1.916279586 + z * 0.027607165);\n const b = b1(x * 0.069407491 - y * 0.22898585 + z * 1.159737864);\n return [\n clamp((r + 0.5) | 0, 0, 255),\n clamp((g + 0.5) | 0, 0, 255),\n clamp((b + 0.5) | 0, 0, 255),\n color[3],\n ];\n}\n\n/**\n * @param {string} s String.\n * @return {Color} Color.\n */\nexport function fromString(s) {\n if (s === 'none') {\n return NO_COLOR;\n }\n if (cache.hasOwnProperty(s)) {\n return cache[s];\n }\n if (cacheSize >= MAX_CACHE_SIZE) {\n let i = 0;\n for (const key in cache) {\n if ((i++ & 3) === 0) {\n delete cache[key];\n --cacheSize;\n }\n }\n }\n\n const color = parseRgba(s);\n if (color.length !== 4) {\n throwInvalidColor(s);\n }\n for (const c of color) {\n if (isNaN(c)) {\n throwInvalidColor(s);\n }\n }\n cache[s] = color;\n ++cacheSize;\n return color;\n}\n\n/**\n * Return the color as an array. This function maintains a cache of calculated\n * arrays which means the result should not be modified.\n * @param {Color|string} color Color.\n * @return {Color} Color.\n * @api\n */\nexport function asArray(color) {\n if (Array.isArray(color)) {\n return color;\n }\n return fromString(color);\n}\n\n/**\n * @param {Color} color Color.\n * @return {string} String.\n */\nexport function toString(color) {\n let r = color[0];\n if (r != (r | 0)) {\n r = (r + 0.5) | 0;\n }\n let g = color[1];\n if (g != (g | 0)) {\n g = (g + 0.5) | 0;\n }\n let b = color[2];\n if (b != (b | 0)) {\n b = (b + 0.5) | 0;\n }\n const a = color[3] === undefined ? 1 : Math.round(color[3] * 1000) / 1000;\n return 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')';\n}\n\n/**\n * @param {string} s String.\n * @return {boolean} Whether the string is actually a valid color\n */\nexport function isStringColor(s) {\n try {\n fromString(s);\n return true;\n } catch {\n return false;\n }\n}\n","/**\n * @module ol/events/Event\n */\n\n/**\n * @classdesc\n * Stripped down implementation of the W3C DOM Level 2 Event interface.\n * See https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-interface.\n *\n * This implementation only provides `type` and `target` properties, and\n * `stopPropagation` and `preventDefault` methods. It is meant as base class\n * for higher level events defined in the library, and works with\n * {@link module:ol/events/Target~Target}.\n */\nclass BaseEvent {\n /**\n * @param {string} type Type.\n */\n constructor(type) {\n /**\n * @type {boolean}\n */\n this.propagationStopped;\n\n /**\n * @type {boolean}\n */\n this.defaultPrevented;\n\n /**\n * The event type.\n * @type {string}\n * @api\n */\n this.type = type;\n\n /**\n * The event target.\n * @type {Object}\n * @api\n */\n this.target = null;\n }\n\n /**\n * Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events\n * will be fired.\n * @api\n */\n preventDefault() {\n this.defaultPrevented = true;\n }\n\n /**\n * Stop event propagation.\n * @api\n */\n stopPropagation() {\n this.propagationStopped = true;\n }\n}\n\n/**\n * @param {Event|import(\"./Event.js\").default} evt Event\n */\nexport function stopPropagation(evt) {\n evt.stopPropagation();\n}\n\n/**\n * @param {Event|import(\"./Event.js\").default} evt Event\n */\nexport function preventDefault(evt) {\n evt.preventDefault();\n}\n\nexport default BaseEvent;\n","/**\n * @module ol/render/Event\n */\n\nimport Event from '../events/Event.js';\n\nclass RenderEvent extends Event {\n /**\n * @param {import(\"./EventType.js\").default} type Type.\n * @param {import(\"../transform.js\").Transform} [inversePixelTransform] Transform for\n * CSS pixels to rendered pixels.\n * @param {import(\"../Map.js\").FrameState} [frameState] Frame state.\n * @param {?(CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D|WebGLRenderingContext)} [context] Context.\n */\n constructor(type, inversePixelTransform, frameState, context) {\n super(type);\n\n /**\n * Transform from CSS pixels (relative to the top-left corner of the map viewport)\n * to rendered pixels on this event's `context`. Only available when a Canvas renderer is used, null otherwise.\n * @type {import(\"../transform.js\").Transform|undefined}\n * @api\n */\n this.inversePixelTransform = inversePixelTransform;\n\n /**\n * An object representing the current render frame state.\n * @type {import(\"../Map.js\").FrameState|undefined}\n * @api\n */\n this.frameState = frameState;\n\n /**\n * Canvas context. Not available when the event is dispatched by the map. For Canvas 2D layers,\n * the context will be the 2D rendering context. For WebGL layers, the context will be the WebGL\n * context.\n * @type {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D|WebGLRenderingContext|undefined}\n * @api\n */\n this.context = context;\n }\n}\n\nexport default RenderEvent;\n","/**\n * @module ol/render/EventType\n */\n\n/**\n * @enum {string}\n */\nexport default {\n /**\n * Triggered before a layer is rendered.\n * @event module:ol/render/Event~RenderEvent#prerender\n * @api\n */\n PRERENDER: 'prerender',\n\n /**\n * Triggered after a layer is rendered.\n * @event module:ol/render/Event~RenderEvent#postrender\n * @api\n */\n POSTRENDER: 'postrender',\n\n /**\n * Triggered before layers are composed. When dispatched by the map, the event object will not have\n * a `context` set. When dispatched by a layer, the event object will have a `context` set. Only\n * WebGL layers currently dispatch this event.\n * @event module:ol/render/Event~RenderEvent#precompose\n * @api\n */\n PRECOMPOSE: 'precompose',\n\n /**\n * Triggered after layers are composed. When dispatched by the map, the event object will not have\n * a `context` set. When dispatched by a layer, the event object will have a `context` set. Only\n * WebGL layers currently dispatch this event.\n * @event module:ol/render/Event~RenderEvent#postcompose\n * @api\n */\n POSTCOMPOSE: 'postcompose',\n\n /**\n * Triggered when rendering is complete, i.e. all sources and tiles have\n * finished loading for the current viewport, and all tiles are faded in.\n * The event object will not have a `context` set.\n * @event module:ol/render/Event~RenderEvent#rendercomplete\n * @api\n */\n RENDERCOMPLETE: 'rendercomplete',\n};\n\n/**\n * @typedef {'postrender'|'precompose'|'postcompose'|'rendercomplete'} MapRenderEventTypes\n */\n\n/**\n * @typedef {'postrender'|'prerender'} LayerRenderEventTypes\n */\n","/**\n * @module ol/render/canvas/ZIndexContext\n */\n\nimport {getSharedCanvasContext2D} from '../../dom.js';\n\n/** @typedef {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D & {globalAlpha: any}} ZIndexContextProxy */\n\n/**\n * @extends {CanvasRenderingContext2D}\n */\nclass ZIndexContext {\n constructor() {\n /**\n * @private\n * @type {Array<Array<*>>}\n */\n this.instructions_ = [];\n /**\n * @type {number}\n */\n this.zIndex = 0;\n /**\n * @private\n * @type {number}\n */\n this.offset_ = 0;\n\n /**\n * @private\n * @type {ZIndexContextProxy}\n */\n this.context_ = /** @type {ZIndexContextProxy} */ (\n new Proxy(getSharedCanvasContext2D(), {\n get: (target, property) => {\n if (\n typeof (/** @type {*} */ (getSharedCanvasContext2D())[property]) !==\n 'function'\n ) {\n // we only accept calling functions on the proxy, not accessing properties\n return undefined;\n }\n this.push_(property);\n return this.pushMethodArgs_;\n },\n set: (target, property, value) => {\n this.push_(property, value);\n return true;\n },\n })\n );\n }\n\n /**\n * @param {...*} args Arguments to push to the instructions array.\n * @private\n */\n push_(...args) {\n const instructions = this.instructions_;\n const index = this.zIndex + this.offset_;\n if (!instructions[index]) {\n instructions[index] = [];\n }\n instructions[index].push(...args);\n }\n\n /**\n * @private\n * @param {...*} args Args.\n * @return {ZIndexContext} This.\n */\n pushMethodArgs_ = (...args) => {\n this.push_(args);\n return this;\n };\n\n /**\n * Push a function that renders to the context directly.\n * @param {function(CanvasRenderingContext2D): void} render Function.\n */\n pushFunction(render) {\n this.push_(render);\n }\n\n /**\n * Get a proxy for CanvasRenderingContext2D which does not support getting state\n * (e.g. `context.globalAlpha`, which will return `undefined`). To set state, if it relies on a\n * previous state (e.g. `context.globalAlpha = context.globalAlpha / 2`), set a function,\n * e.g. `context.globalAlpha = (context) => context.globalAlpha / 2`.\n * @return {ZIndexContextProxy} Context.\n */\n getContext() {\n return this.context_;\n }\n\n /**\n * @param {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} context Context.\n */\n draw(context) {\n this.instructions_.forEach((instructionsAtIndex) => {\n for (let i = 0, ii = instructionsAtIndex.length; i < ii; ++i) {\n const property = instructionsAtIndex[i];\n if (typeof property === 'function') {\n property(context);\n continue;\n }\n const instructionAtIndex = instructionsAtIndex[++i];\n if (typeof (/** @type {*} */ (context)[property]) === 'function') {\n /** @type {*} */ (context)[property](...instructionAtIndex);\n } else {\n if (typeof instructionAtIndex === 'function') {\n /** @type {*} */ (context)[property] = instructionAtIndex(context);\n continue;\n }\n /** @type {*} */ (context)[property] = instructionAtIndex;\n }\n }\n });\n }\n\n clear() {\n this.instructions_.length = 0;\n this.zIndex = 0;\n this.offset_ = 0;\n }\n\n /**\n * Offsets the zIndex by the highest current zIndex. Useful for rendering multiple worlds or tiles, to\n * avoid conflicting context.clip() or context.save()/restore() calls.\n */\n offset() {\n this.offset_ = this.instructions_.length;\n this.zIndex = 0;\n }\n}\n\nexport default ZIndexContext;\n","/**\n * @module ol/events/EventType\n */\n\n/**\n * @enum {string}\n * @const\n */\nexport default {\n /**\n * Generic change event. Triggered when the revision counter is increased.\n * @event module:ol/events/Event~BaseEvent#change\n * @api\n */\n CHANGE: 'change',\n\n /**\n * Generic error event. Triggered when an error occurs.\n * @event module:ol/events/Event~BaseEvent#error\n * @api\n */\n ERROR: 'error',\n\n BLUR: 'blur',\n CLEAR: 'clear',\n CONTEXTMENU: 'contextmenu',\n CLICK: 'click',\n DBLCLICK: 'dblclick',\n DRAGENTER: 'dragenter',\n DRAGOVER: 'dragover',\n DROP: 'drop',\n FOCUS: 'focus',\n KEYDOWN: 'keydown',\n KEYPRESS: 'keypress',\n LOAD: 'load',\n RESIZE: 'resize',\n TOUCHMOVE: 'touchmove',\n WHEEL: 'wheel',\n};\n","/**\n * @module ol/Disposable\n */\n\n/**\n * @classdesc\n * Objects that need to clean up after themselves.\n */\nclass Disposable {\n constructor() {\n /**\n * The object has already been disposed.\n * @type {boolean}\n * @protected\n */\n this.disposed = false;\n }\n\n /**\n * Clean up.\n */\n dispose() {\n if (!this.disposed) {\n this.disposed = true;\n this.disposeInternal();\n }\n }\n\n /**\n * Extension point for disposable objects.\n * @protected\n */\n disposeInternal() {}\n}\n\nexport default Disposable;\n","/**\n * @module ol/functions\n */\n\nimport {equals as arrayEquals} from './array.js';\n\n/**\n * Always returns true.\n * @return {boolean} true.\n */\nexport function TRUE() {\n return true;\n}\n\n/**\n * Always returns false.\n * @return {boolean} false.\n */\nexport function FALSE() {\n return false;\n}\n\n/**\n * A reusable function, used e.g. as a default for callbacks.\n *\n * @return {void} Nothing.\n */\nexport function VOID() {}\n\n/**\n * Wrap a function in another function that remembers the last return. If the\n * returned function is called twice in a row with the same arguments and the same\n * this object, it will return the value from the first call in the second call.\n *\n * @param {function(...any): ReturnType} fn The function to memoize.\n * @return {function(...any): ReturnType} The memoized function.\n * @template ReturnType\n */\nexport function memoizeOne(fn) {\n /** @type {ReturnType} */\n let lastResult;\n\n /** @type {Array<any>|undefined} */\n let lastArgs;\n\n let lastThis;\n\n /**\n * @this {*} Only need to know if `this` changed, don't care what type\n * @return {ReturnType} Memoized value\n */\n return function () {\n const nextArgs = Array.prototype.slice.call(arguments);\n if (!lastArgs || this !== lastThis || !arrayEquals(nextArgs, lastArgs)) {\n lastThis = this;\n lastArgs = nextArgs;\n lastResult = fn.apply(this, arguments);\n }\n return lastResult;\n };\n}\n\n/**\n * @template T\n * @param {function(): (T | Promise<T>)} getter A function that returns a value or a promise for a value.\n * @return {Promise<T>} A promise for the value.\n */\nexport function toPromise(getter) {\n function promiseGetter() {\n let value;\n try {\n value = getter();\n } catch (err) {\n return Promise.reject(err);\n }\n if (value instanceof Promise) {\n return value;\n }\n return Promise.resolve(value);\n }\n return promiseGetter();\n}\n","/**\n * @module ol/events/Target\n */\nimport Disposable from '../Disposable.js';\nimport {VOID} from '../functions.js';\nimport {clear} from '../obj.js';\nimport Event from './Event.js';\n\n/**\n * @typedef {EventTarget|Target} EventTargetLike\n */\n\n/**\n * @classdesc\n * A simplified implementation of the W3C DOM Level 2 EventTarget interface.\n * See https://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-EventTarget.\n *\n * There are two important simplifications compared to the specification:\n *\n * 1. The handling of `useCapture` in `addEventListener` and\n * `removeEventListener`. There is no real capture model.\n * 2. The handling of `stopPropagation` and `preventDefault` on `dispatchEvent`.\n * There is no event target hierarchy. When a listener calls\n * `stopPropagation` or `preventDefault` on an event object, it means that no\n * more listeners after this one will be called. Same as when the listener\n * returns false.\n */\nclass Target extends Disposable {\n /**\n * @param {*} [target] Default event target for dispatched events.\n */\n constructor(target) {\n super();\n\n /**\n * @private\n * @type {*}\n */\n this.eventTarget_ = target;\n\n /**\n * @private\n * @type {Object<string, number>|null}\n */\n this.pendingRemovals_ = null;\n\n /**\n * @private\n * @type {Object<string, number>|null}\n */\n this.dispatching_ = null;\n\n /**\n * @private\n * @type {Object<string, Array<import(\"../events.js\").Listener>>|null}\n */\n this.listeners_ = null;\n }\n\n /**\n * @param {string} type Type.\n * @param {import(\"../events.js\").Listener} listener Listener.\n */\n addEventListener(type, listener) {\n if (!type || !listener) {\n return;\n }\n const listeners = this.listeners_ || (this.listeners_ = {});\n const listenersForType = listeners[type] || (listeners[type] = []);\n if (!listenersForType.includes(listener)) {\n listenersForType.push(listener);\n }\n }\n\n /**\n * Dispatches an event and calls all listeners listening for events\n * of this type. The event parameter can either be a string or an\n * Object with a `type` property.\n *\n * @param {import(\"./Event.js\").default|string} event Event object.\n * @return {boolean|undefined} `false` if anyone called preventDefault on the\n * event object or if any of the listeners returned false.\n * @api\n */\n dispatchEvent(event) {\n const isString = typeof event === 'string';\n const type = isString ? event : event.type;\n const listeners = this.listeners_ && this.listeners_[type];\n if (!listeners) {\n return;\n }\n\n const evt = isString ? new Event(event) : /** @type {Event} */ (event);\n if (!evt.target) {\n evt.target = this.eventTarget_ || this;\n }\n const dispatching = this.dispatching_ || (this.dispatching_ = {});\n const pendingRemovals =\n this.pendingRemovals_ || (this.pendingRemovals_ = {});\n if (!(type in dispatching)) {\n dispatching[type] = 0;\n pendingRemovals[type] = 0;\n }\n ++dispatching[type];\n let propagate;\n for (let i = 0, ii = listeners.length; i < ii; ++i) {\n if ('handleEvent' in listeners[i]) {\n propagate = /** @type {import(\"../events.js\").ListenerObject} */ (\n listeners[i]\n ).handleEvent(evt);\n } else {\n propagate = /** @type {import(\"../events.js\").ListenerFunction} */ (\n listeners[i]\n ).call(this, evt);\n }\n if (propagate === false || evt.propagationStopped) {\n propagate = false;\n break;\n }\n }\n if (--dispatching[type] === 0) {\n let pr = pendingRemovals[type];\n delete pendingRemovals[type];\n while (pr--) {\n this.removeEventListener(type, VOID);\n }\n delete dispatching[type];\n }\n return propagate;\n }\n\n /**\n * Clean up.\n * @override\n */\n disposeInternal() {\n this.listeners_ && clear(this.listeners_);\n }\n\n /**\n * Get the listeners for a specified event type. Listeners are returned in the\n * order that they will be called in.\n *\n * @param {string} type Type.\n * @return {Array<import(\"../events.js\").Listener>|undefined} Listeners.\n */\n getListeners(type) {\n return (this.listeners_ && this.listeners_[type]) || undefined;\n }\n\n /**\n * @param {string} [type] Type. If not provided,\n * `true` will be returned if this event target has any listeners.\n * @return {boolean} Has listeners.\n */\n hasListener(type) {\n if (!this.listeners_) {\n return false;\n }\n return type\n ? type in this.listeners_\n : Object.keys(this.listeners_).length > 0;\n }\n\n /**\n * @param {string} type Type.\n * @param {import(\"../events.js\").Listener} listener Listener.\n */\n removeEventListener(type, listener) {\n if (!this.listeners_) {\n return;\n }\n const listeners = this.listeners_[type];\n if (!listeners) {\n return;\n }\n const index = listeners.indexOf(listener);\n if (index !== -1) {\n if (this.pendingRemovals_ && type in this.pendingRemovals_) {\n // make listener a no-op, and remove later in #dispatchEvent()\n listeners[index] = VOID;\n ++this.pendingRemovals_[type];\n } else {\n listeners.splice(index, 1);\n if (listeners.length === 0) {\n delete this.listeners_[type];\n }\n }\n }\n }\n}\n\nexport default Target;\n","/**\n * @module ol/events\n */\nimport {clear} from './obj.js';\n\n/**\n * Key to use with {@link module:ol/Observable.unByKey}.\n * @typedef {Object} EventsKey\n * @property {ListenerFunction} listener Listener.\n * @property {import(\"./events/Target.js\").EventTargetLike} target Target.\n * @property {string} type Type.\n * @api\n */\n\n/**\n * Listener function. This function is called with an event object as argument.\n * When the function returns `false`, event propagation will stop.\n *\n * @typedef {function((Event|import(\"./events/Event.js\").default)): (void|boolean)} ListenerFunction\n * @api\n */\n\n/**\n * @typedef {Object} ListenerObject\n * @property {ListenerFunction} handleEvent HandleEvent listener function.\n */\n\n/**\n * @typedef {ListenerFunction|ListenerObject} Listener\n */\n\n/**\n * Registers an event listener on an event target. Inspired by\n * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html\n *\n * This function efficiently binds a `listener` to a `this` object, and returns\n * a key for use with {@link module:ol/events.unlistenByKey}.\n *\n * @param {import(\"./events/Target.js\").EventTargetLike} target Event target.\n * @param {string} type Event type.\n * @param {ListenerFunction} listener Listener.\n * @param {Object} [thisArg] Object referenced by the `this` keyword in the\n * listener. Default is the `target`.\n * @param {boolean} [once] If true, add the listener as one-off listener.\n * @return {EventsKey} Unique key for the listener.\n */\nexport function listen(target, type, listener, thisArg, once) {\n if (once) {\n const originalListener = listener;\n /**\n * @param {Event|import('./events/Event.js').default} event The event\n * @return {void|boolean} When the function returns `false`, event propagation will stop.\n * @this {typeof target}\n */\n listener = function (event) {\n target.removeEventListener(type, listener);\n return originalListener.call(thisArg ?? this, event);\n };\n } else if (thisArg && thisArg !== target) {\n listener = listener.bind(thisArg);\n }\n const eventsKey = {\n target: target,\n type: type,\n listener: listener,\n };\n target.addEventListener(type, listener);\n return eventsKey;\n}\n\n/**\n * Registers a one-off event listener on an event target. Inspired by\n * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html\n *\n * This function efficiently binds a `listener` as self-unregistering listener\n * to a `this` object, and returns a key for use with\n * {@link module:ol/events.unlistenByKey} in case the listener needs to be\n * unregistered before it is called.\n *\n * When {@link module:ol/events.listen} is called with the same arguments after this\n * function, the self-unregistering listener will be turned into a permanent\n * listener.\n *\n * @param {import(\"./events/Target.js\").EventTargetLike} target Event target.\n * @param {string} type Event type.\n * @param {ListenerFunction} listener Listener.\n * @param {Object} [thisArg] Object referenced by the `this` keyword in the\n * listener. Default is the `target`.\n * @return {EventsKey} Key for unlistenByKey.\n */\nexport function listenOnce(target, type, listener, thisArg) {\n return listen(target, type, listener, thisArg, true);\n}\n\n/**\n * Unregisters event listeners on an event target. Inspired by\n * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html\n *\n * The argument passed to this function is the key returned from\n * {@link module:ol/events.listen} or {@link module:ol/events.listenOnce}.\n *\n * @param {EventsKey} key The key.\n */\nexport function unlistenByKey(key) {\n if (key && key.target) {\n key.target.removeEventListener(key.type, key.listener);\n clear(key);\n }\n}\n","/**\n * @module ol/Observable\n */\nimport EventType from './events/EventType.js';\nimport EventTarget from './events/Target.js';\nimport {listen, listenOnce, unlistenByKey} from './events.js';\n\n/***\n * @template {string} Type\n * @template {Event|import(\"./events/Event.js\").default} EventClass\n * @template Return\n * @typedef {(type: Type, listener: (event: EventClass) => ?) => Return} OnSignature\n */\n\n/***\n * @template {string} Type\n * @template Return\n * @typedef {(type: Type[], listener: (event: Event|import(\"./events/Event\").default) => ?) => Return extends void ? void : Return[]} CombinedOnSignature\n */\n\n/**\n * @typedef {'change'|'error'} EventTypes\n */\n\n/***\n * @template Return\n * @typedef {OnSignature<EventTypes, import(\"./events/Event.js\").default, Return> & CombinedOnSignature<EventTypes, Return>} ObservableOnSignature\n */\n\n/**\n * @classdesc\n * Abstract base class; normally only used for creating subclasses and not\n * instantiated in apps.\n * An event target providing convenient methods for listener registration\n * and unregistration. A generic `change` event is always available through\n * {@link module:ol/Observable~Observable#changed}.\n *\n * @fires import(\"./events/Event.js\").default\n * @api\n */\nclass Observable extends EventTarget {\n constructor() {\n super();\n\n this.on =\n /** @type {ObservableOnSignature<import(\"./events\").EventsKey>} */ (\n this.onInternal\n );\n\n this.once =\n /** @type {ObservableOnSignature<import(\"./events\").EventsKey>} */ (\n this.onceInternal\n );\n\n this.un = /** @type {ObservableOnSignature<void>} */ (this.unInternal);\n\n /**\n * @private\n * @type {number}\n */\n this.revision_ = 0;\n }\n\n /**\n * Increases the revision counter and dispatches a 'change' event.\n * @api\n */\n changed() {\n ++this.revision_;\n this.dispatchEvent(EventType.CHANGE);\n }\n\n /**\n * Get the version number for this object. Each time the object is modified,\n * its version number will be incremented.\n * @return {number} Revision.\n * @api\n */\n getRevision() {\n return this.revision_;\n }\n\n /**\n * @param {string|Array<string>} type Type.\n * @param {function((Event|import(\"./events/Event\").default)): ?} listener Listener.\n * @return {import(\"./events.js\").EventsKey|Array<import(\"./events.js\").EventsKey>} Event key.\n * @protected\n */\n onInternal(type, listener) {\n if (Array.isArray(type)) {\n const len = type.length;\n const keys = new Array(len);\n for (let i = 0; i < len; ++i) {\n keys[i] = listen(this, type[i], listener);\n }\n return keys;\n }\n return listen(this, /** @type {string} */ (type), listener);\n }\n\n /**\n * @param {string|Array<string>} type Type.\n * @param {function((Event|import(\"./events/Event\").default)): ?} listener Listener.\n * @return {import(\"./events.js\").EventsKey|Array<import(\"./events.js\").EventsKey>} Event key.\n * @protected\n */\n onceInternal(type, listener) {\n let key;\n if (Array.isArray(type)) {\n const len = type.length;\n key = new Array(len);\n for (let i = 0; i < len; ++i) {\n key[i] = listenOnce(this, type[i], listener);\n }\n } else {\n key = listenOnce(this, /** @type {string} */ (type), listener);\n }\n /** @type {Object} */ (listener).ol_key = key;\n return key;\n }\n\n /**\n * Unlisten for a certain type of event.\n * @param {string|Array<string>} type Type.\n * @param {function((Event|import(\"./events/Event\").default)): ?} listener Listener.\n * @protected\n */\n unInternal(type, listener) {\n const key = /** @type {Object} */ (listener).ol_key;\n if (key) {\n unByKey(key);\n } else if (Array.isArray(type)) {\n for (let i = 0, ii = type.length; i < ii; ++i) {\n this.removeEventListener(type[i], listener);\n }\n } else {\n this.removeEventListener(type, listener);\n }\n }\n}\n\n/**\n * Listen for a certain type of event.\n * @function\n * @param {string|Array<string>} type The event type or array of event types.\n * @param {function((Event|import(\"./events/Event\").default)): ?} listener The listener function.\n * @return {import(\"./events.js\").EventsKey|Array<import(\"./events.js\").EventsKey>} Unique key for the listener. If\n * called with an array of event types as the first argument, the return\n * will be an array of keys.\n * @api\n */\nObservable.prototype.on;\n\n/**\n * Listen once for a certain type of event.\n * @function\n * @param {string|Array<string>} type The event type or array of event types.\n * @param {function((Event|import(\"./events/Event\").default)): ?} listener The listener function.\n * @return {import(\"./events.js\").EventsKey|Array<import(\"./events.js\").EventsKey>} Unique key for the listener. If\n * called with an array of event types as the first argument, the return\n * will be an array of keys.\n * @api\n */\nObservable.prototype.once;\n\n/**\n * Unlisten for a certain type of event.\n * @function\n * @param {string|Array<string>} type The event type or array of event types.\n * @param {function((Event|import(\"./events/Event\").default)): ?} listener The listener function.\n * @api\n */\nObservable.prototype.un;\n\n/**\n * Removes an event listener using the key returned by `on()` or `once()`.\n * @param {import(\"./events.js\").EventsKey|Array<import(\"./events.js\").EventsKey>} key The key returned by `on()`\n * or `once()` (or an array of keys).\n * @api\n */\nexport function unByKey(key) {\n if (Array.isArray(key)) {\n for (let i = 0, ii = key.length; i < ii; ++i) {\n unlistenByKey(key[i]);\n }\n } else {\n unlistenByKey(/** @type {import(\"./events.js\").EventsKey} */ (key));\n }\n}\n\nexport default Observable;\n","/**\n * @module ol/util\n */\n\n/**\n * @return {never} Any return.\n */\nexport function abstract() {\n throw new Error('Unimplemented abstract method.');\n}\n\n/**\n * Counter for getUid.\n * @type {number}\n * @private\n */\nlet uidCounter_ = 0;\n\n/**\n * Gets a unique ID for an object. This mutates the object so that further calls\n * with the same object as a parameter returns the same value. Unique IDs are generated\n * as a strictly increasing sequence. Adapted from goog.getUid.\n *\n * @param {Object} obj The object to get the unique ID for.\n * @return {string} The unique ID for the object.\n * @api\n */\nexport function getUid(obj) {\n return obj.ol_uid || (obj.ol_uid = String(++uidCounter_));\n}\n\n/**\n * OpenLayers version.\n * @type {string}\n */\nexport const VERSION = '10.8.0';\n","/**\n * @module ol/renderer/Layer\n */\nimport ImageState from '../ImageState.js';\nimport Observable from '../Observable.js';\nimport EventType from '../events/EventType.js';\nimport {abstract} from '../util.js';\n\nconst maxStaleKeys = 5;\n\n/**\n * @template {import(\"../layer/Layer.js\").default} LayerType\n */\nclass LayerRenderer extends Observable {\n /**\n * @param {LayerType} layer Layer.\n */\n constructor(layer) {\n super();\n\n /**\n * The renderer is initialized and ready to render.\n * @type {boolean}\n */\n this.ready = true;\n\n /** @private */\n this.boundHandleImageChange_ = this.handleImageChange_.bind(this);\n\n /**\n * @private\n * @type {LayerType}\n */\n this.layer_ = layer;\n\n /**\n * @type {Array<string>}\n * @private\n */\n this.staleKeys_ = new Array();\n\n /**\n * @type {number}\n * @protected\n */\n this.maxStaleKeys = maxStaleKeys;\n }\n\n /**\n * @return {Array<string>} Get the list of stale keys.\n */\n getStaleKeys() {\n return this.staleKeys_;\n }\n\n /**\n * @param {string} key The new stale key.\n */\n prependStaleKey(key) {\n this.staleKeys_.unshift(key);\n if (this.staleKeys_.length > this.maxStaleKeys) {\n this.staleKeys_.length = this.maxStaleKeys;\n }\n }\n\n /**\n * Asynchronous layer level hit detection.\n * @param {import(\"../pixel.js\").Pixel} pixel Pixel.\n * @return {Promise<Array<import(\"../Feature\").FeatureLike>>} Promise that resolves with\n * an array of features.\n */\n getFeatures(pixel) {\n return abstract();\n }\n\n /**\n * @param {import(\"../pixel.js\").Pixel} pixel Pixel.\n * @return {Uint8ClampedArray|Uint8Array|Float32Array|DataView|null} Pixel data.\n */\n getData(pixel) {\n return null;\n }\n\n /**\n * Determine whether render should be called.\n * @abstract\n * @param {import(\"../Map.js\").FrameState} frameState Frame state.\n * @return {boolean} Layer is ready to be rendered.\n */\n prepareFrame(frameState) {\n return abstract();\n }\n\n /**\n * Render the layer.\n * @abstract\n * @param {import(\"../Map.js\").FrameState} frameState Frame state.\n * @param {HTMLElement|null} target Target that may be used to render content to.\n * @return {HTMLElement} The rendered element.\n */\n renderFrame(frameState, target) {\n return abstract();\n }\n\n /**\n * @abstract\n * @param {import(\"../coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {import(\"../Map.js\").FrameState} frameState Frame state.\n * @param {number} hitTolerance Hit tolerance in pixels.\n * @param {import(\"./vector.js\").FeatureCallback<T>} callback Feature callback.\n * @param {Array<import(\"./Map.js\").HitMatch<T>>} matches The hit detected matches with tolerance.\n * @return {T|undefined} Callback result.\n * @template T\n */\n forEachFeatureAtCoordinate(\n coordinate,\n frameState,\n hitTolerance,\n callback,\n matches,\n ) {\n return undefined;\n }\n\n /**\n * @return {LayerType} Layer.\n */\n getLayer() {\n return this.layer_;\n }\n\n /**\n * Perform action necessary to get the layer rendered after new fonts have loaded\n * @abstract\n */\n handleFontsChanged() {}\n\n /**\n * Handle changes in image state.\n * @param {import(\"../events/Event.js\").default} event Image change event.\n * @private\n */\n handleImageChange_(event) {\n const image = /** @type {import(\"../Image.js\").default} */ (event.target);\n if (\n image.getState() === ImageState.LOADED ||\n image.getState() === ImageState.ERROR\n ) {\n this.renderIfReadyAndVisible();\n }\n }\n\n /**\n * Load the image if not already loaded, and register the image change\n * listener if needed.\n * @param {import(\"../Image.js\").default} image Image.\n * @return {boolean} `true` if the image is already loaded, `false` otherwise.\n * @protected\n */\n loadImage(image) {\n let imageState = image.getState();\n if (imageState != ImageState.LOADED && imageState != ImageState.ERROR) {\n image.addEventListener(EventType.CHANGE, this.boundHandleImageChange_);\n }\n if (imageState == ImageState.IDLE) {\n image.load();\n imageState = image.getState();\n }\n return imageState == ImageState.LOADED;\n }\n\n /**\n * @protected\n */\n renderIfReadyAndVisible() {\n const layer = this.getLayer();\n if (layer && layer.getVisible() && layer.getSourceState() === 'ready') {\n layer.changed();\n }\n }\n\n /**\n * @param {import(\"../Map.js\").FrameState} frameState Frame state.\n */\n renderDeferred(frameState) {}\n\n /**\n * Clean up.\n * @override\n */\n disposeInternal() {\n delete this.layer_;\n super.disposeInternal();\n }\n}\n\nexport default LayerRenderer;\n","/**\n * @module ol/renderer/canvas/Layer\n */\nimport {equals} from '../../array.js';\nimport {asArray} from '../../color.js';\nimport {createCanvasContext2D, createMockDiv, isCanvas} from '../../dom.js';\nimport {\n getBottomLeft,\n getBottomRight,\n getHeight,\n getTopLeft,\n getTopRight,\n getWidth,\n} from '../../extent.js';\nimport {WORKER_OFFSCREEN_CANVAS} from '../../has.js';\nimport RenderEvent from '../../render/Event.js';\nimport RenderEventType from '../../render/EventType.js';\nimport ZIndexContext from '../../render/canvas/ZIndexContext.js';\nimport {\n apply as applyTransform,\n compose as composeTransform,\n create as createTransform,\n equivalent,\n makeInverse,\n toString as toTransformString,\n} from '../../transform.js';\nimport LayerRenderer from '../Layer.js';\n\n/**\n * @type {Array<HTMLCanvasElement|OffscreenCanvas>}\n */\nexport const canvasPool = [];\n\n/**\n * @type {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D}\n */\nlet pixelContext = null;\n\nfunction createPixelContext() {\n pixelContext = createCanvasContext2D(1, 1, undefined, {\n willReadFrequently: true,\n });\n}\n\n/**\n * @abstract\n * @template {import(\"../../layer/Layer.js\").default} LayerType\n * @extends {LayerRenderer<LayerType>}\n */\nclass CanvasLayerRenderer extends LayerRenderer {\n /**\n * @param {LayerType} layer Layer.\n */\n constructor(layer) {\n super(layer);\n\n /**\n * HTMLElement container for the layer to be rendered in.\n * @protected\n * @type {HTMLElement}\n */\n this.container = null;\n\n /**\n * @protected\n * @type {number}\n */\n this.renderedResolution;\n\n /**\n * A temporary transform. The values in this transform should only be used in a\n * function that sets the values.\n * @protected\n * @type {import(\"../../transform.js\").Transform}\n */\n this.tempTransform = createTransform();\n\n /**\n * The transform for rendered pixels to viewport CSS pixels. This transform must\n * be set when rendering a frame and may be used by other functions after rendering.\n * @protected\n * @type {import(\"../../transform.js\").Transform}\n */\n this.pixelTransform = createTransform();\n\n /**\n * The transform for viewport CSS pixels to rendered pixels. This transform must\n * be set when rendering a frame and may be used by other functions after rendering.\n * @protected\n * @type {import(\"../../transform.js\").Transform}\n */\n this.inversePixelTransform = createTransform();\n\n /**\n * @type {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D}\n */\n this.context = null;\n\n /**\n * @private\n * @type {ZIndexContext}\n */\n this.deferredContext_ = null;\n\n /**\n * true if the container has been reused from the previous renderer\n * @type {boolean}\n */\n this.containerReused = false;\n\n /**\n * @protected\n * @type {import(\"../../Map.js\").FrameState|null}\n */\n this.frameState = null;\n }\n\n /**\n * @param {import('../../DataTile.js').ImageLike} image Image.\n * @param {number} col The column index.\n * @param {number} row The row index.\n * @return {Uint8ClampedArray|null} The image data.\n */\n getImageData(image, col, row) {\n if (!pixelContext) {\n createPixelContext();\n }\n pixelContext.clearRect(0, 0, 1, 1);\n\n let data;\n try {\n pixelContext.drawImage(image, col, row, 1, 1, 0, 0, 1, 1);\n data = pixelContext.getImageData(0, 0, 1, 1).data;\n } catch {\n pixelContext = null;\n return null;\n }\n return data;\n }\n\n /**\n * @param {import('../../Map.js').FrameState} frameState Frame state.\n * @return {string} Background color.\n */\n getBackground(frameState) {\n const layer = this.getLayer();\n let background = layer.getBackground();\n if (typeof background === 'function') {\n background = background(frameState.viewState.resolution);\n }\n return background || undefined;\n }\n\n /**\n * Get a rendering container from an existing target, if compatible.\n * @param {HTMLElement} target Potential render target.\n * @param {string} transform CSS transform matrix.\n * @param {string} [backgroundColor] Background color.\n */\n useContainer(target, transform, backgroundColor) {\n // renderer canvas to target canvas\n const layerClassName = this.getLayer().getClassName();\n let container, context;\n if (\n target &&\n target.className === layerClassName &&\n (!backgroundColor ||\n (target &&\n target.style.backgroundColor &&\n equals(\n asArray(target.style.backgroundColor),\n asArray(backgroundColor),\n )))\n ) {\n const canvas = target.firstElementChild;\n if (isCanvas(canvas)) {\n context = canvas.getContext('2d');\n }\n }\n if (context && equivalent(context.canvas.style.transform, transform)) {\n // Container of the previous layer renderer can be used.\n this.container = target;\n this.context = context;\n this.containerReused = true;\n } else if (this.containerReused) {\n // Previously reused container cannot be used any more.\n this.container = null;\n this.context = null;\n this.containerReused = false;\n } else if (this.container) {\n this.container.style.backgroundColor = null;\n }\n if (!this.container) {\n container = WORKER_OFFSCREEN_CANVAS\n ? createMockDiv()\n : document.createElement('div');\n container.className = layerClassName;\n let style = container.style;\n style.position = 'absolute';\n style.width = '100%';\n style.height = '100%';\n context = createCanvasContext2D();\n const canvas = /** @type {HTMLCanvasElement} */ (context.canvas);\n container.appendChild(canvas);\n style = canvas.style;\n style.position = 'absolute';\n style.left = '0';\n style.transformOrigin = 'top left';\n this.container = container;\n this.context = context;\n }\n if (\n !this.containerReused &&\n backgroundColor &&\n !this.container.style.backgroundColor\n ) {\n this.container.style.backgroundColor = backgroundColor;\n }\n }\n\n /**\n * @param {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} context Context.\n * @param {import(\"../../Map.js\").FrameState} frameState Frame state.\n * @param {import(\"../../extent.js\").Extent} extent Clip extent.\n * @protected\n */\n clipUnrotated(context, frameState, extent) {\n const topLeft = getTopLeft(extent);\n const topRight = getTopRight(extent);\n const bottomRight = getBottomRight(extent);\n const bottomLeft = getBottomLeft(extent);\n\n applyTransform(frameState.coordinateToPixelTransform, topLeft);\n applyTransform(frameState.coordinateToPixelTransform, topRight);\n applyTransform(frameState.coordinateToPixelTransform, bottomRight);\n applyTransform(frameState.coordinateToPixelTransform, bottomLeft);\n\n const inverted = this.inversePixelTransform;\n applyTransform(inverted, topLeft);\n applyTransform(inverted, topRight);\n applyTransform(inverted, bottomRight);\n applyTransform(inverted, bottomLeft);\n\n context.save();\n context.beginPath();\n context.moveTo(Math.round(topLeft[0]), Math.round(topLeft[1]));\n context.lineTo(Math.round(topRight[0]), Math.round(topRight[1]));\n context.lineTo(Math.round(bottomRight[0]), Math.round(bottomRight[1]));\n context.lineTo(Math.round(bottomLeft[0]), Math.round(bottomLeft[1]));\n context.clip();\n }\n\n /**\n * @param {import(\"../../Map.js\").FrameState} frameState Frame state.\n * @param {HTMLElement} target Target that may be used to render content to.\n * @protected\n */\n prepareContainer(frameState, target) {\n const extent = frameState.extent;\n const resolution = frameState.viewState.resolution;\n const rotation = frameState.viewState.rotation;\n const pixelRatio = frameState.pixelRatio;\n const width = Math.round((getWidth(extent) / resolution) * pixelRatio);\n const height = Math.round((getHeight(extent) / resolution) * pixelRatio);\n // set forward and inverse pixel transforms\n composeTransform(\n this.pixelTransform,\n frameState.size[0] / 2,\n frameState.size[1] / 2,\n 1 / pixelRatio,\n 1 / pixelRatio,\n rotation,\n -width / 2,\n -height / 2,\n );\n makeInverse(this.inversePixelTransform, this.pixelTransform);\n\n const canvasTransform = toTransformString(this.pixelTransform);\n this.useContainer(target, canvasTransform, this.getBackground(frameState));\n if (!this.containerReused) {\n const canvas = this.context.canvas;\n if (canvas.width != width || canvas.height != height) {\n canvas.width = width;\n canvas.height = height;\n } else {\n this.context.clearRect(0, 0, width, height);\n }\n if (\n canvasTransform !==\n /** @type {HTMLCanvasElement} */ (canvas).style.transform\n ) {\n /** @type {HTMLCanvasElement} */ (canvas).style.transform =\n canvasTransform;\n }\n }\n }\n\n /**\n * @param {import(\"../../render/EventType.js\").default} type Event type.\n * @param {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} context Context.\n * @param {import(\"../../Map.js\").FrameState} frameState Frame state.\n * @private\n */\n dispatchRenderEvent_(type, context, frameState) {\n const layer = this.getLayer();\n if (layer.hasListener(type)) {\n const event = new RenderEvent(\n type,\n this.inversePixelTransform,\n frameState,\n context,\n );\n layer.dispatchEvent(event);\n }\n }\n\n /**\n * @param {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} context Context.\n * @param {import(\"../../Map.js\").FrameState} frameState Frame state.\n * @protected\n */\n preRender(context, frameState) {\n this.frameState = frameState;\n if (frameState.declutter) {\n return;\n }\n this.dispatchRenderEvent_(RenderEventType.PRERENDER, context, frameState);\n }\n\n /**\n * @param {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} context Context.\n * @param {import(\"../../Map.js\").FrameState} frameState Frame state.\n * @protected\n */\n postRender(context, frameState) {\n if (frameState.declutter) {\n return;\n }\n this.dispatchRenderEvent_(RenderEventType.POSTRENDER, context, frameState);\n }\n\n /**\n * @param {import(\"../../Map.js\").FrameState} frameState Frame state.\n */\n renderDeferredInternal(frameState) {}\n\n /**\n * @param {import(\"../../Map.js\").FrameState} frameState Frame state.\n * @return {import('../../render/canvas/ZIndexContext.js').ZIndexContextProxy} Context.\n */\n getRenderContext(frameState) {\n if (frameState.declutter && !this.deferredContext_) {\n this.deferredContext_ = new ZIndexContext();\n }\n return frameState.declutter\n ? this.deferredContext_.getContext()\n : this.context;\n }\n\n /**\n * @param {import(\"../../Map.js\").FrameState} frameState Frame state.\n * @override\n */\n renderDeferred(frameState) {\n if (!frameState.declutter) {\n return;\n }\n this.dispatchRenderEvent_(\n RenderEventType.PRERENDER,\n this.context,\n frameState,\n );\n if (frameState.declutter && this.deferredContext_) {\n this.deferredContext_.draw(this.context);\n this.deferredContext_.clear();\n }\n this.renderDeferredInternal(frameState);\n this.dispatchRenderEvent_(\n RenderEventType.POSTRENDER,\n this.context,\n frameState,\n );\n }\n\n /**\n * Creates a transform for rendering to an element that will be rotated after rendering.\n * @param {import(\"../../coordinate.js\").Coordinate} center Center.\n * @param {number} resolution Resolution.\n * @param {number} rotation Rotation.\n * @param {number} pixelRatio Pixel ratio.\n * @param {number} width Width of the rendered element (in pixels).\n * @param {number} height Height of the rendered element (in pixels).\n * @param {number} offsetX Offset on the x-axis in view coordinates.\n * @protected\n * @return {!import(\"../../transform.js\").Transform} Transform.\n */\n getRenderTransform(\n center,\n resolution,\n rotation,\n pixelRatio,\n width,\n height,\n offsetX,\n ) {\n const dx1 = width / 2;\n const dy1 = height / 2;\n const sx = pixelRatio / resolution;\n const sy = -sx;\n const dx2 = -center[0] + offsetX;\n const dy2 = -center[1];\n return composeTransform(\n this.tempTransform,\n dx1,\n dy1,\n sx,\n sy,\n -rotation,\n dx2,\n dy2,\n );\n }\n\n /**\n * Clean up.\n * @override\n */\n disposeInternal() {\n delete this.frameState;\n super.disposeInternal();\n }\n}\n\nexport default CanvasLayerRenderer;\n","/**\n * @module ol/renderer/canvas/ImageLayer\n */\nimport ImageState from '../../ImageState.js';\nimport ViewHint from '../../ViewHint.js';\nimport {\n containsCoordinate,\n containsExtent,\n getHeight,\n getIntersection,\n getWidth,\n intersects as intersectsExtent,\n isEmpty,\n} from '../../extent.js';\nimport {fromUserExtent} from '../../proj.js';\nimport {\n apply as applyTransform,\n compose as composeTransform,\n} from '../../transform.js';\nimport CanvasLayerRenderer from './Layer.js';\n\n/**\n * @classdesc\n * Canvas renderer for image layers.\n * @api\n */\nclass CanvasImageLayerRenderer extends CanvasLayerRenderer {\n /**\n * @param {import(\"../../layer/Image.js\").default} imageLayer Image layer.\n */\n constructor(imageLayer) {\n super(imageLayer);\n\n /**\n * @protected\n * @type {?import(\"../../Image.js\").default}\n */\n this.image = null;\n\n /**\n * @private\n * @type {number}\n */\n this.renderedSourceRevision_ = 0;\n }\n\n /**\n * @return {import('../../DataTile.js').ImageLike} Image.\n */\n getImage() {\n return !this.image ? null : this.image.getImage();\n }\n\n /**\n * Determine whether render should be called.\n * @param {import(\"../../Map.js\").FrameState} frameState Frame state.\n * @return {boolean} Layer is ready to be rendered.\n * @override\n */\n prepareFrame(frameState) {\n const layerState = frameState.layerStatesArray[frameState.layerIndex];\n const pixelRatio = frameState.pixelRatio;\n const viewState = frameState.viewState;\n const viewResolution = viewState.resolution;\n\n const imageSource = this.getLayer().getSource();\n\n const hints = frameState.viewHints;\n\n let renderedExtent = frameState.extent;\n if (layerState.extent !== undefined) {\n renderedExtent = getIntersection(\n renderedExtent,\n fromUserExtent(layerState.extent, viewState.projection),\n );\n }\n\n if (\n !hints[ViewHint.ANIMATING] &&\n !hints[ViewHint.INTERACTING] &&\n !isEmpty(renderedExtent)\n ) {\n if (imageSource) {\n if (\n !this.getLayer().rendered &&\n this.renderedSourceRevision_ !== imageSource.getRevision()\n ) {\n this.image = null;\n }\n this.renderedSourceRevision_ = imageSource.getRevision();\n\n const projection = viewState.projection;\n const image = imageSource.getImage(\n renderedExtent,\n viewResolution,\n pixelRatio,\n projection,\n );\n if (image) {\n if (this.loadImage(image)) {\n this.image = image;\n } else if (image.getState() === ImageState.EMPTY) {\n this.image = null;\n }\n }\n } else {\n this.image = null;\n }\n }\n\n return !!this.image;\n }\n\n /**\n * @param {import(\"../../pixel.js\").Pixel} pixel Pixel.\n * @return {Uint8ClampedArray} Data at the pixel location.\n * @override\n */\n getData(pixel) {\n const frameState = this.frameState;\n if (!frameState) {\n return null;\n }\n\n const layer = this.getLayer();\n const coordinate = applyTransform(\n frameState.pixelToCoordinateTransform,\n pixel.slice(),\n );\n\n const layerExtent = layer.getExtent();\n if (layerExtent) {\n if (!containsCoordinate(layerExtent, coordinate)) {\n return null;\n }\n }\n\n const imageExtent = this.image.getExtent();\n const img = this.image.getImage();\n\n const imageMapWidth = getWidth(imageExtent);\n const col = Math.floor(\n img.width * ((coordinate[0] - imageExtent[0]) / imageMapWidth),\n );\n if (col < 0 || col >= img.width) {\n return null;\n }\n\n const imageMapHeight = getHeight(imageExtent);\n const row = Math.floor(\n img.height * ((imageExtent[3] - coordinate[1]) / imageMapHeight),\n );\n if (row < 0 || row >= img.height) {\n return null;\n }\n\n return this.getImageData(img, col, row);\n }\n\n /**\n * Render the layer.\n * @param {import(\"../../Map.js\").FrameState} frameState Frame state.\n * @param {HTMLElement} target Target that may be used to render content to.\n * @return {HTMLElement} The rendered element.\n * @override\n */\n renderFrame(frameState, target) {\n const image = this.image;\n const imageExtent = image.getExtent();\n const imageResolution = image.getResolution();\n const [imageResolutionX, imageResolutionY] = Array.isArray(imageResolution)\n ? imageResolution\n : [imageResolution, imageResolution];\n const imagePixelRatio = image.getPixelRatio();\n const layerState = frameState.layerStatesArray[frameState.layerIndex];\n const pixelRatio = frameState.pixelRatio;\n const viewState = frameState.viewState;\n const viewCenter = viewState.center;\n const viewResolution = viewState.resolution;\n const scaleX =\n (pixelRatio * imageResolutionX) / (viewResolution * imagePixelRatio);\n const scaleY =\n (pixelRatio * imageResolutionY) / (viewResolution * imagePixelRatio);\n\n this.prepareContainer(frameState, target);\n\n // desired dimensions of the canvas in pixels\n const width = this.context.canvas.width;\n const height = this.context.canvas.height;\n\n const context = this.getRenderContext(frameState);\n\n // clipped rendering if layer extent is set\n let clipped = false;\n let render = true;\n if (layerState.extent) {\n const layerExtent = fromUserExtent(\n layerState.extent,\n viewState.projection,\n );\n render = intersectsExtent(layerExtent, frameState.extent);\n clipped = render && !containsExtent(layerExtent, frameState.extent);\n if (clipped) {\n this.clipUnrotated(context, frameState, layerExtent);\n }\n }\n\n const img = image.getImage();\n\n const transform = composeTransform(\n this.tempTransform,\n width / 2,\n height / 2,\n scaleX,\n scaleY,\n 0,\n (imagePixelRatio * (imageExtent[0] - viewCenter[0])) / imageResolutionX,\n (imagePixelRatio * (viewCenter[1] - imageExtent[3])) / imageResolutionY,\n );\n\n this.renderedResolution = (imageResolutionY * pixelRatio) / imagePixelRatio;\n\n const dw = img.width * transform[0];\n const dh = img.height * transform[3];\n\n if (!this.getLayer().getSource().getInterpolate()) {\n context.imageSmoothingEnabled = false;\n }\n\n this.preRender(context, frameState);\n if (render && dw >= 0.5 && dh >= 0.5) {\n const dx = transform[4];\n const dy = transform[5];\n const opacity = layerState.opacity;\n if (opacity !== 1) {\n context.save();\n context.globalAlpha = opacity;\n }\n context.drawImage(img, 0, 0, +img.width, +img.height, dx, dy, dw, dh);\n if (opacity !== 1) {\n context.restore();\n }\n }\n this.postRender(this.context, frameState);\n\n if (clipped) {\n context.restore();\n }\n context.imageSmoothingEnabled = true;\n return this.container;\n }\n}\n\nexport default CanvasImageLayerRenderer;\n","/**\n * @module ol/ObjectEventType\n */\n\n/**\n * @enum {string}\n */\nexport default {\n /**\n * Triggered when a property is changed.\n * @event module:ol/Object.ObjectEvent#propertychange\n * @api\n */\n PROPERTYCHANGE: 'propertychange',\n};\n\n/**\n * @typedef {'propertychange'} Types\n */\n","/**\n * @module ol/Object\n */\nimport ObjectEventType from './ObjectEventType.js';\nimport Observable from './Observable.js';\nimport Event from './events/Event.js';\nimport {isEmpty} from './obj.js';\nimport {getUid} from './util.js';\n\n/**\n * @classdesc\n * Events emitted by {@link module:ol/Object~BaseObject} instances are instances of this type.\n */\nexport class ObjectEvent extends Event {\n /**\n * @param {string} type The event type.\n * @param {string} key The property name.\n * @param {*} oldValue The old value for `key`.\n */\n constructor(type, key, oldValue) {\n super(type);\n\n /**\n * The name of the property whose value is changing.\n * @type {string}\n * @api\n */\n this.key = key;\n\n /**\n * The old value. To get the new value use `e.target.get(e.key)` where\n * `e` is the event object.\n * @type {*}\n * @api\n */\n this.oldValue = oldValue;\n }\n}\n\n/***\n * @template Return\n * @typedef {import(\"./Observable\").OnSignature<import(\"./Observable\").EventTypes, import(\"./events/Event.js\").default, Return> &\n * import(\"./Observable\").OnSignature<import(\"./ObjectEventType\").Types, ObjectEvent, Return> &\n * import(\"./Observable\").CombinedOnSignature<import(\"./Observable\").EventTypes|import(\"./ObjectEventType\").Types, Return>} ObjectOnSignature\n */\n\n/**\n * @classdesc\n * Abstract base class; normally only used for creating subclasses and not\n * instantiated in apps.\n * Most non-trivial classes inherit from this.\n *\n * This extends {@link module:ol/Observable~Observable} with observable\n * properties, where each property is observable as well as the object as a\n * whole.\n *\n * Classes that inherit from this have pre-defined properties, to which you can\n * add your owns. The pre-defined properties are listed in this documentation as\n * 'Observable Properties', and have their own accessors; for example,\n * {@link module:ol/Map~Map} has a `target` property, accessed with\n * `getTarget()` and changed with `setTarget()`. Not all properties are however\n * settable. There are also general-purpose accessors `get()` and `set()`. For\n * example, `get('target')` is equivalent to `getTarget()`.\n *\n * The `set` accessors trigger a change event, and you can monitor this by\n * registering a listener. For example, {@link module:ol/View~View} has a\n * `center` property, so `view.on('change:center', function(evt) {...});` would\n * call the function whenever the value of the center property changes. Within\n * the function, `evt.target` would be the view, so `evt.target.getCenter()`\n * would return the new center.\n *\n * You can add your own observable properties with\n * `object.set('prop', 'value')`, and retrieve that with `object.get('prop')`.\n * You can listen for changes on that property value with\n * `object.on('change:prop', listener)`. You can get a list of all\n * properties with {@link module:ol/Object~BaseObject#getProperties}.\n *\n * Note that the observable properties are separate from standard JS properties.\n * You can, for example, give your map object a title with\n * `map.title='New title'` and with `map.set('title', 'Another title')`. The\n * first will be a `hasOwnProperty`; the second will appear in\n * `getProperties()`. Only the second is observable.\n *\n * Properties can be deleted by using the unset method. E.g.\n * object.unset('foo').\n *\n * @fires ObjectEvent\n * @template {Object<string, *>} [Properties=Object<string, *>]\n * @api\n */\nclass BaseObject extends Observable {\n /**\n * @param {NoInfer<Properties>} [values] An object with key-value pairs.\n */\n constructor(values) {\n super();\n\n /***\n * @type {ObjectOnSignature<import(\"./events\").EventsKey>}\n */\n this.on;\n\n /***\n * @type {ObjectOnSignature<import(\"./events\").EventsKey>}\n */\n this.once;\n\n /***\n * @type {ObjectOnSignature<void>}\n */\n this.un;\n\n // Call {@link module:ol/util.getUid} to ensure that the order of objects' ids is\n // the same as the order in which they were created. This also helps to\n // ensure that object properties are always added in the same order, which\n // helps many JavaScript engines generate faster code.\n getUid(this);\n\n /**\n * @private\n * @type {Partial<NoInfer<Properties>>|null}\n */\n this.values_ = null;\n\n if (values !== undefined) {\n this.setProperties(values);\n }\n }\n\n /**\n * Gets a value.\n * @param {string} key Key name.\n * @return {*} Value.\n * @api\n */\n get(key) {\n let value;\n if (this.values_ && this.values_.hasOwnProperty(key)) {\n value = this.values_[key];\n }\n return value;\n }\n\n /**\n * Get a list of object property names.\n * @return {Array<string>} List of property names.\n * @api\n */\n getKeys() {\n return (this.values_ && Object.keys(this.values_)) || [];\n }\n\n /**\n * Get an object of all property names and values.\n * @return {NoInfer<Properties>} Object.\n * @api\n */\n getProperties() {\n return /** @type {NoInfer<Properties>} */ (\n (this.values_ && Object.assign({}, this.values_)) || {}\n );\n }\n\n /**\n * Get an object of all property names and values.\n * @return {Partial<NoInfer<Properties>>?} Object.\n */\n getPropertiesInternal() {\n return this.values_;\n }\n\n /**\n * @return {boolean} The object has properties.\n */\n hasProperties() {\n return !!this.values_;\n }\n\n /**\n * @param {string} key Key name.\n * @param {*} oldValue Old value.\n */\n notify(key, oldValue) {\n let eventType;\n eventType = `change:${key}`;\n if (this.hasListener(eventType)) {\n this.dispatchEvent(new ObjectEvent(eventType, key, oldValue));\n }\n eventType = ObjectEventType.PROPERTYCHANGE;\n if (this.hasListener(eventType)) {\n this.dispatchEvent(new ObjectEvent(eventType, key, oldValue));\n }\n }\n\n /**\n * @param {string} key Key name.\n * @param {import(\"./events.js\").Listener} listener Listener.\n */\n addChangeListener(key, listener) {\n this.addEventListener(`change:${key}`, listener);\n }\n\n /**\n * @param {string} key Key name.\n * @param {import(\"./events.js\").Listener} listener Listener.\n */\n removeChangeListener(key, listener) {\n this.removeEventListener(`change:${key}`, listener);\n }\n\n /**\n * Sets a value.\n * @param {string} key Key name.\n * @param {*} value Value.\n * @param {boolean} [silent] Update without triggering an event.\n * @api\n */\n set(key, value, silent) {\n const values = this.values_ || (this.values_ = {});\n if (silent) {\n values[key] = value;\n } else {\n const oldValue = values[key];\n values[key] = value;\n if (oldValue !== value) {\n this.notify(key, oldValue);\n }\n }\n }\n\n /**\n * Sets a collection of key-value pairs. Note that this changes any existing\n * properties and adds new ones (it does not remove any existing properties).\n * @param {Partial<NoInfer<Properties>>} values Values.\n * @param {boolean} [silent] Update without triggering an event.\n * @api\n */\n setProperties(values, silent) {\n for (const key in values) {\n this.set(key, values[key], silent);\n }\n }\n\n /**\n * Apply any properties from another object without triggering events.\n * @param {BaseObject} source The source object.\n * @protected\n */\n applyProperties(source) {\n if (!source.values_) {\n return;\n }\n Object.assign(this.values_ || (this.values_ = {}), source.values_);\n }\n\n /**\n * Unsets a property.\n * @param {string} key Key name.\n * @param {boolean} [silent] Unset without triggering an event.\n * @api\n */\n unset(key, silent) {\n if (this.values_ && key in this.values_) {\n const oldValue = this.values_[key];\n delete this.values_[key];\n if (isEmpty(this.values_)) {\n this.values_ = null;\n }\n if (!silent) {\n this.notify(key, oldValue);\n }\n }\n }\n}\n\nexport default BaseObject;\n","/**\n * @module ol/ViewProperty\n */\n\n/**\n * @enum {string}\n */\nexport default {\n CENTER: 'center',\n RESOLUTION: 'resolution',\n ROTATION: 'rotation',\n};\n","/**\n * @module ol/centerconstraint\n */\nimport {clamp} from './math.js';\n\n/**\n * @typedef {function((import(\"./coordinate.js\").Coordinate|undefined), number, import(\"./size.js\").Size, boolean=, Array<number>=): (import(\"./coordinate.js\").Coordinate|undefined)} Type\n */\n\n/**\n * @param {import(\"./extent.js\").Extent} extent Extent.\n * @param {boolean} onlyCenter If true, the constraint will only apply to the view center.\n * @param {boolean} smooth If true, the view will be able to go slightly out of the given extent\n * (only during interaction and animation).\n * @return {Type} The constraint.\n */\nexport function createExtent(extent, onlyCenter, smooth) {\n return (\n /**\n * @param {import(\"./coordinate.js\").Coordinate|undefined} center Center.\n * @param {number|undefined} resolution Resolution.\n * @param {import(\"./size.js\").Size} size Viewport size; unused if `onlyCenter` was specified.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @param {Array<number>} [centerShift] Shift between map center and viewport center.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} Center.\n */\n function (center, resolution, size, isMoving, centerShift) {\n if (!center) {\n return undefined;\n }\n if (!resolution && !onlyCenter) {\n return center;\n }\n const viewWidth = onlyCenter ? 0 : size[0] * resolution;\n const viewHeight = onlyCenter ? 0 : size[1] * resolution;\n const shiftX = centerShift ? centerShift[0] : 0;\n const shiftY = centerShift ? centerShift[1] : 0;\n let minX = extent[0] + viewWidth / 2 + shiftX;\n let maxX = extent[2] - viewWidth / 2 + shiftX;\n let minY = extent[1] + viewHeight / 2 + shiftY;\n let maxY = extent[3] - viewHeight / 2 + shiftY;\n\n // note: when zooming out of bounds, min and max values for x and y may\n // end up inverted (min > max); this has to be accounted for\n if (minX > maxX) {\n minX = (maxX + minX) / 2;\n maxX = minX;\n }\n if (minY > maxY) {\n minY = (maxY + minY) / 2;\n maxY = minY;\n }\n\n let x = clamp(center[0], minX, maxX);\n let y = clamp(center[1], minY, maxY);\n\n // during an interaction, allow some overscroll\n if (isMoving && smooth && resolution) {\n const ratio = 30 * resolution;\n x +=\n -ratio * Math.log(1 + Math.max(0, minX - center[0]) / ratio) +\n ratio * Math.log(1 + Math.max(0, center[0] - maxX) / ratio);\n y +=\n -ratio * Math.log(1 + Math.max(0, minY - center[1]) / ratio) +\n ratio * Math.log(1 + Math.max(0, center[1] - maxY) / ratio);\n }\n\n return [x, y];\n }\n );\n}\n\n/**\n * @param {import(\"./coordinate.js\").Coordinate} [center] Center.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} Center.\n */\nexport function none(center) {\n return center;\n}\n","/**\n * @module ol/easing\n */\n\n/**\n * Start slow and speed up.\n * @param {number} t Input between 0 and 1.\n * @return {number} Output between 0 and 1.\n * @api\n */\nexport function easeIn(t) {\n return Math.pow(t, 3);\n}\n\n/**\n * Start fast and slow down.\n * @param {number} t Input between 0 and 1.\n * @return {number} Output between 0 and 1.\n * @api\n */\nexport function easeOut(t) {\n return 1 - easeIn(1 - t);\n}\n\n/**\n * Start slow, speed up, and then slow down again.\n * @param {number} t Input between 0 and 1.\n * @return {number} Output between 0 and 1.\n * @api\n */\nexport function inAndOut(t) {\n return 3 * t * t - 2 * t * t * t;\n}\n\n/**\n * Maintain a constant speed over time.\n * @param {number} t Input between 0 and 1.\n * @return {number} Output between 0 and 1.\n * @api\n */\nexport function linear(t) {\n return t;\n}\n\n/**\n * Start slow, speed up, and at the very end slow down again. This has the\n * same general behavior as {@link module:ol/easing.inAndOut}, but the final\n * slowdown is delayed.\n * @param {number} t Input between 0 and 1.\n * @return {number} Output between 0 and 1.\n * @api\n */\nexport function upAndDown(t) {\n if (t < 0.5) {\n return inAndOut(2 * t);\n }\n return 1 - inAndOut(2 * (t - 0.5));\n}\n","/**\n * @module ol/geom/flat/transform\n */\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {import(\"../../transform.js\").Transform} transform Transform.\n * @param {Array<number>} [dest] Destination.\n * @param {number} [destinationStride] Stride of destination coordinates; if unspecified, assumed to be 2.\n * @return {Array<number>} Transformed coordinates.\n */\nexport function transform2D(\n flatCoordinates,\n offset,\n end,\n stride,\n transform,\n dest,\n destinationStride,\n) {\n dest = dest ? dest : [];\n destinationStride = destinationStride ? destinationStride : 2;\n let i = 0;\n for (let j = offset; j < end; j += stride) {\n const x = flatCoordinates[j];\n const y = flatCoordinates[j + 1];\n dest[i++] = transform[0] * x + transform[2] * y + transform[4];\n dest[i++] = transform[1] * x + transform[3] * y + transform[5];\n\n for (let k = 2; k < destinationStride; k++) {\n dest[i++] = flatCoordinates[j + k];\n }\n }\n\n if (dest && dest.length != i) {\n dest.length = i;\n }\n return dest;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} angle Angle.\n * @param {Array<number>} anchor Rotation anchor point.\n * @param {Array<number>} [dest] Destination.\n * @return {Array<number>} Transformed coordinates.\n */\nexport function rotate(\n flatCoordinates,\n offset,\n end,\n stride,\n angle,\n anchor,\n dest,\n) {\n dest = dest ? dest : [];\n const cos = Math.cos(angle);\n const sin = Math.sin(angle);\n const anchorX = anchor[0];\n const anchorY = anchor[1];\n let i = 0;\n for (let j = offset; j < end; j += stride) {\n const deltaX = flatCoordinates[j] - anchorX;\n const deltaY = flatCoordinates[j + 1] - anchorY;\n dest[i++] = anchorX + deltaX * cos - deltaY * sin;\n dest[i++] = anchorY + deltaX * sin + deltaY * cos;\n for (let k = j + 2; k < j + stride; ++k) {\n dest[i++] = flatCoordinates[k];\n }\n }\n if (dest && dest.length != i) {\n dest.length = i;\n }\n return dest;\n}\n\n/**\n * Scale the coordinates.\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} sx Scale factor in the x-direction.\n * @param {number} sy Scale factor in the y-direction.\n * @param {Array<number>} anchor Scale anchor point.\n * @param {Array<number>} [dest] Destination.\n * @return {Array<number>} Transformed coordinates.\n */\nexport function scale(\n flatCoordinates,\n offset,\n end,\n stride,\n sx,\n sy,\n anchor,\n dest,\n) {\n dest = dest ? dest : [];\n const anchorX = anchor[0];\n const anchorY = anchor[1];\n let i = 0;\n for (let j = offset; j < end; j += stride) {\n const deltaX = flatCoordinates[j] - anchorX;\n const deltaY = flatCoordinates[j + 1] - anchorY;\n dest[i++] = anchorX + sx * deltaX;\n dest[i++] = anchorY + sy * deltaY;\n for (let k = j + 2; k < j + stride; ++k) {\n dest[i++] = flatCoordinates[k];\n }\n }\n if (dest && dest.length != i) {\n dest.length = i;\n }\n return dest;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} deltaX Delta X.\n * @param {number} deltaY Delta Y.\n * @param {Array<number>} [dest] Destination.\n * @return {Array<number>} Transformed coordinates.\n */\nexport function translate(\n flatCoordinates,\n offset,\n end,\n stride,\n deltaX,\n deltaY,\n dest,\n) {\n dest = dest ? dest : [];\n let i = 0;\n for (let j = offset; j < end; j += stride) {\n dest[i++] = flatCoordinates[j] + deltaX;\n dest[i++] = flatCoordinates[j + 1] + deltaY;\n for (let k = j + 2; k < j + stride; ++k) {\n dest[i++] = flatCoordinates[k];\n }\n }\n if (dest && dest.length != i) {\n dest.length = i;\n }\n return dest;\n}\n","/**\n * @module ol/geom/Geometry\n */\nimport BaseObject from '../Object.js';\nimport {\n createEmpty,\n createOrUpdateEmpty,\n getHeight,\n returnOrUpdate,\n} from '../extent.js';\nimport {memoizeOne} from '../functions.js';\nimport {get as getProjection, getTransform} from '../proj.js';\nimport {\n compose as composeTransform,\n create as createTransform,\n} from '../transform.js';\nimport {abstract} from '../util.js';\nimport {transform2D} from './flat/transform.js';\n\n/**\n * @typedef {'XY' | 'XYZ' | 'XYM' | 'XYZM'} GeometryLayout\n * The coordinate layout for geometries, indicating whether a 3rd or 4th z ('Z')\n * or measure ('M') coordinate is available.\n */\n\n/**\n * @typedef {'Point' | 'LineString' | 'LinearRing' | 'Polygon' | 'MultiPoint' | 'MultiLineString' | 'MultiPolygon' | 'GeometryCollection' | 'Circle'} Type\n * The geometry type. One of `'Point'`, `'LineString'`, `'LinearRing'`,\n * `'Polygon'`, `'MultiPoint'`, `'MultiLineString'`, `'MultiPolygon'`,\n * `'GeometryCollection'`, or `'Circle'`.\n */\n\n/**\n * @type {import(\"../transform.js\").Transform}\n */\nconst tmpTransform = createTransform();\n\n/** @type {import('../coordinate.js').Coordinate} */\nconst tmpPoint = [NaN, NaN];\n\n/**\n * @classdesc\n * Abstract base class; normally only used for creating subclasses and not\n * instantiated in apps.\n * Base class for vector geometries.\n *\n * To get notified of changes to the geometry, register a listener for the\n * generic `change` event on your geometry instance.\n *\n * @abstract\n * @api\n */\nclass Geometry extends BaseObject {\n constructor() {\n super();\n\n /**\n * @private\n * @type {import(\"../extent.js\").Extent}\n */\n this.extent_ = createEmpty();\n\n /**\n * @private\n * @type {number}\n */\n this.extentRevision_ = -1;\n\n /**\n * @protected\n * @type {number}\n */\n this.simplifiedGeometryMaxMinSquaredTolerance = 0;\n\n /**\n * @protected\n * @type {number}\n */\n this.simplifiedGeometryRevision = 0;\n\n /**\n * Get a transformed and simplified version of the geometry.\n * @abstract\n * @param {number} revision The geometry revision.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {import(\"../proj.js\").TransformFunction} [transform] Optional transform function.\n * @return {Geometry} Simplified geometry.\n */\n this.simplifyTransformedInternal = memoizeOne(\n (revision, squaredTolerance, transform) => {\n if (!transform) {\n return this.getSimplifiedGeometry(squaredTolerance);\n }\n const clone = this.clone();\n clone.applyTransform(transform);\n return clone.getSimplifiedGeometry(squaredTolerance);\n },\n );\n }\n\n /**\n * Get a transformed and simplified version of the geometry.\n * @abstract\n * @param {number} squaredTolerance Squared tolerance.\n * @param {import(\"../proj.js\").TransformFunction} [transform] Optional transform function.\n * @return {Geometry} Simplified geometry.\n */\n simplifyTransformed(squaredTolerance, transform) {\n return this.simplifyTransformedInternal(\n this.getRevision(),\n squaredTolerance,\n transform,\n );\n }\n\n /**\n * Make a complete copy of the geometry.\n * @abstract\n * @return {!Geometry} Clone.\n */\n clone() {\n return abstract();\n }\n\n /**\n * @abstract\n * @param {number} x X.\n * @param {number} y Y.\n * @param {import(\"../coordinate.js\").Coordinate} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @return {number} Minimum squared distance.\n */\n closestPointXY(x, y, closestPoint, minSquaredDistance) {\n return abstract();\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n */\n containsXY(x, y) {\n return this.closestPointXY(x, y, tmpPoint, Number.MIN_VALUE) === 0;\n }\n\n /**\n * Return the closest point of the geometry to the passed point as\n * {@link module:ol/coordinate~Coordinate coordinate}.\n * @param {import(\"../coordinate.js\").Coordinate} point Point.\n * @param {import(\"../coordinate.js\").Coordinate} [closestPoint] Closest point.\n * @return {import(\"../coordinate.js\").Coordinate} Closest point.\n * @api\n */\n getClosestPoint(point, closestPoint) {\n closestPoint = closestPoint ? closestPoint : [NaN, NaN];\n this.closestPointXY(point[0], point[1], closestPoint, Infinity);\n return closestPoint;\n }\n\n /**\n * Returns true if this geometry includes the specified coordinate. If the\n * coordinate is on the boundary of the geometry, returns false.\n * @param {import(\"../coordinate.js\").Coordinate} coordinate Coordinate.\n * @return {boolean} Contains coordinate.\n * @api\n */\n intersectsCoordinate(coordinate) {\n return this.containsXY(coordinate[0], coordinate[1]);\n }\n\n /**\n * @abstract\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @protected\n * @return {import(\"../extent.js\").Extent} extent Extent.\n */\n computeExtent(extent) {\n return abstract();\n }\n\n /**\n * Get the extent of the geometry.\n * @param {import(\"../extent.js\").Extent} [extent] Extent.\n * @return {import(\"../extent.js\").Extent} extent Extent.\n * @api\n */\n getExtent(extent) {\n if (this.extentRevision_ != this.getRevision()) {\n const extent = this.computeExtent(this.extent_);\n if (isNaN(extent[0]) || isNaN(extent[1])) {\n createOrUpdateEmpty(extent);\n }\n this.extentRevision_ = this.getRevision();\n }\n return returnOrUpdate(this.extent_, extent);\n }\n\n /**\n * Rotate the geometry around a given coordinate. This modifies the geometry\n * coordinates in place.\n * @abstract\n * @param {number} angle Rotation angle in radians.\n * @param {import(\"../coordinate.js\").Coordinate} anchor The rotation center.\n * @api\n */\n rotate(angle, anchor) {\n abstract();\n }\n\n /**\n * Scale the geometry (with an optional origin). This modifies the geometry\n * coordinates in place.\n * @abstract\n * @param {number} sx The scaling factor in the x-direction.\n * @param {number} [sy] The scaling factor in the y-direction (defaults to sx).\n * @param {import(\"../coordinate.js\").Coordinate} [anchor] The scale origin (defaults to the center\n * of the geometry extent).\n * @api\n */\n scale(sx, sy, anchor) {\n abstract();\n }\n\n /**\n * Create a simplified version of this geometry. For linestrings, this uses\n * the [Douglas Peucker](https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm)\n * algorithm. For polygons, a quantization-based\n * simplification is used to preserve topology.\n * @param {number} tolerance The tolerance distance for simplification.\n * @return {Geometry} A new, simplified version of the original geometry.\n * @api\n */\n simplify(tolerance) {\n return this.getSimplifiedGeometry(tolerance * tolerance);\n }\n\n /**\n * Create a simplified version of this geometry using the Douglas Peucker\n * algorithm.\n * See https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm.\n * @abstract\n * @param {number} squaredTolerance Squared tolerance.\n * @return {Geometry} Simplified geometry.\n */\n getSimplifiedGeometry(squaredTolerance) {\n return abstract();\n }\n\n /**\n * Get the type of this geometry.\n * @abstract\n * @return {Type} Geometry type.\n */\n getType() {\n return abstract();\n }\n\n /**\n * Apply a transform function to the coordinates of the geometry.\n * The geometry is modified in place.\n * If you do not want the geometry modified in place, first `clone()` it and\n * then use this function on the clone.\n * @abstract\n * @param {import(\"../proj.js\").TransformFunction} transformFn Transform function.\n * Called with a flat array of geometry coordinates.\n */\n applyTransform(transformFn) {\n abstract();\n }\n\n /**\n * Test if the geometry and the passed extent intersect.\n * @abstract\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @return {boolean} `true` if the geometry and the extent intersect.\n */\n intersectsExtent(extent) {\n return abstract();\n }\n\n /**\n * Translate the geometry. This modifies the geometry coordinates in place. If\n * instead you want a new geometry, first `clone()` this geometry.\n * @abstract\n * @param {number} deltaX Delta X.\n * @param {number} deltaY Delta Y.\n * @api\n */\n translate(deltaX, deltaY) {\n abstract();\n }\n\n /**\n * Transform each coordinate of the geometry from one coordinate reference\n * system to another. The geometry is modified in place.\n * For example, a line will be transformed to a line and a circle to a circle.\n * If you do not want the geometry modified in place, first `clone()` it and\n * then use this function on the clone.\n *\n * @param {import(\"../proj.js\").ProjectionLike} source The current projection. Can be a\n * string identifier or a {@link module:ol/proj/Projection~Projection} object.\n * @param {import(\"../proj.js\").ProjectionLike} destination The desired projection. Can be a\n * string identifier or a {@link module:ol/proj/Projection~Projection} object.\n * @return {this} This geometry. Note that original geometry is\n * modified in place.\n * @api\n */\n transform(source, destination) {\n /** @type {import(\"../proj/Projection.js\").default} */\n const sourceProj = getProjection(source);\n const transformFn =\n sourceProj.getUnits() == 'tile-pixels'\n ? function (inCoordinates, outCoordinates, stride) {\n const pixelExtent = sourceProj.getExtent();\n const projectedExtent = sourceProj.getWorldExtent();\n const scale = getHeight(projectedExtent) / getHeight(pixelExtent);\n composeTransform(\n tmpTransform,\n projectedExtent[0],\n projectedExtent[3],\n scale,\n -scale,\n 0,\n 0,\n 0,\n );\n const transformed = transform2D(\n inCoordinates,\n 0,\n inCoordinates.length,\n stride,\n tmpTransform,\n outCoordinates,\n );\n const projTransform = getTransform(sourceProj, destination);\n if (projTransform) {\n return projTransform(transformed, transformed, stride);\n }\n return transformed;\n }\n : getTransform(sourceProj, destination);\n this.applyTransform(transformFn);\n return this;\n }\n}\n\nexport default Geometry;\n","/**\n * @module ol/geom/SimpleGeometry\n */\nimport {createOrUpdateFromFlatCoordinates, getCenter} from '../extent.js';\nimport {abstract} from '../util.js';\nimport Geometry from './Geometry.js';\nimport {rotate, scale, transform2D, translate} from './flat/transform.js';\n\n/**\n * @classdesc\n * Abstract base class; only used for creating subclasses; do not instantiate\n * in apps, as cannot be rendered.\n *\n * @abstract\n * @api\n */\nclass SimpleGeometry extends Geometry {\n constructor() {\n super();\n\n /**\n * @protected\n * @type {import(\"./Geometry.js\").GeometryLayout}\n */\n this.layout = 'XY';\n\n /**\n * @protected\n * @type {number}\n */\n this.stride = 2;\n\n /**\n * @protected\n * @type {Array<number>}\n */\n this.flatCoordinates;\n }\n\n /**\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @protected\n * @return {import(\"../extent.js\").Extent} extent Extent.\n * @override\n */\n computeExtent(extent) {\n return createOrUpdateFromFlatCoordinates(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n extent,\n );\n }\n\n /**\n * @abstract\n * @return {Array<*> | null} Coordinates.\n */\n getCoordinates() {\n return abstract();\n }\n\n /**\n * Return the first coordinate of the geometry.\n * @return {import(\"../coordinate.js\").Coordinate} First coordinate.\n * @api\n */\n getFirstCoordinate() {\n return this.flatCoordinates.slice(0, this.stride);\n }\n\n /**\n * @return {Array<number>} Flat coordinates.\n */\n getFlatCoordinates() {\n return this.flatCoordinates;\n }\n\n /**\n * Return the last coordinate of the geometry.\n * @return {import(\"../coordinate.js\").Coordinate} Last point.\n * @api\n */\n getLastCoordinate() {\n return this.flatCoordinates.slice(\n this.flatCoordinates.length - this.stride,\n );\n }\n\n /**\n * Return the {@link import(\"./Geometry.js\").GeometryLayout layout} of the geometry.\n * @return {import(\"./Geometry.js\").GeometryLayout} Layout.\n * @api\n */\n getLayout() {\n return this.layout;\n }\n\n /**\n * Create a simplified version of this geometry using the Douglas Peucker algorithm.\n * @param {number} squaredTolerance Squared tolerance.\n * @return {SimpleGeometry} Simplified geometry.\n * @override\n */\n getSimplifiedGeometry(squaredTolerance) {\n if (this.simplifiedGeometryRevision !== this.getRevision()) {\n this.simplifiedGeometryMaxMinSquaredTolerance = 0;\n this.simplifiedGeometryRevision = this.getRevision();\n }\n // If squaredTolerance is negative or if we know that simplification will not\n // have any effect then just return this.\n if (\n squaredTolerance < 0 ||\n (this.simplifiedGeometryMaxMinSquaredTolerance !== 0 &&\n squaredTolerance <= this.simplifiedGeometryMaxMinSquaredTolerance)\n ) {\n return this;\n }\n\n const simplifiedGeometry =\n this.getSimplifiedGeometryInternal(squaredTolerance);\n const simplifiedFlatCoordinates = simplifiedGeometry.getFlatCoordinates();\n if (simplifiedFlatCoordinates.length < this.flatCoordinates.length) {\n return simplifiedGeometry;\n }\n // Simplification did not actually remove any coordinates. We now know\n // that any calls to getSimplifiedGeometry with a squaredTolerance less\n // than or equal to the current squaredTolerance will also not have any\n // effect. This allows us to short circuit simplification (saving CPU\n // cycles) and prevents the cache of simplified geometries from filling\n // up with useless identical copies of this geometry (saving memory).\n this.simplifiedGeometryMaxMinSquaredTolerance = squaredTolerance;\n return this;\n }\n\n /**\n * @param {number} squaredTolerance Squared tolerance.\n * @return {SimpleGeometry} Simplified geometry.\n * @protected\n */\n getSimplifiedGeometryInternal(squaredTolerance) {\n return this;\n }\n\n /**\n * @return {number} Stride.\n */\n getStride() {\n return this.stride;\n }\n\n /**\n * @param {import(\"./Geometry.js\").GeometryLayout} layout Layout.\n * @param {Array<number>} flatCoordinates Flat coordinates.\n */\n setFlatCoordinates(layout, flatCoordinates) {\n this.stride = getStrideForLayout(layout);\n this.layout = layout;\n this.flatCoordinates = flatCoordinates;\n }\n\n /**\n * @abstract\n * @param {!Array<*>} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n */\n setCoordinates(coordinates, layout) {\n abstract();\n }\n\n /**\n * @param {import(\"./Geometry.js\").GeometryLayout|undefined} layout Layout.\n * @param {Array<*>} coordinates Coordinates.\n * @param {number} nesting Nesting.\n * @protected\n */\n setLayout(layout, coordinates, nesting) {\n let stride;\n if (layout) {\n stride = getStrideForLayout(layout);\n } else {\n for (let i = 0; i < nesting; ++i) {\n if (coordinates.length === 0) {\n this.layout = 'XY';\n this.stride = 2;\n return;\n }\n coordinates = /** @type {Array<unknown>} */ (coordinates[0]);\n }\n stride = coordinates.length;\n layout = getLayoutForStride(stride);\n }\n this.layout = layout;\n this.stride = stride;\n }\n\n /**\n * Apply a transform function to the coordinates of the geometry.\n * The geometry is modified in place.\n * If you do not want the geometry modified in place, first `clone()` it and\n * then use this function on the clone.\n * @param {import(\"../proj.js\").TransformFunction} transformFn Transform function.\n * Called with a flat array of geometry coordinates.\n * @api\n * @override\n */\n applyTransform(transformFn) {\n if (this.flatCoordinates) {\n transformFn(\n this.flatCoordinates,\n this.flatCoordinates,\n this.layout.startsWith('XYZ') ? 3 : 2,\n this.stride,\n );\n this.changed();\n }\n }\n\n /**\n * Rotate the geometry around a given coordinate. This modifies the geometry\n * coordinates in place.\n * @param {number} angle Rotation angle in counter-clockwise radians.\n * @param {import(\"../coordinate.js\").Coordinate} anchor The rotation center.\n * @api\n * @override\n */\n rotate(angle, anchor) {\n const flatCoordinates = this.getFlatCoordinates();\n if (flatCoordinates) {\n const stride = this.getStride();\n rotate(\n flatCoordinates,\n 0,\n flatCoordinates.length,\n stride,\n angle,\n anchor,\n flatCoordinates,\n );\n this.changed();\n }\n }\n\n /**\n * Scale the geometry (with an optional origin). This modifies the geometry\n * coordinates in place.\n * @param {number} sx The scaling factor in the x-direction.\n * @param {number} [sy] The scaling factor in the y-direction (defaults to sx).\n * @param {import(\"../coordinate.js\").Coordinate} [anchor] The scale origin (defaults to the center\n * of the geometry extent).\n * @api\n * @override\n */\n scale(sx, sy, anchor) {\n if (sy === undefined) {\n sy = sx;\n }\n if (!anchor) {\n anchor = getCenter(this.getExtent());\n }\n const flatCoordinates = this.getFlatCoordinates();\n if (flatCoordinates) {\n const stride = this.getStride();\n scale(\n flatCoordinates,\n 0,\n flatCoordinates.length,\n stride,\n sx,\n sy,\n anchor,\n flatCoordinates,\n );\n this.changed();\n }\n }\n\n /**\n * Translate the geometry. This modifies the geometry coordinates in place. If\n * instead you want a new geometry, first `clone()` this geometry.\n * @param {number} deltaX Delta X.\n * @param {number} deltaY Delta Y.\n * @api\n * @override\n */\n translate(deltaX, deltaY) {\n const flatCoordinates = this.getFlatCoordinates();\n if (flatCoordinates) {\n const stride = this.getStride();\n translate(\n flatCoordinates,\n 0,\n flatCoordinates.length,\n stride,\n deltaX,\n deltaY,\n flatCoordinates,\n );\n this.changed();\n }\n }\n}\n\n/**\n * @param {number} stride Stride.\n * @return {import(\"./Geometry.js\").GeometryLayout} layout Layout.\n */\nexport function getLayoutForStride(stride) {\n let layout;\n if (stride == 2) {\n layout = 'XY';\n } else if (stride == 3) {\n layout = 'XYZ';\n } else if (stride == 4) {\n layout = 'XYZM';\n }\n return /** @type {import(\"./Geometry.js\").GeometryLayout} */ (layout);\n}\n\n/**\n * @param {import(\"./Geometry.js\").GeometryLayout} layout Layout.\n * @return {number} Stride.\n */\nexport function getStrideForLayout(layout) {\n let stride;\n if (layout == 'XY') {\n stride = 2;\n } else if (layout == 'XYZ' || layout == 'XYM') {\n stride = 3;\n } else if (layout == 'XYZM') {\n stride = 4;\n }\n return /** @type {number} */ (stride);\n}\n\n/**\n * @param {SimpleGeometry} simpleGeometry Simple geometry.\n * @param {import(\"../transform.js\").Transform} transform Transform.\n * @param {Array<number>} [dest] Destination.\n * @return {Array<number>} Transformed flat coordinates.\n */\nexport function transformGeom2D(simpleGeometry, transform, dest) {\n const flatCoordinates = simpleGeometry.getFlatCoordinates();\n if (!flatCoordinates) {\n return null;\n }\n const stride = simpleGeometry.getStride();\n return transform2D(\n flatCoordinates,\n 0,\n flatCoordinates.length,\n stride,\n transform,\n dest,\n );\n}\n\nexport default SimpleGeometry;\n","/**\n * @module ol/geom/flat/area\n */\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @return {number} Area.\n */\nexport function linearRing(flatCoordinates, offset, end, stride) {\n let twiceArea = 0;\n const x0 = flatCoordinates[end - stride];\n const y0 = flatCoordinates[end - stride + 1];\n let dx1 = 0;\n let dy1 = 0;\n for (; offset < end; offset += stride) {\n const dx2 = flatCoordinates[offset] - x0;\n const dy2 = flatCoordinates[offset + 1] - y0;\n twiceArea += dy1 * dx2 - dx1 * dy2;\n dx1 = dx2;\n dy1 = dy2;\n }\n return twiceArea / 2;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @return {number} Area.\n */\nexport function linearRings(flatCoordinates, offset, ends, stride) {\n let area = 0;\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n area += linearRing(flatCoordinates, offset, end, stride);\n offset = end;\n }\n return area;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Endss.\n * @param {number} stride Stride.\n * @return {number} Area.\n */\nexport function linearRingss(flatCoordinates, offset, endss, stride) {\n let area = 0;\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n area += linearRings(flatCoordinates, offset, ends, stride);\n offset = ends[ends.length - 1];\n }\n return area;\n}\n","/**\n * @module ol/geom/flat/closest\n */\nimport {lerp, squaredDistance as squaredDx} from '../../math.js';\n\n/**\n * Returns the point on the 2D line segment flatCoordinates[offset1] to\n * flatCoordinates[offset2] that is closest to the point (x, y). Extra\n * dimensions are linearly interpolated.\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset1 Offset 1.\n * @param {number} offset2 Offset 2.\n * @param {number} stride Stride.\n * @param {number} x X.\n * @param {number} y Y.\n * @param {Array<number>} closestPoint Closest point.\n */\nfunction assignClosest(\n flatCoordinates,\n offset1,\n offset2,\n stride,\n x,\n y,\n closestPoint,\n) {\n const x1 = flatCoordinates[offset1];\n const y1 = flatCoordinates[offset1 + 1];\n const dx = flatCoordinates[offset2] - x1;\n const dy = flatCoordinates[offset2 + 1] - y1;\n let offset;\n if (dx === 0 && dy === 0) {\n offset = offset1;\n } else {\n const t = ((x - x1) * dx + (y - y1) * dy) / (dx * dx + dy * dy);\n if (t > 1) {\n offset = offset2;\n } else if (t > 0) {\n for (let i = 0; i < stride; ++i) {\n closestPoint[i] = lerp(\n flatCoordinates[offset1 + i],\n flatCoordinates[offset2 + i],\n t,\n );\n }\n closestPoint.length = stride;\n return;\n } else {\n offset = offset1;\n }\n }\n for (let i = 0; i < stride; ++i) {\n closestPoint[i] = flatCoordinates[offset + i];\n }\n closestPoint.length = stride;\n}\n\n/**\n * Return the squared of the largest distance between any pair of consecutive\n * coordinates.\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} max Max squared delta.\n * @return {number} Max squared delta.\n */\nexport function maxSquaredDelta(flatCoordinates, offset, end, stride, max) {\n let x1 = flatCoordinates[offset];\n let y1 = flatCoordinates[offset + 1];\n for (offset += stride; offset < end; offset += stride) {\n const x2 = flatCoordinates[offset];\n const y2 = flatCoordinates[offset + 1];\n const squaredDelta = squaredDx(x1, y1, x2, y2);\n if (squaredDelta > max) {\n max = squaredDelta;\n }\n x1 = x2;\n y1 = y2;\n }\n return max;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @param {number} max Max squared delta.\n * @return {number} Max squared delta.\n */\nexport function arrayMaxSquaredDelta(\n flatCoordinates,\n offset,\n ends,\n stride,\n max,\n) {\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n max = maxSquaredDelta(flatCoordinates, offset, end, stride, max);\n offset = end;\n }\n return max;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Endss.\n * @param {number} stride Stride.\n * @param {number} max Max squared delta.\n * @return {number} Max squared delta.\n */\nexport function multiArrayMaxSquaredDelta(\n flatCoordinates,\n offset,\n endss,\n stride,\n max,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n max = arrayMaxSquaredDelta(flatCoordinates, offset, ends, stride, max);\n offset = ends[ends.length - 1];\n }\n return max;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} maxDelta Max delta.\n * @param {boolean} isRing Is ring.\n * @param {number} x X.\n * @param {number} y Y.\n * @param {Array<number>} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @param {Array<number>} [tmpPoint] Temporary point object.\n * @return {number} Minimum squared distance.\n */\nexport function assignClosestPoint(\n flatCoordinates,\n offset,\n end,\n stride,\n maxDelta,\n isRing,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n tmpPoint,\n) {\n if (offset == end) {\n return minSquaredDistance;\n }\n let i, squaredDistance;\n if (maxDelta === 0) {\n // All points are identical, so just test the first point.\n squaredDistance = squaredDx(\n x,\n y,\n flatCoordinates[offset],\n flatCoordinates[offset + 1],\n );\n if (squaredDistance < minSquaredDistance) {\n for (i = 0; i < stride; ++i) {\n closestPoint[i] = flatCoordinates[offset + i];\n }\n closestPoint.length = stride;\n return squaredDistance;\n }\n return minSquaredDistance;\n }\n tmpPoint = tmpPoint ? tmpPoint : [NaN, NaN];\n let index = offset + stride;\n while (index < end) {\n assignClosest(\n flatCoordinates,\n index - stride,\n index,\n stride,\n x,\n y,\n tmpPoint,\n );\n squaredDistance = squaredDx(x, y, tmpPoint[0], tmpPoint[1]);\n if (squaredDistance < minSquaredDistance) {\n minSquaredDistance = squaredDistance;\n for (i = 0; i < stride; ++i) {\n closestPoint[i] = tmpPoint[i];\n }\n closestPoint.length = stride;\n index += stride;\n } else {\n // Skip ahead multiple points, because we know that all the skipped\n // points cannot be any closer than the closest point we have found so\n // far. We know this because we know how close the current point is, how\n // close the closest point we have found so far is, and the maximum\n // distance between consecutive points. For example, if we're currently\n // at distance 10, the best we've found so far is 3, and that the maximum\n // distance between consecutive points is 2, then we'll need to skip at\n // least (10 - 3) / 2 == 3 (rounded down) points to have any chance of\n // finding a closer point. We use Math.max(..., 1) to ensure that we\n // always advance at least one point, to avoid an infinite loop.\n index +=\n stride *\n Math.max(\n ((Math.sqrt(squaredDistance) - Math.sqrt(minSquaredDistance)) /\n maxDelta) |\n 0,\n 1,\n );\n }\n }\n if (isRing) {\n // Check the closing segment.\n assignClosest(\n flatCoordinates,\n end - stride,\n offset,\n stride,\n x,\n y,\n tmpPoint,\n );\n squaredDistance = squaredDx(x, y, tmpPoint[0], tmpPoint[1]);\n if (squaredDistance < minSquaredDistance) {\n minSquaredDistance = squaredDistance;\n for (i = 0; i < stride; ++i) {\n closestPoint[i] = tmpPoint[i];\n }\n closestPoint.length = stride;\n }\n }\n return minSquaredDistance;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @param {number} maxDelta Max delta.\n * @param {boolean} isRing Is ring.\n * @param {number} x X.\n * @param {number} y Y.\n * @param {Array<number>} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @param {Array<number>} [tmpPoint] Temporary point object.\n * @return {number} Minimum squared distance.\n */\nexport function assignClosestArrayPoint(\n flatCoordinates,\n offset,\n ends,\n stride,\n maxDelta,\n isRing,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n tmpPoint,\n) {\n tmpPoint = tmpPoint ? tmpPoint : [NaN, NaN];\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n minSquaredDistance = assignClosestPoint(\n flatCoordinates,\n offset,\n end,\n stride,\n maxDelta,\n isRing,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n tmpPoint,\n );\n offset = end;\n }\n return minSquaredDistance;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Endss.\n * @param {number} stride Stride.\n * @param {number} maxDelta Max delta.\n * @param {boolean} isRing Is ring.\n * @param {number} x X.\n * @param {number} y Y.\n * @param {Array<number>} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @param {Array<number>} [tmpPoint] Temporary point object.\n * @return {number} Minimum squared distance.\n */\nexport function assignClosestMultiArrayPoint(\n flatCoordinates,\n offset,\n endss,\n stride,\n maxDelta,\n isRing,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n tmpPoint,\n) {\n tmpPoint = tmpPoint ? tmpPoint : [NaN, NaN];\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n minSquaredDistance = assignClosestArrayPoint(\n flatCoordinates,\n offset,\n ends,\n stride,\n maxDelta,\n isRing,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n tmpPoint,\n );\n offset = ends[ends.length - 1];\n }\n return minSquaredDistance;\n}\n","/**\n * @module ol/geom/flat/deflate\n */\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {import(\"../../coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {number} stride Stride.\n * @return {number} offset Offset.\n */\nexport function deflateCoordinate(flatCoordinates, offset, coordinate, stride) {\n for (let i = 0, ii = coordinate.length; i < ii; ++i) {\n flatCoordinates[offset++] = coordinate[i];\n }\n return offset;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<import(\"../../coordinate.js\").Coordinate>} coordinates Coordinates.\n * @param {number} stride Stride.\n * @return {number} offset Offset.\n */\nexport function deflateCoordinates(\n flatCoordinates,\n offset,\n coordinates,\n stride,\n) {\n for (let i = 0, ii = coordinates.length; i < ii; ++i) {\n const coordinate = coordinates[i];\n for (let j = 0; j < stride; ++j) {\n flatCoordinates[offset++] = coordinate[j];\n }\n }\n return offset;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<import(\"../../coordinate.js\").Coordinate>>} coordinatess Coordinatess.\n * @param {number} stride Stride.\n * @param {Array<number>} [ends] Ends.\n * @return {Array<number>} Ends.\n */\nexport function deflateCoordinatesArray(\n flatCoordinates,\n offset,\n coordinatess,\n stride,\n ends,\n) {\n ends = ends ? ends : [];\n let i = 0;\n for (let j = 0, jj = coordinatess.length; j < jj; ++j) {\n const end = deflateCoordinates(\n flatCoordinates,\n offset,\n coordinatess[j],\n stride,\n );\n ends[i++] = end;\n offset = end;\n }\n ends.length = i;\n return ends;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<Array<import(\"../../coordinate.js\").Coordinate>>>} coordinatesss Coordinatesss.\n * @param {number} stride Stride.\n * @param {Array<Array<number>>} [endss] Endss.\n * @return {Array<Array<number>>} Endss.\n */\nexport function deflateMultiCoordinatesArray(\n flatCoordinates,\n offset,\n coordinatesss,\n stride,\n endss,\n) {\n endss = endss ? endss : [];\n let i = 0;\n for (let j = 0, jj = coordinatesss.length; j < jj; ++j) {\n const ends = deflateCoordinatesArray(\n flatCoordinates,\n offset,\n coordinatesss[j],\n stride,\n endss[i],\n );\n if (ends.length === 0) {\n ends[0] = offset;\n }\n endss[i++] = ends;\n offset = ends[ends.length - 1];\n }\n endss.length = i;\n return endss;\n}\n","/**\n * @module ol/geom/flat/inflate\n */\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {Array<import(\"../../coordinate.js\").Coordinate>} [coordinates] Coordinates.\n * @return {Array<import(\"../../coordinate.js\").Coordinate>} Coordinates.\n */\nexport function inflateCoordinates(\n flatCoordinates,\n offset,\n end,\n stride,\n coordinates,\n) {\n coordinates = coordinates !== undefined ? coordinates : [];\n let i = 0;\n for (let j = offset; j < end; j += stride) {\n coordinates[i++] = flatCoordinates.slice(j, j + stride);\n }\n coordinates.length = i;\n return coordinates;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @param {Array<Array<import(\"../../coordinate.js\").Coordinate>>} [coordinatess] Coordinatess.\n * @return {Array<Array<import(\"../../coordinate.js\").Coordinate>>} Coordinatess.\n */\nexport function inflateCoordinatesArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n coordinatess,\n) {\n coordinatess = coordinatess !== undefined ? coordinatess : [];\n let i = 0;\n for (let j = 0, jj = ends.length; j < jj; ++j) {\n const end = ends[j];\n coordinatess[i++] = inflateCoordinates(\n flatCoordinates,\n offset,\n end,\n stride,\n coordinatess[i],\n );\n offset = end;\n }\n coordinatess.length = i;\n return coordinatess;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Endss.\n * @param {number} stride Stride.\n * @param {Array<Array<Array<import(\"../../coordinate.js\").Coordinate>>>} [coordinatesss]\n * Coordinatesss.\n * @return {Array<Array<Array<import(\"../../coordinate.js\").Coordinate>>>} Coordinatesss.\n */\nexport function inflateMultiCoordinatesArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n coordinatesss,\n) {\n coordinatesss = coordinatesss !== undefined ? coordinatesss : [];\n let i = 0;\n for (let j = 0, jj = endss.length; j < jj; ++j) {\n const ends = endss[j];\n coordinatesss[i++] =\n ends.length === 1 && ends[0] === offset\n ? []\n : inflateCoordinatesArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n coordinatesss[i],\n );\n offset = ends[ends.length - 1];\n }\n coordinatesss.length = i;\n return coordinatesss;\n}\n","/**\n * @module ol/geom/flat/simplify\n */\n// Based on simplify-js https://github.com/mourner/simplify-js\n// Copyright (c) 2012, Vladimir Agafonkin\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// 1. Redistributions of source code must retain the above copyright notice,\n// this list of conditions and the following disclaimer.\n//\n// 2. Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n// POSSIBILITY OF SUCH DAMAGE.\n\nimport {squaredDistance, squaredSegmentDistance} from '../../math.js';\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {boolean} highQuality Highest quality.\n * @param {Array<number>} [simplifiedFlatCoordinates] Simplified flat\n * coordinates.\n * @return {Array<number>} Simplified line string.\n */\nexport function simplifyLineString(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n highQuality,\n simplifiedFlatCoordinates,\n) {\n simplifiedFlatCoordinates =\n simplifiedFlatCoordinates !== undefined ? simplifiedFlatCoordinates : [];\n if (!highQuality) {\n end = radialDistance(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n 0,\n );\n flatCoordinates = simplifiedFlatCoordinates;\n offset = 0;\n stride = 2;\n }\n simplifiedFlatCoordinates.length = douglasPeucker(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n 0,\n );\n return simplifiedFlatCoordinates;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {Array<number>} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @return {number} Simplified offset.\n */\nexport function douglasPeucker(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n) {\n const n = (end - offset) / stride;\n if (n < 3) {\n for (; offset < end; offset += stride) {\n simplifiedFlatCoordinates[simplifiedOffset++] = flatCoordinates[offset];\n simplifiedFlatCoordinates[simplifiedOffset++] =\n flatCoordinates[offset + 1];\n }\n return simplifiedOffset;\n }\n /** @type {Array<number>} */\n const markers = new Array(n);\n markers[0] = 1;\n markers[n - 1] = 1;\n /** @type {Array<number>} */\n const stack = [offset, end - stride];\n let index = 0;\n while (stack.length > 0) {\n const last = stack.pop();\n const first = stack.pop();\n let maxSquaredDistance = 0;\n const x1 = flatCoordinates[first];\n const y1 = flatCoordinates[first + 1];\n const x2 = flatCoordinates[last];\n const y2 = flatCoordinates[last + 1];\n for (let i = first + stride; i < last; i += stride) {\n const x = flatCoordinates[i];\n const y = flatCoordinates[i + 1];\n const squaredDistance = squaredSegmentDistance(x, y, x1, y1, x2, y2);\n if (squaredDistance > maxSquaredDistance) {\n index = i;\n maxSquaredDistance = squaredDistance;\n }\n }\n if (maxSquaredDistance > squaredTolerance) {\n markers[(index - offset) / stride] = 1;\n if (first + stride < index) {\n stack.push(first, index);\n }\n if (index + stride < last) {\n stack.push(index, last);\n }\n }\n }\n for (let i = 0; i < n; ++i) {\n if (markers[i]) {\n simplifiedFlatCoordinates[simplifiedOffset++] =\n flatCoordinates[offset + i * stride];\n simplifiedFlatCoordinates[simplifiedOffset++] =\n flatCoordinates[offset + i * stride + 1];\n }\n }\n return simplifiedOffset;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {Array<number>} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @param {Array<number>} simplifiedEnds Simplified ends.\n * @return {number} Simplified offset.\n */\nexport function douglasPeuckerArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEnds,\n) {\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n simplifiedOffset = douglasPeucker(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n );\n simplifiedEnds.push(simplifiedOffset);\n offset = end;\n }\n return simplifiedOffset;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Endss.\n * @param {number} stride Stride.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {Array<number>} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @param {Array<Array<number>>} simplifiedEndss Simplified endss.\n * @return {number} Simplified offset.\n */\nexport function douglasPeuckerMultiArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEndss,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n /** @type {Array<number>} */\n const simplifiedEnds = [];\n simplifiedOffset = douglasPeuckerArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEnds,\n );\n simplifiedEndss.push(simplifiedEnds);\n offset = ends[ends.length - 1];\n }\n return simplifiedOffset;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} squaredTolerance Squared tolerance.\n * @param {Array<number>} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @return {number} Simplified offset.\n */\nexport function radialDistance(\n flatCoordinates,\n offset,\n end,\n stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n) {\n if (end <= offset + stride) {\n // zero or one point, no simplification possible, so copy and return\n for (; offset < end; offset += stride) {\n simplifiedFlatCoordinates[simplifiedOffset++] = flatCoordinates[offset];\n simplifiedFlatCoordinates[simplifiedOffset++] =\n flatCoordinates[offset + 1];\n }\n return simplifiedOffset;\n }\n let x1 = flatCoordinates[offset];\n let y1 = flatCoordinates[offset + 1];\n // copy first point\n simplifiedFlatCoordinates[simplifiedOffset++] = x1;\n simplifiedFlatCoordinates[simplifiedOffset++] = y1;\n let x2 = x1;\n let y2 = y1;\n for (offset += stride; offset < end; offset += stride) {\n x2 = flatCoordinates[offset];\n y2 = flatCoordinates[offset + 1];\n if (squaredDistance(x1, y1, x2, y2) > squaredTolerance) {\n // copy point at offset\n simplifiedFlatCoordinates[simplifiedOffset++] = x2;\n simplifiedFlatCoordinates[simplifiedOffset++] = y2;\n x1 = x2;\n y1 = y2;\n }\n }\n if (x2 != x1 || y2 != y1) {\n // copy last point\n simplifiedFlatCoordinates[simplifiedOffset++] = x2;\n simplifiedFlatCoordinates[simplifiedOffset++] = y2;\n }\n return simplifiedOffset;\n}\n\n/**\n * @param {number} value Value.\n * @param {number} tolerance Tolerance.\n * @return {number} Rounded value.\n */\nexport function snap(value, tolerance) {\n return tolerance * Math.round(value / tolerance);\n}\n\n/**\n * Simplifies a line string using an algorithm designed by Tim Schaub.\n * Coordinates are snapped to the nearest value in a virtual grid and\n * consecutive duplicate coordinates are discarded. This effectively preserves\n * topology as the simplification of any subsection of a line string is\n * independent of the rest of the line string. This means that, for examples,\n * the common edge between two polygons will be simplified to the same line\n * string independently in both polygons. This implementation uses a single\n * pass over the coordinates and eliminates intermediate collinear points.\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} tolerance Tolerance.\n * @param {Array<number>} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @return {number} Simplified offset.\n */\nexport function quantize(\n flatCoordinates,\n offset,\n end,\n stride,\n tolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n) {\n // do nothing if the line is empty\n if (offset == end) {\n return simplifiedOffset;\n }\n // snap the first coordinate (P1)\n let x1 = snap(flatCoordinates[offset], tolerance);\n let y1 = snap(flatCoordinates[offset + 1], tolerance);\n offset += stride;\n // add the first coordinate to the output\n simplifiedFlatCoordinates[simplifiedOffset++] = x1;\n simplifiedFlatCoordinates[simplifiedOffset++] = y1;\n // find the next coordinate that does not snap to the same value as the first\n // coordinate (P2)\n let x2, y2;\n do {\n x2 = snap(flatCoordinates[offset], tolerance);\n y2 = snap(flatCoordinates[offset + 1], tolerance);\n offset += stride;\n if (offset == end) {\n // all coordinates snap to the same value, the line collapses to a point\n // push the last snapped value anyway to ensure that the output contains\n // at least two points\n // FIXME should we really return at least two points anyway?\n simplifiedFlatCoordinates[simplifiedOffset++] = x2;\n simplifiedFlatCoordinates[simplifiedOffset++] = y2;\n return simplifiedOffset;\n }\n } while (x2 == x1 && y2 == y1);\n while (offset < end) {\n // snap the next coordinate (P3)\n const x3 = snap(flatCoordinates[offset], tolerance);\n const y3 = snap(flatCoordinates[offset + 1], tolerance);\n offset += stride;\n // skip P3 if it is equal to P2\n if (x3 == x2 && y3 == y2) {\n continue;\n }\n // calculate the delta between P1 and P2\n const dx1 = x2 - x1;\n const dy1 = y2 - y1;\n // calculate the delta between P3 and P1\n const dx2 = x3 - x1;\n const dy2 = y3 - y1;\n // if P1, P2, and P3 are colinear and P3 is further from P1 than P2 is from\n // P1 in the same direction then P2 is on the straight line between P1 and\n // P3\n if (\n dx1 * dy2 == dy1 * dx2 &&\n ((dx1 < 0 && dx2 < dx1) || dx1 == dx2 || (dx1 > 0 && dx2 > dx1)) &&\n ((dy1 < 0 && dy2 < dy1) || dy1 == dy2 || (dy1 > 0 && dy2 > dy1))\n ) {\n // discard P2 and set P2 = P3\n x2 = x3;\n y2 = y3;\n continue;\n }\n // either P1, P2, and P3 are not colinear, or they are colinear but P3 is\n // between P3 and P1 or on the opposite half of the line to P2. add P2,\n // and continue with P1 = P2 and P2 = P3\n simplifiedFlatCoordinates[simplifiedOffset++] = x2;\n simplifiedFlatCoordinates[simplifiedOffset++] = y2;\n x1 = x2;\n y1 = y2;\n x2 = x3;\n y2 = y3;\n }\n // add the last point (P2)\n simplifiedFlatCoordinates[simplifiedOffset++] = x2;\n simplifiedFlatCoordinates[simplifiedOffset++] = y2;\n return simplifiedOffset;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @param {number} tolerance Tolerance.\n * @param {Array<number>} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @param {Array<number>} simplifiedEnds Simplified ends.\n * @return {number} Simplified offset.\n */\nexport function quantizeArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n tolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEnds,\n) {\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n simplifiedOffset = quantize(\n flatCoordinates,\n offset,\n end,\n stride,\n tolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n );\n simplifiedEnds.push(simplifiedOffset);\n offset = end;\n }\n return simplifiedOffset;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Endss.\n * @param {number} stride Stride.\n * @param {number} tolerance Tolerance.\n * @param {Array<number>} simplifiedFlatCoordinates Simplified flat\n * coordinates.\n * @param {number} simplifiedOffset Simplified offset.\n * @param {Array<Array<number>>} simplifiedEndss Simplified endss.\n * @return {number} Simplified offset.\n */\nexport function quantizeMultiArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n tolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEndss,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n /** @type {Array<number>} */\n const simplifiedEnds = [];\n simplifiedOffset = quantizeArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n tolerance,\n simplifiedFlatCoordinates,\n simplifiedOffset,\n simplifiedEnds,\n );\n simplifiedEndss.push(simplifiedEnds);\n offset = ends[ends.length - 1];\n }\n return simplifiedOffset;\n}\n","/**\n * @module ol/geom/LinearRing\n */\nimport {closestSquaredDistanceXY} from '../extent.js';\nimport SimpleGeometry from './SimpleGeometry.js';\nimport {linearRing as linearRingArea} from './flat/area.js';\nimport {assignClosestPoint, maxSquaredDelta} from './flat/closest.js';\nimport {deflateCoordinates} from './flat/deflate.js';\nimport {inflateCoordinates} from './flat/inflate.js';\nimport {douglasPeucker} from './flat/simplify.js';\n\n/**\n * @classdesc\n * Linear ring geometry. Only used as part of polygon; cannot be rendered\n * on its own.\n *\n * @api\n */\nclass LinearRing extends SimpleGeometry {\n /**\n * @param {Array<import(\"../coordinate.js\").Coordinate>|Array<number>} coordinates Coordinates.\n * For internal use, flat coordinates in combination with `layout` are also accepted.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n */\n constructor(coordinates, layout) {\n super();\n\n /**\n * @private\n * @type {number}\n */\n this.maxDelta_ = -1;\n\n /**\n * @private\n * @type {number}\n */\n this.maxDeltaRevision_ = -1;\n\n if (layout !== undefined && !Array.isArray(coordinates[0])) {\n this.setFlatCoordinates(\n layout,\n /** @type {Array<number>} */ (coordinates),\n );\n } else {\n this.setCoordinates(\n /** @type {Array<import(\"../coordinate.js\").Coordinate>} */ (\n coordinates\n ),\n layout,\n );\n }\n }\n\n /**\n * Make a complete copy of the geometry.\n * @return {!LinearRing} Clone.\n * @api\n * @override\n */\n clone() {\n return new LinearRing(this.flatCoordinates.slice(), this.layout);\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @param {import(\"../coordinate.js\").Coordinate} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @return {number} Minimum squared distance.\n * @override\n */\n closestPointXY(x, y, closestPoint, minSquaredDistance) {\n if (minSquaredDistance < closestSquaredDistanceXY(this.getExtent(), x, y)) {\n return minSquaredDistance;\n }\n if (this.maxDeltaRevision_ != this.getRevision()) {\n this.maxDelta_ = Math.sqrt(\n maxSquaredDelta(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n 0,\n ),\n );\n this.maxDeltaRevision_ = this.getRevision();\n }\n return assignClosestPoint(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n this.maxDelta_,\n true,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n );\n }\n\n /**\n * Return the area of the linear ring on projected plane.\n * @return {number} Area (on projected plane).\n * @api\n */\n getArea() {\n return linearRingArea(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n );\n }\n\n /**\n * Return the coordinates of the linear ring.\n * @return {Array<import(\"../coordinate.js\").Coordinate>} Coordinates.\n * @api\n * @override\n */\n getCoordinates() {\n return inflateCoordinates(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n );\n }\n\n /**\n * @param {number} squaredTolerance Squared tolerance.\n * @return {LinearRing} Simplified LinearRing.\n * @protected\n * @override\n */\n getSimplifiedGeometryInternal(squaredTolerance) {\n /** @type {Array<number>} */\n const simplifiedFlatCoordinates = [];\n simplifiedFlatCoordinates.length = douglasPeucker(\n this.flatCoordinates,\n 0,\n this.flatCoordinates.length,\n this.stride,\n squaredTolerance,\n simplifiedFlatCoordinates,\n 0,\n );\n return new LinearRing(simplifiedFlatCoordinates, 'XY');\n }\n\n /**\n * Get the type of this geometry.\n * @return {import(\"./Geometry.js\").Type} Geometry type.\n * @api\n * @override\n */\n getType() {\n return 'LinearRing';\n }\n\n /**\n * Test if the geometry and the passed extent intersect.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @return {boolean} `true` if the geometry and the extent intersect.\n * @api\n * @override\n */\n intersectsExtent(extent) {\n return false;\n }\n\n /**\n * Set the coordinates of the linear ring.\n * @param {!Array<import(\"../coordinate.js\").Coordinate>} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @api\n * @override\n */\n setCoordinates(coordinates, layout) {\n this.setLayout(layout, coordinates, 1);\n if (!this.flatCoordinates) {\n this.flatCoordinates = [];\n }\n this.flatCoordinates.length = deflateCoordinates(\n this.flatCoordinates,\n 0,\n coordinates,\n this.stride,\n );\n this.changed();\n }\n}\n\nexport default LinearRing;\n","/**\n * @module ol/geom/Point\n */\nimport {containsXY, createOrUpdateFromCoordinate} from '../extent.js';\nimport {squaredDistance as squaredDx} from '../math.js';\nimport SimpleGeometry from './SimpleGeometry.js';\nimport {deflateCoordinate} from './flat/deflate.js';\n\n/**\n * @classdesc\n * Point geometry.\n *\n * @api\n */\nclass Point extends SimpleGeometry {\n /**\n * @param {import(\"../coordinate.js\").Coordinate} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n */\n constructor(coordinates, layout) {\n super();\n this.setCoordinates(coordinates, layout);\n }\n\n /**\n * Make a complete copy of the geometry.\n * @return {!Point} Clone.\n * @api\n * @override\n */\n clone() {\n const point = new Point(this.flatCoordinates.slice(), this.layout);\n point.applyProperties(this);\n return point;\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @param {import(\"../coordinate.js\").Coordinate} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @return {number} Minimum squared distance.\n * @override\n */\n closestPointXY(x, y, closestPoint, minSquaredDistance) {\n const flatCoordinates = this.flatCoordinates;\n const squaredDistance = squaredDx(\n x,\n y,\n flatCoordinates[0],\n flatCoordinates[1],\n );\n if (squaredDistance < minSquaredDistance) {\n const stride = this.stride;\n for (let i = 0; i < stride; ++i) {\n closestPoint[i] = flatCoordinates[i];\n }\n closestPoint.length = stride;\n return squaredDistance;\n }\n return minSquaredDistance;\n }\n\n /**\n * Return the coordinate of the point.\n * @return {import(\"../coordinate.js\").Coordinate} Coordinates.\n * @api\n * @override\n */\n getCoordinates() {\n return this.flatCoordinates.slice();\n }\n\n /**\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @protected\n * @return {import(\"../extent.js\").Extent} extent Extent.\n * @override\n */\n computeExtent(extent) {\n return createOrUpdateFromCoordinate(this.flatCoordinates, extent);\n }\n\n /**\n * Get the type of this geometry.\n * @return {import(\"./Geometry.js\").Type} Geometry type.\n * @api\n * @override\n */\n getType() {\n return 'Point';\n }\n\n /**\n * Test if the geometry and the passed extent intersect.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @return {boolean} `true` if the geometry and the extent intersect.\n * @api\n * @override\n */\n intersectsExtent(extent) {\n return containsXY(extent, this.flatCoordinates[0], this.flatCoordinates[1]);\n }\n\n /**\n * @param {!Array<*>} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @api\n * @override\n */\n setCoordinates(coordinates, layout) {\n this.setLayout(layout, coordinates, 0);\n if (!this.flatCoordinates) {\n this.flatCoordinates = [];\n }\n this.flatCoordinates.length = deflateCoordinate(\n this.flatCoordinates,\n 0,\n coordinates,\n this.stride,\n );\n this.changed();\n }\n}\n\nexport default Point;\n","/**\n * @module ol/geom/flat/contains\n */\nimport {forEachCorner} from '../../extent.js';\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @return {boolean} Contains extent.\n */\nexport function linearRingContainsExtent(\n flatCoordinates,\n offset,\n end,\n stride,\n extent,\n) {\n const outside = forEachCorner(\n extent,\n /**\n * @param {import(\"../../coordinate.js\").Coordinate} coordinate Coordinate.\n * @return {boolean} Contains (x, y).\n */\n function (coordinate) {\n return !linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n coordinate[0],\n coordinate[1],\n );\n },\n );\n return !outside;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n */\nexport function linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n x,\n y,\n) {\n // https://web.archive.org/web/20210504233957/http://geomalgorithms.com/a03-_inclusion.html\n // Copyright 2000 softSurfer, 2012 Dan Sunday\n // This code may be freely used and modified for any purpose\n // providing that this copyright notice is included with it.\n // SoftSurfer makes no warranty for this code, and cannot be held\n // liable for any real or imagined damage resulting from its use.\n // Users of this code must verify correctness for their application.\n let wn = 0;\n let x1 = flatCoordinates[end - stride];\n let y1 = flatCoordinates[end - stride + 1];\n for (; offset < end; offset += stride) {\n const x2 = flatCoordinates[offset];\n const y2 = flatCoordinates[offset + 1];\n if (y1 <= y) {\n if (y2 > y && (x2 - x1) * (y - y1) - (x - x1) * (y2 - y1) > 0) {\n wn++;\n }\n } else if (y2 <= y && (x2 - x1) * (y - y1) - (x - x1) * (y2 - y1) < 0) {\n wn--;\n }\n x1 = x2;\n y1 = y2;\n }\n return wn !== 0;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n */\nexport function linearRingsContainsXY(\n flatCoordinates,\n offset,\n ends,\n stride,\n x,\n y,\n) {\n if (ends.length === 0) {\n return false;\n }\n if (!linearRingContainsXY(flatCoordinates, offset, ends[0], stride, x, y)) {\n return false;\n }\n for (let i = 1, ii = ends.length; i < ii; ++i) {\n if (\n linearRingContainsXY(flatCoordinates, ends[i - 1], ends[i], stride, x, y)\n ) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Endss.\n * @param {number} stride Stride.\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n */\nexport function linearRingssContainsXY(\n flatCoordinates,\n offset,\n endss,\n stride,\n x,\n y,\n) {\n if (endss.length === 0) {\n return false;\n }\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n if (linearRingsContainsXY(flatCoordinates, offset, ends, stride, x, y)) {\n return true;\n }\n offset = ends[ends.length - 1];\n }\n return false;\n}\n","/**\n * @module ol/geom/flat/interiorpoint\n */\nimport {ascending} from '../../array.js';\nimport {linearRingsContainsXY} from './contains.js';\n\n/**\n * Calculates a point that is likely to lie in the interior of the linear rings.\n * Inspired by JTS's com.vividsolutions.jts.geom.Geometry#getInteriorPoint.\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @param {Array<number>} flatCenters Flat centers.\n * @param {number} flatCentersOffset Flat center offset.\n * @param {Array<number>} [dest] Destination.\n * @return {Array<number>} Destination point as XYM coordinate, where M is the\n * length of the horizontal intersection that the point belongs to.\n */\nexport function getInteriorPointOfArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n flatCenters,\n flatCentersOffset,\n dest,\n) {\n let i, ii, x, x1, x2, y1, y2;\n const y = flatCenters[flatCentersOffset + 1];\n /** @type {Array<number>} */\n const intersections = [];\n // Calculate intersections with the horizontal line\n for (let r = 0, rr = ends.length; r < rr; ++r) {\n const end = ends[r];\n x1 = flatCoordinates[end - stride];\n y1 = flatCoordinates[end - stride + 1];\n for (i = offset; i < end; i += stride) {\n x2 = flatCoordinates[i];\n y2 = flatCoordinates[i + 1];\n if ((y <= y1 && y2 <= y) || (y1 <= y && y <= y2)) {\n x = ((y - y1) / (y2 - y1)) * (x2 - x1) + x1;\n intersections.push(x);\n }\n x1 = x2;\n y1 = y2;\n }\n }\n // Find the longest segment of the horizontal line that has its center point\n // inside the linear ring.\n let pointX = NaN;\n let maxSegmentLength = -Infinity;\n intersections.sort(ascending);\n x1 = intersections[0];\n for (i = 1, ii = intersections.length; i < ii; ++i) {\n x2 = intersections[i];\n const segmentLength = Math.abs(x2 - x1);\n if (segmentLength > maxSegmentLength) {\n x = (x1 + x2) / 2;\n if (linearRingsContainsXY(flatCoordinates, offset, ends, stride, x, y)) {\n pointX = x;\n maxSegmentLength = segmentLength;\n }\n }\n x1 = x2;\n }\n if (isNaN(pointX)) {\n // There is no horizontal line that has its center point inside the linear\n // ring. Use the center of the the linear ring's extent.\n pointX = flatCenters[flatCentersOffset];\n }\n if (dest) {\n dest.push(pointX, y, maxSegmentLength);\n return dest;\n }\n return [pointX, y, maxSegmentLength];\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Endss.\n * @param {number} stride Stride.\n * @param {Array<number>} flatCenters Flat centers.\n * @return {Array<number>} Interior points as XYM coordinates, where M is the\n * length of the horizontal intersection that the point belongs to.\n */\nexport function getInteriorPointsOfMultiArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n flatCenters,\n) {\n /** @type {Array<number>} */\n let interiorPoints = [];\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n interiorPoints = getInteriorPointOfArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n flatCenters,\n 2 * i,\n interiorPoints,\n );\n offset = ends[ends.length - 1];\n }\n return interiorPoints;\n}\n","/**\n * @module ol/geom/flat/segments\n */\n\n/**\n * This function calls `callback` for each segment of the flat coordinates\n * array. If the callback returns a truthy value the function returns that\n * value immediately. Otherwise the function returns `false`.\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {function(import(\"../../coordinate.js\").Coordinate, import(\"../../coordinate.js\").Coordinate): T} callback Function\n * called for each segment.\n * @return {T|boolean} Value.\n * @template T\n */\nexport function forEach(flatCoordinates, offset, end, stride, callback) {\n let ret;\n offset += stride;\n for (; offset < end; offset += stride) {\n ret = callback(\n flatCoordinates.slice(offset - stride, offset),\n flatCoordinates.slice(offset, offset + stride),\n );\n if (ret) {\n return ret;\n }\n }\n return false;\n}\n\n/**\n * Calculate the intersection point of two line segments.\n * Reference: https://stackoverflow.com/a/72474223/2389327\n * @param {Array<import(\"../../coordinate.js\").Coordinate>} segment1 The first line segment as an array of two points.\n * @param {Array<import(\"../../coordinate.js\").Coordinate>} segment2 The second line segment as an array of two points.\n * @return {import(\"../../coordinate.js\").Coordinate|undefined} The intersection point or `undefined` if no intersection.\n */\nexport function getIntersectionPoint(segment1, segment2) {\n const [a, b] = segment1;\n const [c, d] = segment2;\n const t =\n ((a[0] - c[0]) * (c[1] - d[1]) - (a[1] - c[1]) * (c[0] - d[0])) /\n ((a[0] - b[0]) * (c[1] - d[1]) - (a[1] - b[1]) * (c[0] - d[0]));\n const u =\n ((a[0] - c[0]) * (a[1] - b[1]) - (a[1] - c[1]) * (a[0] - b[0])) /\n ((a[0] - b[0]) * (c[1] - d[1]) - (a[1] - b[1]) * (c[0] - d[0]));\n\n // Check if lines actually intersect\n if (0 <= t && t <= 1 && 0 <= u && u <= 1) {\n return [a[0] + t * (b[0] - a[0]), a[1] + t * (b[1] - a[1])];\n }\n return undefined;\n}\n","/**\n * @module ol/geom/flat/intersectsextent\n */\nimport {\n createEmpty,\n extendFlatCoordinates,\n intersects,\n intersectsSegment,\n} from '../../extent.js';\nimport {linearRingContainsExtent, linearRingContainsXY} from './contains.js';\nimport {forEach as forEachSegment} from './segments.js';\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @param {import('../../extent.js').Extent} [coordinatesExtent] Coordinates extent\n * @return {boolean} True if the geometry and the extent intersect.\n */\nexport function intersectsLineString(\n flatCoordinates,\n offset,\n end,\n stride,\n extent,\n coordinatesExtent,\n) {\n coordinatesExtent =\n coordinatesExtent ??\n extendFlatCoordinates(createEmpty(), flatCoordinates, offset, end, stride);\n if (!intersects(extent, coordinatesExtent)) {\n return false;\n }\n if (\n (coordinatesExtent[0] >= extent[0] && coordinatesExtent[2] <= extent[2]) ||\n (coordinatesExtent[1] >= extent[1] && coordinatesExtent[3] <= extent[3])\n ) {\n return true;\n }\n return forEachSegment(\n flatCoordinates,\n offset,\n end,\n stride,\n /**\n * @param {import(\"../../coordinate.js\").Coordinate} point1 Start point.\n * @param {import(\"../../coordinate.js\").Coordinate} point2 End point.\n * @return {boolean} `true` if the segment and the extent intersect,\n * `false` otherwise.\n */\n function (point1, point2) {\n return intersectsSegment(extent, point1, point2);\n },\n );\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @return {boolean} True if the geometry and the extent intersect.\n */\nexport function intersectsLineStringArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n extent,\n) {\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n if (\n intersectsLineString(flatCoordinates, offset, ends[i], stride, extent)\n ) {\n return true;\n }\n offset = ends[i];\n }\n return false;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @return {boolean} True if the geometry and the extent intersect.\n */\nexport function intersectsLinearRing(\n flatCoordinates,\n offset,\n end,\n stride,\n extent,\n) {\n if (intersectsLineString(flatCoordinates, offset, end, stride, extent)) {\n return true;\n }\n if (\n linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n extent[0],\n extent[1],\n )\n ) {\n return true;\n }\n if (\n linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n extent[0],\n extent[3],\n )\n ) {\n return true;\n }\n if (\n linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n extent[2],\n extent[1],\n )\n ) {\n return true;\n }\n if (\n linearRingContainsXY(\n flatCoordinates,\n offset,\n end,\n stride,\n extent[2],\n extent[3],\n )\n ) {\n return true;\n }\n return false;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @return {boolean} True if the geometry and the extent intersect.\n */\nexport function intersectsLinearRingArray(\n flatCoordinates,\n offset,\n ends,\n stride,\n extent,\n) {\n if (!intersectsLinearRing(flatCoordinates, offset, ends[0], stride, extent)) {\n return false;\n }\n if (ends.length === 1) {\n return true;\n }\n for (let i = 1, ii = ends.length; i < ii; ++i) {\n if (\n linearRingContainsExtent(\n flatCoordinates,\n ends[i - 1],\n ends[i],\n stride,\n extent,\n )\n ) {\n if (\n !intersectsLineString(\n flatCoordinates,\n ends[i - 1],\n ends[i],\n stride,\n extent,\n )\n ) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Endss.\n * @param {number} stride Stride.\n * @param {import(\"../../extent.js\").Extent} extent Extent.\n * @return {boolean} True if the geometry and the extent intersect.\n */\nexport function intersectsLinearRingMultiArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n extent,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n if (\n intersectsLinearRingArray(flatCoordinates, offset, ends, stride, extent)\n ) {\n return true;\n }\n offset = ends[ends.length - 1];\n }\n return false;\n}\n","/**\n * @module ol/geom/flat/reverse\n */\n\n/**\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n */\nexport function coordinates(flatCoordinates, offset, end, stride) {\n while (offset < end - stride) {\n for (let i = 0; i < stride; ++i) {\n const tmp = flatCoordinates[offset + i];\n flatCoordinates[offset + i] = flatCoordinates[end - stride + i];\n flatCoordinates[end - stride + i] = tmp;\n }\n offset += stride;\n end -= stride;\n }\n}\n","/**\n * @module ol/geom/flat/orient\n */\nimport {coordinates as reverseCoordinates} from './reverse.js';\n\n/**\n * Is the linear ring oriented clockwise in a coordinate system with a bottom-left\n * coordinate origin? For a coordinate system with a top-left coordinate origin,\n * the ring's orientation is clockwise when this function returns false.\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {number} end End.\n * @param {number} stride Stride.\n * @return {boolean|undefined} Is clockwise.\n */\nexport function linearRingIsClockwise(flatCoordinates, offset, end, stride) {\n // https://stackoverflow.com/q/1165647/clockwise-method#1165943\n // https://github.com/OSGeo/gdal/blob/master/gdal/ogr/ogrlinearring.cpp\n let edge = 0;\n let x1 = flatCoordinates[end - stride];\n let y1 = flatCoordinates[end - stride + 1];\n for (; offset < end; offset += stride) {\n const x2 = flatCoordinates[offset];\n const y2 = flatCoordinates[offset + 1];\n edge += (x2 - x1) * (y2 + y1);\n x1 = x2;\n y1 = y2;\n }\n return edge === 0 ? undefined : edge > 0;\n}\n\n/**\n * Determines if linear rings are oriented. By default, left-hand orientation\n * is tested (first ring must be clockwise, remaining rings counter-clockwise).\n * To test for right-hand orientation, use the `right` argument.\n *\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Array of end indexes.\n * @param {number} stride Stride.\n * @param {boolean} [right] Test for right-hand orientation\n * (counter-clockwise exterior ring and clockwise interior rings).\n * @return {boolean} Rings are correctly oriented.\n */\nexport function linearRingsAreOriented(\n flatCoordinates,\n offset,\n ends,\n stride,\n right,\n) {\n right = right !== undefined ? right : false;\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n const isClockwise = linearRingIsClockwise(\n flatCoordinates,\n offset,\n end,\n stride,\n );\n if (i === 0) {\n if ((right && isClockwise) || (!right && !isClockwise)) {\n return false;\n }\n } else {\n if ((right && !isClockwise) || (!right && isClockwise)) {\n return false;\n }\n }\n offset = end;\n }\n return true;\n}\n\n/**\n * Determines if linear rings are oriented. By default, left-hand orientation\n * is tested (first ring must be clockwise, remaining rings counter-clockwise).\n * To test for right-hand orientation, use the `right` argument.\n *\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Array of array of end indexes.\n * @param {number} stride Stride.\n * @param {boolean} [right] Test for right-hand orientation\n * (counter-clockwise exterior ring and clockwise interior rings).\n * @return {boolean} Rings are correctly oriented.\n */\nexport function linearRingssAreOriented(\n flatCoordinates,\n offset,\n endss,\n stride,\n right,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n const ends = endss[i];\n if (!linearRingsAreOriented(flatCoordinates, offset, ends, stride, right)) {\n return false;\n }\n if (ends.length) {\n offset = ends[ends.length - 1];\n }\n }\n return true;\n}\n\n/**\n * Orient coordinates in a flat array of linear rings. By default, rings\n * are oriented following the left-hand rule (clockwise for exterior and\n * counter-clockwise for interior rings). To orient according to the\n * right-hand rule, use the `right` argument.\n *\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<number>} ends Ends.\n * @param {number} stride Stride.\n * @param {boolean} [right] Follow the right-hand rule for orientation.\n * @return {number} End.\n */\nexport function orientLinearRings(\n flatCoordinates,\n offset,\n ends,\n stride,\n right,\n) {\n right = right !== undefined ? right : false;\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n const isClockwise = linearRingIsClockwise(\n flatCoordinates,\n offset,\n end,\n stride,\n );\n const reverse =\n i === 0\n ? (right && isClockwise) || (!right && !isClockwise)\n : (right && !isClockwise) || (!right && isClockwise);\n if (reverse) {\n reverseCoordinates(flatCoordinates, offset, end, stride);\n }\n offset = end;\n }\n return offset;\n}\n\n/**\n * Orient coordinates in a flat array of linear rings. By default, rings\n * are oriented following the left-hand rule (clockwise for exterior and\n * counter-clockwise for interior rings). To orient according to the\n * right-hand rule, use the `right` argument.\n *\n * @param {Array<number>} flatCoordinates Flat coordinates.\n * @param {number} offset Offset.\n * @param {Array<Array<number>>} endss Array of array of end indexes.\n * @param {number} stride Stride.\n * @param {boolean} [right] Follow the right-hand rule for orientation.\n * @return {number} End.\n */\nexport function orientLinearRingsArray(\n flatCoordinates,\n offset,\n endss,\n stride,\n right,\n) {\n for (let i = 0, ii = endss.length; i < ii; ++i) {\n offset = orientLinearRings(\n flatCoordinates,\n offset,\n endss[i],\n stride,\n right,\n );\n }\n return offset;\n}\n\n/**\n * Return a two-dimensional endss\n * @param {Array<number>} flatCoordinates Flat coordinates\n * @param {Array<number>} ends Linear ring end indexes\n * @return {Array<Array<number>>} Two dimensional endss array that can\n * be used to construct a MultiPolygon\n */\nexport function inflateEnds(flatCoordinates, ends) {\n const endss = [];\n let offset = 0;\n let prevEndIndex = 0;\n let startOrientation;\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n // classifies an array of rings into polygons with outer rings and holes\n const orientation = linearRingIsClockwise(flatCoordinates, offset, end, 2);\n if (startOrientation === undefined) {\n startOrientation = orientation;\n }\n if (orientation === startOrientation) {\n endss.push(ends.slice(prevEndIndex, i + 1));\n } else {\n if (endss.length === 0) {\n continue;\n }\n endss[endss.length - 1].push(ends[prevEndIndex]);\n }\n prevEndIndex = i + 1;\n offset = end;\n }\n return endss;\n}\n","/**\n * @module ol/geom/Polygon\n */\nimport {extend} from '../array.js';\nimport {closestSquaredDistanceXY, getCenter, isEmpty} from '../extent.js';\nimport {modulo} from '../math.js';\nimport {offset as sphereOffset} from '../sphere.js';\nimport LinearRing from './LinearRing.js';\nimport Point from './Point.js';\nimport SimpleGeometry from './SimpleGeometry.js';\nimport {linearRings as linearRingsArea} from './flat/area.js';\nimport {arrayMaxSquaredDelta, assignClosestArrayPoint} from './flat/closest.js';\nimport {linearRingsContainsXY} from './flat/contains.js';\nimport {deflateCoordinatesArray} from './flat/deflate.js';\nimport {inflateCoordinatesArray} from './flat/inflate.js';\nimport {getInteriorPointOfArray} from './flat/interiorpoint.js';\nimport {intersectsLinearRingArray} from './flat/intersectsextent.js';\nimport {linearRingsAreOriented, orientLinearRings} from './flat/orient.js';\nimport {quantizeArray} from './flat/simplify.js';\n\n/**\n * @classdesc\n * Polygon geometry.\n *\n * @api\n */\nclass Polygon extends SimpleGeometry {\n /**\n * @param {!Array<Array<import(\"../coordinate.js\").Coordinate>>|!Array<number>} coordinates\n * Array of linear rings that define the polygon. The first linear ring of the\n * array defines the outer-boundary or surface of the polygon. Each subsequent\n * linear ring defines a hole in the surface of the polygon. A linear ring is\n * an array of vertices' coordinates where the first coordinate and the last are\n * equivalent. (For internal use, flat coordinates in combination with\n * `layout` and `ends` are also accepted.)\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @param {Array<number>} [ends] Ends (for internal use with flat coordinates).\n */\n constructor(coordinates, layout, ends) {\n super();\n\n /**\n * @type {Array<number>}\n * @private\n */\n this.ends_ = [];\n\n /**\n * @private\n * @type {number}\n */\n this.flatInteriorPointRevision_ = -1;\n\n /**\n * @private\n * @type {import(\"../coordinate.js\").Coordinate|null}\n */\n this.flatInteriorPoint_ = null;\n\n /**\n * @private\n * @type {number}\n */\n this.maxDelta_ = -1;\n\n /**\n * @private\n * @type {number}\n */\n this.maxDeltaRevision_ = -1;\n\n /**\n * @private\n * @type {number}\n */\n this.orientedRevision_ = -1;\n\n /**\n * @private\n * @type {Array<number>|null}\n */\n this.orientedFlatCoordinates_ = null;\n\n if (layout !== undefined && ends) {\n this.setFlatCoordinates(\n layout,\n /** @type {Array<number>} */ (coordinates),\n );\n this.ends_ = ends;\n } else {\n this.setCoordinates(\n /** @type {Array<Array<import(\"../coordinate.js\").Coordinate>>} */ (\n coordinates\n ),\n layout,\n );\n }\n }\n\n /**\n * Append the passed linear ring to this polygon.\n * @param {LinearRing} linearRing Linear ring.\n * @api\n */\n appendLinearRing(linearRing) {\n if (!this.flatCoordinates) {\n this.flatCoordinates = linearRing.getFlatCoordinates().slice();\n } else {\n extend(this.flatCoordinates, linearRing.getFlatCoordinates());\n }\n this.ends_.push(this.flatCoordinates.length);\n this.changed();\n }\n\n /**\n * Make a complete copy of the geometry.\n * @return {!Polygon} Clone.\n * @api\n * @override\n */\n clone() {\n const polygon = new Polygon(\n this.flatCoordinates.slice(),\n this.layout,\n this.ends_.slice(),\n );\n polygon.applyProperties(this);\n return polygon;\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @param {import(\"../coordinate.js\").Coordinate} closestPoint Closest point.\n * @param {number} minSquaredDistance Minimum squared distance.\n * @return {number} Minimum squared distance.\n * @override\n */\n closestPointXY(x, y, closestPoint, minSquaredDistance) {\n if (minSquaredDistance < closestSquaredDistanceXY(this.getExtent(), x, y)) {\n return minSquaredDistance;\n }\n if (this.maxDeltaRevision_ != this.getRevision()) {\n this.maxDelta_ = Math.sqrt(\n arrayMaxSquaredDelta(\n this.flatCoordinates,\n 0,\n this.ends_,\n this.stride,\n 0,\n ),\n );\n this.maxDeltaRevision_ = this.getRevision();\n }\n return assignClosestArrayPoint(\n this.flatCoordinates,\n 0,\n this.ends_,\n this.stride,\n this.maxDelta_,\n true,\n x,\n y,\n closestPoint,\n minSquaredDistance,\n );\n }\n\n /**\n * @param {number} x X.\n * @param {number} y Y.\n * @return {boolean} Contains (x, y).\n * @override\n */\n containsXY(x, y) {\n return linearRingsContainsXY(\n this.getOrientedFlatCoordinates(),\n 0,\n this.ends_,\n this.stride,\n x,\n y,\n );\n }\n\n /**\n * Return the area of the polygon on projected plane.\n * @return {number} Area (on projected plane).\n * @api\n */\n getArea() {\n return linearRingsArea(\n this.getOrientedFlatCoordinates(),\n 0,\n this.ends_,\n this.stride,\n );\n }\n\n /**\n * Get the coordinate array for this geometry. This array has the structure\n * of a GeoJSON coordinate array for polygons.\n *\n * @param {boolean} [right] Orient coordinates according to the right-hand\n * rule (counter-clockwise for exterior and clockwise for interior rings).\n * If `false`, coordinates will be oriented according to the left-hand rule\n * (clockwise for exterior and counter-clockwise for interior rings).\n * By default, coordinate orientation will depend on how the geometry was\n * constructed.\n * @return {Array<Array<import(\"../coordinate.js\").Coordinate>>} Coordinates.\n * @api\n * @override\n */\n getCoordinates(right) {\n let flatCoordinates;\n if (right !== undefined) {\n flatCoordinates = this.getOrientedFlatCoordinates().slice();\n orientLinearRings(flatCoordinates, 0, this.ends_, this.stride, right);\n } else {\n flatCoordinates = this.flatCoordinates;\n }\n\n return inflateCoordinatesArray(flatCoordinates, 0, this.ends_, this.stride);\n }\n\n /**\n * @return {Array<number>} Ends.\n */\n getEnds() {\n return this.ends_;\n }\n\n /**\n * @return {Array<number>} Interior point.\n */\n getFlatInteriorPoint() {\n if (this.flatInteriorPointRevision_ != this.getRevision()) {\n const flatCenter = getCenter(this.getExtent());\n this.flatInteriorPoint_ = getInteriorPointOfArray(\n this.getOrientedFlatCoordinates(),\n 0,\n this.ends_,\n this.stride,\n flatCenter,\n 0,\n );\n this.flatInteriorPointRevision_ = this.getRevision();\n }\n return /** @type {import(\"../coordinate.js\").Coordinate} */ (\n this.flatInteriorPoint_\n );\n }\n\n /**\n * Return an interior point of the polygon.\n * @return {Point} Interior point as XYM coordinate, where M is the\n * length of the horizontal intersection that the point belongs to.\n * @api\n */\n getInteriorPoint() {\n return new Point(this.getFlatInteriorPoint(), 'XYM');\n }\n\n /**\n * Return the number of rings of the polygon, this includes the exterior\n * ring and any interior rings.\n *\n * @return {number} Number of rings.\n * @api\n */\n getLinearRingCount() {\n return this.ends_.length;\n }\n\n /**\n * Return the Nth linear ring of the polygon geometry. Return `null` if the\n * given index is out of range.\n * The exterior linear ring is available at index `0` and the interior rings\n * at index `1` and beyond.\n *\n * @param {number} index Index.\n * @return {LinearRing|null} Linear ring.\n * @api\n */\n getLinearRing(index) {\n if (index < 0 || this.ends_.length <= index) {\n return null;\n }\n return new LinearRing(\n this.flatCoordinates.slice(\n index === 0 ? 0 : this.ends_[index - 1],\n this.ends_[index],\n ),\n this.layout,\n );\n }\n\n /**\n * Return the linear rings of the polygon.\n * @return {Array<LinearRing>} Linear rings.\n * @api\n */\n getLinearRings() {\n const layout = this.layout;\n const flatCoordinates = this.flatCoordinates;\n const ends = this.ends_;\n const linearRings = [];\n let offset = 0;\n for (let i = 0, ii = ends.length; i < ii; ++i) {\n const end = ends[i];\n const linearRing = new LinearRing(\n flatCoordinates.slice(offset, end),\n layout,\n );\n linearRings.push(linearRing);\n offset = end;\n }\n return linearRings;\n }\n\n /**\n * @return {Array<number>} Oriented flat coordinates.\n */\n getOrientedFlatCoordinates() {\n if (this.orientedRevision_ != this.getRevision()) {\n const flatCoordinates = this.flatCoordinates;\n if (linearRingsAreOriented(flatCoordinates, 0, this.ends_, this.stride)) {\n this.orientedFlatCoordinates_ = flatCoordinates;\n } else {\n this.orientedFlatCoordinates_ = flatCoordinates.slice();\n this.orientedFlatCoordinates_.length = orientLinearRings(\n this.orientedFlatCoordinates_,\n 0,\n this.ends_,\n this.stride,\n );\n }\n this.orientedRevision_ = this.getRevision();\n }\n return /** @type {Array<number>} */ (this.orientedFlatCoordinates_);\n }\n\n /**\n * @param {number} squaredTolerance Squared tolerance.\n * @return {Polygon} Simplified Polygon.\n * @protected\n * @override\n */\n getSimplifiedGeometryInternal(squaredTolerance) {\n /** @type {Array<number>} */\n const simplifiedFlatCoordinates = [];\n /** @type {Array<number>} */\n const simplifiedEnds = [];\n simplifiedFlatCoordinates.length = quantizeArray(\n this.flatCoordinates,\n 0,\n this.ends_,\n this.stride,\n Math.sqrt(squaredTolerance),\n simplifiedFlatCoordinates,\n 0,\n simplifiedEnds,\n );\n return new Polygon(simplifiedFlatCoordinates, 'XY', simplifiedEnds);\n }\n\n /**\n * Get the type of this geometry.\n * @return {import(\"./Geometry.js\").Type} Geometry type.\n * @api\n * @override\n */\n getType() {\n return 'Polygon';\n }\n\n /**\n * Test if the geometry and the passed extent intersect.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @return {boolean} `true` if the geometry and the extent intersect.\n * @api\n * @override\n */\n intersectsExtent(extent) {\n return intersectsLinearRingArray(\n this.getOrientedFlatCoordinates(),\n 0,\n this.ends_,\n this.stride,\n extent,\n );\n }\n\n /**\n * Set the coordinates of the polygon.\n * @param {!Array<Array<import(\"../coordinate.js\").Coordinate>>} coordinates Coordinates.\n * @param {import(\"./Geometry.js\").GeometryLayout} [layout] Layout.\n * @api\n * @override\n */\n setCoordinates(coordinates, layout) {\n this.setLayout(layout, coordinates, 2);\n if (!this.flatCoordinates) {\n this.flatCoordinates = [];\n }\n const ends = deflateCoordinatesArray(\n this.flatCoordinates,\n 0,\n coordinates,\n this.stride,\n this.ends_,\n );\n this.flatCoordinates.length = ends.length === 0 ? 0 : ends[ends.length - 1];\n this.changed();\n }\n}\n\nexport default Polygon;\n\n/**\n * Create an approximation of a circle on the surface of a sphere.\n * @param {import(\"../coordinate.js\").Coordinate} center Center (`[lon, lat]` in degrees).\n * @param {number} radius The great-circle distance from the center to\n * the polygon vertices in meters.\n * @param {number} [n] Optional number of vertices for the resulting\n * polygon. Default is `32`.\n * @param {number} [sphereRadius] Optional radius for the sphere (defaults to\n * the Earth's mean radius using the WGS84 ellipsoid).\n * @return {Polygon} The \"circular\" polygon.\n * @api\n */\nexport function circular(center, radius, n, sphereRadius) {\n n = n ? n : 32;\n /** @type {Array<number>} */\n const flatCoordinates = [];\n for (let i = 0; i < n; ++i) {\n extend(\n flatCoordinates,\n sphereOffset(center, radius, (2 * Math.PI * i) / n, sphereRadius),\n );\n }\n flatCoordinates.push(flatCoordinates[0], flatCoordinates[1]);\n return new Polygon(flatCoordinates, 'XY', [flatCoordinates.length]);\n}\n\n/**\n * Create a polygon from an extent. The layout used is `XY`.\n * @param {import(\"../extent.js\").Extent} extent The extent.\n * @return {Polygon} The polygon.\n * @api\n */\nexport function fromExtent(extent) {\n if (isEmpty(extent)) {\n throw new Error('Cannot create polygon from empty extent');\n }\n const minX = extent[0];\n const minY = extent[1];\n const maxX = extent[2];\n const maxY = extent[3];\n const flatCoordinates = [\n minX,\n minY,\n minX,\n maxY,\n maxX,\n maxY,\n maxX,\n minY,\n minX,\n minY,\n ];\n return new Polygon(flatCoordinates, 'XY', [flatCoordinates.length]);\n}\n\n/**\n * Create a regular polygon from a circle.\n * @param {import(\"./Circle.js\").default} circle Circle geometry.\n * @param {number} [sides] Number of sides of the polygon. Default is 32.\n * @param {number} [angle] Start angle for the first vertex of the polygon in\n * counter-clockwise radians. 0 means East. Default is 0.\n * @return {Polygon} Polygon geometry.\n * @api\n */\nexport function fromCircle(circle, sides, angle) {\n sides = sides ? sides : 32;\n const stride = circle.getStride();\n const layout = circle.getLayout();\n const center = circle.getCenter();\n const arrayLength = stride * (sides + 1);\n const flatCoordinates = new Array(arrayLength);\n for (let i = 0; i < arrayLength; i += stride) {\n flatCoordinates[i] = 0;\n flatCoordinates[i + 1] = 0;\n for (let j = 2; j < stride; j++) {\n flatCoordinates[i + j] = center[j];\n }\n }\n const ends = [flatCoordinates.length];\n const polygon = new Polygon(flatCoordinates, layout, ends);\n makeRegular(polygon, center, circle.getRadius(), angle);\n return polygon;\n}\n\n/**\n * Modify the coordinates of a polygon to make it a regular polygon.\n * @param {Polygon} polygon Polygon geometry.\n * @param {import(\"../coordinate.js\").Coordinate} center Center of the regular polygon.\n * @param {number} radius Radius of the regular polygon.\n * @param {number} [angle] Start angle for the first vertex of the polygon in\n * counter-clockwise radians. 0 means East. Default is 0.\n */\nexport function makeRegular(polygon, center, radius, angle) {\n const flatCoordinates = polygon.getFlatCoordinates();\n const stride = polygon.getStride();\n const sides = flatCoordinates.length / stride - 1;\n const startAngle = angle ? angle : 0;\n for (let i = 0; i <= sides; ++i) {\n const offset = i * stride;\n const angle = startAngle + (modulo(i, sides) * 2 * Math.PI) / sides;\n flatCoordinates[offset] = center[0] + radius * Math.cos(angle);\n flatCoordinates[offset + 1] = center[1] + radius * Math.sin(angle);\n }\n polygon.changed();\n}\n","/**\n * @module ol/resolutionconstraint\n */\nimport {linearFindNearest} from './array.js';\nimport {getHeight, getWidth} from './extent.js';\nimport {clamp} from './math.js';\n\n/**\n * @typedef {function((number|undefined), number, import(\"./size.js\").Size, boolean=): (number|undefined)} Type\n */\n\n/**\n * Returns a modified resolution taking into account the viewport size and maximum\n * allowed extent.\n * @param {number} resolution Resolution\n * @param {import(\"./extent.js\").Extent} maxExtent Maximum allowed extent.\n * @param {import(\"./size.js\").Size} viewportSize Viewport size.\n * @param {boolean} showFullExtent Whether to show the full extent.\n * @return {number} Capped resolution.\n */\nfunction getViewportClampedResolution(\n resolution,\n maxExtent,\n viewportSize,\n showFullExtent,\n) {\n const xResolution = getWidth(maxExtent) / viewportSize[0];\n const yResolution = getHeight(maxExtent) / viewportSize[1];\n\n if (showFullExtent) {\n return Math.min(resolution, Math.max(xResolution, yResolution));\n }\n return Math.min(resolution, Math.min(xResolution, yResolution));\n}\n\n/**\n * Returns a modified resolution to be between maxResolution and minResolution while\n * still allowing the value to be slightly out of bounds.\n * Note: the computation is based on the logarithm function (ln):\n * - at 1, ln(x) is 0\n * - above 1, ln(x) keeps increasing but at a much slower pace than x\n * The final result is clamped to prevent getting too far away from bounds.\n * @param {number} resolution Resolution.\n * @param {number} maxResolution Max resolution.\n * @param {number} minResolution Min resolution.\n * @return {number} Smoothed resolution.\n */\nfunction getSmoothClampedResolution(resolution, maxResolution, minResolution) {\n let result = Math.min(resolution, maxResolution);\n const ratio = 50;\n\n result *=\n Math.log(1 + ratio * Math.max(0, resolution / maxResolution - 1)) / ratio +\n 1;\n if (minResolution) {\n result = Math.max(result, minResolution);\n result /=\n Math.log(1 + ratio * Math.max(0, minResolution / resolution - 1)) /\n ratio +\n 1;\n }\n return clamp(result, minResolution / 2, maxResolution * 2);\n}\n\n/**\n * @param {Array<number>} resolutions Resolutions.\n * @param {boolean} [smooth] If true, the view will be able to slightly exceed resolution limits. Default: true.\n * @param {import(\"./extent.js\").Extent} [maxExtent] Maximum allowed extent.\n * @param {boolean} [showFullExtent] If true, allows us to show the full extent. Default: false.\n * @return {Type} Zoom function.\n */\nexport function createSnapToResolutions(\n resolutions,\n smooth,\n maxExtent,\n showFullExtent,\n) {\n smooth = smooth !== undefined ? smooth : true;\n return (\n /**\n * @param {number|undefined} resolution Resolution.\n * @param {number} direction Direction.\n * @param {import(\"./size.js\").Size} size Viewport size.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @return {number|undefined} Resolution.\n */\n function (resolution, direction, size, isMoving) {\n if (resolution !== undefined) {\n const maxResolution = resolutions[0];\n const minResolution = resolutions[resolutions.length - 1];\n const cappedMaxRes = maxExtent\n ? getViewportClampedResolution(\n maxResolution,\n maxExtent,\n size,\n showFullExtent,\n )\n : maxResolution;\n\n // during interacting or animating, allow intermediary values\n if (isMoving) {\n if (!smooth) {\n return clamp(resolution, minResolution, cappedMaxRes);\n }\n return getSmoothClampedResolution(\n resolution,\n cappedMaxRes,\n minResolution,\n );\n }\n\n const capped = Math.min(cappedMaxRes, resolution);\n const z = Math.floor(linearFindNearest(resolutions, capped, direction));\n if (resolutions[z] > cappedMaxRes && z < resolutions.length - 1) {\n return resolutions[z + 1];\n }\n return resolutions[z];\n }\n return undefined;\n }\n );\n}\n\n/**\n * @param {number} power Power.\n * @param {number} maxResolution Maximum resolution.\n * @param {number} [minResolution] Minimum resolution.\n * @param {boolean} [smooth] If true, the view will be able to slightly exceed resolution limits. Default: true.\n * @param {import(\"./extent.js\").Extent} [maxExtent] Maximum allowed extent.\n * @param {boolean} [showFullExtent] If true, allows us to show the full extent. Default: false.\n * @return {Type} Zoom function.\n */\nexport function createSnapToPower(\n power,\n maxResolution,\n minResolution,\n smooth,\n maxExtent,\n showFullExtent,\n) {\n smooth = smooth !== undefined ? smooth : true;\n minResolution = minResolution !== undefined ? minResolution : 0;\n\n return (\n /**\n * @param {number|undefined} resolution Resolution.\n * @param {number} direction Direction.\n * @param {import(\"./size.js\").Size} size Viewport size.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @return {number|undefined} Resolution.\n */\n function (resolution, direction, size, isMoving) {\n if (resolution !== undefined) {\n const cappedMaxRes = maxExtent\n ? getViewportClampedResolution(\n maxResolution,\n maxExtent,\n size,\n showFullExtent,\n )\n : maxResolution;\n\n // during interacting or animating, allow intermediary values\n if (isMoving) {\n if (!smooth) {\n return clamp(resolution, minResolution, cappedMaxRes);\n }\n return getSmoothClampedResolution(\n resolution,\n cappedMaxRes,\n minResolution,\n );\n }\n\n const tolerance = 1e-9;\n const minZoomLevel = Math.ceil(\n Math.log(maxResolution / cappedMaxRes) / Math.log(power) - tolerance,\n );\n const offset = -direction * (0.5 - tolerance) + 0.5;\n const capped = Math.min(cappedMaxRes, resolution);\n const cappedZoomLevel = Math.floor(\n Math.log(maxResolution / capped) / Math.log(power) + offset,\n );\n const zoomLevel = Math.max(minZoomLevel, cappedZoomLevel);\n const newResolution = maxResolution / Math.pow(power, zoomLevel);\n return clamp(newResolution, minResolution, cappedMaxRes);\n }\n return undefined;\n }\n );\n}\n\n/**\n * @param {number} maxResolution Max resolution.\n * @param {number} minResolution Min resolution.\n * @param {boolean} [smooth] If true, the view will be able to slightly exceed resolution limits. Default: true.\n * @param {import(\"./extent.js\").Extent} [maxExtent] Maximum allowed extent.\n * @param {boolean} [showFullExtent] If true, allows us to show the full extent. Default: false.\n * @return {Type} Zoom function.\n */\nexport function createMinMaxResolution(\n maxResolution,\n minResolution,\n smooth,\n maxExtent,\n showFullExtent,\n) {\n smooth = smooth !== undefined ? smooth : true;\n\n return (\n /**\n * @param {number|undefined} resolution Resolution.\n * @param {number} direction Direction.\n * @param {import(\"./size.js\").Size} size Viewport size.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @return {number|undefined} Resolution.\n */\n function (resolution, direction, size, isMoving) {\n if (resolution !== undefined) {\n const cappedMaxRes = maxExtent\n ? getViewportClampedResolution(\n maxResolution,\n maxExtent,\n size,\n showFullExtent,\n )\n : maxResolution;\n\n if (!smooth || !isMoving) {\n return clamp(resolution, minResolution, cappedMaxRes);\n }\n return getSmoothClampedResolution(\n resolution,\n cappedMaxRes,\n minResolution,\n );\n }\n return undefined;\n }\n );\n}\n","/**\n * @module ol/rotationconstraint\n */\nimport {toRadians} from './math.js';\n\n/**\n * @typedef {function((number|undefined), boolean=): (number|undefined)} Type\n */\n\n/**\n * @param {number|undefined} rotation Rotation.\n * @return {number|undefined} Rotation.\n */\nexport function disable(rotation) {\n if (rotation !== undefined) {\n return 0;\n }\n return undefined;\n}\n\n/**\n * @param {number|undefined} rotation Rotation.\n * @return {number|undefined} Rotation.\n */\nexport function none(rotation) {\n if (rotation !== undefined) {\n return rotation;\n }\n return undefined;\n}\n\n/**\n * @param {number} n N.\n * @return {Type} Rotation constraint.\n */\nexport function createSnapToN(n) {\n const theta = (2 * Math.PI) / n;\n return (\n /**\n * @param {number|undefined} rotation Rotation.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @return {number|undefined} Rotation.\n */\n function (rotation, isMoving) {\n if (isMoving) {\n return rotation;\n }\n\n if (rotation !== undefined) {\n rotation = Math.floor(rotation / theta + 0.5) * theta;\n return rotation;\n }\n return undefined;\n }\n );\n}\n\n/**\n * @param {number} [tolerance] Tolerance.\n * @return {Type} Rotation constraint.\n */\nexport function createSnapToZero(tolerance) {\n const t = tolerance === undefined ? toRadians(5) : tolerance;\n return (\n /**\n * @param {number|undefined} rotation Rotation.\n * @param {boolean} [isMoving] True if an interaction or animation is in progress.\n * @return {number|undefined} Rotation.\n */\n function (rotation, isMoving) {\n if (isMoving || rotation === undefined) {\n return rotation;\n }\n\n if (Math.abs(rotation) <= t) {\n return 0;\n }\n return rotation;\n }\n );\n}\n","/**\n * @module ol/tilegrid/common\n */\n\n/**\n * Default maximum zoom for default tile grids.\n * @type {number}\n */\nexport const DEFAULT_MAX_ZOOM = 42;\n\n/**\n * Default tile size.\n * @type {number}\n */\nexport const DEFAULT_TILE_SIZE = 256;\n","/**\n * @module ol/View\n */\nimport BaseObject from './Object.js';\nimport ViewHint from './ViewHint.js';\nimport ViewProperty from './ViewProperty.js';\nimport {linearFindNearest} from './array.js';\nimport {assert} from './asserts.js';\nimport {createExtent, none as centerNone} from './centerconstraint.js';\nimport {\n add as addCoordinate,\n equals,\n equals as coordinatesEqual,\n rotate as rotateCoordinate,\n} from './coordinate.js';\nimport {easeOut, inAndOut} from './easing.js';\nimport {\n getCenter,\n getForViewAndSize,\n getHeight,\n getWidth,\n isEmpty,\n} from './extent.js';\nimport {VOID} from './functions.js';\nimport {fromExtent as polygonFromExtent} from './geom/Polygon.js';\nimport {clamp, modulo} from './math.js';\nimport {\n METERS_PER_UNIT,\n createProjection,\n disableCoordinateWarning,\n fromUserCoordinate,\n fromUserExtent,\n getUserProjection,\n toUserCoordinate,\n toUserExtent,\n} from './proj.js';\nimport {\n createMinMaxResolution,\n createSnapToPower,\n createSnapToResolutions,\n} from './resolutionconstraint.js';\nimport {\n createSnapToN,\n createSnapToZero,\n disable,\n none as rotationNone,\n} from './rotationconstraint.js';\nimport {DEFAULT_TILE_SIZE} from './tilegrid/common.js';\n\n/**\n * An animation configuration\n *\n * @typedef {Object} Animation\n * @property {import(\"./coordinate.js\").Coordinate} [sourceCenter] Source center.\n * @property {import(\"./coordinate.js\").Coordinate} [targetCenter] Target center.\n * @property {number} [sourceResolution] Source resolution.\n * @property {number} [targetResolution] Target resolution.\n * @property {number} [sourceRotation] Source rotation.\n * @property {number} [targetRotation] Target rotation.\n * @property {import(\"./coordinate.js\").Coordinate} [anchor] Anchor.\n * @property {number} start Start.\n * @property {number} duration Duration.\n * @property {boolean} complete Complete.\n * @property {function(number):number} easing Easing.\n * @property {function(boolean):void} callback Callback.\n */\n\n/**\n * @typedef {Object} Constraints\n * @property {import(\"./centerconstraint.js\").Type} center Center.\n * @property {import(\"./resolutionconstraint.js\").Type} resolution Resolution.\n * @property {import(\"./rotationconstraint.js\").Type} rotation Rotation.\n */\n\n/**\n * @typedef {Object} FitOptions\n * @property {import(\"./size.js\").Size} [size] The size in pixels of the box to\n * fit the extent into. Defaults to the size of the map the view is associated with.\n * If no map or multiple maps are connected to the view, provide the desired box size\n * (e.g. `map.getSize()`).\n * @property {!Array<number>} [padding=[0, 0, 0, 0]] Padding (in pixels) to be\n * cleared inside the view. Values in the array are top, right, bottom and left\n * padding.\n * @property {boolean} [nearest=false] If the view `constrainResolution` option is `true`,\n * get the nearest extent instead of the closest that actually fits the view.\n * @property {number} [minResolution=0] Minimum resolution that we zoom to.\n * @property {number} [maxZoom] Maximum zoom level that we zoom to. If\n * `minResolution` is given, this property is ignored.\n * @property {number} [duration] The duration of the animation in milliseconds.\n * By default, there is no animation to the target extent.\n * @property {function(number):number} [easing] The easing function used during\n * the animation (defaults to {@link module:ol/easing.inAndOut}).\n * The function will be called for each frame with a number representing a\n * fraction of the animation's duration. The function should return a number\n * between 0 and 1 representing the progress toward the destination state.\n * @property {function(boolean):void} [callback] Function called when the view is in\n * its final position. The callback will be called with `true` if the animation\n * series completed on its own or `false` if it was cancelled.\n */\n\n/**\n * @typedef {Object} ViewOptions\n * @property {import(\"./coordinate.js\").Coordinate} [center] The initial center for\n * the view. If a user projection is not set, the coordinate system for the center is\n * specified with the `projection` option. Layer sources will not be fetched if this\n * is not set, but the center can be set later with {@link #setCenter}.\n * @property {boolean|number} [constrainRotation=true] Rotation constraint.\n * `false` means no constraint. `true` means no constraint, but snap to zero\n * near zero. A number constrains the rotation to that number of values. For\n * example, `4` will constrain the rotation to 0, 90, 180, and 270 degrees.\n * @property {boolean} [enableRotation=true] Enable rotation.\n * If `false`, a rotation constraint that always sets the rotation to zero is\n * used. The `constrainRotation` option has no effect if `enableRotation` is\n * `false`.\n * @property {import(\"./extent.js\").Extent} [extent] The extent that constrains the\n * view, in other words, nothing outside of this extent can be visible on the map.\n * @property {boolean} [constrainOnlyCenter=false] If true, the extent\n * constraint will only apply to the view center and not the whole extent.\n * @property {boolean} [smoothExtentConstraint=true] If true, the extent\n * constraint will be applied smoothly, i.e. allow the view to go slightly outside\n * of the given `extent`.\n * @property {number} [maxResolution] The maximum resolution used to determine\n * the resolution constraint. It is used together with `minResolution` (or\n * `maxZoom`) and `zoomFactor`. If unspecified it is calculated in such a way\n * that the projection's validity extent fits in a 256x256 px tile. If the\n * projection is Spherical Mercator (the default) then `maxResolution` defaults\n * to `40075016.68557849 / 256 = 156543.03392804097`.\n * @property {number} [minResolution] The minimum resolution used to determine\n * the resolution constraint. It is used together with `maxResolution` (or\n * `minZoom`) and `zoomFactor`. If unspecified it is calculated assuming 29\n * zoom levels (with a factor of 2). If the projection is Spherical Mercator\n * (the default) then `minResolution` defaults to\n * `40075016.68557849 / 256 / Math.pow(2, 28) = 0.0005831682455839253`.\n * @property {number} [maxZoom=28] The maximum zoom level used to determine the\n * resolution constraint. It is used together with `minZoom` (or\n * `maxResolution`) and `zoomFactor`. Note that if `minResolution` is also\n * provided, it is given precedence over `maxZoom`.\n * @property {number} [minZoom=0] The minimum zoom level used to determine the\n * resolution constraint. It is used together with `maxZoom` (or\n * `minResolution`) and `zoomFactor`. Note that if `maxResolution` is also\n * provided, it is given precedence over `minZoom`.\n * @property {boolean} [multiWorld=false] If `false` the view is constrained so\n * only one world is visible, and you cannot pan off the edge. If `true` the map\n * may show multiple worlds at low zoom levels. Only used if the `projection` is\n * global. Note that if `extent` is also provided it is given precedence.\n * @property {boolean} [constrainResolution=false] If true, the view will always\n * animate to the closest zoom level after an interaction; false means\n * intermediary zoom levels are allowed.\n * @property {boolean} [smoothResolutionConstraint=true] If true, the resolution\n * min/max values will be applied smoothly, i. e. allow the view to exceed slightly\n * the given resolution or zoom bounds.\n * @property {boolean} [showFullExtent=false] Allow the view to be zoomed out to\n * show the full configured extent. By default, when a view is configured with an\n * extent, users will not be able to zoom out so the viewport exceeds the extent in\n * either dimension. This means the full extent may not be visible if the viewport\n * is taller or wider than the aspect ratio of the configured extent. If\n * showFullExtent is true, the user will be able to zoom out so that the viewport\n * exceeds the height or width of the configured extent, but not both, allowing the\n * full extent to be shown.\n * @property {import(\"./proj.js\").ProjectionLike} [projection='EPSG:3857'] The\n * projection. The default is Spherical Mercator.\n * @property {number} [resolution] The initial resolution for the view. The\n * units are `projection` units per pixel (e.g. meters per pixel). An\n * alternative to setting this is to set `zoom`. Layer sources will not be\n * fetched if neither this nor `zoom` are defined, but they can be set later\n * with {@link #setZoom} or {@link #setResolution}.\n * @property {Array<number>} [resolutions] Resolutions that determine the\n * zoom levels if specified. The index in the array corresponds to the zoom level,\n * therefore the resolution values have to be in descending order. It also constrains\n * the resolution by the minimum and maximum value. If set the `maxResolution`,\n * `minResolution`, `minZoom`, `maxZoom`, and `zoomFactor` options are ignored.\n * @property {number} [rotation=0] The initial rotation for the view in radians\n * (positive rotation clockwise, 0 means North).\n * @property {number} [zoom] Only used if `resolution` is not defined. Zoom\n * level used to calculate the initial resolution for the view.\n * @property {number} [zoomFactor=2] The zoom factor used to compute the\n * corresponding resolution.\n * @property {!Array<number>} [padding=[0, 0, 0, 0]] Padding (in css pixels).\n * If the map viewport is partially covered with other content (overlays) along\n * its edges, this setting allows to shift the center of the viewport away from\n * that content. The order of the values is top, right, bottom, left.\n */\n\n/**\n * @typedef {Object} AnimationOptions\n * @property {import(\"./coordinate.js\").Coordinate} [center] The center of the view at the end of\n * the animation.\n * @property {number} [zoom] The zoom level of the view at the end of the\n * animation. This takes precedence over `resolution`.\n * @property {number} [resolution] The resolution of the view at the end\n * of the animation. If `zoom` is also provided, this option will be ignored.\n * @property {number} [rotation] The rotation of the view at the end of\n * the animation.\n * @property {import(\"./coordinate.js\").Coordinate} [anchor] Optional anchor to remain fixed\n * during a rotation or resolution animation.\n * @property {number} [duration=1000] The duration of the animation in milliseconds.\n * @property {function(number):number} [easing] The easing function used\n * during the animation (defaults to {@link module:ol/easing.inAndOut}).\n * The function will be called for each frame with a number representing a\n * fraction of the animation's duration. The function should return a number\n * between 0 and 1 representing the progress toward the destination state.\n */\n\n/**\n * @typedef {Object} State\n * @property {import(\"./coordinate.js\").Coordinate} center Center (in view projection coordinates).\n * @property {import(\"./proj/Projection.js\").default} projection Projection.\n * @property {number} resolution Resolution.\n * @property {import(\"./coordinate.js\").Coordinate} [nextCenter] The next center during an animation series.\n * @property {number} [nextResolution] The next resolution during an animation series.\n * @property {number} [nextRotation] The next rotation during an animation series.\n * @property {number} rotation Rotation.\n * @property {number} zoom Zoom.\n */\n\n/**\n * Like {@link import(\"./Map.js\").FrameState}, but just `viewState` and `extent`.\n * @typedef {Object} ViewStateLayerStateExtent\n * @property {State} viewState View state.\n * @property {import(\"./extent.js\").Extent} extent Extent (in user projection coordinates).\n * @property {Array<import(\"./layer/Layer.js\").State>} [layerStatesArray] Layer states.\n */\n\n/**\n * Default min zoom level for the map view.\n * @type {number}\n */\nconst DEFAULT_MIN_ZOOM = 0;\n\n/**\n * @typedef {import(\"./ObjectEventType\").Types|'change:center'|'change:resolution'|'change:rotation'} ViewObjectEventTypes\n */\n\n/***\n * @template Return\n * @typedef {import(\"./Observable\").OnSignature<import(\"./Observable\").EventTypes, import(\"./events/Event.js\").default, Return> &\n * import(\"./Observable\").OnSignature<ViewObjectEventTypes, import(\"./Object\").ObjectEvent, Return> &\n * import(\"./Observable\").CombinedOnSignature<import(\"./Observable\").EventTypes|ViewObjectEventTypes, Return>} ViewOnSignature\n */\n\n/**\n * @classdesc\n * A View object represents a simple 2D view of the map.\n *\n * This is the object to act upon to change the center, resolution,\n * and rotation of the map.\n *\n * A View has a `projection`. The projection determines the\n * coordinate system of the center, and its units determine the units of the\n * resolution (projection units per pixel). The default projection is\n * Web Mercator (EPSG:3857).\n *\n * ### The view states\n *\n * A View is determined by three states: `center`, `resolution`,\n * and `rotation`. Each state has a corresponding getter and setter, e.g.\n * `getCenter` and `setCenter` for the `center` state.\n *\n * The `zoom` state is actually not saved on the view: all computations\n * internally use the `resolution` state. Still, the `setZoom` and `getZoom`\n * methods are available, as well as `getResolutionForZoom` and\n * `getZoomForResolution` to switch from one system to the other.\n *\n * ### The constraints\n *\n * `setCenter`, `setResolution` and `setRotation` can be used to change the\n * states of the view, but any constraint defined in the constructor will\n * be applied along the way.\n *\n * A View object can have a *resolution constraint*, a *rotation constraint*\n * and a *center constraint*.\n *\n * The *resolution constraint* typically restricts min/max values and\n * snaps to specific resolutions. It is determined by the following\n * options: `resolutions`, `maxResolution`, `maxZoom` and `zoomFactor`.\n * If `resolutions` is set, the other three options are ignored. See\n * documentation for each option for more information. By default, the view\n * only has a min/max restriction and allow intermediary zoom levels when\n * pinch-zooming for example.\n *\n * The *rotation constraint* snaps to specific angles. It is determined\n * by the following options: `enableRotation` and `constrainRotation`.\n * By default rotation is allowed and its value is snapped to zero when approaching the\n * horizontal.\n *\n * The *center constraint* is determined by the `extent` option. By\n * default the view center is not constrained at all.\n *\n * ### Changing the view state\n *\n * It is important to note that `setZoom`, `setResolution`, `setCenter` and\n * `setRotation` are subject to the above mentioned constraints. As such, it\n * may sometimes not be possible to know in advance the resulting state of the\n * View. For example, calling `setResolution(10)` does not guarantee that\n * `getResolution()` will return `10`.\n *\n * A consequence of this is that, when applying a delta on the view state, one\n * should use `adjustCenter`, `adjustRotation`, `adjustZoom` and `adjustResolution`\n * rather than the corresponding setters. This will let view do its internal\n * computations. Besides, the `adjust*` methods also take an `anchor`\n * argument which allows specifying an origin for the transformation.\n *\n * ### Interacting with the view\n *\n * View constraints are usually only applied when the view is *at rest*, meaning that\n * no interaction or animation is ongoing. As such, if the user puts the view in a\n * state that is not equivalent to a constrained one (e.g. rotating the view when\n * the snap angle is 0), an animation will be triggered at the interaction end to\n * put back the view to a stable state;\n *\n * @api\n * @extends {BaseObject<ViewOptions>}\n */\nclass View extends BaseObject {\n /**\n * @param {ViewOptions} [options] View options.\n */\n constructor(options) {\n super();\n\n /***\n * @type {ViewOnSignature<import(\"./events\").EventsKey>}\n */\n this.on;\n\n /***\n * @type {ViewOnSignature<import(\"./events\").EventsKey>}\n */\n this.once;\n\n /***\n * @type {ViewOnSignature<void>}\n */\n this.un;\n\n options = Object.assign({}, options);\n\n /**\n * @private\n * @type {Array<number>}\n */\n this.hints_ = [0, 0];\n\n /**\n * @private\n * @type {Array<Array<Animation>>}\n */\n this.animations_ = [];\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.updateAnimationKey_;\n\n /**\n * @private\n * @const\n * @type {import(\"./proj/Projection.js\").default}\n */\n this.projection_ = createProjection(options.projection, 'EPSG:3857');\n\n /**\n * @private\n * @type {import(\"./size.js\").Size}\n */\n this.viewportSize_ = [100, 100];\n\n /**\n * @private\n * @type {import(\"./coordinate.js\").Coordinate|undefined}\n */\n this.targetCenter_ = null;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.targetResolution_;\n\n /**\n * @private\n * @type {number|undefined}\n */\n this.targetRotation_;\n\n /**\n * @private\n * @type {import(\"./coordinate.js\").Coordinate}\n */\n this.nextCenter_ = null;\n\n /**\n * @private\n * @type {number}\n */\n this.nextResolution_;\n\n /**\n * @private\n * @type {number}\n */\n this.nextRotation_;\n\n /**\n * @private\n * @type {import(\"./coordinate.js\").Coordinate|undefined}\n */\n this.cancelAnchor_ = undefined;\n\n if (options.projection) {\n disableCoordinateWarning();\n }\n if (options.center) {\n options.center = fromUserCoordinate(options.center, this.projection_);\n }\n if (options.extent) {\n options.extent = fromUserExtent(options.extent, this.projection_);\n }\n\n this.applyOptions_(options);\n }\n\n /**\n * Set up the view with the given options.\n * @param {ViewOptions} options View options.\n */\n applyOptions_(options) {\n const properties = Object.assign({}, options);\n for (const key in ViewProperty) {\n delete properties[key];\n }\n this.setProperties(properties, true);\n\n const resolutionConstraintInfo = createResolutionConstraint(options);\n\n /**\n * @private\n * @type {number}\n */\n this.maxResolution_ = resolutionConstraintInfo.maxResolution;\n\n /**\n * @private\n * @type {number}\n */\n this.minResolution_ = resolutionConstraintInfo.minResolution;\n\n /**\n * @private\n * @type {number}\n */\n this.zoomFactor_ = resolutionConstraintInfo.zoomFactor;\n\n /**\n * @private\n * @type {Array<number>|undefined}\n */\n this.resolutions_ = options.resolutions;\n\n /**\n * @type {Array<number>|undefined}\n * @private\n */\n this.padding_ = options.padding;\n\n /**\n * @private\n * @type {number}\n */\n this.minZoom_ = resolutionConstraintInfo.minZoom;\n\n const centerConstraint = createCenterConstraint(options);\n const resolutionConstraint = resolutionConstraintInfo.constraint;\n const rotationConstraint = createRotationConstraint(options);\n\n /**\n * @private\n * @type {Constraints}\n */\n this.constraints_ = {\n center: centerConstraint,\n resolution: resolutionConstraint,\n rotation: rotationConstraint,\n };\n\n this.setRotation(options.rotation !== undefined ? options.rotation : 0);\n this.setCenterInternal(\n options.center !== undefined ? options.center : null,\n );\n if (options.resolution !== undefined) {\n this.setResolution(options.resolution);\n } else if (options.zoom !== undefined) {\n this.setZoom(options.zoom);\n }\n }\n\n /**\n * Padding (in css pixels).\n * If the map viewport is partially covered with other content (overlays) along\n * its edges, this setting allows to shift the center of the viewport away from that\n * content. The order of the values in the array is top, right, bottom, left.\n * The default is no padding, which is equivalent to `[0, 0, 0, 0]`.\n * @type {Array<number>|undefined}\n * @api\n */\n get padding() {\n return this.padding_;\n }\n set padding(padding) {\n let oldPadding = this.padding_;\n this.padding_ = padding;\n const center = this.getCenterInternal();\n if (center) {\n const newPadding = padding || [0, 0, 0, 0];\n oldPadding = oldPadding || [0, 0, 0, 0];\n const resolution = this.getResolution();\n const offsetX =\n (resolution / 2) *\n (newPadding[3] - oldPadding[3] + oldPadding[1] - newPadding[1]);\n const offsetY =\n (resolution / 2) *\n (newPadding[0] - oldPadding[0] + oldPadding[2] - newPadding[2]);\n this.setCenterInternal([center[0] + offsetX, center[1] - offsetY]);\n }\n }\n\n /**\n * Get an updated version of the view options used to construct the view. The\n * current resolution (or zoom), center, and rotation are applied to any stored\n * options. The provided options can be used to apply new min/max zoom or\n * resolution limits.\n * @param {ViewOptions} newOptions New options to be applied.\n * @return {ViewOptions} New options updated with the current view state.\n */\n getUpdatedOptions_(newOptions) {\n const options = this.getProperties();\n\n // preserve resolution (or zoom)\n if (options.resolution !== undefined) {\n options.resolution = this.getResolution();\n } else {\n options.zoom = this.getZoom();\n }\n\n // preserve center\n options.center = this.getCenterInternal();\n\n // preserve rotation\n options.rotation = this.getRotation();\n\n return Object.assign({}, options, newOptions);\n }\n\n /**\n * Animate the view. The view's center, zoom (or resolution), and rotation\n * can be animated for smooth transitions between view states. For example,\n * to animate the view to a new zoom level:\n *\n * view.animate({zoom: view.getZoom() + 1});\n *\n * By default, the animation lasts one second and uses in-and-out easing. You\n * can customize this behavior by including `duration` (in milliseconds) and\n * `easing` options (see {@link module:ol/easing}).\n *\n * To chain together multiple animations, call the method with multiple\n * animation objects. For example, to first zoom and then pan:\n *\n * view.animate({zoom: 10}, {center: [0, 0]});\n *\n * If you provide a function as the last argument to the animate method, it\n * will get called at the end of an animation series. The callback will be\n * called with `true` if the animation series completed on its own or `false`\n * if it was cancelled.\n *\n * Animations are cancelled by user interactions (e.g. dragging the map) or by\n * calling `view.setCenter()`, `view.setResolution()`, or `view.setRotation()`\n * (or another method that calls one of these).\n *\n * @param {...(AnimationOptions|function(boolean): void)} var_args Animation\n * options. Multiple animations can be run in series by passing multiple\n * options objects. To run multiple animations in parallel, call the method\n * multiple times. An optional callback can be provided as a final\n * argument. The callback will be called with a boolean indicating whether\n * the animation completed without being cancelled.\n * @api\n */\n animate(var_args) {\n if (this.isDef() && !this.getAnimating()) {\n this.resolveConstraints(0);\n }\n const args = new Array(arguments.length);\n for (let i = 0; i < args.length; ++i) {\n let options = arguments[i];\n if (options.center) {\n options = Object.assign({}, options);\n options.center = fromUserCoordinate(\n options.center,\n this.getProjection(),\n );\n }\n if (options.anchor) {\n options = Object.assign({}, options);\n options.anchor = fromUserCoordinate(\n options.anchor,\n this.getProjection(),\n );\n }\n args[i] = options;\n }\n this.animateInternal.apply(this, args);\n }\n\n /**\n * @param {...(AnimationOptions|function(boolean): void)} var_args Animation options.\n */\n animateInternal(var_args) {\n let animationCount = arguments.length;\n let callback;\n if (\n animationCount > 1 &&\n typeof arguments[animationCount - 1] === 'function'\n ) {\n callback = arguments[animationCount - 1];\n --animationCount;\n }\n\n let i = 0;\n for (; i < animationCount && !this.isDef(); ++i) {\n // if view properties are not yet set, shortcut to the final state\n const state = arguments[i];\n if (state.center) {\n this.setCenterInternal(state.center);\n }\n if (state.zoom !== undefined) {\n this.setZoom(state.zoom);\n } else if (state.resolution) {\n this.setResolution(state.resolution);\n }\n if (state.rotation !== undefined) {\n this.setRotation(state.rotation);\n }\n }\n if (i === animationCount) {\n if (callback) {\n animationCallback(callback, true);\n }\n return;\n }\n\n let start = Date.now();\n let center = this.targetCenter_.slice();\n let resolution = this.targetResolution_;\n let rotation = this.targetRotation_;\n const series = [];\n for (; i < animationCount; ++i) {\n const options = /** @type {AnimationOptions} */ (arguments[i]);\n\n const animation = {\n start: start,\n complete: false,\n anchor: options.anchor,\n duration: options.duration !== undefined ? options.duration : 1000,\n easing: options.easing || inAndOut,\n callback: callback,\n };\n\n if (options.center) {\n animation.sourceCenter = center;\n animation.targetCenter = options.center.slice();\n center = animation.targetCenter;\n }\n\n if (options.zoom !== undefined) {\n animation.sourceResolution = resolution;\n animation.targetResolution = this.getResolutionForZoom(options.zoom);\n resolution = animation.targetResolution;\n } else if (options.resolution) {\n animation.sourceResolution = resolution;\n animation.targetResolution = options.resolution;\n resolution = animation.targetResolution;\n }\n\n if (options.rotation !== undefined) {\n animation.sourceRotation = rotation;\n const delta =\n modulo(options.rotation - rotation + Math.PI, 2 * Math.PI) - Math.PI;\n animation.targetRotation = rotation + delta;\n rotation = animation.targetRotation;\n }\n\n // check if animation is a no-op\n if (isNoopAnimation(animation)) {\n animation.complete = true;\n // we still push it onto the series for callback handling\n } else {\n start += animation.duration;\n }\n series.push(animation);\n }\n this.animations_.push(series);\n this.setHint(ViewHint.ANIMATING, 1);\n this.updateAnimations_();\n }\n\n /**\n * Determine if the view is being animated.\n * @return {boolean} The view is being animated.\n * @api\n */\n getAnimating() {\n return this.hints_[ViewHint.ANIMATING] > 0;\n }\n\n /**\n * Determine if the user is interacting with the view, such as panning or zooming.\n * @return {boolean} The view is being interacted with.\n * @api\n */\n getInteracting() {\n return this.hints_[ViewHint.INTERACTING] > 0;\n }\n\n /**\n * Cancel any ongoing animations.\n * @api\n */\n cancelAnimations() {\n this.setHint(ViewHint.ANIMATING, -this.hints_[ViewHint.ANIMATING]);\n let anchor;\n for (let i = 0, ii = this.animations_.length; i < ii; ++i) {\n const series = this.animations_[i];\n if (series[0].callback) {\n animationCallback(series[0].callback, false);\n }\n if (!anchor) {\n for (let j = 0, jj = series.length; j < jj; ++j) {\n const animation = series[j];\n if (!animation.complete) {\n anchor = animation.anchor;\n break;\n }\n }\n }\n }\n this.animations_.length = 0;\n this.cancelAnchor_ = anchor;\n this.nextCenter_ = null;\n this.nextResolution_ = NaN;\n this.nextRotation_ = NaN;\n }\n\n /**\n * Update all animations.\n */\n updateAnimations_() {\n if (this.updateAnimationKey_ !== undefined) {\n cancelAnimationFrame(this.updateAnimationKey_);\n this.updateAnimationKey_ = undefined;\n }\n if (!this.getAnimating()) {\n return;\n }\n const now = Date.now();\n let more = false;\n for (let i = this.animations_.length - 1; i >= 0; --i) {\n const series = this.animations_[i];\n let seriesComplete = true;\n for (let j = 0, jj = series.length; j < jj; ++j) {\n const animation = series[j];\n if (animation.complete) {\n continue;\n }\n const elapsed = now - animation.start;\n let fraction =\n animation.duration > 0 ? elapsed / animation.duration : 1;\n if (fraction >= 1) {\n animation.complete = true;\n fraction = 1;\n } else {\n seriesComplete = false;\n }\n const progress = animation.easing(fraction);\n if (animation.sourceCenter) {\n const x0 = animation.sourceCenter[0];\n const y0 = animation.sourceCenter[1];\n const x1 = animation.targetCenter[0];\n const y1 = animation.targetCenter[1];\n this.nextCenter_ = animation.targetCenter;\n const x = x0 + progress * (x1 - x0);\n const y = y0 + progress * (y1 - y0);\n this.targetCenter_ = [x, y];\n }\n if (animation.sourceResolution && animation.targetResolution) {\n const resolution =\n progress === 1\n ? animation.targetResolution\n : animation.sourceResolution +\n progress *\n (animation.targetResolution - animation.sourceResolution);\n if (animation.anchor) {\n const size = this.getViewportSize_(this.getRotation());\n const constrainedResolution = this.constraints_.resolution(\n resolution,\n 0,\n size,\n true,\n );\n this.targetCenter_ = this.calculateCenterZoom(\n constrainedResolution,\n animation.anchor,\n );\n }\n this.nextResolution_ = animation.targetResolution;\n this.targetResolution_ = resolution;\n this.applyTargetState_(true);\n }\n if (\n animation.sourceRotation !== undefined &&\n animation.targetRotation !== undefined\n ) {\n const rotation =\n progress === 1\n ? modulo(animation.targetRotation + Math.PI, 2 * Math.PI) -\n Math.PI\n : animation.sourceRotation +\n progress *\n (animation.targetRotation - animation.sourceRotation);\n if (animation.anchor) {\n const constrainedRotation = this.constraints_.rotation(\n rotation,\n true,\n );\n this.targetCenter_ = this.calculateCenterRotate(\n constrainedRotation,\n animation.anchor,\n );\n }\n this.nextRotation_ = animation.targetRotation;\n this.targetRotation_ = rotation;\n }\n this.applyTargetState_(true);\n more = true;\n if (!animation.complete) {\n break;\n }\n }\n if (seriesComplete) {\n this.animations_[i] = null;\n this.setHint(ViewHint.ANIMATING, -1);\n this.nextCenter_ = null;\n this.nextResolution_ = NaN;\n this.nextRotation_ = NaN;\n const callback = series[0].callback;\n if (callback) {\n animationCallback(callback, true);\n }\n }\n }\n // prune completed series\n this.animations_ = this.animations_.filter(Boolean);\n if (more && this.updateAnimationKey_ === undefined) {\n this.updateAnimationKey_ = requestAnimationFrame(\n this.updateAnimations_.bind(this),\n );\n }\n }\n\n /**\n * @param {number} rotation Target rotation.\n * @param {import(\"./coordinate.js\").Coordinate} anchor Rotation anchor.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} Center for rotation and anchor.\n */\n calculateCenterRotate(rotation, anchor) {\n let center;\n const currentCenter = this.getCenterInternal();\n if (currentCenter !== undefined) {\n center = [currentCenter[0] - anchor[0], currentCenter[1] - anchor[1]];\n rotateCoordinate(center, rotation - this.getRotation());\n addCoordinate(center, anchor);\n }\n return center;\n }\n\n /**\n * @param {number} resolution Target resolution.\n * @param {import(\"./coordinate.js\").Coordinate} anchor Zoom anchor.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} Center for resolution and anchor.\n */\n calculateCenterZoom(resolution, anchor) {\n let center;\n const currentCenter = this.getCenterInternal();\n const currentResolution = this.getResolution();\n if (currentCenter !== undefined && currentResolution !== undefined) {\n const x =\n anchor[0] -\n (resolution * (anchor[0] - currentCenter[0])) / currentResolution;\n const y =\n anchor[1] -\n (resolution * (anchor[1] - currentCenter[1])) / currentResolution;\n center = [x, y];\n }\n return center;\n }\n\n /**\n * Returns the current viewport size.\n * @private\n * @param {number} [rotation] Take into account the rotation of the viewport when giving the size\n * @return {import(\"./size.js\").Size} Viewport size or `[100, 100]` when no viewport is found.\n */\n getViewportSize_(rotation) {\n const size = this.viewportSize_;\n if (rotation) {\n const w = size[0];\n const h = size[1];\n return [\n Math.abs(w * Math.cos(rotation)) + Math.abs(h * Math.sin(rotation)),\n Math.abs(w * Math.sin(rotation)) + Math.abs(h * Math.cos(rotation)),\n ];\n }\n return size;\n }\n\n /**\n * Stores the viewport size on the view. The viewport size is not read every time from the DOM\n * to avoid performance hit and layout reflow.\n * This should be done on map size change.\n * Note: the constraints are not resolved during an animation to avoid stopping it\n * @param {import(\"./size.js\").Size} [size] Viewport size; if undefined, [100, 100] is assumed\n */\n setViewportSize(size) {\n this.viewportSize_ = Array.isArray(size) ? size.slice() : [100, 100];\n if (!this.getAnimating()) {\n this.resolveConstraints(0);\n }\n }\n\n /**\n * Get the view center.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} The center of the view.\n * @observable\n * @api\n */\n getCenter() {\n const center = this.getCenterInternal();\n if (!center) {\n return center;\n }\n return toUserCoordinate(center, this.getProjection());\n }\n\n /**\n * Get the view center without transforming to user projection.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} The center of the view.\n */\n getCenterInternal() {\n return /** @type {import(\"./coordinate.js\").Coordinate|undefined} */ (\n this.get(ViewProperty.CENTER)\n );\n }\n\n /**\n * @return {Constraints} Constraints.\n */\n getConstraints() {\n return this.constraints_;\n }\n\n /**\n * @return {boolean} Resolution constraint is set\n */\n getConstrainResolution() {\n return this.get('constrainResolution');\n }\n\n /**\n * @param {Array<number>} [hints] Destination array.\n * @return {Array<number>} Hint.\n */\n getHints(hints) {\n if (hints !== undefined) {\n hints[0] = this.hints_[0];\n hints[1] = this.hints_[1];\n return hints;\n }\n return this.hints_.slice();\n }\n\n /**\n * Calculate the extent for the current view state and the passed box size.\n * @param {import(\"./size.js\").Size} [size] The pixel dimensions of the box\n * into which the calculated extent should fit. Defaults to the size of the\n * map the view is associated with.\n * If no map or multiple maps are connected to the view, provide the desired\n * box size (e.g. `map.getSize()`).\n * @return {import(\"./extent.js\").Extent} Extent.\n * @api\n */\n calculateExtent(size) {\n const extent = this.calculateExtentInternal(size);\n return toUserExtent(extent, this.getProjection());\n }\n\n /**\n * @param {import(\"./size.js\").Size} [size] Box pixel size. If not provided,\n * the map's last known viewport size will be used.\n * @return {import(\"./extent.js\").Extent} Extent.\n */\n calculateExtentInternal(size) {\n size = size || this.getViewportSizeMinusPadding_();\n const center = /** @type {!import(\"./coordinate.js\").Coordinate} */ (\n this.getCenterInternal()\n );\n assert(center, 'The view center is not defined');\n const resolution = /** @type {!number} */ (this.getResolution());\n assert(resolution !== undefined, 'The view resolution is not defined');\n const rotation = /** @type {!number} */ (this.getRotation());\n assert(rotation !== undefined, 'The view rotation is not defined');\n\n return getForViewAndSize(center, resolution, rotation, size);\n }\n\n /**\n * Get the maximum resolution of the view.\n * @return {number} The maximum resolution of the view.\n * @api\n */\n getMaxResolution() {\n return this.maxResolution_;\n }\n\n /**\n * Get the minimum resolution of the view.\n * @return {number} The minimum resolution of the view.\n * @api\n */\n getMinResolution() {\n return this.minResolution_;\n }\n\n /**\n * Get the maximum zoom level for the view.\n * @return {number} The maximum zoom level.\n * @api\n */\n getMaxZoom() {\n return /** @type {number} */ (\n this.getZoomForResolution(this.minResolution_)\n );\n }\n\n /**\n * Set a new maximum zoom level for the view.\n * @param {number} zoom The maximum zoom level.\n * @api\n */\n setMaxZoom(zoom) {\n this.applyOptions_(this.getUpdatedOptions_({maxZoom: zoom}));\n }\n\n /**\n * Get the minimum zoom level for the view.\n * @return {number} The minimum zoom level.\n * @api\n */\n getMinZoom() {\n return /** @type {number} */ (\n this.getZoomForResolution(this.maxResolution_)\n );\n }\n\n /**\n * Set a new minimum zoom level for the view.\n * @param {number} zoom The minimum zoom level.\n * @api\n */\n setMinZoom(zoom) {\n this.applyOptions_(this.getUpdatedOptions_({minZoom: zoom}));\n }\n\n /**\n * Set whether the view should allow intermediary zoom levels.\n * @param {boolean} enabled Whether the resolution is constrained.\n * @api\n */\n setConstrainResolution(enabled) {\n this.applyOptions_(this.getUpdatedOptions_({constrainResolution: enabled}));\n }\n\n /**\n * Get the view projection.\n * @return {import(\"./proj/Projection.js\").default} The projection of the view.\n * @api\n */\n getProjection() {\n return this.projection_;\n }\n\n /**\n * Get the view resolution.\n * @return {number|undefined} The resolution of the view.\n * @observable\n * @api\n */\n getResolution() {\n return /** @type {number|undefined} */ (this.get(ViewProperty.RESOLUTION));\n }\n\n /**\n * Get the resolutions for the view. This returns the array of resolutions\n * passed to the constructor of the View, or undefined if none were given.\n * @return {Array<number>|undefined} The resolutions of the view.\n * @api\n */\n getResolutions() {\n return this.resolutions_;\n }\n\n /**\n * Get the resolution for a provided extent (in map units) and size (in pixels).\n * @param {import(\"./extent.js\").Extent} extent Extent.\n * @param {import(\"./size.js\").Size} [size] Box pixel size.\n * @return {number} The resolution at which the provided extent will render at\n * the given size.\n * @api\n */\n getResolutionForExtent(extent, size) {\n return this.getResolutionForExtentInternal(\n fromUserExtent(extent, this.getProjection()),\n size,\n );\n }\n\n /**\n * Get the resolution for a provided extent (in map units) and size (in pixels).\n * @param {import(\"./extent.js\").Extent} extent Extent.\n * @param {import(\"./size.js\").Size} [size] Box pixel size.\n * @return {number} The resolution at which the provided extent will render at\n * the given size.\n */\n getResolutionForExtentInternal(extent, size) {\n size = size || this.getViewportSizeMinusPadding_();\n const xResolution = getWidth(extent) / size[0];\n const yResolution = getHeight(extent) / size[1];\n return Math.max(xResolution, yResolution);\n }\n\n /**\n * Return a function that returns a value between 0 and 1 for a\n * resolution. Exponential scaling is assumed.\n * @param {number} [power] Power.\n * @return {function(number): number} Resolution for value function.\n */\n getResolutionForValueFunction(power) {\n power = power || 2;\n const maxResolution = this.getConstrainedResolution(this.maxResolution_);\n const minResolution = this.minResolution_;\n const max = Math.log(maxResolution / minResolution) / Math.log(power);\n return (\n /**\n * @param {number} value Value.\n * @return {number} Resolution.\n */\n function (value) {\n const resolution = maxResolution / Math.pow(power, value * max);\n return resolution;\n }\n );\n }\n\n /**\n * Get the view rotation.\n * @return {number} The rotation of the view in radians.\n * @observable\n * @api\n */\n getRotation() {\n return /** @type {number} */ (this.get(ViewProperty.ROTATION));\n }\n\n /**\n * Return a function that returns a resolution for a value between\n * 0 and 1. Exponential scaling is assumed.\n * @param {number} [power] Power.\n * @return {function(number): number} Value for resolution function.\n */\n getValueForResolutionFunction(power) {\n const logPower = Math.log(power || 2);\n const maxResolution = this.getConstrainedResolution(this.maxResolution_);\n const minResolution = this.minResolution_;\n const max = Math.log(maxResolution / minResolution) / logPower;\n return (\n /**\n * @param {number} resolution Resolution.\n * @return {number} Value.\n */\n function (resolution) {\n const value = Math.log(maxResolution / resolution) / logPower / max;\n return value;\n }\n );\n }\n\n /**\n * Returns the size of the viewport minus padding.\n * @private\n * @param {number} [rotation] Take into account the rotation of the viewport when giving the size\n * @return {import(\"./size.js\").Size} Viewport size reduced by the padding.\n */\n getViewportSizeMinusPadding_(rotation) {\n let size = this.getViewportSize_(rotation);\n const padding = this.padding_;\n if (padding) {\n size = [\n size[0] - padding[1] - padding[3],\n size[1] - padding[0] - padding[2],\n ];\n }\n return size;\n }\n\n /**\n * @return {State} View state.\n */\n getState() {\n const projection = this.getProjection();\n const resolution = this.getResolution();\n const rotation = this.getRotation();\n let center = /** @type {import(\"./coordinate.js\").Coordinate} */ (\n this.getCenterInternal()\n );\n const padding = this.padding_;\n if (padding) {\n const reducedSize = this.getViewportSizeMinusPadding_();\n center = calculateCenterOn(\n center,\n this.getViewportSize_(),\n [reducedSize[0] / 2 + padding[3], reducedSize[1] / 2 + padding[0]],\n resolution,\n rotation,\n );\n }\n return {\n center: center.slice(0),\n projection: projection !== undefined ? projection : null,\n resolution: resolution,\n nextCenter: this.nextCenter_,\n nextResolution: this.nextResolution_,\n nextRotation: this.nextRotation_,\n rotation: rotation,\n zoom: this.getZoom(),\n };\n }\n\n /**\n * @return {ViewStateLayerStateExtent} Like `FrameState`, but just `viewState` and `extent`.\n */\n getViewStateAndExtent() {\n return {\n viewState: this.getState(),\n extent: this.calculateExtent(),\n };\n }\n\n /**\n * Get the current zoom level. This method may return non-integer zoom levels\n * if the view does not constrain the resolution, or if an interaction or\n * animation is underway.\n * @return {number|undefined} Zoom.\n * @api\n */\n getZoom() {\n let zoom;\n const resolution = this.getResolution();\n if (resolution !== undefined) {\n zoom = this.getZoomForResolution(resolution);\n }\n return zoom;\n }\n\n /**\n * Get the zoom level for a resolution.\n * @param {number} resolution The resolution.\n * @return {number|undefined} The zoom level for the provided resolution.\n * @api\n */\n getZoomForResolution(resolution) {\n let offset = this.minZoom_ || 0;\n let max, zoomFactor;\n if (this.resolutions_) {\n const nearest = linearFindNearest(this.resolutions_, resolution, 1);\n offset = nearest;\n max = this.resolutions_[nearest];\n if (nearest == this.resolutions_.length - 1) {\n zoomFactor = 2;\n } else {\n zoomFactor = max / this.resolutions_[nearest + 1];\n }\n } else {\n max = this.maxResolution_;\n zoomFactor = this.zoomFactor_;\n }\n return offset + Math.log(max / resolution) / Math.log(zoomFactor);\n }\n\n /**\n * Get the resolution for a zoom level.\n * @param {number} zoom Zoom level.\n * @return {number} The view resolution for the provided zoom level.\n * @api\n */\n getResolutionForZoom(zoom) {\n if (this.resolutions_?.length) {\n if (this.resolutions_.length === 1) {\n return this.resolutions_[0];\n }\n const baseLevel = clamp(\n Math.floor(zoom),\n 0,\n this.resolutions_.length - 2,\n );\n const zoomFactor =\n this.resolutions_[baseLevel] / this.resolutions_[baseLevel + 1];\n return (\n this.resolutions_[baseLevel] /\n Math.pow(zoomFactor, clamp(zoom - baseLevel, 0, 1))\n );\n }\n return (\n this.maxResolution_ / Math.pow(this.zoomFactor_, zoom - this.minZoom_)\n );\n }\n\n /**\n * Fit the given geometry or extent based on the given map size and border.\n * The size is pixel dimensions of the box to fit the extent into.\n * In most cases you will want to use the map size, that is `map.getSize()`.\n * Takes care of the map angle.\n * @param {import(\"./geom/SimpleGeometry.js\").default|import(\"./extent.js\").Extent} geometryOrExtent The geometry or\n * extent to fit the view to.\n * @param {FitOptions} [options] Options.\n * @api\n */\n fit(geometryOrExtent, options) {\n /** @type {import(\"./geom/SimpleGeometry.js\").default} */\n let geometry;\n assert(\n Array.isArray(geometryOrExtent) ||\n typeof (/** @type {?} */ (geometryOrExtent).getSimplifiedGeometry) ===\n 'function',\n 'Invalid extent or geometry provided as `geometry`',\n );\n if (Array.isArray(geometryOrExtent)) {\n assert(\n !isEmpty(geometryOrExtent),\n 'Cannot fit empty extent provided as `geometry`',\n );\n const extent = fromUserExtent(geometryOrExtent, this.getProjection());\n geometry = polygonFromExtent(extent);\n } else if (geometryOrExtent.getType() === 'Circle') {\n const extent = fromUserExtent(\n geometryOrExtent.getExtent(),\n this.getProjection(),\n );\n geometry = polygonFromExtent(extent);\n geometry.rotate(this.getRotation(), getCenter(extent));\n } else {\n const userProjection = getUserProjection();\n if (userProjection) {\n geometry = /** @type {import(\"./geom/SimpleGeometry.js\").default} */ (\n geometryOrExtent\n .clone()\n .transform(userProjection, this.getProjection())\n );\n } else {\n geometry = geometryOrExtent;\n }\n }\n\n this.fitInternal(geometry, options);\n }\n\n /**\n * Calculate rotated extent\n * @param {import(\"./geom/SimpleGeometry.js\").default} geometry The geometry.\n * @return {import(\"./extent\").Extent} The rotated extent for the geometry.\n */\n rotatedExtentForGeometry(geometry) {\n const rotation = this.getRotation();\n const cosAngle = Math.cos(rotation);\n const sinAngle = Math.sin(-rotation);\n const coords = geometry.getFlatCoordinates();\n const stride = geometry.getStride();\n let minRotX = +Infinity;\n let minRotY = +Infinity;\n let maxRotX = -Infinity;\n let maxRotY = -Infinity;\n for (let i = 0, ii = coords.length; i < ii; i += stride) {\n const rotX = coords[i] * cosAngle - coords[i + 1] * sinAngle;\n const rotY = coords[i] * sinAngle + coords[i + 1] * cosAngle;\n minRotX = Math.min(minRotX, rotX);\n minRotY = Math.min(minRotY, rotY);\n maxRotX = Math.max(maxRotX, rotX);\n maxRotY = Math.max(maxRotY, rotY);\n }\n return [minRotX, minRotY, maxRotX, maxRotY];\n }\n\n /**\n * @param {import(\"./geom/SimpleGeometry.js\").default} geometry The geometry.\n * @param {FitOptions} [options] Options.\n */\n fitInternal(geometry, options) {\n options = options || {};\n let size = options.size;\n if (!size) {\n size = this.getViewportSizeMinusPadding_();\n }\n const padding =\n options.padding !== undefined ? options.padding : [0, 0, 0, 0];\n const nearest = options.nearest !== undefined ? options.nearest : false;\n let minResolution;\n if (options.minResolution !== undefined) {\n minResolution = options.minResolution;\n } else if (options.maxZoom !== undefined) {\n minResolution = this.getResolutionForZoom(options.maxZoom);\n } else {\n minResolution = 0;\n }\n\n const rotatedExtent = this.rotatedExtentForGeometry(geometry);\n\n // calculate resolution\n let resolution = this.getResolutionForExtentInternal(rotatedExtent, [\n size[0] - padding[1] - padding[3],\n size[1] - padding[0] - padding[2],\n ]);\n resolution = isNaN(resolution)\n ? minResolution\n : Math.max(resolution, minResolution);\n resolution = this.getConstrainedResolution(resolution, nearest ? 0 : 1);\n\n // calculate center\n const rotation = this.getRotation();\n const sinAngle = Math.sin(rotation);\n const cosAngle = Math.cos(rotation);\n const centerRot = getCenter(rotatedExtent);\n centerRot[0] += ((padding[1] - padding[3]) / 2) * resolution;\n centerRot[1] += ((padding[0] - padding[2]) / 2) * resolution;\n const centerX = centerRot[0] * cosAngle - centerRot[1] * sinAngle;\n const centerY = centerRot[1] * cosAngle + centerRot[0] * sinAngle;\n const center = this.getConstrainedCenter([centerX, centerY], resolution);\n const callback = options.callback ? options.callback : VOID;\n\n if (options.duration !== undefined) {\n this.animateInternal(\n {\n resolution: resolution,\n center: center,\n duration: options.duration,\n easing: options.easing,\n },\n callback,\n );\n } else {\n this.targetResolution_ = resolution;\n this.targetCenter_ = center;\n this.applyTargetState_(false, true);\n animationCallback(callback, true);\n }\n }\n\n /**\n * Center on coordinate and view position.\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {import(\"./size.js\").Size} size Box pixel size.\n * @param {import(\"./pixel.js\").Pixel} position Position on the view to center on.\n * @api\n */\n centerOn(coordinate, size, position) {\n this.centerOnInternal(\n fromUserCoordinate(coordinate, this.getProjection()),\n size,\n position,\n );\n }\n\n /**\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {import(\"./size.js\").Size} size Box pixel size.\n * @param {import(\"./pixel.js\").Pixel} position Position on the view to center on.\n */\n centerOnInternal(coordinate, size, position) {\n this.setCenterInternal(\n calculateCenterOn(\n coordinate,\n size,\n position,\n this.getResolution(),\n this.getRotation(),\n ),\n );\n }\n\n /**\n * Calculates the shift between map and viewport center.\n * @param {import(\"./coordinate.js\").Coordinate} center Center.\n * @param {number} resolution Resolution.\n * @param {number} rotation Rotation.\n * @param {import(\"./size.js\").Size} size Size.\n * @return {Array<number>|undefined} Center shift.\n */\n calculateCenterShift(center, resolution, rotation, size) {\n let centerShift;\n const padding = this.padding_;\n if (padding && center) {\n const reducedSize = this.getViewportSizeMinusPadding_(-rotation);\n const shiftedCenter = calculateCenterOn(\n center,\n size,\n [reducedSize[0] / 2 + padding[3], reducedSize[1] / 2 + padding[0]],\n resolution,\n rotation,\n );\n centerShift = [\n center[0] - shiftedCenter[0],\n center[1] - shiftedCenter[1],\n ];\n }\n return centerShift;\n }\n\n /**\n * @return {boolean} Is defined.\n */\n isDef() {\n return !!this.getCenterInternal() && this.getResolution() !== undefined;\n }\n\n /**\n * Adds relative coordinates to the center of the view. Any extent constraint will apply.\n * @param {import(\"./coordinate.js\").Coordinate} deltaCoordinates Relative value to add.\n * @api\n */\n adjustCenter(deltaCoordinates) {\n const center = toUserCoordinate(this.targetCenter_, this.getProjection());\n this.setCenter([\n center[0] + deltaCoordinates[0],\n center[1] + deltaCoordinates[1],\n ]);\n }\n\n /**\n * Adds relative coordinates to the center of the view. Any extent constraint will apply.\n * @param {import(\"./coordinate.js\").Coordinate} deltaCoordinates Relative value to add.\n */\n adjustCenterInternal(deltaCoordinates) {\n const center = this.targetCenter_;\n this.setCenterInternal([\n center[0] + deltaCoordinates[0],\n center[1] + deltaCoordinates[1],\n ]);\n }\n\n /**\n * Multiply the view resolution by a ratio, optionally using an anchor. Any resolution\n * constraint will apply.\n * @param {number} ratio The ratio to apply on the view resolution.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n * @api\n */\n adjustResolution(ratio, anchor) {\n anchor = anchor && fromUserCoordinate(anchor, this.getProjection());\n this.adjustResolutionInternal(ratio, anchor);\n }\n\n /**\n * Multiply the view resolution by a ratio, optionally using an anchor. Any resolution\n * constraint will apply.\n * @param {number} ratio The ratio to apply on the view resolution.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n */\n adjustResolutionInternal(ratio, anchor) {\n const isMoving = this.getAnimating() || this.getInteracting();\n const size = this.getViewportSize_(this.getRotation());\n const newResolution = this.constraints_.resolution(\n this.targetResolution_ * ratio,\n 0,\n size,\n isMoving,\n );\n\n if (anchor) {\n this.targetCenter_ = this.calculateCenterZoom(newResolution, anchor);\n }\n\n this.targetResolution_ *= ratio;\n this.applyTargetState_();\n }\n\n /**\n * Adds a value to the view zoom level, optionally using an anchor. Any resolution\n * constraint will apply.\n * @param {number} delta Relative value to add to the zoom level.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n * @api\n */\n adjustZoom(delta, anchor) {\n this.adjustResolution(Math.pow(this.zoomFactor_, -delta), anchor);\n }\n\n /**\n * Adds a value to the view rotation, optionally using an anchor. Any rotation\n * constraint will apply.\n * @param {number} delta Relative value to add to the zoom rotation, in radians.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The rotation center.\n * @api\n */\n adjustRotation(delta, anchor) {\n if (anchor) {\n anchor = fromUserCoordinate(anchor, this.getProjection());\n }\n this.adjustRotationInternal(delta, anchor);\n }\n\n /**\n * @param {number} delta Relative value to add to the zoom rotation, in radians.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The rotation center.\n */\n adjustRotationInternal(delta, anchor) {\n const isMoving = this.getAnimating() || this.getInteracting();\n const newRotation = this.constraints_.rotation(\n this.targetRotation_ + delta,\n isMoving,\n );\n if (anchor) {\n this.targetCenter_ = this.calculateCenterRotate(newRotation, anchor);\n }\n this.targetRotation_ += delta;\n this.applyTargetState_();\n }\n\n /**\n * Set the center of the current view. Any extent constraint will apply.\n * @param {import(\"./coordinate.js\").Coordinate|undefined} center The center of the view.\n * @observable\n * @api\n */\n setCenter(center) {\n this.setCenterInternal(\n center ? fromUserCoordinate(center, this.getProjection()) : center,\n );\n }\n\n /**\n * Set the center using the view projection (not the user projection).\n * @param {import(\"./coordinate.js\").Coordinate|undefined} center The center of the view.\n */\n setCenterInternal(center) {\n this.targetCenter_ = center;\n this.applyTargetState_();\n }\n\n /**\n * @param {import(\"./ViewHint.js\").default} hint Hint.\n * @param {number} delta Delta.\n * @return {number} New value.\n */\n setHint(hint, delta) {\n this.hints_[hint] += delta;\n this.changed();\n return this.hints_[hint];\n }\n\n /**\n * Set the resolution for this view. Any resolution constraint will apply.\n * @param {number|undefined} resolution The resolution of the view.\n * @observable\n * @api\n */\n setResolution(resolution) {\n this.targetResolution_ = resolution;\n this.applyTargetState_();\n }\n\n /**\n * Set the rotation for this view. Any rotation constraint will apply.\n * @param {number} rotation The rotation of the view in radians.\n * @observable\n * @api\n */\n setRotation(rotation) {\n this.targetRotation_ = rotation;\n this.applyTargetState_();\n }\n\n /**\n * Zoom to a specific zoom level. Any resolution constrain will apply.\n * @param {number} zoom Zoom level.\n * @api\n */\n setZoom(zoom) {\n this.setResolution(this.getResolutionForZoom(zoom));\n }\n\n /**\n * Recompute rotation/resolution/center based on target values.\n * Note: we have to compute rotation first, then resolution and center considering that\n * parameters can influence one another in case a view extent constraint is present.\n * @param {boolean} [doNotCancelAnims] Do not cancel animations.\n * @param {boolean} [forceMoving] Apply constraints as if the view is moving.\n * @private\n */\n applyTargetState_(doNotCancelAnims, forceMoving) {\n const isMoving =\n this.getAnimating() || this.getInteracting() || forceMoving;\n\n // compute rotation\n const newRotation = this.constraints_.rotation(\n this.targetRotation_,\n isMoving,\n );\n const size = this.getViewportSize_(newRotation);\n const newResolution = this.constraints_.resolution(\n this.targetResolution_,\n 0,\n size,\n isMoving,\n );\n const newCenter = this.constraints_.center(\n this.targetCenter_,\n newResolution,\n size,\n isMoving,\n this.calculateCenterShift(\n this.targetCenter_,\n newResolution,\n newRotation,\n size,\n ),\n );\n\n if (this.get(ViewProperty.ROTATION) !== newRotation) {\n this.set(ViewProperty.ROTATION, newRotation);\n }\n if (this.get(ViewProperty.RESOLUTION) !== newResolution) {\n this.set(ViewProperty.RESOLUTION, newResolution);\n this.set('zoom', this.getZoom(), true);\n }\n if (\n !newCenter ||\n !this.get(ViewProperty.CENTER) ||\n !equals(this.get(ViewProperty.CENTER), newCenter)\n ) {\n this.set(ViewProperty.CENTER, newCenter);\n }\n\n if (this.getAnimating() && !doNotCancelAnims) {\n this.cancelAnimations();\n }\n this.cancelAnchor_ = undefined;\n }\n\n /**\n * If any constraints need to be applied, an animation will be triggered.\n * This is typically done on interaction end.\n * Note: calling this with a duration of 0 will apply the constrained values straight away,\n * without animation.\n * @param {number} [duration] The animation duration in ms.\n * @param {number} [resolutionDirection] Which direction to zoom.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n */\n resolveConstraints(duration, resolutionDirection, anchor) {\n duration = duration !== undefined ? duration : 200;\n const direction = resolutionDirection || 0;\n\n const newRotation = this.constraints_.rotation(this.targetRotation_);\n const size = this.getViewportSize_(newRotation);\n const newResolution = this.constraints_.resolution(\n this.targetResolution_,\n direction,\n size,\n );\n const newCenter = this.constraints_.center(\n this.targetCenter_,\n newResolution,\n size,\n false,\n this.calculateCenterShift(\n this.targetCenter_,\n newResolution,\n newRotation,\n size,\n ),\n );\n\n if (duration === 0 && !this.cancelAnchor_) {\n this.targetResolution_ = newResolution;\n this.targetRotation_ = newRotation;\n this.targetCenter_ = newCenter;\n this.applyTargetState_();\n return;\n }\n\n anchor = anchor || (duration === 0 ? this.cancelAnchor_ : undefined);\n this.cancelAnchor_ = undefined;\n\n if (\n this.getResolution() !== newResolution ||\n this.getRotation() !== newRotation ||\n !this.getCenterInternal() ||\n !equals(this.getCenterInternal(), newCenter)\n ) {\n if (this.getAnimating()) {\n this.cancelAnimations();\n }\n\n this.animateInternal({\n rotation: newRotation,\n center: newCenter,\n resolution: newResolution,\n duration: duration,\n easing: easeOut,\n anchor: anchor,\n });\n }\n }\n\n /**\n * Notify the View that an interaction has started.\n * The view state will be resolved to a stable one if needed\n * (depending on its constraints).\n * @api\n */\n beginInteraction() {\n this.resolveConstraints(0);\n\n this.setHint(ViewHint.INTERACTING, 1);\n }\n\n /**\n * Notify the View that an interaction has ended. The view state will be resolved\n * to a stable one if needed (depending on its constraints).\n * @param {number} [duration] Animation duration in ms.\n * @param {number} [resolutionDirection] Which direction to zoom.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n * @api\n */\n endInteraction(duration, resolutionDirection, anchor) {\n anchor = anchor && fromUserCoordinate(anchor, this.getProjection());\n this.endInteractionInternal(duration, resolutionDirection, anchor);\n }\n\n /**\n * Notify the View that an interaction has ended. The view state will be resolved\n * to a stable one if needed (depending on its constraints).\n * @param {number} [duration] Animation duration in ms.\n * @param {number} [resolutionDirection] Which direction to zoom.\n * @param {import(\"./coordinate.js\").Coordinate} [anchor] The origin of the transformation.\n */\n endInteractionInternal(duration, resolutionDirection, anchor) {\n if (!this.getInteracting()) {\n return;\n }\n this.setHint(ViewHint.INTERACTING, -1);\n this.resolveConstraints(duration, resolutionDirection, anchor);\n }\n\n /**\n * Get a valid position for the view center according to the current constraints.\n * @param {import(\"./coordinate.js\").Coordinate|undefined} targetCenter Target center position.\n * @param {number} [targetResolution] Target resolution. If not supplied, the current one will be used.\n * This is useful to guess a valid center position at a different zoom level.\n * @return {import(\"./coordinate.js\").Coordinate|undefined} Valid center position.\n */\n getConstrainedCenter(targetCenter, targetResolution) {\n const size = this.getViewportSize_(this.getRotation());\n return this.constraints_.center(\n targetCenter,\n targetResolution || this.getResolution(),\n size,\n );\n }\n\n /**\n * Get a valid zoom level according to the current view constraints.\n * @param {number|undefined} targetZoom Target zoom.\n * @param {number} [direction] Indicate which resolution should be used\n * by a renderer if the view resolution does not match any resolution of the tile source.\n * If 0, the nearest resolution will be used. If 1, the nearest lower resolution\n * will be used. If -1, the nearest higher resolution will be used.\n * @return {number|undefined} Valid zoom level.\n */\n getConstrainedZoom(targetZoom, direction) {\n const targetRes = this.getResolutionForZoom(targetZoom);\n return this.getZoomForResolution(\n this.getConstrainedResolution(targetRes, direction),\n );\n }\n\n /**\n * Get a valid resolution according to the current view constraints.\n * @param {number|undefined} targetResolution Target resolution.\n * @param {number} [direction] Indicate which resolution should be used\n * by a renderer if the view resolution does not match any resolution of the tile source.\n * If 0, the nearest resolution will be used. If 1, the nearest lower resolution\n * will be used. If -1, the nearest higher resolution will be used.\n * @return {number|undefined} Valid resolution.\n */\n getConstrainedResolution(targetResolution, direction) {\n direction = direction || 0;\n const size = this.getViewportSize_(this.getRotation());\n\n return this.constraints_.resolution(targetResolution, direction, size);\n }\n}\n\n/**\n * @param {Function} callback Callback.\n * @param {*} returnValue Return value.\n */\nfunction animationCallback(callback, returnValue) {\n setTimeout(function () {\n callback(returnValue);\n }, 0);\n}\n\n/**\n * @param {ViewOptions} options View options.\n * @return {import(\"./centerconstraint.js\").Type} The constraint.\n */\nexport function createCenterConstraint(options) {\n if (options.extent !== undefined) {\n const smooth =\n options.smoothExtentConstraint !== undefined\n ? options.smoothExtentConstraint\n : true;\n return createExtent(options.extent, options.constrainOnlyCenter, smooth);\n }\n\n const projection = createProjection(options.projection, 'EPSG:3857');\n if (options.multiWorld !== true && projection.isGlobal()) {\n const extent = projection.getExtent().slice();\n extent[0] = -Infinity;\n extent[2] = Infinity;\n return createExtent(extent, false, false);\n }\n\n return centerNone;\n}\n\n/**\n * @param {ViewOptions} options View options.\n * @return {{constraint: import(\"./resolutionconstraint.js\").Type, maxResolution: number,\n * minResolution: number, minZoom: number, zoomFactor: number}} The constraint.\n */\nexport function createResolutionConstraint(options) {\n let resolutionConstraint;\n let maxResolution;\n let minResolution;\n\n // TODO: move these to be ol constants\n // see https://github.com/openlayers/openlayers/issues/2076\n const defaultMaxZoom = 28;\n const defaultZoomFactor = 2;\n\n let minZoom =\n options.minZoom !== undefined ? options.minZoom : DEFAULT_MIN_ZOOM;\n\n let maxZoom =\n options.maxZoom !== undefined ? options.maxZoom : defaultMaxZoom;\n\n const zoomFactor =\n options.zoomFactor !== undefined ? options.zoomFactor : defaultZoomFactor;\n\n const multiWorld =\n options.multiWorld !== undefined ? options.multiWorld : false;\n\n const smooth =\n options.smoothResolutionConstraint !== undefined\n ? options.smoothResolutionConstraint\n : true;\n\n const showFullExtent =\n options.showFullExtent !== undefined ? options.showFullExtent : false;\n\n const projection = createProjection(options.projection, 'EPSG:3857');\n const projExtent = projection.getExtent();\n let constrainOnlyCenter = options.constrainOnlyCenter;\n let extent = options.extent;\n if (!multiWorld && !extent && projection.isGlobal()) {\n constrainOnlyCenter = false;\n extent = projExtent;\n }\n\n if (options.resolutions !== undefined) {\n const resolutions = options.resolutions;\n maxResolution = resolutions[minZoom];\n minResolution =\n resolutions[maxZoom] !== undefined\n ? resolutions[maxZoom]\n : resolutions[resolutions.length - 1];\n\n if (options.constrainResolution) {\n resolutionConstraint = createSnapToResolutions(\n resolutions,\n smooth,\n !constrainOnlyCenter && extent,\n showFullExtent,\n );\n } else {\n resolutionConstraint = createMinMaxResolution(\n maxResolution,\n minResolution,\n smooth,\n !constrainOnlyCenter && extent,\n showFullExtent,\n );\n }\n } else {\n // calculate the default min and max resolution\n const size = !projExtent\n ? // use an extent that can fit the whole world if need be\n (360 * METERS_PER_UNIT.degrees) / projection.getMetersPerUnit()\n : Math.max(getWidth(projExtent), getHeight(projExtent));\n\n const defaultMaxResolution =\n size / DEFAULT_TILE_SIZE / Math.pow(defaultZoomFactor, DEFAULT_MIN_ZOOM);\n\n const defaultMinResolution =\n defaultMaxResolution /\n Math.pow(defaultZoomFactor, defaultMaxZoom - DEFAULT_MIN_ZOOM);\n\n // user provided maxResolution takes precedence\n maxResolution = options.maxResolution;\n if (maxResolution !== undefined) {\n minZoom = 0;\n } else {\n maxResolution = defaultMaxResolution / Math.pow(zoomFactor, minZoom);\n }\n\n // user provided minResolution takes precedence\n minResolution = options.minResolution;\n if (minResolution === undefined) {\n if (options.maxZoom !== undefined) {\n if (options.maxResolution !== undefined) {\n minResolution = maxResolution / Math.pow(zoomFactor, maxZoom);\n } else {\n minResolution = defaultMaxResolution / Math.pow(zoomFactor, maxZoom);\n }\n } else {\n minResolution = defaultMinResolution;\n }\n }\n\n // given discrete zoom levels, minResolution may be different than provided\n maxZoom =\n minZoom +\n Math.floor(\n Math.log(maxResolution / minResolution) / Math.log(zoomFactor),\n );\n minResolution = maxResolution / Math.pow(zoomFactor, maxZoom - minZoom);\n\n if (options.constrainResolution) {\n resolutionConstraint = createSnapToPower(\n zoomFactor,\n maxResolution,\n minResolution,\n smooth,\n !constrainOnlyCenter && extent,\n showFullExtent,\n );\n } else {\n resolutionConstraint = createMinMaxResolution(\n maxResolution,\n minResolution,\n smooth,\n !constrainOnlyCenter && extent,\n showFullExtent,\n );\n }\n }\n return {\n constraint: resolutionConstraint,\n maxResolution: maxResolution,\n minResolution: minResolution,\n minZoom: minZoom,\n zoomFactor: zoomFactor,\n };\n}\n\n/**\n * @param {ViewOptions} options View options.\n * @return {import(\"./rotationconstraint.js\").Type} Rotation constraint.\n */\nexport function createRotationConstraint(options) {\n const enableRotation =\n options.enableRotation !== undefined ? options.enableRotation : true;\n if (enableRotation) {\n const constrainRotation = options.constrainRotation;\n if (constrainRotation === undefined || constrainRotation === true) {\n return createSnapToZero();\n }\n if (constrainRotation === false) {\n return rotationNone;\n }\n if (typeof constrainRotation === 'number') {\n return createSnapToN(constrainRotation);\n }\n return rotationNone;\n }\n return disable;\n}\n\n/**\n * Determine if an animation involves no view change.\n * @param {Animation} animation The animation.\n * @return {boolean} The animation involves no view change.\n */\nexport function isNoopAnimation(animation) {\n if (animation.sourceCenter && animation.targetCenter) {\n if (!coordinatesEqual(animation.sourceCenter, animation.targetCenter)) {\n return false;\n }\n }\n if (animation.sourceResolution !== animation.targetResolution) {\n return false;\n }\n if (animation.sourceRotation !== animation.targetRotation) {\n return false;\n }\n return true;\n}\n\n/**\n * @param {import(\"./coordinate.js\").Coordinate} coordinate Coordinate.\n * @param {import(\"./size.js\").Size} size Box pixel size.\n * @param {import(\"./pixel.js\").Pixel} position Position on the view to center on.\n * @param {number} resolution Resolution.\n * @param {number} rotation Rotation.\n * @return {import(\"./coordinate.js\").Coordinate} Shifted center.\n */\nfunction calculateCenterOn(coordinate, size, position, resolution, rotation) {\n // calculate rotated position\n const cosAngle = Math.cos(-rotation);\n let sinAngle = Math.sin(-rotation);\n let rotX = coordinate[0] * cosAngle - coordinate[1] * sinAngle;\n let rotY = coordinate[1] * cosAngle + coordinate[0] * sinAngle;\n rotX += (size[0] / 2 - position[0]) * resolution;\n rotY += (position[1] - size[1] / 2) * resolution;\n\n // go back to original angle\n sinAngle = -sinAngle; // go back to original rotation\n const centerX = rotX * cosAngle - rotY * sinAngle;\n const centerY = rotY * cosAngle + rotX * sinAngle;\n\n return [centerX, centerY];\n}\n\nexport default View;\n\n/**\n * @typedef {function(ViewOptions):ViewOptions} ViewTransform\n */\n\n/**\n * Adds higher resolutions.\n * @param {number} num The number of higher resolution levels to use.\n * @return {ViewTransform} A view transform.\n */\nexport function withHigherResolutions(num) {\n return function (options) {\n if (!options.resolutions) {\n return options;\n }\n const resolutions = [...options.resolutions];\n const highest = resolutions[resolutions.length - 1];\n for (let i = 0; i < num; ++i) {\n resolutions.push(highest / Math.pow(2, i + 1));\n }\n return {\n ...options,\n resolutions,\n };\n };\n}\n\n/**\n * Adds lower resolutions.\n * @param {number} num The number of lower resolution levels to use.\n * @return {ViewTransform} A view transform.\n * @api\n */\nexport function withLowerResolutions(num) {\n return function (options) {\n if (!options.resolutions) {\n return options;\n }\n const resolutions = [...options.resolutions];\n const lowest = resolutions[0];\n for (let i = 0; i < num; ++i) {\n resolutions.unshift(lowest * Math.pow(2, i + 1));\n }\n return {\n ...options,\n resolutions,\n };\n };\n}\n\n/**\n * Applies a center based on the extent.\n * @return {ViewTransform} A view transform.\n * @api\n */\nexport function withExtentCenter() {\n return function (options) {\n if (!options.extent) {\n return options;\n }\n const center = getCenter(options.extent);\n const newOptions = {...options, center};\n delete newOptions.extent;\n return newOptions;\n };\n}\n\n/**\n * Applies a zoom level.\n * @param {number} z The zoom level.\n * @return {ViewTransform} A view transform.\n * @api\n */\nexport function withZoom(z) {\n return function (options) {\n return {...options, zoom: z};\n };\n}\n\n/**\n * Applies a series of transforms to a view that is resolved from a source.\n * @param {import(\"./source/Source.js\").default} source The source.\n * @param {...ViewTransform} transforms The transforms to apply.\n * @return {Promise<ViewOptions>} The view options.\n * @api\n */\nexport async function getView(source, ...transforms) {\n let config = await source.getView();\n for (const transform of transforms) {\n config = transform(config);\n }\n return config;\n}\n","/**\n * @module ol/layer/Property\n */\n\n/**\n * @enum {string}\n */\nexport default {\n OPACITY: 'opacity',\n VISIBLE: 'visible',\n EXTENT: 'extent',\n Z_INDEX: 'zIndex',\n MAX_RESOLUTION: 'maxResolution',\n MIN_RESOLUTION: 'minResolution',\n MAX_ZOOM: 'maxZoom',\n MIN_ZOOM: 'minZoom',\n SOURCE: 'source',\n MAP: 'map',\n};\n","/**\n * @module ol/layer/Base\n */\nimport BaseObject from '../Object.js';\nimport {assert} from '../asserts.js';\nimport {clamp} from '../math.js';\nimport {abstract} from '../util.js';\nimport LayerProperty from './Property.js';\n\n/**\n * A css color, or a function called with a view resolution returning a css color.\n *\n * @typedef {string|function(number):string} BackgroundColor\n * @api\n */\n\n/**\n * @typedef {import(\"../ObjectEventType\").Types|'change:extent'|'change:maxResolution'|'change:maxZoom'|\n * 'change:minResolution'|'change:minZoom'|'change:opacity'|'change:visible'|'change:zIndex'} BaseLayerObjectEventTypes\n */\n\n/***\n * @template Return\n * @typedef {import(\"../Observable\").OnSignature<import(\"../Observable\").EventTypes, import(\"../events/Event.js\").default, Return> &\n * import(\"../Observable\").OnSignature<BaseLayerObjectEventTypes, import(\"../Object\").ObjectEvent, Return> &\n * import(\"../Observable\").CombinedOnSignature<import(\"../Observable\").EventTypes|BaseLayerObjectEventTypes, Return>} BaseLayerOnSignature\n */\n\n/**\n * @template {Object<string, *>} [Properties=Object<string, *>]\n * @typedef {Object} Options\n * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.\n * @property {number} [opacity=1] Opacity (0, 1).\n * @property {boolean} [visible=true] Visibility.\n * @property {import(\"../extent.js\").Extent} [extent] The bounding extent for layer rendering. The layer will not be\n * rendered outside of this extent.\n * @property {number | undefined} [zIndex] The z-index for layer rendering. At rendering time, the layers\n * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed\n * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`\n * method was used.\n * @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be\n * visible.\n * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will\n * be visible.\n * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be\n * visible.\n * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will\n * be visible.\n * @property {BackgroundColor} [background] Background color for the layer. If not specified, no background\n * will be rendered.\n * @property {Properties} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.\n */\n\n/**\n * @classdesc\n * Abstract base class; normally only used for creating subclasses and not\n * instantiated in apps.\n * Note that with {@link module:ol/layer/Base~BaseLayer} and all its subclasses, any property set in\n * the options is set as a {@link module:ol/Object~BaseObject} property on the layer object, so\n * is observable, and has get/set accessors.\n *\n * @api\n * @template {Object<string, *>} [Properties=Object<string, *>]\n * @extends {BaseObject<NoInfer<Properties> & Object<string, *>>}\n */\nclass BaseLayer extends BaseObject {\n /**\n * @param {Options<NoInfer<Properties>>} options Layer options.\n */\n constructor(options) {\n super();\n\n /***\n * @type {BaseLayerOnSignature<import(\"../events\").EventsKey>}\n */\n this.on;\n\n /***\n * @type {BaseLayerOnSignature<import(\"../events\").EventsKey>}\n */\n this.once;\n\n /***\n * @type {BaseLayerOnSignature<void>}\n */\n this.un;\n\n /**\n * @type {BackgroundColor|false}\n * @private\n */\n this.background_ = options.background;\n\n /**\n * @type {?}\n */\n const properties = Object.assign({}, options);\n if (typeof options.properties === 'object') {\n delete properties.properties;\n Object.assign(properties, options.properties);\n }\n\n properties[LayerProperty.OPACITY] =\n options.opacity !== undefined ? options.opacity : 1;\n assert(\n typeof properties[LayerProperty.OPACITY] === 'number',\n 'Layer opacity must be a number',\n );\n\n properties[LayerProperty.VISIBLE] =\n options.visible !== undefined ? options.visible : true;\n properties[LayerProperty.Z_INDEX] = options.zIndex;\n properties[LayerProperty.MAX_RESOLUTION] =\n options.maxResolution !== undefined ? options.maxResolution : Infinity;\n properties[LayerProperty.MIN_RESOLUTION] =\n options.minResolution !== undefined ? options.minResolution : 0;\n properties[LayerProperty.MIN_ZOOM] =\n options.minZoom !== undefined ? options.minZoom : -Infinity;\n properties[LayerProperty.MAX_ZOOM] =\n options.maxZoom !== undefined ? options.maxZoom : Infinity;\n\n /**\n * @type {string}\n * @private\n */\n this.className_ =\n properties.className !== undefined ? properties.className : 'ol-layer';\n delete properties.className;\n\n this.setProperties(properties);\n\n /**\n * @type {import(\"./Layer.js\").State}\n * @private\n */\n this.state_ = null;\n }\n\n /**\n * Get the background for this layer.\n * @return {BackgroundColor|false} Layer background.\n */\n getBackground() {\n return this.background_;\n }\n\n /**\n * @return {string} CSS class name.\n */\n getClassName() {\n return this.className_;\n }\n\n /**\n * This method is not meant to be called by layers or layer renderers because the state\n * is incorrect if the layer is included in a layer group.\n *\n * @param {boolean} [managed] Layer is managed.\n * @return {import(\"./Layer.js\").State} Layer state.\n */\n getLayerState(managed) {\n /** @type {import(\"./Layer.js\").State} */\n const state =\n this.state_ ||\n /** @type {?} */ ({\n layer: this,\n managed: managed === undefined ? true : managed,\n });\n const zIndex = this.getZIndex();\n state.opacity = clamp(Math.round(this.getOpacity() * 100) / 100, 0, 1);\n state.visible = this.getVisible();\n state.extent = this.getExtent();\n state.zIndex = zIndex === undefined && !state.managed ? Infinity : zIndex;\n state.maxResolution = this.getMaxResolution();\n state.minResolution = Math.max(this.getMinResolution(), 0);\n state.minZoom = this.getMinZoom();\n state.maxZoom = this.getMaxZoom();\n this.state_ = state;\n\n return state;\n }\n\n /**\n * @abstract\n * @param {Array<import(\"./Layer.js\").default>} [array] Array of layers (to be\n * modified in place).\n * @return {Array<import(\"./Layer.js\").default>} Array of layers.\n */\n getLayersArray(array) {\n return abstract();\n }\n\n /**\n * @abstract\n * @param {Array<import(\"./Layer.js\").State>} [states] Optional list of layer\n * states (to be modified in place).\n * @return {Array<import(\"./Layer.js\").State>} List of layer states.\n */\n getLayerStatesArray(states) {\n return abstract();\n }\n\n /**\n * Return the {@link module:ol/extent~Extent extent} of the layer or `undefined` if it\n * will be visible regardless of extent.\n * @return {import(\"../extent.js\").Extent|undefined} The layer extent.\n * @observable\n * @api\n */\n getExtent() {\n return /** @type {import(\"../extent.js\").Extent|undefined} */ (\n this.get(LayerProperty.EXTENT)\n );\n }\n\n /**\n * Return the maximum resolution of the layer. Returns Infinity if\n * the layer has no maximum resolution set.\n * @return {number} The maximum resolution of the layer.\n * @observable\n * @api\n */\n getMaxResolution() {\n return /** @type {number} */ (this.get(LayerProperty.MAX_RESOLUTION));\n }\n\n /**\n * Return the minimum resolution of the layer. Returns 0 if\n * the layer has no minimum resolution set.\n * @return {number} The minimum resolution of the layer.\n * @observable\n * @api\n */\n getMinResolution() {\n return /** @type {number} */ (this.get(LayerProperty.MIN_RESOLUTION));\n }\n\n /**\n * Return the minimum zoom level of the layer. Returns -Infinity if\n * the layer has no minimum zoom set.\n * @return {number} The minimum zoom level of the layer.\n * @observable\n * @api\n */\n getMinZoom() {\n return /** @type {number} */ (this.get(LayerProperty.MIN_ZOOM));\n }\n\n /**\n * Return the maximum zoom level of the layer. Returns Infinity if\n * the layer has no maximum zoom set.\n * @return {number} The maximum zoom level of the layer.\n * @observable\n * @api\n */\n getMaxZoom() {\n return /** @type {number} */ (this.get(LayerProperty.MAX_ZOOM));\n }\n\n /**\n * Return the opacity of the layer (between 0 and 1).\n * @return {number} The opacity of the layer.\n * @observable\n * @api\n */\n getOpacity() {\n return /** @type {number} */ (this.get(LayerProperty.OPACITY));\n }\n\n /**\n * @abstract\n * @return {import(\"../source/Source.js\").State} Source state.\n */\n getSourceState() {\n return abstract();\n }\n\n /**\n * Return the value of this layer's `visible` property. To find out whether the layer\n * is visible on a map, use `isVisible()` instead.\n * @return {boolean} The value of the `visible` property of the layer.\n * @observable\n * @api\n */\n getVisible() {\n return /** @type {boolean} */ (this.get(LayerProperty.VISIBLE));\n }\n\n /**\n * Return the Z-index of the layer, which is used to order layers before\n * rendering. Returns undefined if the layer is unmanaged.\n * @return {number|undefined} The Z-index of the layer.\n * @observable\n * @api\n */\n getZIndex() {\n return /** @type {number|undefined} */ (this.get(LayerProperty.Z_INDEX));\n }\n\n /**\n * Sets the background color.\n * @param {BackgroundColor} [background] Background color.\n */\n setBackground(background) {\n this.background_ = background;\n this.changed();\n }\n\n /**\n * Set the extent at which the layer is visible. If `undefined`, the layer\n * will be visible at all extents.\n * @param {import(\"../extent.js\").Extent|undefined} extent The extent of the layer.\n * @observable\n * @api\n */\n setExtent(extent) {\n this.set(LayerProperty.EXTENT, extent);\n }\n\n /**\n * Set the maximum resolution at which the layer is visible.\n * @param {number} maxResolution The maximum resolution of the layer.\n * @observable\n * @api\n */\n setMaxResolution(maxResolution) {\n this.set(LayerProperty.MAX_RESOLUTION, maxResolution);\n }\n\n /**\n * Set the minimum resolution at which the layer is visible.\n * @param {number} minResolution The minimum resolution of the layer.\n * @observable\n * @api\n */\n setMinResolution(minResolution) {\n this.set(LayerProperty.MIN_RESOLUTION, minResolution);\n }\n\n /**\n * Set the maximum zoom (exclusive) at which the layer is visible.\n * Note that the zoom levels for layer visibility are based on the\n * view zoom level, which may be different from a tile source zoom level.\n * @param {number} maxZoom The maximum zoom of the layer.\n * @observable\n * @api\n */\n setMaxZoom(maxZoom) {\n this.set(LayerProperty.MAX_ZOOM, maxZoom);\n }\n\n /**\n * Set the minimum zoom (inclusive) at which the layer is visible.\n * Note that the zoom levels for layer visibility are based on the\n * view zoom level, which may be different from a tile source zoom level.\n * @param {number} minZoom The minimum zoom of the layer.\n * @observable\n * @api\n */\n setMinZoom(minZoom) {\n this.set(LayerProperty.MIN_ZOOM, minZoom);\n }\n\n /**\n * Set the opacity of the layer, allowed values range from 0 to 1.\n * @param {number} opacity The opacity of the layer.\n * @observable\n * @api\n */\n setOpacity(opacity) {\n assert(typeof opacity === 'number', 'Layer opacity must be a number');\n this.set(LayerProperty.OPACITY, opacity);\n }\n\n /**\n * Set the visibility of the layer (`true` or `false`).\n * @param {boolean} visible The visibility of the layer.\n * @observable\n * @api\n */\n setVisible(visible) {\n this.set(LayerProperty.VISIBLE, visible);\n }\n\n /**\n * Set Z-index of the layer, which is used to order layers before rendering.\n * The default Z-index is 0.\n * @param {number} zindex The z-index of the layer.\n * @observable\n * @api\n */\n setZIndex(zindex) {\n this.set(LayerProperty.Z_INDEX, zindex);\n }\n\n /**\n * Clean up.\n * @override\n */\n disposeInternal() {\n if (this.state_) {\n this.state_.layer = null;\n this.state_ = null;\n }\n super.disposeInternal();\n }\n}\n\nexport default BaseLayer;\n","/**\n * @module ol/layer/Layer\n */\nimport View from '../View.js';\nimport {assert} from '../asserts.js';\nimport EventType from '../events/EventType.js';\nimport {listen, unlistenByKey} from '../events.js';\nimport {intersects} from '../extent.js';\nimport RenderEventType from '../render/EventType.js';\nimport BaseLayer from './Base.js';\nimport LayerProperty from './Property.js';\n\n/**\n * @typedef {function(import(\"../Map.js\").FrameState):HTMLElement} RenderFunction\n */\n\n/**\n * @typedef {'sourceready'|'change:source'} LayerEventType\n */\n\n/***\n * @template Return\n * @typedef {import(\"../Observable\").OnSignature<import(\"../Observable\").EventTypes, import(\"../events/Event.js\").default, Return> &\n * import(\"../Observable\").OnSignature<import(\"./Base\").BaseLayerObjectEventTypes|\n * LayerEventType, import(\"../Object\").ObjectEvent, Return> &\n * import(\"../Observable\").OnSignature<import(\"../render/EventType\").LayerRenderEventTypes, import(\"../render/Event\").default, Return> &\n * import(\"../Observable\").CombinedOnSignature<import(\"../Observable\").EventTypes|import(\"./Base\").BaseLayerObjectEventTypes|LayerEventType|\n * import(\"../render/EventType\").LayerRenderEventTypes, Return>} LayerOnSignature\n */\n\n/**\n * @template {import(\"../source/Source.js\").default} [SourceType=import(\"../source/Source.js\").default]\n * @template {Object<string, *>} [Properties=Object<string, *>]\n * @typedef {Object} Options\n * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.\n * @property {number} [opacity=1] Opacity (0, 1).\n * @property {boolean} [visible=true] Visibility.\n * @property {import(\"../extent.js\").Extent} [extent] The bounding extent for layer rendering. The layer will not be\n * rendered outside of this extent.\n * @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers\n * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed\n * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`\n * method was used.\n * @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be\n * visible.\n * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will\n * be visible.\n * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be\n * visible.\n * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will\n * be visible.\n * @property {SourceType} [source] Source for this layer. If not provided to the constructor,\n * the source can be set by calling {@link module:ol/layer/Layer~Layer#setSource layer.setSource(source)} after\n * construction.\n * @property {import(\"../Map.js\").default|null} [map] Map.\n * @property {RenderFunction} [render] Render function. Takes the frame state as input and is expected to return an\n * HTML element. Will overwrite the default rendering for the layer.\n * @property {Properties} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.\n */\n\n/**\n * @typedef {Object} State\n * @property {import(\"./Layer.js\").default} layer Layer.\n * @property {number} opacity Opacity, the value is rounded to two digits to appear after the decimal point.\n * @property {boolean} visible Visible.\n * @property {boolean} managed Managed.\n * @property {import(\"../extent.js\").Extent} [extent] Extent.\n * @property {number} zIndex ZIndex.\n * @property {number} maxResolution Maximum resolution.\n * @property {number} minResolution Minimum resolution.\n * @property {number} minZoom Minimum zoom.\n * @property {number} maxZoom Maximum zoom.\n */\n\n/**\n * @classdesc\n * Base class from which all layer types are derived. This should only be instantiated\n * in the case where a custom layer is added to the map with a custom `render` function.\n * Such a function can be specified in the `options` object, and is expected to return an HTML element.\n *\n * A visual representation of raster or vector map data.\n * Layers group together those properties that pertain to how the data is to be\n * displayed, irrespective of the source of that data.\n *\n * Layers are usually added to a map with [map.addLayer()]{@link import(\"../Map.js\").default#addLayer}.\n * Components like {@link module:ol/interaction/Draw~Draw} use unmanaged layers\n * internally. These unmanaged layers are associated with the map using\n * [layer.setMap()]{@link module:ol/layer/Layer~Layer#setMap} instead.\n *\n * A generic `change` event is fired when the state of the source changes.\n * A `sourceready` event is fired when the layer's source is ready.\n *\n * @fires import(\"../render/Event.js\").RenderEvent#prerender\n * @fires import(\"../render/Event.js\").RenderEvent#postrender\n * @fires import(\"../events/Event.js\").BaseEvent#sourceready\n *\n * @template {import(\"../source/Source.js\").default} [SourceType=import(\"../source/Source.js\").default]\n * @template {import(\"../renderer/Layer.js\").default} [RendererType=import(\"../renderer/Layer.js\").default]\n * @template {Object<string, *>} [Properties=Object<string, *>]\n * @extends {BaseLayer<NoInfer<Properties>>}\n * @api\n */\nclass Layer extends BaseLayer {\n /**\n * @param {Options<SourceType, NoInfer<Properties>>} options Layer options.\n */\n constructor(options) {\n const baseOptions = Object.assign({}, options);\n delete baseOptions.source;\n\n super(baseOptions);\n\n /***\n * @type {LayerOnSignature<import(\"../events\").EventsKey>}\n */\n this.on;\n\n /***\n * @type {LayerOnSignature<import(\"../events\").EventsKey>}\n */\n this.once;\n\n /***\n * @type {LayerOnSignature<void>}\n */\n this.un;\n\n /**\n * @private\n * @type {?import(\"../events.js\").EventsKey}\n */\n this.mapPrecomposeKey_ = null;\n\n /**\n * @private\n * @type {?import(\"../events.js\").EventsKey}\n */\n this.mapRenderKey_ = null;\n\n /**\n * @private\n * @type {?import(\"../events.js\").EventsKey}\n */\n this.sourceChangeKey_ = null;\n\n /**\n * @private\n * @type {RendererType}\n */\n this.renderer_ = null;\n\n /**\n * @private\n * @type {boolean}\n */\n this.sourceReady_ = false;\n\n /**\n * @protected\n * @type {boolean}\n */\n this.rendered = false;\n\n // Overwrite default render method with a custom one\n if (options.render) {\n this.render = options.render;\n }\n\n if (options.map) {\n this.setMap(options.map);\n }\n\n this.addChangeListener(\n LayerProperty.SOURCE,\n this.handleSourcePropertyChange_,\n );\n\n const source = options.source\n ? /** @type {SourceType} */ (options.source)\n : null;\n this.setSource(source);\n }\n\n /**\n * @param {Array<import(\"./Layer.js\").default>} [array] Array of layers (to be modified in place).\n * @return {Array<import(\"./Layer.js\").default>} Array of layers.\n * @override\n */\n getLayersArray(array) {\n array = array ? array : [];\n array.push(this);\n return array;\n }\n\n /**\n * @param {Array<import(\"./Layer.js\").State>} [states] Optional list of layer states (to be modified in place).\n * @return {Array<import(\"./Layer.js\").State>} List of layer states.\n * @override\n */\n getLayerStatesArray(states) {\n states = states ? states : [];\n states.push(this.getLayerState());\n return states;\n }\n\n /**\n * Get the layer source.\n * @return {SourceType|null} The layer source (or `null` if not yet set).\n * @observable\n * @api\n */\n getSource() {\n return /** @type {SourceType} */ (this.get(LayerProperty.SOURCE)) || null;\n }\n\n /**\n * @return {SourceType|null} The source being rendered.\n */\n getRenderSource() {\n return this.getSource();\n }\n\n /**\n * @return {import(\"../source/Source.js\").State} Source state.\n * @override\n */\n getSourceState() {\n const source = this.getSource();\n return !source ? 'undefined' : source.getState();\n }\n\n /**\n * @private\n */\n handleSourceChange_() {\n this.changed();\n if (this.sourceReady_ || this.getSource().getState() !== 'ready') {\n return;\n }\n this.sourceReady_ = true;\n this.dispatchEvent('sourceready');\n }\n\n /**\n * @private\n */\n handleSourcePropertyChange_() {\n if (this.sourceChangeKey_) {\n unlistenByKey(this.sourceChangeKey_);\n this.sourceChangeKey_ = null;\n }\n this.sourceReady_ = false;\n const source = this.getSource();\n if (source) {\n this.sourceChangeKey_ = listen(\n source,\n EventType.CHANGE,\n this.handleSourceChange_,\n this,\n );\n if (source.getState() === 'ready') {\n this.sourceReady_ = true;\n setTimeout(() => {\n this.dispatchEvent('sourceready');\n }, 0);\n }\n }\n this.changed();\n }\n\n /**\n * @param {import(\"../pixel\").Pixel} pixel Pixel.\n * @return {Promise<Array<import(\"../Feature\").FeatureLike>>} Promise that resolves with\n * an array of features.\n */\n getFeatures(pixel) {\n if (!this.renderer_) {\n return Promise.resolve([]);\n }\n return this.renderer_.getFeatures(pixel);\n }\n\n /**\n * @param {import(\"../pixel\").Pixel} pixel Pixel.\n * @return {Uint8ClampedArray|Uint8Array|Float32Array|DataView|null} Pixel data.\n */\n getData(pixel) {\n if (!this.renderer_ || !this.rendered) {\n return null;\n }\n return this.renderer_.getData(pixel);\n }\n\n /**\n * The layer is visible on the map view, i.e. within its min/max resolution or zoom and\n * extent, not set to `visible: false`, and not inside a layer group that is set\n * to `visible: false`.\n * @param {View|import(\"../View.js\").ViewStateLayerStateExtent} [view] View or {@link import(\"../Map.js\").FrameState}.\n * Only required when the layer is not added to a map.\n * @return {boolean} The layer is visible in the map view.\n * @api\n */\n isVisible(view) {\n let frameState;\n const map = this.getMapInternal();\n if (!view && map) {\n view = map.getView();\n }\n if (view instanceof View) {\n frameState = {\n viewState: view.getState(),\n extent: view.calculateExtent(),\n };\n } else {\n frameState = view;\n }\n if (!frameState.layerStatesArray && map) {\n frameState.layerStatesArray = map.getLayerGroup().getLayerStatesArray();\n }\n let layerState;\n if (frameState.layerStatesArray) {\n layerState = frameState.layerStatesArray.find(\n (layerState) => layerState.layer === this,\n );\n if (!layerState) {\n return false;\n }\n } else {\n layerState = this.getLayerState();\n }\n\n const layerExtent = this.getExtent();\n\n return (\n inView(layerState, frameState.viewState) &&\n (!layerExtent || intersects(layerExtent, frameState.extent))\n );\n }\n\n /**\n * Get the attributions of the source of this layer for the given view.\n * @param {View|import(\"../View.js\").ViewStateLayerStateExtent} [view] View or {@link import(\"../Map.js\").FrameState}.\n * Only required when the layer is not added to a map.\n * @return {Array<string>} Attributions for this layer at the given view.\n * @api\n */\n getAttributions(view) {\n if (!this.isVisible(view)) {\n return [];\n }\n const getAttributions = this.getSource()?.getAttributions();\n if (!getAttributions) {\n return [];\n }\n const frameState =\n view instanceof View ? view.getViewStateAndExtent() : view;\n let attributions = getAttributions(frameState);\n if (!Array.isArray(attributions)) {\n attributions = [attributions];\n }\n return attributions;\n }\n\n /**\n * In charge to manage the rendering of the layer. One layer type is\n * bounded with one layer renderer.\n * @param {?import(\"../Map.js\").FrameState} frameState Frame state.\n * @param {HTMLElement} target Target which the renderer may (but need not) use\n * for rendering its content.\n * @return {HTMLElement|null} The rendered element.\n */\n render(frameState, target) {\n const layerRenderer = this.getRenderer();\n\n if (layerRenderer.prepareFrame(frameState)) {\n this.rendered = true;\n return layerRenderer.renderFrame(frameState, target);\n }\n return null;\n }\n\n /**\n * Called when a layer is not visible during a map render.\n */\n unrender() {\n this.rendered = false;\n }\n\n /** @return {string} Declutter */\n getDeclutter() {\n return undefined;\n }\n\n /**\n * @param {import(\"../Map.js\").FrameState} frameState Frame state.\n * @param {import(\"../layer/Layer.js\").State} layerState Layer state.\n */\n renderDeclutter(frameState, layerState) {}\n\n /**\n * When the renderer follows a layout -> render approach, do the final rendering here.\n * @param {import('../Map.js').FrameState} frameState Frame state\n */\n renderDeferred(frameState) {\n const layerRenderer = this.getRenderer();\n if (!layerRenderer) {\n return;\n }\n layerRenderer.renderDeferred(frameState);\n }\n\n /**\n * For use inside the library only.\n * @param {import(\"../Map.js\").default|null} map Map.\n */\n setMapInternal(map) {\n if (!map) {\n this.unrender();\n }\n this.set(LayerProperty.MAP, map);\n }\n\n /**\n * For use inside the library only.\n * @return {import(\"../Map.js\").default|null} Map.\n */\n getMapInternal() {\n return this.get(LayerProperty.MAP);\n }\n\n /**\n * Sets the layer to be rendered on top of other layers on a map. The map will\n * not manage this layer in its layers collection. This\n * is useful for temporary layers. To remove an unmanaged layer from the map,\n * use `#setMap(null)`.\n *\n * To add the layer to a map and have it managed by the map, use\n * {@link module:ol/Map~Map#addLayer} instead.\n * @param {import(\"../Map.js\").default|null} map Map.\n * @api\n */\n setMap(map) {\n if (this.mapPrecomposeKey_) {\n unlistenByKey(this.mapPrecomposeKey_);\n this.mapPrecomposeKey_ = null;\n }\n if (!map) {\n this.changed();\n }\n if (this.mapRenderKey_) {\n unlistenByKey(this.mapRenderKey_);\n this.mapRenderKey_ = null;\n }\n if (map) {\n this.mapPrecomposeKey_ = listen(\n map,\n RenderEventType.PRECOMPOSE,\n this.handlePrecompose_,\n this,\n );\n this.mapRenderKey_ = listen(this, EventType.CHANGE, map.render, map);\n this.changed();\n }\n }\n\n /**\n * @param {import(\"../events/Event.js\").default} renderEvent Render event\n * @private\n */\n handlePrecompose_(renderEvent) {\n const layerStatesArray =\n /** @type {import(\"../render/Event.js\").default} */ (renderEvent)\n .frameState.layerStatesArray;\n const layerState = this.getLayerState(false);\n assert(\n !layerStatesArray.some(\n (arrayLayerState) => arrayLayerState.layer === layerState.layer,\n ),\n 'A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both.',\n );\n layerStatesArray.push(layerState);\n }\n\n /**\n * Set the layer source.\n * @param {SourceType|null} source The layer source.\n * @observable\n * @api\n */\n setSource(source) {\n this.set(LayerProperty.SOURCE, source);\n }\n\n /**\n * Get the renderer for this layer.\n * @return {RendererType|null} The layer renderer.\n */\n getRenderer() {\n if (!this.renderer_) {\n this.renderer_ = this.createRenderer();\n }\n return this.renderer_;\n }\n\n /**\n * @return {boolean} The layer has a renderer.\n */\n hasRenderer() {\n return !!this.renderer_;\n }\n\n /**\n * Create a renderer for this layer.\n * @return {RendererType} A layer renderer.\n * @protected\n */\n createRenderer() {\n return null;\n }\n\n /**\n * This will clear the renderer so that a new one can be created next time it is needed\n */\n clearRenderer() {\n if (this.renderer_) {\n this.renderer_.dispose();\n delete this.renderer_;\n }\n }\n\n /**\n * Clean up.\n * @override\n */\n disposeInternal() {\n this.clearRenderer();\n this.setSource(null);\n super.disposeInternal();\n }\n}\n\n/**\n * Return `true` if the layer is visible and if the provided view state\n * has resolution and zoom levels that are in range of the layer's min/max.\n * @param {State} layerState Layer state.\n * @param {import(\"../View.js\").State} viewState View state.\n * @return {boolean} The layer is visible at the given view state.\n */\nexport function inView(layerState, viewState) {\n if (!layerState.visible) {\n return false;\n }\n const resolution = viewState.resolution;\n if (\n resolution < layerState.minResolution ||\n resolution >= layerState.maxResolution\n ) {\n return false;\n }\n const zoom = viewState.zoom;\n return zoom > layerState.minZoom && zoom <= layerState.maxZoom;\n}\n\nexport default Layer;\n","/**\n * @module ol/layer/BaseImage\n */\nimport Layer from './Layer.js';\n\n/**\n * @template {import(\"../source/Image.js\").default} ImageSourceType\n * @typedef {Object} Options\n * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.\n * @property {number} [opacity=1] Opacity (0, 1).\n * @property {boolean} [visible=true] Visibility.\n * @property {import(\"../extent.js\").Extent} [extent] The bounding extent for layer rendering. The layer will not be\n * rendered outside of this extent.\n * @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers\n * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed\n * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`\n * method was used.\n * @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be\n * visible.\n * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will\n * be visible.\n * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be\n * visible.\n * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will\n * be visible.\n * @property {import(\"../Map.js\").default} [map] Sets the layer as overlay on a map. The map will not manage\n * this layer in its layers collection, and the layer will be rendered on top. This is useful for\n * temporary layers. The standard way to add a layer to a map and have it managed by the map is to\n * use {@link import(\"../Map.js\").default#addLayer map.addLayer()}.\n * @property {ImageSourceType} [source] Source for this layer.\n * @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.\n */\n\n/**\n * @classdesc\n * Server-rendered images that are available for arbitrary extents and\n * resolutions.\n * Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}\n * property on the layer object; for example, setting `title: 'My Title'` in the\n * options means that `title` is observable, and has get/set accessors.\n *\n * @template {import(\"../source/Image.js\").default} ImageSourceType\n * @template {import(\"../renderer/Layer.js\").default} RendererType\n * @extends {Layer<ImageSourceType, RendererType>}\n * @api\n */\nclass BaseImageLayer extends Layer {\n /**\n * @param {Options<ImageSourceType>} [options] Layer options.\n */\n constructor(options) {\n options = options ? options : {};\n super(options);\n }\n}\n\nexport default BaseImageLayer;\n","/**\n * @module ol/layer/Image\n */\nimport CanvasImageLayerRenderer from '../renderer/canvas/ImageLayer.js';\nimport BaseImageLayer from './BaseImage.js';\n\n/**\n * @classdesc\n * Server-rendered images that are available for arbitrary extents and\n * resolutions.\n * Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}\n * property on the layer object; for example, setting `title: 'My Title'` in the\n * options means that `title` is observable, and has get/set accessors.\n *\n * @template {import(\"../source/Image.js\").default} ImageSourceType\n * @extends {BaseImageLayer<ImageSourceType, CanvasImageLayerRenderer>}\n * @api\n */\nclass ImageLayer extends BaseImageLayer {\n /**\n * @param {import(\"./BaseImage.js\").Options<ImageSourceType>} [options] Layer options.\n */\n constructor(options) {\n super(options);\n }\n\n /**\n * @override\n */\n createRenderer() {\n return new CanvasImageLayerRenderer(this);\n }\n\n /**\n * Get data for a pixel location. A four element RGBA array will be returned. For requests outside the\n * layer extent, `null` will be returned. Data for an image can only be retrieved if the\n * source's `crossOrigin` property is set.\n *\n * ```js\n * // display layer data on every pointer move\n * map.on('pointermove', (event) => {\n * console.log(layer.getData(event.pixel));\n * });\n * ```\n * @param {import(\"../pixel\").Pixel} pixel Pixel.\n * @return {Uint8ClampedArray|Uint8Array|Float32Array|DataView|null} Pixel data.\n * @api\n * @override\n */\n getData(pixel) {\n return super.getData(pixel);\n }\n}\n\nexport default ImageLayer;\n","/**\n * @module ol/Image\n */\nimport ImageState from './ImageState.js';\nimport EventType from './events/EventType.js';\nimport EventTarget from './events/Target.js';\nimport {listenOnce, unlistenByKey} from './events.js';\nimport {toPromise} from './functions.js';\nimport {CREATE_IMAGE_BITMAP, IMAGE_DECODE} from './has.js';\n\n/**\n * A function that takes an {@link module:ol/Image~ImageWrapper} for the image and a\n * `{string}` for the src as arguments. It is supposed to make it so the\n * underlying image {@link module:ol/Image~ImageWrapper#getImage} is assigned the\n * content specified by the src. If not specified, the default is\n *\n * function(image, src) {\n * image.getImage().src = src;\n * }\n *\n * Providing a custom `imageLoadFunction` can be useful to load images with\n * post requests or - in general - through XHR requests, where the src of the\n * image element would be set to a data URI when the content is loaded.\n *\n * @typedef {function(import(\"./Image.js\").default, string): void} LoadFunction\n * @api\n */\n\n/**\n * @typedef {Object} ImageObject\n * @property {import(\"./extent.js\").Extent} [extent] Extent, if different from the requested one.\n * @property {import(\"./resolution.js\").ResolutionLike} [resolution] Resolution, if different from the requested one.\n * When x and y resolution are different, use the array type (`[xResolution, yResolution]`).\n * @property {number} [pixelRatio] Pixel ratio, if different from the requested one.\n * @property {import('./DataTile.js').ImageLike} image Image.\n */\n\n/**\n * Loader function used for image sources. Receives extent, resolution and pixel ratio as arguments.\n * For images that cover any extent and resolution (static images), the loader function should not accept\n * any arguments. The function returns an {@link import(\"./DataTile.js\").ImageLike image}, an\n * {@link import(\"./Image.js\").ImageObject image object}, or a promise for the same.\n * For loaders that generate images, the promise should not resolve until the image is loaded.\n * If the returned image does not match the extent, resolution or pixel ratio passed to the loader,\n * it has to return an {@link import(\"./Image.js\").ImageObject image object} with the `image` and the\n * correct `extent`, `resolution` and `pixelRatio`.\n *\n * @typedef {function(import(\"./extent.js\").Extent, number, number, (function(HTMLImageElement, string): void)=): import(\"./DataTile.js\").ImageLike|ImageObject|Promise<import(\"./DataTile.js\").ImageLike|ImageObject>} Loader\n * @api\n */\n\n/**\n * Loader function used for image sources. Receives extent, resolution and pixel ratio as arguments.\n * The function returns a promise for an {@link import(\"./Image.js\").ImageObject image object}.\n *\n * @typedef {function(import(\"./extent.js\").Extent, number, number, (function(HTMLImageElement, string): void)=): Promise<import(\"./DataTile.js\").ImageLike|ImageObject>} ImageObjectPromiseLoader\n */\n\nclass ImageWrapper extends EventTarget {\n /**\n * @param {import(\"./extent.js\").Extent} extent Extent.\n * @param {number|Array<number>|undefined} resolution Resolution. If provided as array, x and y\n * resolution will be assumed.\n * @param {number} pixelRatio Pixel ratio.\n * @param {import(\"./ImageState.js\").default|Loader} stateOrLoader State.\n */\n constructor(extent, resolution, pixelRatio, stateOrLoader) {\n super();\n\n /**\n * @protected\n * @type {import(\"./extent.js\").Extent}\n */\n this.extent = extent;\n\n /**\n * @private\n * @type {number}\n */\n this.pixelRatio_ = pixelRatio;\n\n /**\n * @protected\n * @type {number|Array<number>|undefined}\n */\n this.resolution = resolution;\n\n /**\n * @protected\n * @type {import(\"./ImageState.js\").default}\n */\n this.state =\n typeof stateOrLoader === 'function' ? ImageState.IDLE : stateOrLoader;\n\n /**\n * @private\n * @type {import('./DataTile.js').ImageLike|null}\n */\n this.image_ = null;\n\n /**\n * @protected\n * @type {Loader|null}\n */\n this.loader = typeof stateOrLoader === 'function' ? stateOrLoader : null;\n }\n\n /**\n * @protected\n */\n changed() {\n this.dispatchEvent(EventType.CHANGE);\n }\n\n /**\n * @return {import(\"./extent.js\").Extent} Extent.\n */\n getExtent() {\n return this.extent;\n }\n\n /**\n * @return {import('./DataTile.js').ImageLike} Image.\n */\n getImage() {\n return this.image_;\n }\n\n /**\n * @return {number} PixelRatio.\n */\n getPixelRatio() {\n return this.pixelRatio_;\n }\n\n /**\n * @return {number|Array<number>} Resolution.\n */\n getResolution() {\n return /** @type {number} */ (this.resolution);\n }\n\n /**\n * @return {import(\"./ImageState.js\").default} State.\n */\n getState() {\n return this.state;\n }\n\n /**\n * Load not yet loaded URI.\n */\n load() {\n if (this.state == ImageState.IDLE) {\n if (this.loader) {\n this.state = ImageState.LOADING;\n this.changed();\n const resolution = this.getResolution();\n const requestResolution = Array.isArray(resolution)\n ? resolution[0]\n : resolution;\n toPromise(() =>\n this.loader(\n this.getExtent(),\n requestResolution,\n this.getPixelRatio(),\n ),\n )\n .then((image) => {\n if ('image' in image) {\n this.image_ = image.image;\n }\n if ('extent' in image) {\n this.extent = image.extent;\n }\n if ('resolution' in image) {\n this.resolution = image.resolution;\n }\n if ('pixelRatio' in image) {\n this.pixelRatio_ = image.pixelRatio;\n }\n if (\n image instanceof HTMLImageElement ||\n (CREATE_IMAGE_BITMAP && image instanceof ImageBitmap) ||\n image instanceof HTMLCanvasElement ||\n image instanceof HTMLVideoElement\n ) {\n this.image_ = image;\n }\n this.state = ImageState.LOADED;\n })\n .catch((error) => {\n this.state = ImageState.ERROR;\n console.error(error); // eslint-disable-line no-console\n })\n .finally(() => this.changed());\n }\n }\n }\n\n /**\n * @param {import('./DataTile.js').ImageLike} image The image.\n */\n setImage(image) {\n this.image_ = image;\n }\n\n /**\n * @param {number|Array<number>} resolution Resolution.\n */\n setResolution(resolution) {\n this.resolution = resolution;\n }\n}\n\n/**\n * @param {import('./DataTile.js').ImageLike} image Image element.\n * @param {function():any} loadHandler Load callback function.\n * @param {function():any} errorHandler Error callback function.\n * @return {function():void} Callback to stop listening.\n */\nexport function listenImage(image, loadHandler, errorHandler) {\n const img = /** @type {HTMLImageElement} */ (image);\n let listening = true;\n let decoding = false;\n let loaded = false;\n\n const listenerKeys = [\n listenOnce(img, EventType.LOAD, function () {\n loaded = true;\n if (!decoding) {\n loadHandler();\n }\n }),\n ];\n\n if (img.src && IMAGE_DECODE) {\n decoding = true;\n img\n .decode()\n .then(function () {\n if (listening) {\n loadHandler();\n }\n })\n .catch(function (error) {\n if (listening) {\n if (loaded) {\n loadHandler();\n } else {\n errorHandler();\n }\n }\n });\n } else {\n listenerKeys.push(listenOnce(img, EventType.ERROR, errorHandler));\n }\n\n return function unlisten() {\n listening = false;\n listenerKeys.forEach(unlistenByKey);\n };\n}\n\n/**\n * Loads an image.\n * @param {HTMLImageElement} image Image, not yet loaded.\n * @param {string} [src] `src` attribute of the image. Optional, not required if already present.\n * @return {Promise<HTMLImageElement>} Promise resolving to an `HTMLImageElement`.\n * @api\n */\nexport function load(image, src) {\n return new Promise((resolve, reject) => {\n function handleLoad() {\n unlisten();\n resolve(image);\n }\n function handleError() {\n unlisten();\n reject(new Error('Image load error'));\n }\n function unlisten() {\n image.removeEventListener('load', handleLoad);\n image.removeEventListener('error', handleError);\n }\n image.addEventListener('load', handleLoad);\n image.addEventListener('error', handleError);\n if (src) {\n image.src = src;\n }\n });\n}\n\n/**\n * @param {HTMLImageElement} image Image, not yet loaded.\n * @param {string} [src] `src` attribute of the image. Optional, not required if already present.\n * @return {Promise<HTMLImageElement>} Promise resolving to an `HTMLImageElement`.\n */\nexport function decodeFallback(image, src) {\n if (src) {\n image.src = src;\n }\n return image.src && IMAGE_DECODE\n ? new Promise((resolve, reject) =>\n image\n .decode()\n .then(() => resolve(image))\n .catch((e) =>\n image.complete && image.width ? resolve(image) : reject(e),\n ),\n )\n : load(image);\n}\n\n/**\n * Loads an image and decodes it to an `ImageBitmap` if `createImageBitmap()` is supported. Returns\n * the loaded image otherwise.\n * @param {HTMLImageElement} image Image, not yet loaded.\n * @param {string} [src] `src` attribute of the image. Optional, not required if already present.\n * @return {Promise<ImageBitmap|HTMLImageElement>} Promise resolving to an `ImageBitmap` or an\n * `HTMLImageElement` if `createImageBitmap()` is not supported.\n * @api\n */\nexport function decode(image, src) {\n if (src) {\n image.src = src;\n }\n return image.src && IMAGE_DECODE && CREATE_IMAGE_BITMAP\n ? image\n .decode()\n .then(() => createImageBitmap(image))\n .catch((e) => {\n if (image.complete && image.width) {\n return image;\n }\n throw e;\n })\n : decodeFallback(image);\n}\n\nexport default ImageWrapper;\n","/**\n * @module ol/reproj\n */\nimport {createCanvasContext2D, releaseCanvas} from './dom.js';\nimport {\n containsCoordinate,\n createEmpty,\n extend,\n forEachCorner,\n getCenter,\n getHeight,\n getTopLeft,\n getWidth,\n} from './extent.js';\nimport {solveLinearSystem} from './math.js';\nimport {getPointResolution, transform} from './proj.js';\n\nlet brokenDiagonalRendering_;\n\n/**\n * @type {Array<HTMLCanvasElement|OffscreenCanvas>}\n */\nexport const canvasPool = [];\n\n/**\n * This draws a small triangle into a canvas by setting the triangle as the clip region\n * and then drawing a (too large) rectangle\n *\n * @param {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} ctx The context in which to draw the triangle\n * @param {number} u1 The x-coordinate of the second point. The first point is 0,0.\n * @param {number} v1 The y-coordinate of the second point.\n * @param {number} u2 The x-coordinate of the third point.\n * @param {number} v2 The y-coordinate of the third point.\n */\nfunction drawTestTriangle(ctx, u1, v1, u2, v2) {\n ctx.beginPath();\n ctx.moveTo(0, 0);\n ctx.lineTo(u1, v1);\n ctx.lineTo(u2, v2);\n ctx.closePath();\n ctx.save();\n ctx.clip();\n ctx.fillRect(0, 0, Math.max(u1, u2) + 1, Math.max(v1, v2));\n ctx.restore();\n}\n\n/**\n * Given the data from getImageData, see if the right values appear at the provided offset.\n * Returns true if either the color or transparency is off\n *\n * @param {Uint8ClampedArray} data The data returned from getImageData\n * @param {number} offset The pixel offset from the start of data.\n * @return {boolean} true if the diagonal rendering is broken\n */\nfunction verifyBrokenDiagonalRendering(data, offset) {\n // the values ought to be close to the rgba(210, 0, 0, 0.75)\n return (\n Math.abs(data[offset * 4] - 210) > 2 ||\n Math.abs(data[offset * 4 + 3] - 0.75 * 255) > 2\n );\n}\n\n/**\n * Determines if the current browser configuration can render triangular clip regions correctly.\n * This value is cached so the function is only expensive the first time called.\n * Firefox on Windows (as of now) does not if HWA is enabled. See https://bugzilla.mozilla.org/show_bug.cgi?id=1606976\n * Chrome works, and everything seems to work on OSX and Android. This function caches the\n * result. I suppose that it is conceivably possible that a browser might flip modes while the app is\n * running, but lets hope not.\n *\n * @return {boolean} true if the Diagonal Rendering is broken.\n */\nfunction isBrokenDiagonalRendering() {\n if (brokenDiagonalRendering_ === undefined) {\n const ctx = createCanvasContext2D(6, 6, canvasPool);\n ctx.globalCompositeOperation = 'lighter';\n ctx.fillStyle = 'rgba(210, 0, 0, 0.75)';\n drawTestTriangle(ctx, 4, 5, 4, 0);\n drawTestTriangle(ctx, 4, 5, 0, 5);\n const data = ctx.getImageData(0, 0, 3, 3).data;\n brokenDiagonalRendering_ =\n verifyBrokenDiagonalRendering(data, 0) ||\n verifyBrokenDiagonalRendering(data, 4) ||\n verifyBrokenDiagonalRendering(data, 8);\n releaseCanvas(ctx);\n canvasPool.push(ctx.canvas);\n }\n\n return brokenDiagonalRendering_;\n}\n\n/**\n * Calculates ideal resolution to use from the source in order to achieve\n * pixel mapping as close as possible to 1:1 during reprojection.\n * The resolution is calculated regardless of what resolutions\n * are actually available in the dataset (TileGrid, Image, ...).\n *\n * @param {import(\"./proj/Projection.js\").default} sourceProj Source projection.\n * @param {import(\"./proj/Projection.js\").default} targetProj Target projection.\n * @param {import(\"./coordinate.js\").Coordinate} targetCenter Target center.\n * @param {number} targetResolution Target resolution.\n * @return {number} The best resolution to use. Can be +-Infinity, NaN or 0.\n */\nexport function calculateSourceResolution(\n sourceProj,\n targetProj,\n targetCenter,\n targetResolution,\n) {\n const sourceCenter = transform(targetCenter, targetProj, sourceProj);\n\n // calculate the ideal resolution of the source data\n let sourceResolution = getPointResolution(\n targetProj,\n targetResolution,\n targetCenter,\n );\n\n const targetMetersPerUnit = targetProj.getMetersPerUnit();\n if (targetMetersPerUnit !== undefined) {\n sourceResolution *= targetMetersPerUnit;\n }\n const sourceMetersPerUnit = sourceProj.getMetersPerUnit();\n if (sourceMetersPerUnit !== undefined) {\n sourceResolution /= sourceMetersPerUnit;\n }\n\n // Based on the projection properties, the point resolution at the specified\n // coordinates may be slightly different. We need to reverse-compensate this\n // in order to achieve optimal results.\n\n const sourceExtent = sourceProj.getExtent();\n if (!sourceExtent || containsCoordinate(sourceExtent, sourceCenter)) {\n const compensationFactor =\n getPointResolution(sourceProj, sourceResolution, sourceCenter) /\n sourceResolution;\n if (isFinite(compensationFactor) && compensationFactor > 0) {\n sourceResolution /= compensationFactor;\n }\n }\n\n return sourceResolution;\n}\n\n/**\n * Calculates ideal resolution to use from the source in order to achieve\n * pixel mapping as close as possible to 1:1 during reprojection.\n * The resolution is calculated regardless of what resolutions\n * are actually available in the dataset (TileGrid, Image, ...).\n *\n * @param {import(\"./proj/Projection.js\").default} sourceProj Source projection.\n * @param {import(\"./proj/Projection.js\").default} targetProj Target projection.\n * @param {import(\"./extent.js\").Extent} targetExtent Target extent\n * @param {number} targetResolution Target resolution.\n * @return {number} The best resolution to use. Can be +-Infinity, NaN or 0.\n */\nexport function calculateSourceExtentResolution(\n sourceProj,\n targetProj,\n targetExtent,\n targetResolution,\n) {\n const targetCenter = getCenter(targetExtent);\n let sourceResolution = calculateSourceResolution(\n sourceProj,\n targetProj,\n targetCenter,\n targetResolution,\n );\n\n if (!isFinite(sourceResolution) || sourceResolution <= 0) {\n forEachCorner(targetExtent, function (corner) {\n sourceResolution = calculateSourceResolution(\n sourceProj,\n targetProj,\n corner,\n targetResolution,\n );\n return isFinite(sourceResolution) && sourceResolution > 0;\n });\n }\n\n return sourceResolution;\n}\n\n/**\n * @typedef {Object} ImageExtent\n * @property {import(\"./extent.js\").Extent} extent Extent.\n * @property {import(\"./extent.js\").Extent} [clipExtent] Clip extent.\n * @property {import('./DataTile.js').ImageLike} image Image.\n */\n\n/**\n * Renders the source data into new canvas based on the triangulation.\n *\n * @param {number} width Width of the canvas.\n * @param {number} height Height of the canvas.\n * @param {number} pixelRatio Pixel ratio.\n * @param {number} sourceResolution Source resolution.\n * @param {import(\"./extent.js\").Extent} sourceExtent Extent of the data source.\n * @param {number} targetResolution Target resolution.\n * @param {import(\"./extent.js\").Extent} targetExtent Target extent.\n * @param {import(\"./reproj/Triangulation.js\").default} triangulation Calculated triangulation.\n * @param {Array<ImageExtent>} sources Array of sources.\n * @param {number} gutter Gutter of the sources.\n * @param {boolean} [renderEdges] Render reprojection edges.\n * @param {boolean} [interpolate] Use linear interpolation when resampling.\n * @param {boolean} [drawSingle] Draw single source images directly without stitchContext.\n * @param {boolean} [clipExtent] Clip stitchContext to sourceExtent.\n * @return {HTMLCanvasElement|OffscreenCanvas} Canvas with reprojected data.\n */\nexport function render(\n width,\n height,\n pixelRatio,\n sourceResolution,\n sourceExtent,\n targetResolution,\n targetExtent,\n triangulation,\n sources,\n gutter,\n renderEdges,\n interpolate,\n drawSingle,\n clipExtent,\n) {\n const context = createCanvasContext2D(\n Math.round(pixelRatio * width),\n Math.round(pixelRatio * height),\n canvasPool,\n );\n\n if (!interpolate) {\n context.imageSmoothingEnabled = false;\n }\n\n if (sources.length === 0) {\n return context.canvas;\n }\n\n context.scale(pixelRatio, pixelRatio);\n\n function pixelRound(value) {\n return Math.round(value * pixelRatio) / pixelRatio;\n }\n\n context.globalCompositeOperation = 'lighter';\n\n const sourceDataExtent = createEmpty();\n sources.forEach(function (src, i, arr) {\n extend(sourceDataExtent, src.extent);\n });\n\n let stitchContext;\n const stitchScale = pixelRatio / sourceResolution;\n // Round up Float32 scale values to prevent interpolation in Firefox.\n const inverseScale = (interpolate ? 1 : 1 + Math.pow(2, -24)) / stitchScale;\n\n if (!drawSingle || sources.length !== 1 || gutter !== 0) {\n stitchContext = createCanvasContext2D(\n Math.round(getWidth(sourceDataExtent) * stitchScale),\n Math.round(getHeight(sourceDataExtent) * stitchScale),\n canvasPool,\n );\n\n if (!interpolate) {\n stitchContext.imageSmoothingEnabled = false;\n }\n if (sourceExtent && clipExtent) {\n const xPos = (sourceExtent[0] - sourceDataExtent[0]) * stitchScale;\n const yPos = -(sourceExtent[3] - sourceDataExtent[3]) * stitchScale;\n const width = getWidth(sourceExtent) * stitchScale;\n const height = getHeight(sourceExtent) * stitchScale;\n stitchContext.rect(xPos, yPos, width, height);\n stitchContext.clip();\n }\n\n sources.forEach(function (src, i, arr) {\n // This test should never fail -- but it does. Need to find a fix the upstream condition\n if (src.image.width > 0 && src.image.height > 0) {\n if (src.clipExtent) {\n stitchContext.save();\n const xPos = (src.clipExtent[0] - sourceDataExtent[0]) * stitchScale;\n const yPos = -(src.clipExtent[3] - sourceDataExtent[3]) * stitchScale;\n const width = getWidth(src.clipExtent) * stitchScale;\n const height = getHeight(src.clipExtent) * stitchScale;\n stitchContext.rect(\n interpolate ? xPos : Math.round(xPos),\n interpolate ? yPos : Math.round(yPos),\n interpolate ? width : Math.round(xPos + width) - Math.round(xPos),\n interpolate ? height : Math.round(yPos + height) - Math.round(yPos),\n );\n stitchContext.clip();\n }\n\n const xPos = (src.extent[0] - sourceDataExtent[0]) * stitchScale;\n const yPos = -(src.extent[3] - sourceDataExtent[3]) * stitchScale;\n const srcWidth = getWidth(src.extent) * stitchScale;\n const srcHeight = getHeight(src.extent) * stitchScale;\n stitchContext.drawImage(\n src.image,\n gutter,\n gutter,\n src.image.width - 2 * gutter,\n src.image.height - 2 * gutter,\n interpolate ? xPos : Math.round(xPos),\n interpolate ? yPos : Math.round(yPos),\n interpolate\n ? srcWidth\n : Math.round(xPos + srcWidth) - Math.round(xPos),\n interpolate\n ? srcHeight\n : Math.round(yPos + srcHeight) - Math.round(yPos),\n );\n\n if (src.clipExtent) {\n stitchContext.restore();\n }\n }\n });\n }\n const targetTopLeft = getTopLeft(targetExtent);\n\n triangulation.getTriangles().forEach(function (triangle, i, arr) {\n /* Calculate affine transform (src -> dst)\n * Resulting matrix can be used to transform coordinate\n * from `sourceProjection` to destination pixels.\n *\n * To optimize number of context calls and increase numerical stability,\n * we also do the following operations:\n * trans(-topLeftExtentCorner), scale(1 / targetResolution), scale(1, -1)\n * here before solving the linear system so [ui, vi] are pixel coordinates.\n *\n * Src points: xi, yi\n * Dst points: ui, vi\n * Affine coefficients: aij\n *\n * | x0 y0 1 0 0 0 | |a00| |u0|\n * | x1 y1 1 0 0 0 | |a01| |u1|\n * | x2 y2 1 0 0 0 | x |a02| = |u2|\n * | 0 0 0 x0 y0 1 | |a10| |v0|\n * | 0 0 0 x1 y1 1 | |a11| |v1|\n * | 0 0 0 x2 y2 1 | |a12| |v2|\n */\n const source = triangle.source;\n const target = triangle.target;\n let x0 = source[0][0],\n y0 = source[0][1];\n let x1 = source[1][0],\n y1 = source[1][1];\n let x2 = source[2][0],\n y2 = source[2][1];\n // Make sure that everything is on pixel boundaries\n const u0 = pixelRound((target[0][0] - targetTopLeft[0]) / targetResolution);\n const v0 = pixelRound(\n -(target[0][1] - targetTopLeft[1]) / targetResolution,\n );\n const u1 = pixelRound((target[1][0] - targetTopLeft[0]) / targetResolution);\n const v1 = pixelRound(\n -(target[1][1] - targetTopLeft[1]) / targetResolution,\n );\n const u2 = pixelRound((target[2][0] - targetTopLeft[0]) / targetResolution);\n const v2 = pixelRound(\n -(target[2][1] - targetTopLeft[1]) / targetResolution,\n );\n\n // Shift all the source points to improve numerical stability\n // of all the subsequent calculations. The [x0, y0] is used here.\n // This is also used to simplify the linear system.\n const sourceNumericalShiftX = x0;\n const sourceNumericalShiftY = y0;\n x0 = 0;\n y0 = 0;\n x1 -= sourceNumericalShiftX;\n y1 -= sourceNumericalShiftY;\n x2 -= sourceNumericalShiftX;\n y2 -= sourceNumericalShiftY;\n\n const augmentedMatrix = [\n [x1, y1, 0, 0, u1 - u0],\n [x2, y2, 0, 0, u2 - u0],\n [0, 0, x1, y1, v1 - v0],\n [0, 0, x2, y2, v2 - v0],\n ];\n const affineCoefs = solveLinearSystem(augmentedMatrix);\n if (!affineCoefs) {\n return;\n }\n\n context.save();\n context.beginPath();\n\n if (isBrokenDiagonalRendering() || !interpolate) {\n // Make sure that all lines are horizontal or vertical\n context.moveTo(u1, v1);\n // This is the diagonal line. Do it in 4 steps\n const steps = 4;\n const ud = u0 - u1;\n const vd = v0 - v1;\n for (let step = 0; step < steps; step++) {\n // Go horizontally\n context.lineTo(\n u1 + pixelRound(((step + 1) * ud) / steps),\n v1 + pixelRound((step * vd) / (steps - 1)),\n );\n // Go vertically\n if (step != steps - 1) {\n context.lineTo(\n u1 + pixelRound(((step + 1) * ud) / steps),\n v1 + pixelRound(((step + 1) * vd) / (steps - 1)),\n );\n }\n }\n // We are almost at u0r, v0r\n context.lineTo(u2, v2);\n } else {\n context.moveTo(u1, v1);\n context.lineTo(u0, v0);\n context.lineTo(u2, v2);\n }\n\n context.clip();\n\n context.transform(\n affineCoefs[0],\n affineCoefs[2],\n affineCoefs[1],\n affineCoefs[3],\n u0,\n v0,\n );\n\n context.translate(\n sourceDataExtent[0] - sourceNumericalShiftX,\n sourceDataExtent[3] - sourceNumericalShiftY,\n );\n\n let image;\n if (stitchContext) {\n image = stitchContext.canvas;\n context.scale(inverseScale, -inverseScale);\n } else {\n const source = sources[0];\n const extent = source.extent;\n image = source.image;\n context.scale(\n getWidth(extent) / image.width,\n -getHeight(extent) / image.height,\n );\n }\n\n context.drawImage(image, 0, 0);\n context.restore();\n });\n\n if (stitchContext) {\n releaseCanvas(stitchContext);\n canvasPool.push(stitchContext.canvas);\n }\n\n if (renderEdges) {\n context.save();\n\n context.globalCompositeOperation = 'source-over';\n context.strokeStyle = 'black';\n context.lineWidth = 1;\n\n triangulation.getTriangles().forEach(function (triangle, i, arr) {\n const target = triangle.target;\n const u0 = (target[0][0] - targetTopLeft[0]) / targetResolution;\n const v0 = -(target[0][1] - targetTopLeft[1]) / targetResolution;\n const u1 = (target[1][0] - targetTopLeft[0]) / targetResolution;\n const v1 = -(target[1][1] - targetTopLeft[1]) / targetResolution;\n const u2 = (target[2][0] - targetTopLeft[0]) / targetResolution;\n const v2 = -(target[2][1] - targetTopLeft[1]) / targetResolution;\n\n context.beginPath();\n context.moveTo(u1, v1);\n context.lineTo(u0, v0);\n context.lineTo(u2, v2);\n context.closePath();\n context.stroke();\n });\n\n context.restore();\n }\n return context.canvas;\n}\n","/**\n * @module ol/resolution\n */\n\n/**\n * @typedef {number|Array<number>} ResolutionLike\n */\n\n/**\n * @param {ResolutionLike} resolution Resolution.\n * @return {number} Resolution.\n */\nexport function fromResolutionLike(resolution) {\n if (Array.isArray(resolution)) {\n return Math.min(...resolution);\n }\n return resolution;\n}\n","/**\n * @module ol/reproj/Triangulation\n */\nimport {\n boundingExtent,\n createEmpty,\n extendCoordinate,\n getArea,\n getBottomLeft,\n getBottomRight,\n getTopLeft,\n getTopRight,\n getWidth,\n intersects,\n} from '../extent.js';\nimport {modulo} from '../math.js';\nimport {\n createTransformFromCoordinateTransform,\n getTransform,\n transform,\n} from '../proj.js';\nimport {apply as applyMatrix} from '../transform.js';\n\n/**\n * Single triangle; consists of 3 source points and 3 target points.\n * @typedef {Object} Triangle\n * @property {Array<import(\"../coordinate.js\").Coordinate>} source Source.\n * @property {Array<import(\"../coordinate.js\").Coordinate>} target Target.\n */\n\n/**\n * Maximum number of subdivision steps during raster reprojection triangulation.\n * Prevents high memory usage and large number of proj4 calls (for certain\n * transformations and areas). At most `2*(2^this)` triangles are created for\n * each triangulated extent (tile/image).\n * @type {number}\n */\nconst MAX_SUBDIVISION = 10;\n\n/**\n * Maximum allowed size of triangle relative to world width. When transforming\n * corners of world extent between certain projections, the resulting\n * triangulation seems to have zero error and no subdivision is performed. If\n * the triangle width is more than this (relative to world width; 0-1),\n * subdivison is forced (up to `MAX_SUBDIVISION`). Default is `0.25`.\n * @type {number}\n */\nconst MAX_TRIANGLE_WIDTH = 0.25;\n\n/**\n * @classdesc\n * Class containing triangulation of the given target extent.\n * Used for determining source data and the reprojection itself.\n */\nclass Triangulation {\n /**\n * @param {import(\"../proj/Projection.js\").default} sourceProj Source projection.\n * @param {import(\"../proj/Projection.js\").default} targetProj Target projection.\n * @param {import(\"../extent.js\").Extent} targetExtent Target extent to triangulate.\n * @param {import(\"../extent.js\").Extent} maxSourceExtent Maximal source extent that can be used.\n * @param {number} errorThreshold Acceptable error (in source units).\n * @param {?number} destinationResolution The (optional) resolution of the destination.\n * @param {import(\"../transform.js\").Transform} [sourceMatrix] Source transform matrix.\n */\n constructor(\n sourceProj,\n targetProj,\n targetExtent,\n maxSourceExtent,\n errorThreshold,\n destinationResolution,\n sourceMatrix,\n ) {\n /**\n * @type {import(\"../proj/Projection.js\").default}\n * @private\n */\n this.sourceProj_ = sourceProj;\n\n /**\n * @type {import(\"../proj/Projection.js\").default}\n * @private\n */\n this.targetProj_ = targetProj;\n\n /** @type {!Object<string, import(\"../coordinate.js\").Coordinate>} */\n let transformInvCache = {};\n const transformInv = sourceMatrix\n ? createTransformFromCoordinateTransform((input) =>\n applyMatrix(\n sourceMatrix,\n transform(input, this.targetProj_, this.sourceProj_),\n ),\n )\n : getTransform(this.targetProj_, this.sourceProj_);\n\n /**\n * @param {import(\"../coordinate.js\").Coordinate} c A coordinate.\n * @return {import(\"../coordinate.js\").Coordinate} Transformed coordinate.\n * @private\n */\n this.transformInv_ = function (c) {\n const key = c[0] + '/' + c[1];\n if (!transformInvCache[key]) {\n transformInvCache[key] = transformInv(c);\n }\n return transformInvCache[key];\n };\n\n /**\n * @type {import(\"../extent.js\").Extent}\n * @private\n */\n this.maxSourceExtent_ = maxSourceExtent;\n\n /**\n * @type {number}\n * @private\n */\n this.errorThresholdSquared_ = errorThreshold * errorThreshold;\n\n /**\n * @type {Array<Triangle>}\n * @private\n */\n this.triangles_ = [];\n\n /**\n * Indicates that the triangulation crosses edge of the source projection.\n * @type {boolean}\n * @private\n */\n this.wrapsXInSource_ = false;\n\n /**\n * @type {boolean}\n * @private\n */\n this.canWrapXInSource_ =\n this.sourceProj_.canWrapX() &&\n !!maxSourceExtent &&\n !!this.sourceProj_.getExtent() &&\n getWidth(maxSourceExtent) >= getWidth(this.sourceProj_.getExtent());\n\n /**\n * @type {?number}\n * @private\n */\n this.sourceWorldWidth_ = this.sourceProj_.getExtent()\n ? getWidth(this.sourceProj_.getExtent())\n : null;\n\n /**\n * @type {?number}\n * @private\n */\n this.targetWorldWidth_ = this.targetProj_.getExtent()\n ? getWidth(this.targetProj_.getExtent())\n : null;\n\n const destinationTopLeft = getTopLeft(targetExtent);\n const destinationTopRight = getTopRight(targetExtent);\n const destinationBottomRight = getBottomRight(targetExtent);\n const destinationBottomLeft = getBottomLeft(targetExtent);\n const sourceTopLeft = this.transformInv_(destinationTopLeft);\n const sourceTopRight = this.transformInv_(destinationTopRight);\n const sourceBottomRight = this.transformInv_(destinationBottomRight);\n const sourceBottomLeft = this.transformInv_(destinationBottomLeft);\n\n /*\n * The maxSubdivision controls how many splittings of the target area can\n * be done. The idea here is to do a linear mapping of the target areas\n * but the actual overall reprojection (can be) extremely non-linear. The\n * default value of MAX_SUBDIVISION was chosen based on mapping a 256x256\n * tile size. However this function is also called to remap canvas rendered\n * layers which can be much larger. This calculation increases the maxSubdivision\n * value by the right factor so that each 256x256 pixel area has\n * MAX_SUBDIVISION divisions.\n */\n const maxSubdivision =\n MAX_SUBDIVISION +\n (destinationResolution\n ? Math.max(\n 0,\n Math.ceil(\n Math.log2(\n getArea(targetExtent) /\n (destinationResolution * destinationResolution * 256 * 256),\n ),\n ),\n )\n : 0);\n\n this.addQuad_(\n destinationTopLeft,\n destinationTopRight,\n destinationBottomRight,\n destinationBottomLeft,\n sourceTopLeft,\n sourceTopRight,\n sourceBottomRight,\n sourceBottomLeft,\n maxSubdivision,\n );\n\n if (this.wrapsXInSource_) {\n let leftBound = Infinity;\n this.triangles_.forEach(function (triangle, i, arr) {\n leftBound = Math.min(\n leftBound,\n triangle.source[0][0],\n triangle.source[1][0],\n triangle.source[2][0],\n );\n });\n\n // Shift triangles to be as close to `leftBound` as possible\n // (if the distance is more than `worldWidth / 2` it can be closer.\n this.triangles_.forEach((triangle) => {\n if (\n Math.max(\n triangle.source[0][0],\n triangle.source[1][0],\n triangle.source[2][0],\n ) -\n leftBound >\n this.sourceWorldWidth_ / 2\n ) {\n const newTriangle = [\n [triangle.source[0][0], triangle.source[0][1]],\n [triangle.source[1][0], triangle.source[1][1]],\n [triangle.source[2][0], triangle.source[2][1]],\n ];\n if (newTriangle[0][0] - leftBound > this.sourceWorldWidth_ / 2) {\n newTriangle[0][0] -= this.sourceWorldWidth_;\n }\n if (newTriangle[1][0] - leftBound > this.sourceWorldWidth_ / 2) {\n newTriangle[1][0] -= this.sourceWorldWidth_;\n }\n if (newTriangle[2][0] - leftBound > this.sourceWorldWidth_ / 2) {\n newTriangle[2][0] -= this.sourceWorldWidth_;\n }\n\n // Rarely (if the extent contains both the dateline and prime meridian)\n // the shift can in turn break some triangles.\n // Detect this here and don't shift in such cases.\n const minX = Math.min(\n newTriangle[0][0],\n newTriangle[1][0],\n newTriangle[2][0],\n );\n const maxX = Math.max(\n newTriangle[0][0],\n newTriangle[1][0],\n newTriangle[2][0],\n );\n if (maxX - minX < this.sourceWorldWidth_ / 2) {\n triangle.source = newTriangle;\n }\n }\n });\n }\n\n transformInvCache = {};\n }\n\n /**\n * Adds triangle to the triangulation.\n * @param {import(\"../coordinate.js\").Coordinate} a The target a coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} b The target b coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} c The target c coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} aSrc The source a coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} bSrc The source b coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} cSrc The source c coordinate.\n * @private\n */\n addTriangle_(a, b, c, aSrc, bSrc, cSrc) {\n this.triangles_.push({\n source: [aSrc, bSrc, cSrc],\n target: [a, b, c],\n });\n }\n\n /**\n * Adds quad (points in clock-wise order) to the triangulation\n * (and reprojects the vertices) if valid.\n * Performs quad subdivision if needed to increase precision.\n *\n * @param {import(\"../coordinate.js\").Coordinate} a The target a coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} b The target b coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} c The target c coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} d The target d coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} aSrc The source a coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} bSrc The source b coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} cSrc The source c coordinate.\n * @param {import(\"../coordinate.js\").Coordinate} dSrc The source d coordinate.\n * @param {number} maxSubdivision Maximal allowed subdivision of the quad.\n * @private\n */\n addQuad_(a, b, c, d, aSrc, bSrc, cSrc, dSrc, maxSubdivision) {\n const sourceQuadExtent = boundingExtent([aSrc, bSrc, cSrc, dSrc]);\n const sourceCoverageX = this.sourceWorldWidth_\n ? getWidth(sourceQuadExtent) / this.sourceWorldWidth_\n : null;\n const sourceWorldWidth = /** @type {number} */ (this.sourceWorldWidth_);\n\n // when the quad is wrapped in the source projection\n // it covers most of the projection extent, but not fully\n const wrapsX =\n this.sourceProj_.canWrapX() &&\n sourceCoverageX > 0.5 &&\n sourceCoverageX < 1;\n\n let needsSubdivision = false;\n\n if (maxSubdivision > 0) {\n if (this.targetProj_.isGlobal() && this.targetWorldWidth_) {\n const targetQuadExtent = boundingExtent([a, b, c, d]);\n const targetCoverageX =\n getWidth(targetQuadExtent) / this.targetWorldWidth_;\n needsSubdivision =\n targetCoverageX > MAX_TRIANGLE_WIDTH || needsSubdivision;\n }\n if (!wrapsX && this.sourceProj_.isGlobal() && sourceCoverageX) {\n needsSubdivision =\n sourceCoverageX > MAX_TRIANGLE_WIDTH || needsSubdivision;\n }\n }\n\n if (!needsSubdivision && this.maxSourceExtent_) {\n if (\n isFinite(sourceQuadExtent[0]) &&\n isFinite(sourceQuadExtent[1]) &&\n isFinite(sourceQuadExtent[2]) &&\n isFinite(sourceQuadExtent[3])\n ) {\n if (!intersects(sourceQuadExtent, this.maxSourceExtent_)) {\n // whole quad outside source projection extent -> ignore\n return;\n }\n }\n }\n\n let isNotFinite = 0;\n\n if (!needsSubdivision) {\n if (\n !isFinite(aSrc[0]) ||\n !isFinite(aSrc[1]) ||\n !isFinite(bSrc[0]) ||\n !isFinite(bSrc[1]) ||\n !isFinite(cSrc[0]) ||\n !isFinite(cSrc[1]) ||\n !isFinite(dSrc[0]) ||\n !isFinite(dSrc[1])\n ) {\n if (maxSubdivision > 0) {\n needsSubdivision = true;\n } else {\n // It might be the case that only 1 of the points is infinite. In this case\n // we can draw a single triangle with the other three points\n isNotFinite =\n (!isFinite(aSrc[0]) || !isFinite(aSrc[1]) ? 8 : 0) +\n (!isFinite(bSrc[0]) || !isFinite(bSrc[1]) ? 4 : 0) +\n (!isFinite(cSrc[0]) || !isFinite(cSrc[1]) ? 2 : 0) +\n (!isFinite(dSrc[0]) || !isFinite(dSrc[1]) ? 1 : 0);\n if (\n isNotFinite != 1 &&\n isNotFinite != 2 &&\n isNotFinite != 4 &&\n isNotFinite != 8\n ) {\n return;\n }\n }\n }\n }\n\n if (maxSubdivision > 0) {\n if (!needsSubdivision) {\n const center = [(a[0] + c[0]) / 2, (a[1] + c[1]) / 2];\n const centerSrc = this.transformInv_(center);\n\n let dx;\n if (wrapsX) {\n const centerSrcEstimX =\n (modulo(aSrc[0], sourceWorldWidth) +\n modulo(cSrc[0], sourceWorldWidth)) /\n 2;\n dx = centerSrcEstimX - modulo(centerSrc[0], sourceWorldWidth);\n } else {\n dx = (aSrc[0] + cSrc[0]) / 2 - centerSrc[0];\n }\n const dy = (aSrc[1] + cSrc[1]) / 2 - centerSrc[1];\n const centerSrcErrorSquared = dx * dx + dy * dy;\n needsSubdivision = centerSrcErrorSquared > this.errorThresholdSquared_;\n }\n if (needsSubdivision) {\n if (Math.abs(a[0] - c[0]) <= Math.abs(a[1] - c[1])) {\n // split horizontally (top & bottom)\n const bc = [(b[0] + c[0]) / 2, (b[1] + c[1]) / 2];\n const bcSrc = this.transformInv_(bc);\n const da = [(d[0] + a[0]) / 2, (d[1] + a[1]) / 2];\n const daSrc = this.transformInv_(da);\n\n this.addQuad_(\n a,\n b,\n bc,\n da,\n aSrc,\n bSrc,\n bcSrc,\n daSrc,\n maxSubdivision - 1,\n );\n this.addQuad_(\n da,\n bc,\n c,\n d,\n daSrc,\n bcSrc,\n cSrc,\n dSrc,\n maxSubdivision - 1,\n );\n } else {\n // split vertically (left & right)\n const ab = [(a[0] + b[0]) / 2, (a[1] + b[1]) / 2];\n const abSrc = this.transformInv_(ab);\n const cd = [(c[0] + d[0]) / 2, (c[1] + d[1]) / 2];\n const cdSrc = this.transformInv_(cd);\n\n this.addQuad_(\n a,\n ab,\n cd,\n d,\n aSrc,\n abSrc,\n cdSrc,\n dSrc,\n maxSubdivision - 1,\n );\n this.addQuad_(\n ab,\n b,\n c,\n cd,\n abSrc,\n bSrc,\n cSrc,\n cdSrc,\n maxSubdivision - 1,\n );\n }\n return;\n }\n }\n\n if (wrapsX) {\n if (!this.canWrapXInSource_) {\n return;\n }\n this.wrapsXInSource_ = true;\n }\n\n // Exactly zero or one of *Src is not finite\n // The triangles must have the diagonal line as the first side\n // This is to allow easy code in reproj.s to make it straight for broken\n // browsers that can't handle diagonal clipping\n if ((isNotFinite & 0xb) == 0) {\n this.addTriangle_(a, c, d, aSrc, cSrc, dSrc);\n }\n if ((isNotFinite & 0xe) == 0) {\n this.addTriangle_(a, c, b, aSrc, cSrc, bSrc);\n }\n if (isNotFinite) {\n // Try the other two triangles\n if ((isNotFinite & 0xd) == 0) {\n this.addTriangle_(b, d, a, bSrc, dSrc, aSrc);\n }\n if ((isNotFinite & 0x7) == 0) {\n this.addTriangle_(b, d, c, bSrc, dSrc, cSrc);\n }\n }\n }\n\n /**\n * Calculates extent of the `source` coordinates from all the triangles.\n *\n * @return {import(\"../extent.js\").Extent} Calculated extent.\n */\n calculateSourceExtent() {\n const extent = createEmpty();\n\n this.triangles_.forEach(function (triangle, i, arr) {\n const src = triangle.source;\n extendCoordinate(extent, src[0]);\n extendCoordinate(extent, src[1]);\n extendCoordinate(extent, src[2]);\n });\n\n return extent;\n }\n\n /**\n * @return {Array<Triangle>} Array of the calculated triangles.\n */\n getTriangles() {\n return this.triangles_;\n }\n}\n\nexport default Triangulation;\n","/**\n * @module ol/reproj/common\n */\n\n/**\n * Default maximum allowed threshold (in pixels) for reprojection\n * triangulation.\n * @type {number}\n */\nexport const ERROR_THRESHOLD = 0.5;\n","/**\n * @module ol/reproj/Image\n */\n\nimport ImageWrapper from '../Image.js';\nimport ImageState from '../ImageState.js';\nimport EventType from '../events/EventType.js';\nimport {listen, unlistenByKey} from '../events.js';\nimport {\n getCenter,\n getHeight,\n getIntersection,\n getWidth,\n isEmpty,\n} from '../extent.js';\nimport {\n calculateSourceResolution,\n render as renderReprojected,\n} from '../reproj.js';\nimport {fromResolutionLike} from '../resolution.js';\nimport Triangulation from './Triangulation.js';\nimport {ERROR_THRESHOLD} from './common.js';\n\n/**\n * @typedef {function(import(\"../extent.js\").Extent, number, number) : import(\"../Image.js\").default} FunctionType\n */\n\n/**\n * @classdesc\n * Class encapsulating single reprojected image.\n * See {@link module:ol/source/Image~ImageSource}.\n */\nclass ReprojImage extends ImageWrapper {\n /**\n * @param {import(\"../proj/Projection.js\").default} sourceProj Source projection (of the data).\n * @param {import(\"../proj/Projection.js\").default} targetProj Target projection.\n * @param {import(\"../extent.js\").Extent} targetExtent Target extent.\n * @param {number} targetResolution Target resolution.\n * @param {number} pixelRatio Pixel ratio.\n * @param {FunctionType} getImageFunction\n * Function returning source images (extent, resolution, pixelRatio).\n * @param {boolean} interpolate Use linear interpolation when resampling.\n */\n constructor(\n sourceProj,\n targetProj,\n targetExtent,\n targetResolution,\n pixelRatio,\n getImageFunction,\n interpolate,\n ) {\n let maxSourceExtent = sourceProj.getExtent();\n if (maxSourceExtent && sourceProj.canWrapX()) {\n maxSourceExtent = maxSourceExtent.slice();\n maxSourceExtent[0] = -Infinity;\n maxSourceExtent[2] = Infinity;\n }\n let maxTargetExtent = targetProj.getExtent();\n if (maxTargetExtent && targetProj.canWrapX()) {\n maxTargetExtent = maxTargetExtent.slice();\n maxTargetExtent[0] = -Infinity;\n maxTargetExtent[2] = Infinity;\n }\n\n const limitedTargetExtent = maxTargetExtent\n ? getIntersection(targetExtent, maxTargetExtent)\n : targetExtent;\n\n const targetCenter = getCenter(limitedTargetExtent);\n const sourceResolution = calculateSourceResolution(\n sourceProj,\n targetProj,\n targetCenter,\n targetResolution,\n );\n\n const errorThresholdInPixels = ERROR_THRESHOLD;\n\n const triangulation = new Triangulation(\n sourceProj,\n targetProj,\n limitedTargetExtent,\n maxSourceExtent,\n sourceResolution * errorThresholdInPixels,\n targetResolution,\n );\n\n const sourceExtent = triangulation.calculateSourceExtent();\n const sourceImage = isEmpty(sourceExtent)\n ? null\n : getImageFunction(sourceExtent, sourceResolution, pixelRatio);\n const state = sourceImage ? ImageState.IDLE : ImageState.EMPTY;\n const sourcePixelRatio = sourceImage ? sourceImage.getPixelRatio() : 1;\n\n super(targetExtent, targetResolution, sourcePixelRatio, state);\n\n /**\n * @private\n * @type {import(\"../proj/Projection.js\").default}\n */\n this.targetProj_ = targetProj;\n\n /**\n * @private\n * @type {import(\"../extent.js\").Extent}\n */\n this.maxSourceExtent_ = maxSourceExtent;\n\n /**\n * @private\n * @type {!import(\"./Triangulation.js\").default}\n */\n this.triangulation_ = triangulation;\n\n /**\n * @private\n * @type {number}\n */\n this.targetResolution_ = targetResolution;\n\n /**\n * @private\n * @type {import(\"../extent.js\").Extent}\n */\n this.targetExtent_ = targetExtent;\n\n /**\n * @private\n * @type {import(\"../Image.js\").default}\n */\n this.sourceImage_ = sourceImage;\n\n /**\n * @private\n * @type {number}\n */\n this.sourcePixelRatio_ = sourcePixelRatio;\n\n /**\n * @private\n * @type {boolean}\n */\n this.interpolate_ = interpolate;\n\n /**\n * @private\n * @type {HTMLCanvasElement|OffscreenCanvas}\n */\n this.canvas_ = null;\n\n /**\n * @private\n * @type {?import(\"../events.js\").EventsKey}\n */\n this.sourceListenerKey_ = null;\n }\n\n /**\n * Clean up.\n * @override\n */\n disposeInternal() {\n if (this.state == ImageState.LOADING) {\n this.unlistenSource_();\n }\n super.disposeInternal();\n }\n\n /**\n * @return {HTMLCanvasElement|OffscreenCanvas} Image.\n * @override\n */\n getImage() {\n return this.canvas_;\n }\n\n /**\n * @return {import(\"../proj/Projection.js\").default} Projection.\n */\n getProjection() {\n return this.targetProj_;\n }\n\n /**\n * @private\n */\n reproject_() {\n const sourceState = this.sourceImage_.getState();\n if (sourceState == ImageState.LOADED) {\n const width = getWidth(this.targetExtent_) / this.targetResolution_;\n const height = getHeight(this.targetExtent_) / this.targetResolution_;\n this.canvas_ = renderReprojected(\n width,\n height,\n this.sourcePixelRatio_,\n fromResolutionLike(this.sourceImage_.getResolution()),\n this.maxSourceExtent_,\n this.targetResolution_,\n this.targetExtent_,\n this.triangulation_,\n [\n {\n extent: this.sourceImage_.getExtent(),\n image: this.sourceImage_.getImage(),\n },\n ],\n 0,\n undefined,\n this.interpolate_,\n true,\n );\n }\n this.state = sourceState;\n this.changed();\n }\n\n /**\n * Load not yet loaded URI.\n * @override\n */\n load() {\n if (this.state == ImageState.IDLE) {\n this.state = ImageState.LOADING;\n this.changed();\n\n const sourceState = this.sourceImage_.getState();\n if (sourceState == ImageState.LOADED || sourceState == ImageState.ERROR) {\n this.reproject_();\n } else {\n this.sourceListenerKey_ = listen(\n this.sourceImage_,\n EventType.CHANGE,\n (e) => {\n const sourceState = this.sourceImage_.getState();\n if (\n sourceState == ImageState.LOADED ||\n sourceState == ImageState.ERROR\n ) {\n this.unlistenSource_();\n this.reproject_();\n }\n },\n );\n this.sourceImage_.load();\n }\n }\n }\n\n /**\n * @private\n */\n unlistenSource_() {\n unlistenByKey(\n /** @type {!import(\"../events.js\").EventsKey} */ (\n this.sourceListenerKey_\n ),\n );\n this.sourceListenerKey_ = null;\n }\n}\n\nexport default ReprojImage;\n","/**\n * @module ol/source/Source\n */\nimport BaseObject from '../Object.js';\nimport {get as getProjection} from '../proj.js';\n\n/**\n * @typedef {'undefined' | 'loading' | 'ready' | 'error'} State\n * State of the source, one of 'undefined', 'loading', 'ready' or 'error'.\n */\n\n/**\n * A function that takes a {@link import(\"../View.js\").ViewStateLayerStateExtent} and returns a string or\n * an array of strings representing source attributions.\n *\n * @typedef {function(import(\"../View.js\").ViewStateLayerStateExtent): (string|Array<string>)} Attribution\n */\n\n/**\n * A type that can be used to provide attribution information for data sources.\n *\n * It represents either\n * a simple string (e.g. `'© Acme Inc.'`)\n * an array of simple strings (e.g. `['© Acme Inc.', '© Bacme Inc.']`)\n * a function that returns a string or array of strings ({@link module:ol/source/Source~Attribution})\n *\n * @typedef {string|Array<string>|Attribution} AttributionLike\n */\n\n/**\n * @typedef {Object} Options\n * @property {AttributionLike} [attributions] Attributions.\n * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.\n * @property {import(\"../proj.js\").ProjectionLike} [projection] Projection. Default is the view projection.\n * @property {import(\"./Source.js\").State} [state='ready'] State.\n * @property {boolean} [wrapX=false] WrapX.\n * @property {boolean} [interpolate=false] Use interpolated values when resampling. By default,\n * the nearest neighbor is used when resampling.\n */\n\n/**\n * @classdesc\n * Abstract base class; normally only used for creating subclasses and not\n * instantiated in apps.\n * Base class for {@link module:ol/layer/Layer~Layer} sources.\n *\n * A generic `change` event is triggered when the state of the source changes.\n * @abstract\n * @api\n */\nclass Source extends BaseObject {\n /**\n * @param {Options} options Source options.\n */\n constructor(options) {\n super();\n\n /**\n * @protected\n * @type {import(\"../proj/Projection.js\").default|null}\n */\n this.projection = getProjection(options.projection);\n\n /**\n * @private\n * @type {?Attribution}\n */\n this.attributions_ = adaptAttributions(options.attributions);\n\n /**\n * @private\n * @type {boolean}\n */\n this.attributionsCollapsible_ = options.attributionsCollapsible ?? true;\n\n /**\n * This source is currently loading data. Sources that defer loading to the\n * map's tile queue never set this to `true`.\n * @type {boolean}\n */\n this.loading = false;\n\n /**\n * @private\n * @type {import(\"./Source.js\").State}\n */\n this.state_ = options.state !== undefined ? options.state : 'ready';\n\n /**\n * @private\n * @type {boolean}\n */\n this.wrapX_ = options.wrapX !== undefined ? options.wrapX : false;\n\n /**\n * @private\n * @type {boolean}\n */\n this.interpolate_ = !!options.interpolate;\n\n /**\n * @protected\n * @type {function(import(\"../View.js\").ViewOptions):void}\n */\n this.viewResolver = null;\n\n /**\n * @protected\n * @type {function(Error):void}\n */\n this.viewRejector = null;\n\n const self = this;\n /**\n * @private\n * @type {Promise<import(\"../View.js\").ViewOptions>}\n */\n this.viewPromise_ = new Promise(function (resolve, reject) {\n self.viewResolver = resolve;\n self.viewRejector = reject;\n });\n }\n\n /**\n * Get the attribution function for the source.\n * @return {?Attribution} Attribution function.\n * @api\n */\n getAttributions() {\n return this.attributions_;\n }\n\n /**\n * @return {boolean} Attributions are collapsible.\n * @api\n */\n getAttributionsCollapsible() {\n return this.attributionsCollapsible_;\n }\n\n /**\n * Get the projection of the source.\n * @return {import(\"../proj/Projection.js\").default|null} Projection.\n * @api\n */\n getProjection() {\n return this.projection;\n }\n\n /**\n * @param {import(\"../proj/Projection\").default} [projection] Projection.\n * @return {Array<number>|null} Resolutions.\n */\n getResolutions(projection) {\n return null;\n }\n\n /**\n * @return {Promise<import(\"../View.js\").ViewOptions>} A promise for view-related properties.\n */\n getView() {\n return this.viewPromise_;\n }\n\n /**\n * Get the state of the source, see {@link import(\"./Source.js\").State} for possible states.\n * @return {import(\"./Source.js\").State} State.\n * @api\n */\n getState() {\n return this.state_;\n }\n\n /**\n * @return {boolean|undefined} Wrap X.\n */\n getWrapX() {\n return this.wrapX_;\n }\n\n /**\n * @return {boolean} Use linear interpolation when resampling.\n */\n getInterpolate() {\n return this.interpolate_;\n }\n\n /**\n * Refreshes the source. The source will be cleared, and data from the server will be reloaded.\n * @api\n */\n refresh() {\n this.changed();\n }\n\n /**\n * Set the attributions of the source.\n * @param {AttributionLike|undefined} attributions Attributions.\n * Can be passed as `string`, `Array<string>`, {@link module:ol/source/Source~Attribution},\n * or `undefined`.\n * @api\n */\n setAttributions(attributions) {\n this.attributions_ = adaptAttributions(attributions);\n this.changed();\n }\n\n /**\n * Set the state of the source.\n * @param {import(\"./Source.js\").State} state State.\n */\n setState(state) {\n this.state_ = state;\n this.changed();\n }\n}\n\n/**\n * Turns the attributions option into an attributions function.\n * @param {AttributionLike|undefined} attributionLike The attribution option.\n * @return {Attribution|null} An attribution function (or null).\n */\nfunction adaptAttributions(attributionLike) {\n if (!attributionLike) {\n return null;\n }\n if (typeof attributionLike === 'function') {\n return attributionLike;\n }\n if (!Array.isArray(attributionLike)) {\n attributionLike = [attributionLike];\n }\n return (frameState) => attributionLike;\n}\n\nexport default Source;\n","/**\n * @module ol/source/common\n */\n\n/**\n * Default WMS version.\n * @type {string}\n */\nexport const DEFAULT_WMS_VERSION = '1.3.0';\n\n/**\n * Number of decimal digits to consider in integer values when rounding.\n * @type {number}\n */\nexport const DECIMALS = 4;\n","/**\n * @module ol/source/Image\n */\nimport ImageWrapper from '../Image.js';\nimport ImageState from '../ImageState.js';\nimport {linearFindNearest} from '../array.js';\nimport Event from '../events/Event.js';\nimport EventType from '../events/EventType.js';\nimport {\n containsExtent,\n equals,\n getCenter,\n getForViewAndSize,\n getHeight,\n getWidth,\n} from '../extent.js';\nimport {ceil} from '../math.js';\nimport {equivalent} from '../proj.js';\nimport ReprojImage from '../reproj/Image.js';\nimport {fromResolutionLike} from '../resolution.js';\nimport Source from './Source.js';\nimport {DECIMALS} from './common.js';\n\n/**\n * @enum {string}\n */\nexport const ImageSourceEventType = {\n /**\n * Triggered when an image starts loading.\n * @event module:ol/source/Image.ImageSourceEvent#imageloadstart\n * @api\n */\n IMAGELOADSTART: 'imageloadstart',\n\n /**\n * Triggered when an image finishes loading.\n * @event module:ol/source/Image.ImageSourceEvent#imageloadend\n * @api\n */\n IMAGELOADEND: 'imageloadend',\n\n /**\n * Triggered if image loading results in an error.\n * @event module:ol/source/Image.ImageSourceEvent#imageloaderror\n * @api\n */\n IMAGELOADERROR: 'imageloaderror',\n};\n\n/**\n * @typedef {'imageloadend'|'imageloaderror'|'imageloadstart'} ImageSourceEventTypes\n */\n\n/**\n * @classdesc\n * Events emitted by {@link module:ol/source/Image~ImageSource} instances are instances of this\n * type.\n */\nexport class ImageSourceEvent extends Event {\n /**\n * @param {string} type Type.\n * @param {import(\"../Image.js\").default} image The image.\n */\n constructor(type, image) {\n super(type);\n\n /**\n * The image related to the event.\n * @type {import(\"../Image.js\").default}\n * @api\n */\n this.image = image;\n }\n}\n\n/***\n * @template Return\n * @typedef {import(\"../Observable\").OnSignature<import(\"../Observable\").EventTypes, import(\"../events/Event.js\").default, Return> &\n * import(\"../Observable\").OnSignature<import(\"../ObjectEventType\").Types, import(\"../Object\").ObjectEvent, Return> &\n * import(\"../Observable\").OnSignature<ImageSourceEventTypes, ImageSourceEvent, Return> &\n * import(\"../Observable\").CombinedOnSignature<import(\"../Observable\").EventTypes|import(\"../ObjectEventType\").Types\n * |ImageSourceEventTypes, Return>} ImageSourceOnSignature\n */\n\n/**\n * @typedef {Object} Options\n * @property {import(\"./Source.js\").AttributionLike} [attributions] Attributions.\n * @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,\n * linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.\n * @property {import(\"../Image.js\").Loader} [loader] Loader. Can either be a custom loader, or one of the\n * loaders created with a `createLoader()` function ({@link module:ol/source/wms.createLoader wms},\n * {@link module:ol/source/arcgisRest.createLoader arcgisRest}, {@link module:ol/source/mapguide.createLoader mapguide},\n * {@link module:ol/source/static.createLoader static}).\n * @property {import(\"../proj.js\").ProjectionLike} [projection] Projection.\n * @property {Array<number>} [resolutions] Resolutions.\n * @property {import(\"./Source.js\").State} [state] State.\n */\n\n/**\n * @classdesc\n * Base class for sources providing a single image.\n * @fires module:ol/source/Image.ImageSourceEvent\n * @api\n */\nclass ImageSource extends Source {\n /**\n * @param {Options} options Single image source options.\n */\n constructor(options) {\n super({\n attributions: options.attributions,\n projection: options.projection,\n state: options.state,\n interpolate:\n options.interpolate !== undefined ? options.interpolate : true,\n });\n\n /***\n * @type {ImageSourceOnSignature<import(\"../events\").EventsKey>}\n */\n this.on;\n\n /***\n * @type {ImageSourceOnSignature<import(\"../events\").EventsKey>}\n */\n this.once;\n\n /***\n * @type {ImageSourceOnSignature<void>}\n */\n this.un;\n\n /**\n * @protected\n * @type {import(\"../Image.js\").Loader}\n */\n this.loader = options.loader || null;\n\n /**\n * @private\n * @type {Array<number>|null}\n */\n this.resolutions_ =\n options.resolutions !== undefined ? options.resolutions : null;\n\n /**\n * @private\n * @type {import(\"../reproj/Image.js\").default}\n */\n this.reprojectedImage_ = null;\n\n /**\n * @private\n * @type {number}\n */\n this.reprojectedRevision_ = 0;\n\n /**\n * @protected\n * @type {import(\"../Image.js\").default}\n */\n this.image = null;\n\n /**\n * @private\n * @type {import(\"../extent.js\").Extent}\n */\n this.wantedExtent_;\n\n /**\n * @private\n * @type {number}\n */\n this.wantedResolution_;\n\n /**\n * @private\n * @type {boolean}\n */\n this.static_ = options.loader ? options.loader.length === 0 : false;\n\n /**\n * @private\n * @type {import(\"../proj/Projection.js\").default}\n */\n this.wantedProjection_ = null;\n }\n\n /**\n * @return {Array<number>|null} Resolutions.\n * @override\n */\n getResolutions() {\n return this.resolutions_;\n }\n\n /**\n * @param {Array<number>|null} resolutions Resolutions.\n */\n setResolutions(resolutions) {\n this.resolutions_ = resolutions;\n }\n\n /**\n * @protected\n * @param {number} resolution Resolution.\n * @return {number} Resolution.\n */\n findNearestResolution(resolution) {\n const resolutions = this.getResolutions();\n if (resolutions) {\n const idx = linearFindNearest(resolutions, resolution, 0);\n resolution = resolutions[idx];\n }\n return resolution;\n }\n\n /**\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @param {number} resolution Resolution.\n * @param {number} pixelRatio Pixel ratio.\n * @param {import(\"../proj/Projection.js\").default} projection Projection.\n * @return {import(\"../Image.js\").default} Single image.\n */\n getImage(extent, resolution, pixelRatio, projection) {\n const sourceProjection = this.getProjection();\n if (\n !sourceProjection ||\n !projection ||\n equivalent(sourceProjection, projection)\n ) {\n if (sourceProjection) {\n projection = sourceProjection;\n }\n\n return this.getImageInternal(extent, resolution, pixelRatio, projection);\n }\n if (this.reprojectedImage_) {\n if (\n this.reprojectedRevision_ == this.getRevision() &&\n equivalent(this.reprojectedImage_.getProjection(), projection) &&\n this.reprojectedImage_.getResolution() == resolution &&\n equals(this.reprojectedImage_.getExtent(), extent)\n ) {\n return this.reprojectedImage_;\n }\n this.reprojectedImage_.dispose();\n this.reprojectedImage_ = null;\n }\n\n this.reprojectedImage_ = new ReprojImage(\n sourceProjection,\n projection,\n extent,\n resolution,\n pixelRatio,\n (extent, resolution, pixelRatio) =>\n this.getImageInternal(extent, resolution, pixelRatio, sourceProjection),\n this.getInterpolate(),\n );\n this.reprojectedRevision_ = this.getRevision();\n\n return this.reprojectedImage_;\n }\n\n /**\n * @abstract\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @param {number} resolution Resolution.\n * @param {number} pixelRatio Pixel ratio.\n * @param {import(\"../proj/Projection.js\").default} projection Projection.\n * @return {import(\"../Image.js\").default} Single image.\n * @protected\n */\n getImageInternal(extent, resolution, pixelRatio, projection) {\n if (this.loader) {\n const requestExtent = getRequestExtent(extent, resolution, pixelRatio, 1);\n const requestResolution = this.findNearestResolution(resolution);\n if (\n this.image &&\n (this.static_ ||\n (this.wantedProjection_ === projection &&\n ((this.wantedExtent_ &&\n containsExtent(this.wantedExtent_, requestExtent)) ||\n containsExtent(this.image.getExtent(), requestExtent)) &&\n ((this.wantedResolution_ &&\n fromResolutionLike(this.wantedResolution_) ===\n requestResolution) ||\n fromResolutionLike(this.image.getResolution()) ===\n requestResolution)))\n ) {\n return this.image;\n }\n this.wantedProjection_ = projection;\n this.wantedExtent_ = requestExtent;\n this.wantedResolution_ = requestResolution;\n this.image = new ImageWrapper(\n requestExtent,\n requestResolution,\n pixelRatio,\n this.loader,\n );\n this.image.addEventListener(\n EventType.CHANGE,\n this.handleImageChange.bind(this),\n );\n }\n return this.image;\n }\n\n /**\n * Handle image change events.\n * @param {import(\"../events/Event.js\").default} event Event.\n * @protected\n */\n handleImageChange(event) {\n const image = /** @type {import(\"../Image.js\").default} */ (event.target);\n let type;\n switch (image.getState()) {\n case ImageState.LOADING:\n this.loading = true;\n type = ImageSourceEventType.IMAGELOADSTART;\n break;\n case ImageState.LOADED:\n this.loading = false;\n type = ImageSourceEventType.IMAGELOADEND;\n break;\n case ImageState.ERROR:\n this.loading = false;\n type = ImageSourceEventType.IMAGELOADERROR;\n break;\n default:\n return;\n }\n if (this.hasListener(type)) {\n this.dispatchEvent(new ImageSourceEvent(type, image));\n }\n }\n}\n\n/**\n * Default image load function for image sources that use import(\"../Image.js\").Image image\n * instances.\n * @param {import(\"../Image.js\").default} image Image.\n * @param {string} src Source.\n */\nexport function defaultImageLoadFunction(image, src) {\n /** @type {HTMLImageElement|HTMLVideoElement} */ (image.getImage()).src = src;\n}\n\n/**\n * Adjusts the extent so it aligns with pixel boundaries.\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @param {number} resolution Reolution.\n * @param {number} pixelRatio Pixel ratio.\n * @param {number} ratio Ratio between request size and view size.\n * @return {import(\"../extent.js\").Extent} Request extent.\n */\nexport function getRequestExtent(extent, resolution, pixelRatio, ratio) {\n const imageResolution = resolution / pixelRatio;\n const center = getCenter(extent);\n const viewWidth = ceil(getWidth(extent) / imageResolution, DECIMALS);\n const viewHeight = ceil(getHeight(extent) / imageResolution, DECIMALS);\n const marginWidth = ceil(((ratio - 1) * viewWidth) / 2, DECIMALS);\n const requestWidth = viewWidth + 2 * marginWidth;\n const marginHeight = ceil(((ratio - 1) * viewHeight) / 2, DECIMALS);\n const requestHeight = viewHeight + 2 * marginHeight;\n return getForViewAndSize(center, imageResolution, 0, [\n requestWidth,\n requestHeight,\n ]);\n}\n\nexport default ImageSource;\n","/**\n * @module ol/source/static\n */\n\nimport {decode} from '../Image.js';\nimport {getHeight, getWidth} from '../extent.js';\n\n/**\n * @typedef {Object} LoaderOptions\n * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that\n * you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.\n * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.\n * @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.\n * @property {import(\"../extent.js\").Extent} imageExtent Extent of the image in map coordinates.\n * This is the [left, bottom, right, top] map coordinates of your image. When using this loader with an\n * `ol/source/Image`, the same extent must be set as `extent` of the `ol/layer/Image`.\n * @property {string} url Image URL.\n * @property {function(HTMLImageElement, string): Promise<import('../DataTile.js').ImageLike>} [load] Function\n * to perform loading of the image. Receives the created `HTMLImageElement` and the desired `src` as argument and\n * returns a promise resolving to the loaded or decoded image. Default is {@link module:ol/Image.decode}.\n */\n\n/**\n * Creates a loader for static images.\n * @param {LoaderOptions} options Loader options.\n * @return {import(\"../Image.js\").ImageObjectPromiseLoader} Loader.\n * @api\n */\nexport function createLoader(options) {\n const load = options.load || decode;\n const extent = options.imageExtent;\n const crossOrigin = options.crossOrigin ?? null;\n\n return () => {\n const image = new Image();\n image.crossOrigin = crossOrigin;\n if (options.referrerPolicy !== undefined) {\n image.referrerPolicy = options.referrerPolicy;\n }\n return load(image, options.url).then((image) => {\n const resolutionX = getWidth(extent) / image.width;\n const resolutionY = getHeight(extent) / image.height;\n const resolution =\n resolutionX !== resolutionY ? [resolutionX, resolutionY] : resolutionY;\n return {image, extent, resolution, pixelRatio: 1};\n });\n };\n}\n","/**\n * @module ol/source/ImageStatic\n */\n\nimport ImageWrapper, {decode} from '../Image.js';\nimport EventType from '../events/EventType.js';\nimport {intersects} from '../extent.js';\nimport {get as getProjection} from '../proj.js';\nimport ImageSource, {defaultImageLoadFunction} from './Image.js';\nimport {createLoader} from './static.js';\n\n/**\n * @typedef {Object} Options\n * @property {import(\"./Source.js\").AttributionLike} [attributions] Attributions.\n * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that\n * you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.\n * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.\n * @property {ReferrerPolicy} [referrerPolicy] The `referrerPolicy` property for loaded images.\n * @property {import(\"../extent.js\").Extent} imageExtent Extent of the image in map coordinates.\n * This is the [left, bottom, right, top] map coordinates of your image.\n * @property {import(\"../Image.js\").LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.\n * @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,\n * linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.\n * @property {import(\"../proj.js\").ProjectionLike} [projection] Projection. Default is the view projection.\n * @property {string} url Image URL.\n */\n\n/**\n * @classdesc\n * A layer source for displaying a single, static image.\n * @api\n */\nclass Static extends ImageSource {\n /**\n * @param {Options} options ImageStatic options.\n */\n constructor(options) {\n const crossOrigin =\n options.crossOrigin !== undefined ? options.crossOrigin : null;\n\n const /** @type {import(\"../Image.js\").LoadFunction} */ imageLoadFunction =\n options.imageLoadFunction !== undefined\n ? options.imageLoadFunction\n : defaultImageLoadFunction;\n\n super({\n attributions: options.attributions,\n interpolate: options.interpolate,\n projection: getProjection(options.projection),\n });\n\n /**\n * @private\n * @type {string}\n */\n this.url_ = options.url;\n\n /**\n * @private\n * @type {import(\"../extent.js\").Extent}\n */\n this.imageExtent_ = options.imageExtent;\n\n /**\n * @private\n * @type {import(\"../Image.js\").default}\n */\n this.image = null;\n\n this.image = new ImageWrapper(\n this.imageExtent_,\n undefined,\n 1,\n createLoader({\n url: options.url,\n imageExtent: options.imageExtent,\n crossOrigin,\n referrerPolicy: options.referrerPolicy,\n load: (image, src) => {\n this.image.setImage(image);\n imageLoadFunction(this.image, src);\n return decode(image);\n },\n }),\n );\n\n this.image.addEventListener(\n EventType.CHANGE,\n this.handleImageChange.bind(this),\n );\n }\n\n /**\n * Returns the image extent\n * @return {import(\"../extent.js\").Extent} image extent.\n * @api\n */\n getImageExtent() {\n return this.imageExtent_;\n }\n\n /**\n * @param {import(\"../extent.js\").Extent} extent Extent.\n * @param {number} resolution Resolution.\n * @param {number} pixelRatio Pixel ratio.\n * @param {import(\"../proj/Projection.js\").default} projection Projection.\n * @return {import(\"../Image.js\").default} Single image.\n * @override\n */\n getImageInternal(extent, resolution, pixelRatio, projection) {\n if (intersects(extent, this.image.getExtent())) {\n return this.image;\n }\n return null;\n }\n\n /**\n * Return the URL used for this image source.\n * @return {string} URL.\n * @api\n */\n getUrl() {\n return this.url_;\n }\n}\n\nexport default Static;\n","import { ref, reactive } from 'vue'\r\nimport type { Ref } from 'vue'\r\nimport Map from 'ol/Map'\r\nimport ImageLayer from 'ol/layer/Image'\r\nimport ImageStatic from 'ol/source/ImageStatic'\r\nimport View from 'ol/View'\r\nimport { get as getProjection, fromLonLat, toLonLat } from 'ol/proj'\r\nimport { normalizeData, applyColormap, applyColormapDirect, createImageData, resampleData } from '../utils/dataProcessing'\r\nimport { getColormap } from '../utils/colorScales'\r\nimport { getJsonItemForVariable, buildColormapFn } from '../utils/colorsJsonService'\r\nimport { createCanvas, drawToCanvas } from '../utils/imageUtils'\r\nimport type { VariableDataEntry } from '../types/netcdf'\r\nimport type { NetCdfMetadata } from '../types/netcdf'\r\n\r\nexport interface DataOverlayOptions {\r\n colormap: string\r\n opacity: number\r\n showBounds: boolean\r\n autoFit: boolean\r\n resampleTo: [number, number] | null\r\n minValue: number | null\r\n maxValue: number | null\r\n}\r\n\r\ninterface ProcessedImage {\r\n canvas: HTMLCanvasElement\r\n pixelData: Uint8ClampedArray\r\n normalizedData: Float32Array | null\r\n width: number\r\n height: number\r\n}\r\n\r\nexport function useMapRendering() {\r\n console.log('useMapRendering')\r\n const isLoading = ref(false)\r\n const error = ref<string | null>(null)\r\n const overlay = ref<ImageLayer<ImageStatic> | null>(null)\r\n const bounds = ref<[number, number, number, number] | null>(null)\r\n\r\n const options = reactive<DataOverlayOptions>({\r\n colormap: 'viridis',\r\n opacity: 0.8,\r\n showBounds: true,\r\n autoFit: true,\r\n resampleTo: null,\r\n minValue: null,\r\n maxValue: null\r\n })\r\n\r\n async function createDataOverlay(\r\n variableData: VariableDataEntry,\r\n metadata: NetCdfMetadata,\r\n map: Map,\r\n overrideBounds?: [number, number, number, number],\r\n variableName?: string\r\n ): Promise<ImageLayer<ImageStatic>> {\r\n isLoading.value = true\r\n error.value = null\r\n\r\n try {\r\n const data = variableData.data\r\n if (!data || data.length === 0) throw new Error('No data available')\r\n\r\n const lonSize = metadata.dimensions?.['lon']?.size ?? 0\r\n const latSize = metadata.dimensions?.['lat']?.size ?? 0\r\n if (lonSize === 0 || latSize === 0) throw new Error('Invalid dimension sizes')\r\n\r\n let overlayBounds: [number, number, number, number]\r\n if (overrideBounds) {\r\n overlayBounds = overrideBounds\r\n } else {\r\n overlayBounds = estimateBounds(lonSize, latSize)\r\n }\r\n\r\n \r\n\r\n const processed = await processDataForRendering(data, lonSize, latSize, variableName)\r\n\r\n const imageUrl = processed.canvas.toDataURL('image/png')\r\n console.log('Image URL:', imageUrl)\r\n const imageLayer = new ImageLayer({\r\n source: new ImageStatic({\r\n url: imageUrl,\r\n imageExtent: overlayBounds,\r\n projection: 'EPSG:4326', \r\n }),\r\n opacity: options.opacity\r\n })\r\n\r\n map.addLayer(imageLayer)\r\n\r\n if (options.autoFit) {\r\n map.getView().fit(overlayBounds, { size: map.getSize(), padding: [20, 20, 20, 20] })\r\n }\r\n\r\n overlay.value = imageLayer\r\n bounds.value = overlayBounds\r\n\r\n return imageLayer\r\n\r\n } catch (err) {\r\n const msg = err instanceof Error ? err.message : String(err)\r\n error.value = msg\r\n throw err\r\n } finally {\r\n isLoading.value = false\r\n }\r\n }\r\n\r\n async function processDataForRendering(\r\n data: Float32Array,\r\n width: number,\r\n height: number,\r\n variableName?: string\r\n ): Promise<ProcessedImage> {\r\n let renderData: Float32Array = data\r\n let renderWidth = width\r\n let renderHeight = height\r\n\r\n if (options.resampleTo) {\r\n const [targetWidth, targetHeight] = options.resampleTo\r\n if (targetWidth > 0 && targetHeight > 0) {\r\n renderData = resampleData(data, [height, width], [targetHeight, targetWidth])\r\n renderWidth = targetWidth\r\n renderHeight = targetHeight\r\n }\r\n }\r\n\r\n if (variableName) {\r\n const jsonItem = await getJsonItemForVariable(variableName)\r\n if (jsonItem) {\r\n const fn = buildColormapFn(jsonItem)\r\n const pixelData = applyColormapDirect(renderData, fn)\r\n const canvas = createCanvas(renderWidth, renderHeight)\r\n drawToCanvas(canvas, pixelData, renderWidth, renderHeight)\r\n return { canvas, pixelData, normalizedData: null, width: renderWidth, height: renderHeight }\r\n }\r\n }\r\n\r\n const normalized = normalizeData(renderData, options.minValue ?? undefined, options.maxValue ?? undefined)\r\n const colormapFunc = getColormap(options.colormap)\r\n const pixelData = applyColormap(normalized, colormapFunc)\r\n const canvas = createCanvas(renderWidth, renderHeight)\r\n drawToCanvas(canvas, pixelData, renderWidth, renderHeight)\r\n\r\n return { canvas, pixelData, normalizedData: normalized, width: renderWidth, height: renderHeight }\r\n }\r\n\r\n function estimateBounds(lonSize: number, latSize: number): [number, number, number, number] {\r\n // EPSG:4326 范围 [-180,-90,180,90],可缩放\r\n const west = -180\r\n const south = -60\r\n const east = 180\r\n const north = 85\r\n return [west, south, east, north]\r\n }\r\n\r\n function updateOpacity(opacity: number): void {\r\n options.opacity = Math.max(0, Math.min(1, opacity))\r\n if (overlay.value) overlay.value.setOpacity(options.opacity)\r\n }\r\n\r\n async function updateColormap(\r\n colormapName: string,\r\n variableData?: VariableDataEntry,\r\n metadata?: NetCdfMetadata,\r\n variableName?: string\r\n ): Promise<void> {\r\n options.colormap = colormapName\r\n if (overlay.value && variableData && metadata) {\r\n try {\r\n // @ts-ignore\r\n const map: Map = overlay.value.getMap?.() ?? overlay.value.get('map') // 获取 map 实例\r\n removeOverlay()\r\n if (map) await createDataOverlay(variableData, metadata, map, undefined, variableName)\r\n } catch (err) {\r\n console.error('更新色彩方案时出错:', err)\r\n }\r\n }\r\n }\r\n\r\n function removeOverlay(): void {\r\n if (overlay.value) {\r\n const map = overlay.value.getMap?.() ?? overlay.value.get('map')\r\n if (map) map.removeLayer(overlay.value)\r\n overlay.value = null\r\n bounds.value = null\r\n }\r\n }\r\n\r\n function getValueAtCoordinate(\r\n latlng: { lat: number; lng: number },\r\n variableData: VariableDataEntry,\r\n metadata: NetCdfMetadata\r\n ): number | null {\r\n if (!bounds.value || !variableData?.data) return null\r\n const data = variableData.data\r\n const shape = variableData.shape ?? []\r\n const dimensions = variableData.dimensions ?? []\r\n\r\n const lonIndex = dimensions.indexOf('lon')\r\n const latIndex = dimensions.indexOf('lat')\r\n if (lonIndex === -1 || latIndex === -1) return null\r\n\r\n const lonSize = shape[lonIndex] ?? 0\r\n const latSize = shape[latIndex] ?? 0\r\n if (lonSize === 0 || latSize === 0) return null\r\n\r\n const [west, south, east, north] = bounds.value\r\n\r\n const x = Math.floor((latlng.lng - west) / (east - west) * (lonSize - 1))\r\n const yFromSouth = Math.floor((latlng.lat - south) / (north - south) * (latSize - 1))\r\n const y = (latSize - 1) - yFromSouth\r\n\r\n const clampedX = Math.max(0, Math.min(lonSize - 1, x))\r\n const clampedY = Math.max(0, Math.min(latSize - 1, y))\r\n\r\n const index = clampedY * lonSize + clampedX\r\n return (index >= 0 && index < data.length) ? data[index] : null\r\n }\r\n\r\n function reset(): void {\r\n removeOverlay()\r\n isLoading.value = false\r\n error.value = null\r\n options.colormap = 'viridis'\r\n options.opacity = 0.8\r\n options.showBounds = true\r\n options.autoFit = true\r\n options.resampleTo = null\r\n options.minValue = null\r\n options.maxValue = null\r\n }\r\n\r\n return {\r\n isLoading: isLoading as Ref<boolean>,\r\n error: error as Ref<string | null>,\r\n overlay: overlay as Ref<ImageLayer<ImageStatic> | null>,\r\n bounds: bounds as Ref<[number, number, number, number] | null>,\r\n options,\r\n createDataOverlay,\r\n updateOpacity,\r\n updateColormap,\r\n removeOverlay,\r\n getValueAtCoordinate,\r\n reset\r\n }\r\n}","import { watch, ref,onUnmounted } from 'vue'\r\nimport type { Ref } from 'vue'\r\nimport type { VariableDataEntry, NetCdfMetadata } from '../types/netcdf'\r\nimport Map from 'ol/Map'\r\nimport { MapBrowserEvent } from 'ol'\r\n\r\ntype ValueAtCoordinateFn = (\r\n latlng: { lat: number; lng: number },\r\n variableData: VariableDataEntry,\r\n metadata: NetCdfMetadata\r\n) => number | null\r\n\r\n/**\r\n * 在 OpenLayers 地图上方的画布叠加层上绘制格点数据值标签的组合式函数。\r\n * 地图平移或缩放时标签将重绘。\r\n */\r\nexport function useGridLabels(\r\n map: Ref<Map | null>,\r\n variableData: Ref<VariableDataEntry | null | undefined>,\r\n metadata: Ref<NetCdfMetadata | null | undefined>,\r\n enabled: Ref<boolean>,\r\n gridStep: Ref<number>,\r\n getValueAtCoordinate: ValueAtCoordinateFn\r\n): void {\r\n let resizeObserver: ResizeObserver | null = null\r\n let moveEndHandler: ((e: MapBrowserEvent<UIEvent>) => void) | null = null\r\n let changeResolutionHandler: ((e: MapBrowserEvent<UIEvent>) => void) | null = null\r\n console.log('useGridLabels执行', map, variableData, metadata, enabled, gridStep)\r\n // ── 辅助函数 ──────────────────────────────────────────────────────────────\r\nconst canvasEl = ref<HTMLCanvasElement | null>(document.getElementById('xmGridLabelsCanvas') as HTMLCanvasElement || null )\r\n function syncCanvasSize(): void {\r\n const canvas = canvasEl.value\r\n const container = canvas?.parentElement\r\n if (!canvas || !container) return\r\n canvas.width = container.clientWidth\r\n canvas.height = container.clientHeight\r\n }\r\n\r\n function clear(): void {\r\n const canvas = canvasEl.value\r\n if (!canvas) return\r\n const ctx = canvas.getContext('2d')\r\n if (ctx) ctx.clearRect(0, 0, canvas.width, canvas.height)\r\n }\r\n\r\n // ── 绘制标签 ──────────────────────────────────────────────────────────────\r\n\r\n function drawLabels(): void {\r\n const canvas = canvasEl.value\r\n const m = map.value\r\n const vd = variableData.value\r\n const md = metadata.value\r\n if (!canvas || !m || !vd || !md) return\r\n\r\n const ctx = canvas.getContext('2d')\r\n if (!ctx) return\r\n\r\n const W = canvas.width\r\n const H = canvas.height\r\n ctx.clearRect(0, 0, W, H)\r\n\r\n const step = gridStep.value\r\n ctx.font = '11px monospace'\r\n ctx.textAlign = 'center'\r\n ctx.textBaseline = 'middle'\r\n\r\n // 遍历每个格点\r\n for (let x = step / 2; x < W; x += step) {\r\n for (let y = step / 2; y < H; y += step) {\r\n\r\n // canvas 像素 -> 地图坐标 -> 经纬度\r\n const pixel = [x, y] as [number, number]\r\n const coordinate = m.getCoordinateFromPixel(pixel)\r\n const [lng, lat] = coordinate\r\n const val = getValueAtCoordinate({ lat, lng }, vd, md)\r\n if (val === null || !isFinite(val)) continue\r\n const text = val.toFixed(1)\r\n ctx.strokeStyle = 'rgba(0, 0, 0, 0.72)'\r\n ctx.lineWidth = 3\r\n ctx.lineJoin = 'round'\r\n ctx.strokeText(text, x, y)\r\n ctx.fillStyle = 'white'\r\n ctx.fillText(text, x, y)\r\n }\r\n }\r\n }\r\n\r\n // ── 防护重绘 ──────────────────────────────────────────────────────────────\r\n\r\n function redraw(): void {\r\n console.log(enabled.value , map.value , canvasEl.value , variableData.value , metadata.value,'重绘标签')\r\n if (!enabled.value || !map.value || !canvasEl.value || !variableData.value || !metadata.value) return\r\n drawLabels()\r\n }\r\n\r\n // ── 地图事件绑定 ──────────────────────────────────────────────────────────\r\n\r\n function attachMapEvents(m: Map): void {\r\n moveEndHandler = () => redraw()\r\n changeResolutionHandler = () => redraw()\r\n\r\n m.on('moveend', moveEndHandler)\r\n m.getView().on('change:resolution', changeResolutionHandler)\r\n }\r\n\r\n function detachMapEvents(m: Map): void {\r\n if (moveEndHandler) m.un('moveend', moveEndHandler)\r\n if (changeResolutionHandler) m.getView().un('change:resolution', changeResolutionHandler)\r\n moveEndHandler = null\r\n changeResolutionHandler = null\r\n }\r\n\r\n watch(map, (newMap, oldMap) => {\r\n console.log('地图变化', newMap, oldMap)\r\n if (oldMap) detachMapEvents(oldMap)\r\n if (newMap) {\r\n attachMapEvents(newMap)\r\n syncCanvasSize()\r\n redraw()\r\n }\r\n }, { immediate: true })\r\n\r\n // ── ResizeObserver ─────────────────────────────────────────────────────────\r\n\r\n watch(canvasEl, (canvas) => {\r\n if (resizeObserver) {\r\n resizeObserver.disconnect()\r\n resizeObserver = null\r\n }\r\n if (canvas?.parentElement) {\r\n resizeObserver = new ResizeObserver(() => {\r\n syncCanvasSize()\r\n redraw()\r\n })\r\n resizeObserver.observe(canvas.parentElement)\r\n }\r\n },{immediate:true})\r\n\r\n // ── 切换监听 ──────────────────────────────────────────────────────────────\r\n\r\n watch(enabled, (val) => {\r\n console.log('enabled 变化', val)\r\n if (val) {\r\n console.log('绘制标签数值',enabled)\r\n syncCanvasSize()\r\n redraw()\r\n } else {\r\n clear()\r\n }\r\n },{immediate:true})\r\n\r\n // ── variableData 监听 ──────────────────────────────────────────────────────\r\n\r\n watch(variableData, () => {\r\n console.log('variableData 变化',variableData)\r\n redraw()\r\n }, { \r\n immediate: true,\r\n deep: true\r\n })\r\n\r\n // ── 清理 ──────────────────────────────────────────────────────────────────\r\n\r\n onUnmounted(() => {\r\n console.log('地图销毁--组件内部清理')\r\n if (map.value) detachMapEvents(map.value)\r\n if (resizeObserver) {\r\n resizeObserver.disconnect()\r\n resizeObserver = null\r\n }\r\n })\r\n\r\n\r\n}","/**\r\n * 大数据集性能优化工具\r\n */\r\n\r\n// ---------------------------------------------------------------------------\r\n// DataWorker\r\n// ---------------------------------------------------------------------------\r\n\r\ninterface WorkerMessage<T = unknown> {\r\n id: number\r\n type: string\r\n data: T\r\n}\r\n\r\ninterface WorkerResponse<R = unknown> {\r\n id: number\r\n result?: R\r\n error?: string\r\n}\r\n\r\ninterface PendingCallback<R> {\r\n resolve: (value: R) => void\r\n reject: (reason?: unknown) => void\r\n}\r\n\r\nexport class DataWorker {\r\n private worker: Worker | null = null\r\n private callbacks = new Map<number, PendingCallback<unknown>>()\r\n private nextId = 1\r\n\r\n async init(workerUrl: string): Promise<void> {\r\n if (this.worker) return\r\n\r\n this.worker = new Worker(workerUrl)\r\n\r\n this.worker.onmessage = (event: MessageEvent<WorkerResponse>) => {\r\n const { id, result, error } = event.data\r\n const callback = this.callbacks.get(id)\r\n\r\n if (callback) {\r\n if (error) {\r\n callback.reject(new Error(error))\r\n } else {\r\n callback.resolve(result)\r\n }\r\n this.callbacks.delete(id)\r\n }\r\n }\r\n\r\n this.worker.onerror = (error: ErrorEvent) => {\r\n console.error('Worker error:', error)\r\n for (const [id, callback] of this.callbacks) {\r\n callback.reject(error)\r\n this.callbacks.delete(id)\r\n }\r\n }\r\n }\r\n\r\n async postTask<T, R>(type: string, data: T): Promise<R> {\r\n if (!this.worker) throw new Error('Worker not initialized')\r\n\r\n const id = this.nextId++\r\n const promise = new Promise<R>((resolve, reject) => {\r\n this.callbacks.set(id, { resolve: resolve as (v: unknown) => void, reject })\r\n })\r\n\r\n const message: WorkerMessage<T> = { id, type, data }\r\n this.worker.postMessage(message)\r\n\r\n return promise\r\n }\r\n\r\n terminate(): void {\r\n if (this.worker) {\r\n this.worker.terminate()\r\n this.worker = null\r\n this.callbacks.clear()\r\n }\r\n }\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// ProgressiveRenderer\r\n// ---------------------------------------------------------------------------\r\n\r\ninterface ProgressiveRendererOptions {\r\n chunkSize?: number\r\n delayBetweenChunks?: number\r\n}\r\n\r\nexport interface RenderProgress {\r\n current: number\r\n total: number\r\n percent: number\r\n}\r\n\r\ntype RenderChunkFn<T> = (chunk: T[], chunkIndex: number, startIndex: number) => Promise<void>\r\ntype OnProgressFn = (progress: RenderProgress) => void\r\ntype OnCompleteFn = () => void\r\n\r\nexport class ProgressiveRenderer {\r\n private options: Required<ProgressiveRendererOptions>\r\n private isRendering = false\r\n private currentChunk = 0\r\n private totalChunks = 0\r\n private onProgress: OnProgressFn | null = null\r\n private onComplete: OnCompleteFn | null = null\r\n\r\n constructor(options: ProgressiveRendererOptions = {}) {\r\n this.options = {\r\n chunkSize: 100_000,\r\n delayBetweenChunks: 10,\r\n ...options\r\n }\r\n }\r\n\r\n async render<T>(\r\n data: T[],\r\n renderChunk: RenderChunkFn<T>,\r\n onProgress: OnProgressFn | null = null,\r\n onComplete: OnCompleteFn | null = null\r\n ): Promise<void> {\r\n if (this.isRendering) throw new Error('Already rendering')\r\n\r\n this.isRendering = true\r\n this.currentChunk = 0\r\n this.totalChunks = Math.ceil(data.length / this.options.chunkSize)\r\n this.onProgress = onProgress\r\n this.onComplete = onComplete\r\n\r\n for (let i = 0; i < data.length; i += this.options.chunkSize) {\r\n if (!this.isRendering) break\r\n\r\n const chunk = data.slice(i, i + this.options.chunkSize)\r\n const chunkIndex = Math.floor(i / this.options.chunkSize)\r\n\r\n await renderChunk(chunk, chunkIndex, i)\r\n\r\n this.currentChunk = chunkIndex + 1\r\n\r\n if (this.onProgress) {\r\n this.onProgress({\r\n current: this.currentChunk,\r\n total: this.totalChunks,\r\n percent: Math.round((this.currentChunk / this.totalChunks) * 100)\r\n })\r\n }\r\n\r\n if (this.options.delayBetweenChunks > 0) {\r\n await new Promise(resolve => setTimeout(resolve, this.options.delayBetweenChunks))\r\n }\r\n }\r\n\r\n this.isRendering = false\r\n if (this.onComplete) this.onComplete()\r\n }\r\n\r\n cancel(): void { this.isRendering = false }\r\n\r\n getProgress(): RenderProgress & { isRendering: boolean } {\r\n return {\r\n current: this.currentChunk,\r\n total: this.totalChunks,\r\n percent: this.totalChunks > 0 ? Math.round((this.currentChunk / this.totalChunks) * 100) : 0,\r\n isRendering: this.isRendering\r\n }\r\n }\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// MemoryManager\r\n// ---------------------------------------------------------------------------\r\n\r\ntype AllocationType = 'arraybuffer' | 'float32' | 'float64' | 'uint8'\r\n\r\ninterface Allocation {\r\n buffer: ArrayBuffer | Float32Array | Float64Array | Uint8Array\r\n size: number\r\n type: AllocationType\r\n timestamp: number\r\n}\r\n\r\nexport class MemoryManager {\r\n private allocations = new Map<symbol, Allocation>()\r\n private maxMemory: number\r\n\r\n constructor() {\r\n this.maxMemory = this.getAvailableMemory()\r\n }\r\n\r\n private getAvailableMemory(): number {\r\n if (typeof performance !== 'undefined' && (performance as unknown as { memory?: { jsHeapSizeLimit: number } }).memory) {\r\n return (performance as unknown as { memory: { jsHeapSizeLimit: number } }).memory.jsHeapSizeLimit\r\n }\r\n return 1024 * 1024 * 1024\r\n }\r\n\r\n allocate(size: number, type: AllocationType = 'arraybuffer'): { id: symbol; buffer: Allocation['buffer'] } {\r\n if (size > this.maxMemory * 0.8) {\r\n throw new Error(`Requested ${size} bytes exceeds 80% of available memory`)\r\n }\r\n\r\n let buffer: Allocation['buffer']\r\n switch (type) {\r\n case 'arraybuffer': buffer = new ArrayBuffer(size); break\r\n case 'float32': buffer = new Float32Array(size / 4); break\r\n case 'float64': buffer = new Float64Array(size / 8); break\r\n case 'uint8': buffer = new Uint8Array(size); break\r\n default: throw new Error(`Unsupported allocation type: ${type as string}`)\r\n }\r\n\r\n const id = Symbol()\r\n this.allocations.set(id, { buffer, size, type, timestamp: Date.now() })\r\n return { id, buffer }\r\n }\r\n\r\n free(id: symbol): void { this.allocations.delete(id) }\r\n\r\n getStats(): { total: number; byType: Record<string, number>; count: number; available: number; percentUsed: number } {\r\n let total = 0\r\n const byType: Record<string, number> = {}\r\n\r\n for (const allocation of this.allocations.values()) {\r\n total += allocation.size\r\n byType[allocation.type] = (byType[allocation.type] ?? 0) + allocation.size\r\n }\r\n\r\n return {\r\n total,\r\n byType,\r\n count: this.allocations.size,\r\n available: this.maxMemory - total,\r\n percentUsed: Math.round((total / this.maxMemory) * 100)\r\n }\r\n }\r\n\r\n clear(): void { this.allocations.clear() }\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// DataSampler\r\n// ---------------------------------------------------------------------------\r\n\r\ntype TypedNumberArray = Float32Array | Float64Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array\r\n\r\nexport class DataSampler {\r\n static sample<T extends TypedNumberArray>(\r\n data: T,\r\n targetSize: number,\r\n method: 'random' | 'systematic' | 'stratified' = 'systematic'\r\n ): T {\r\n if (data.length <= targetSize) return data\r\n\r\n switch (method) {\r\n case 'random': return DataSampler.randomSample(data, targetSize)\r\n case 'stratified': return DataSampler.stratifiedSample(data, targetSize)\r\n default: return DataSampler.systematicSample(data, targetSize)\r\n }\r\n }\r\n\r\n private static randomSample<T extends TypedNumberArray>(data: T, targetSize: number): T {\r\n const sampled = new (data.constructor as new (n: number) => T)(targetSize)\r\n const indices = new Set<number>()\r\n\r\n while (indices.size < targetSize) {\r\n const index = Math.floor(Math.random() * data.length)\r\n if (!indices.has(index)) {\r\n indices.add(index)\r\n sampled[indices.size - 1] = data[index]\r\n }\r\n }\r\n\r\n return sampled\r\n }\r\n\r\n private static systematicSample<T extends TypedNumberArray>(data: T, targetSize: number): T {\r\n const step = Math.floor(data.length / targetSize)\r\n const sampled = new (data.constructor as new (n: number) => T)(targetSize)\r\n\r\n for (let i = 0; i < targetSize; i++) {\r\n sampled[i] = data[Math.min(i * step, data.length - 1)]\r\n }\r\n\r\n return sampled\r\n }\r\n\r\n private static stratifiedSample<T extends TypedNumberArray>(data: T, targetSize: number): T {\r\n const sorted = Array.from(data).sort((a, b) => a - b)\r\n const step = Math.floor(sorted.length / targetSize)\r\n const sampled = new (data.constructor as new (n: number) => T)(targetSize)\r\n\r\n for (let i = 0; i < targetSize; i++) {\r\n sampled[i] = sorted[Math.min(i * step, sorted.length - 1)]\r\n }\r\n\r\n return sampled\r\n }\r\n\r\n static downsample2D<T extends TypedNumberArray>(\r\n data: T,\r\n width: number,\r\n height: number,\r\n targetWidth: number,\r\n targetHeight: number\r\n ): T {\r\n if (width === targetWidth && height === targetHeight) return data\r\n\r\n const scaleX = width / targetWidth\r\n const scaleY = height / targetHeight\r\n const downsampled = new (data.constructor as new (n: number) => T)(targetWidth * targetHeight)\r\n\r\n for (let y = 0; y < targetHeight; y++) {\r\n for (let x = 0; x < targetWidth; x++) {\r\n const origX = Math.floor(x * scaleX)\r\n const origY = Math.floor(y * scaleY)\r\n downsampled[y * targetWidth + x] = data[origY * width + origX]\r\n }\r\n }\r\n\r\n return downsampled\r\n }\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// 计时辅助函数\r\n// ---------------------------------------------------------------------------\r\n\r\nexport function debounce<T extends unknown[]>(func: (...args: T) => void, wait: number): (...args: T) => void {\r\n let timeout: ReturnType<typeof setTimeout> | undefined\r\n\r\n return function executedFunction(...args: T): void {\r\n const later = () => {\r\n clearTimeout(timeout)\r\n func(...args)\r\n }\r\n clearTimeout(timeout)\r\n timeout = setTimeout(later, wait)\r\n }\r\n}\r\n\r\nexport function throttle<T extends unknown[]>(func: (...args: T) => void, limit: number): (...args: T) => void {\r\n let inThrottle = false\r\n\r\n return function executedFunction(...args: T): void {\r\n if (!inThrottle) {\r\n func(...args)\r\n inThrottle = true\r\n setTimeout(() => { inThrottle = false }, limit)\r\n }\r\n }\r\n}\r\n\r\nexport function measureTime<T>(func: () => T, label = 'Execution'): T {\r\n const start = performance.now()\r\n const result = func()\r\n const end = performance.now()\r\n console.log(`${label} took ${(end - start).toFixed(2)}ms`)\r\n return result\r\n}\r\n"," \r\nimport { ref, computed, onMounted, toRef, watch, watchEffect, Reactive, reactive } from 'vue'\r\nimport {Ref, ComputedRef} from 'vue'\r\nimport type { VariableDataEntry, NetCdfMetadata } from '../types/netcdf'\r\nimport { useOpenLayersMap } from '../composables/useLeafletMap'\r\nimport { MapInfo } from '../composables/useLeafletMap'\r\nimport { useMapRendering } from '../composables/useMapRendering'\r\nimport { useGridLabels } from '../composables/useGridLabels'\r\nimport { ProgressiveRenderer, DataSampler, debounce, throttle, measureTime } from '../utils/performance'\r\nimport { getJsonItemForVariable } from '../utils/colorsJsonService'\r\nimport Map from 'ol/Map'\r\n\r\nexport const getFileData = (mapInfo:MapInfo,info:{\r\n variableData?: VariableDataEntry | null\r\n metadata?: NetCdfMetadata | null\r\n bounds?: [[number, number], [number, number]] | null\r\n variableName?: string | null\r\n},call:{\r\n coordChange:Function\r\n getCoordinate:Function\r\n}) =>{\r\n console.log('info-getFileData接收得参数',info)\r\n // // 定义属性\r\n const props = reactive({\r\n variableData: null as VariableDataEntry | null,\r\n metadata: null as NetCdfMetadata | null,\r\n bounds: null as[[number, number], [number, number]] | null,\r\n variableName: null as string | null\r\n })\r\n props.variableData = info.variableData || null\r\n props.metadata = info.metadata || null\r\n props.bounds = info.bounds || null\r\n props.variableName = info.variableName || null\r\n\r\n\r\n return carryCustomFn(mapInfo,props,call)\r\n\r\n}\r\n\r\n\r\nconst carryCustomFn = (mapInfo:MapInfo,props,call) => {\r\n // 当前变量是否使用 JSON 色彩映射(隐藏数学色彩映射下拉菜单)\r\n const jsonColormapActive = ref(false)\r\n\r\n watch(\r\n () => props.variableName,\r\n async (name) => {\r\n console.log('执行监听器-variableName',name)\r\n if (!name) {\r\n jsonColormapActive.value = false\r\n return\r\n }\r\n\r\n const item = await getJsonItemForVariable(name)\r\n jsonColormapActive.value = item !== null\r\n },\r\n { immediate: true }\r\n )\r\n\r\n // 网格点值标签状态(task 3.1)\r\n const showGridLabels = ref(true)\r\n const gridStep = ref(80)\r\n\r\n\r\n // 当前视图状态\r\n const currentZoom = ref(2)\r\n\r\n // 性能状态\r\n const progressiveRenderer = ref<InstanceType<typeof ProgressiveRenderer> | null>(null)\r\n const renderingProgress = ref({ current: 0, total: 0, percent: 0 })\r\n const useProgressiveRendering = ref(true)\r\n const maxRenderPoints = ref(1000000) // 限制为 100 万点以保证性能\r\n const {\r\n mapState,\r\n map,\r\n mapInitialized,\r\n mapError,\r\n isLoading,\r\n currentCoords:mapCoords,\r\n mouseEvents,\r\n destroyMap,\r\n setView,\r\n getCenter,\r\n getZoom,\r\n fitBounds,\r\n formatCoords,\r\n } = useOpenLayersMap(mapInfo)\r\n console.log(map,'useOpenLayersMap地图看看')\r\n if(!mapState) {\r\n throw new Error('地图未初始化')\r\n }\r\n\r\n // 地图渲染组合式函数\r\n const {\r\n overlay,\r\n bounds,\r\n options,\r\n isLoading: renderingLoading,\r\n createDataOverlay,\r\n updateOpacity,\r\n updateColormap,\r\n removeOverlay,\r\n getValueAtCoordinate\r\n } = useMapRendering()\r\n console.log(overlay,'overlay看看')\r\n // 计算属性\r\n const hasDataOverlay = computed(() => !!overlay.value)\r\n console.log(hasDataOverlay,'hasDataOverlay看看')\r\n const isRendering = computed(() => renderingLoading.value)\r\n\r\n\r\n // 接入格点标签组合式函数(tasks 3.2, 3.3)\r\n useGridLabels(\r\n map as Ref<Map>,\r\n toRef(props, 'variableData'),\r\n toRef(props, 'metadata'),\r\n showGridLabels,\r\n gridStep,\r\n getValueAtCoordinate\r\n )\r\n\r\n\r\n // 防抖和节流函数\r\n const debouncedUpdateOverlay = debounce(async (data: unknown, metadata: unknown, overlayBounds: unknown) => {\r\n // 左上角 (西北)\r\n const leftTop = [112.1292, 34.51661]; // [经度, 纬度]\r\n // 右上角 (东北)\r\n const rightTop = [113.1107, 34.51661];\r\n // 右下角 (东南)\r\n const rightBottom = [113.1107, 33.53511];\r\n // 左下角 (西南)\r\n const leftBottom = [112.1292, 33.53511];\r\n\r\n // --- 2. 计算图片的地理范围 (Extent) ---\r\n // 范围格式: [最小经度, 最小纬度, 最大经度, 最大纬度]\r\n const minLon = Math.min(leftTop[0], leftBottom[0], rightTop[0], rightBottom[0]);\r\n const maxLon = Math.max(leftTop[0], leftBottom[0], rightTop[0], rightBottom[0]);\r\n const minLat = Math.min(leftTop[1], leftBottom[1], rightTop[1], rightBottom[1]);\r\n const maxLat = Math.max(leftTop[1], leftBottom[1], rightTop[1], rightBottom[1]);\r\n \r\n const b = [minLon, minLat, maxLon, maxLat] as [number, number, number, number];\r\n if (useProgressiveRendering.value && (data as VariableDataEntry).data.length > maxRenderPoints.value) {\r\n await renderProgressive(data, metadata, b, props.variableName ?? undefined)\r\n } else {\r\n await createDataOverlay(data as VariableDataEntry, metadata as NetCdfMetadata, map.value as Map, b, props.variableName ?? undefined)\r\n }\r\n }, 300)\r\n\r\n const throttledZoomUpdate = throttle(() => {\r\n if (mapInitialized.value) {\r\n const zoom = getZoom()\r\n if (zoom !== null) {\r\n currentZoom.value = zoom!\r\n }\r\n }\r\n }, 500)\r\n\r\n\r\n \r\n\r\n\r\n\r\n // 监听坐标变化并发送事件\r\n watch(\r\n () => ({ lat: mapCoords.lat, lng: mapCoords.lng }),\r\n (newCoords) => {\r\n call.coordChange && call.coordChange(newCoords)\r\n \r\n // 同时获取当前坐标处的数据值(如果有数据)\r\n if (props.variableData && props.metadata && mapInitialized.value) {\r\n const value = getValueAtCoordinate(\r\n newCoords,\r\n props.variableData,\r\n props.metadata\r\n )\r\n call.getCoordinate && call.getCoordinate(newCoords,value)\r\n }\r\n },\r\n { deep: true,\r\n immediate: true\r\n }\r\n )\r\n\r\n // 监听数据变化并创建叠加层\r\n watch(\r\n () => props.variableData,\r\n async (newData) => {\r\n console.log('newData',newData,'props.metadata',props.metadata,'props.bounds',props.bounds)\r\n if (newData && props.metadata && mapInitialized.value) {\r\n try {\r\n await debouncedUpdateOverlay(newData, props.metadata, props.bounds)\r\n } catch (err) {\r\n console.error('Failed to create data overlay:', err)\r\n }\r\n }\r\n },\r\n { deep: true,\r\n immediate: true\r\n }\r\n )\r\n\r\n async function renderProgressive(data: unknown, metadata: unknown, overlayBounds?: [number, number, number, number] | null, variableName?: string): Promise<void> {\r\n if (progressiveRenderer.value) {\r\n progressiveRenderer.value.cancel()\r\n }\r\n\r\n progressiveRenderer.value = new ProgressiveRenderer({\r\n chunkSize: 100000,\r\n delayBetweenChunks: 10\r\n })\r\n\r\n // 清除现有叠加层\r\n removeOverlay()\r\n\r\n // 显示进度\r\n renderingProgress.value = { current: 0, total: 0, percent: 0 }\r\n \r\n const dataArray = (data as VariableDataEntry).data\r\n const dataAsArray = Array.from(dataArray)\r\n \r\n try {\r\n await progressiveRenderer.value.render(\r\n dataAsArray,\r\n async (chunk: unknown[], chunkIndex: number, _startIndex: number) => {\r\n // 目前只更新进度\r\n // 实际实现中会逐步渲染分块\r\n console.log(`正在渲染分块 ${chunkIndex + 1},点数:${chunk.length}`)\r\n },\r\n (progress) => {\r\n renderingProgress.value = progress\r\n },\r\n () => {\r\n // 完成后创建完整叠加层\r\n void createDataOverlay(data as VariableDataEntry, metadata as NetCdfMetadata, map.value as Map, overlayBounds ?? undefined, variableName)\r\n progressiveRenderer.value = null\r\n }\r\n )\r\n } catch (err) {\r\n console.error('Progressive rendering failed:', err)\r\n progressiveRenderer.value = null\r\n }\r\n }\r\n\r\n // 使用节流函数更新缩放级别\r\n const updateZoom = () => {\r\n throttledZoomUpdate.call(null)\r\n }\r\n\r\n\r\n return {\r\n options,\r\n bounds,\r\n currentZoom,\r\n mapCoords,\r\n hasDataOverlay,\r\n isRendering,\r\n renderingProgress,\r\n removeOverlay,\r\n updateOpacity,\r\n updateZoom,\r\n }\r\n\r\n\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","\r\nimport { ref,reactive, computed, watch } from 'vue'\r\nimport type { DataStats } from '../types/netcdf'\r\n\r\ninterface Coordinates { lat: number | null; lng: number | null }\r\ninterface CurrentFile { filename: string; size: number }\r\n\r\n\r\n\r\nexport const getStatusInfo = (info:{\r\n coordinates?: Coordinates\r\n dataValue?: number | string | null\r\n dataStats?: DataStats | null\r\n currentFile?: CurrentFile | null\r\n isLoading?: boolean\r\n error?: string | null\r\n}) =>{\r\n\r\n // 定义属性\r\nconst props = reactive<{\r\n coordinates?: Coordinates\r\n dataValue?: number | string | null\r\n dataStats?: DataStats | null\r\n currentFile?: CurrentFile | null\r\n isLoading?: boolean\r\n error?: string | null\r\n}>({\r\n coordinates: { lat: null, lng: null },\r\n dataValue: null,\r\n dataStats: null,\r\n currentFile: null,\r\n isLoading:false,\r\n error: null\r\n})\r\n\r\n props.coordinates = info.coordinates || { lat: null, lng: null }\r\n props.dataValue = info.dataValue || null\r\n props.dataStats = info.dataStats || null\r\n props.currentFile = info.currentFile || null\r\n props.isLoading = info.isLoading || false\r\n props.error = info.error || null\r\n\r\n\r\n // 本地状态\r\n const systemStatus = ref('ready')\r\n\r\n // 计算属性\r\n const statusText = computed(() => {\r\n if (props.error) return '错误'\r\n if (props.isLoading) return '加载中'\r\n if (props.currentFile && !props.isLoading) return '就绪'\r\n return '等待中'\r\n })\r\n\r\n const statusDetail = computed(() => {\r\n if (props.error) return props.error\r\n if (props.isLoading) return '正在解析 netCDF 数据'\r\n if (props.currentFile) return '数据已加载,可以使用'\r\n return '请上传 netCDF 文件以开始使用'\r\n })\r\n\r\n const currentValue = computed(() => {\r\n if (props.dataValue === null || props.dataValue === undefined) return '--'\r\n if (typeof props.dataValue === 'number') return props.dataValue.toFixed(2)\r\n return props.dataValue\r\n })\r\n\r\n const formattedCoordinates = computed(() => {\r\n const formatCoord = (coord: number | null | undefined): string => {\r\n if (coord === null || coord === undefined) return '--'\r\n return typeof coord === 'number' ? coord.toFixed(4) : String(coord)\r\n }\r\n \r\n return {\r\n lat: formatCoord(props.coordinates?.lat),\r\n lng: formatCoord(props.coordinates?.lng)\r\n }\r\n })\r\n\r\n // 监听加载状态变化\r\n watch(() => props.isLoading, (isLoading) => {\r\n if (isLoading) {\r\n systemStatus.value = 'loading'\r\n } else if (props.error) {\r\n systemStatus.value = 'error'\r\n } else if (props.currentFile) {\r\n systemStatus.value = 'ready'\r\n } else {\r\n systemStatus.value = 'waiting'\r\n }\r\n },{immediate:true})\r\n\r\n // 监听错误变化\r\n watch(() => props.error, (error) => {\r\n if (error) {\r\n systemStatus.value = 'error'\r\n }\r\n },{immediate:true})\r\n\r\n function formatFileSize(bytes: number): string {\r\n if (!bytes || bytes === 0) return '0 Bytes'\r\n const k = 1024\r\n const sizes = ['Bytes', 'KB', 'MB', 'GB']\r\n const i = Math.floor(Math.log(bytes) / Math.log(k))\r\n return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i]\r\n }\r\n\r\n\r\n return {\r\n formattedCoordinates,\r\n currentValue,\r\n statusText,\r\n statusDetail,\r\n currentFile: props.currentFile,\r\n dataStats: props.dataStats,\r\n systemStatus,\r\n formatFileSize\r\n }\r\n\r\n\r\n\r\n}\r\n","\r\nimport {getColorData} from \"./component/colorLegend\"\r\nimport {useLoadFile} from \"./component/loadFile\"\r\nimport {getFileData} from \"./component/loadonMap\"\r\nimport {getStatusInfo} from \"./component/statusInfo\"\r\nimport {detect2dVariables} from './composables/useNetCdf'\r\nimport { getJsonItemForVariable } from './utils/colorsJsonService'\r\nimport {useMapInfo} from './composables/useLeafletMap'\r\nconst version = '0.0.1'\r\nexport {\r\n useMapInfo,\r\n getColorData,\r\n useLoadFile,\r\n getFileData,\r\n getStatusInfo,\r\n detect2dVariables,\r\n getJsonItemForVariable,\r\n version\r\n}"],"names":["c","viridis","index","frac","color1","color2","plasma","r","g","b","inferno","magma","jet","hot","cool","grayscale","value","getColormaps","getColormap","name","createCanvas","width","height","canvas","drawToCanvas","pixelData","ctx","imageData","createColorbar","colormap","vertical","y","t","a","x","colors","cache","loadColorsJson","getJsonItemForVariable","variableName","data","upper","item","parseRgbColor","colorStr","match","buildColormapFn","bins","physicalValue","matchIdx","i","bin","withinMax","nextIdx","binStart","binEnd","r1","g1","b1","r2","g2","b2","getColorData","info","call","props","reactive","carryCustomFn","colormapChange","isJsonColormap","computed","defaultColormap","selectedColormap","ref","colorbarCanvas","minValue","maxValue","midValue","valueRange","gradientStyle","colormapFunc","stops","watch","newColormap","updateColorbar","totalWidth","totalHeight","rangeMin","rangeMax","span","nextBin","w","ErrorType","ErrorSeverity","AppError","type","message","severity","originalError","__publicField","captureStack","ErrorHandler","options","error","context","appError","details","notification","listener","err","limit","stats","Validator","file","errors","validTypes","fileExtension","fileType","maxSize","metadata","dim","_a","COORD_VARS","expectedSize","nanCount","infCount","sampleSize","lat","lng","retryWithBackoff","fn","maxRetries","initialDelay","lastError","attempt","delay","resolve","globalErrorHandler","getGlobalErrorHandler","resolveAttrScalar","attr","vals","decodeCOARDS","rawData","attrs","scaleFactor","addOffset","fillValue","unsignedRaw","isUnsigned","hasPacking","sf","ao","out","packed","normalizeData","min","max","resolvedMin","resolvedMax","dataMin","dataMax","normalized","range","applyColormap","normalizedData","pixelIndex","applyColormapDirect","v","resampleData","originalShape","targetShape","origHeight","origWidth","targetHeight","targetWidth","resampled","scaleX","scaleY","origX","origY","NetCDF4","NetcdfModule","COORDINATE_VARIABLES","isCoordinateDimension","dimInfo","u","findNearestIndex","arr","best","bestDist","dist","detect2dVariables","variables","useNetCdf","errorHandler","isLoading","dataset","variableData","dataStats","loadNetCdfFile","path","_documentCurrentScript","hierarchy","loadedDims","normalizedDims","loadedVars","normalizedVars","dims","shape","d","extractVariableData","calculateDataStats","extractCoordinateArrays","msg","key","varName","varInfo","sum","validCount","mean","dimName","coordData","n","_b","_c","getVariableData","groupPath","getSlicedVariableData","start","count","getDataAtCoordinate","lon","lonDimIndex","latDimIndex","lonIndex","latIndex","lonCoordData","latCoordData","lonSize","latSize","_d","slicedData","closeDataset","reset","useLoadFile","currentFile","validationErrors","loadError","netcdfLoading","netcdfError","displayableVariables","handleFileSelect","fileErrors","result","metadataErrors","errMsg","formatFileSize","bytes","size","k","sizes","warn","args","Relationship","boundingExtent","coordinates","extent","createEmpty","ii","extendCoordinate","closestSquaredDistanceXY","dx","dy","containsCoordinate","coordinate","containsXY","containsExtent","extent1","extent2","coordinateRelationship","minX","minY","maxX","maxY","relationship","createOrUpdate","dest","createOrUpdateEmpty","createOrUpdateFromCoordinate","createOrUpdateFromFlatCoordinates","flatCoordinates","offset","end","stride","extendFlatCoordinates","equals","extend","extendXY","forEachCorner","callback","val","getBottomLeft","getBottomRight","getTopRight","getTopLeft","getArea","area","isEmpty","getWidth","getHeight","getCenter","getForViewAndSize","center","resolution","rotation","x0","y0","x1","y1","x2","y2","x3","y3","getRotatedViewport","cosRotation","sinRotation","xCos","xSin","yCos","ySin","getIntersection","intersection","intersects","returnOrUpdate","intersectsSegment","startRel","endRel","startX","startY","endX","endY","slope","clamp","squaredSegmentDistance","squaredDistance","solveLinearSystem","mat","maxRow","maxEl","absValue","tmp","j","coef","l","m","toDegrees","angleInRadians","toRadians","angleInDegrees","modulo","lerp","toFixed","decimals","factor","ceil","wrap","add","delta","coordinate1","coordinate2","rotate","angle","cosAngle","sinAngle","METERS_PER_UNIT","Projection","global","tileGrid","worldExtent","func","RADIUS","HALF_SIZE","EXTENT","WORLD_EXTENT","MAX_SAFE_Y","EPSG3857Projection","code","point","PROJECTIONS","fromEPSG4326","input","output","dimension","length","toEPSG4326","EPSG4326Projection","axisOrientation","get","projection","clear","object","property","transforms","source","destination","transformFn","sourceCode","destinationCode","K0","E","E2","E3","E_P2","SQRT_E","_E","_E2","_E3","_E4","_E5","M1","M2","M3","M4","P2","P3","P4","P5","R","toLonLat","easting","northing","zone","mu","pRad","pSin","pSin2","pCos","pTan","pTan2","pTan4","epSin","epSinSqrt","c2","d2","d3","d4","d5","d6","latitude","longitude","zoneToCentralLongitude","MIN_LATITUDE","MAX_LATITUDE","MIN_LONGITUDE","MAX_LONGITUDE","fromLonLat","latRad","latSin","latCos","latTan","latTan2","latTan4","lonRad","centralLon","centralLonRad","a2","a3","a4","a5","a6","epsgRegExes","zoneFromCode","epsgId","re","number","north","makeTransformFunction","transformer","coord","makeProjection","makeTransforms","DEFAULT_RADIUS","getDistance","c1","radius","lat1","lat2","deltaLatBy2","deltaLonBy2","transformFactories","makeUTMTransforms","projectionFactories","makeUTMProjection","showCoordinateWarning","disableCoordinateWarning","disable","cloneTransform","addProjection","addProj","addTransformFunc","addProjections","projections","projectionLike","getProj","getPointResolution","units","pointResolution","getter","projUnits","getTransformFromProjections","vertices","metersPerUnit","addEquivalentProjections","addEquivalentTransforms","projections1","projections2","forwardTransform","inverseTransform","projection1","projection2","createProjection","defaultCode","createTransformFromCoordinateTransform","coordTransform","pointLength","jj","transform","lonLat","equivalent","equalUnits","transformFunc","getTransformFunc","sourceTransforms","destinationTransforms","intermediateCode","composeTransformFuncs","fromSource","toDestination","t1","t2","dimensions","getTransform","sourceProjection","destinationProjection","toUserCoordinate","fromUserCoordinate","destProjection","toUserExtent","fromUserExtent","addCommon","EPSG3857_PROJECTIONS","EPSG4326_PROJECTIONS","mapState","map","currentCoords","mouseEvents","setupEventHandlers","evt","useMapInfo","mapInitialized","mapError","mapCoords","useOpenLayersMap","destroyMap","setView","zoom","view","getZoom","fitBounds","bounds","formatCoords","coords","precision","ImageState","ViewHint","assert","assertion","errorMessage","create","apply","compose","dx1","dy1","sx","sy","dx2","dy2","sin","cos","makeInverse","target","det","determinant","e","f","matrixPrecision","toString","fromString","cssTransform","cssTransform1","cssTransform2","mat1","mat2","ascending","linearFindNearest","direction","candidate","extension","arr1","arr2","len1","ua","WORKER_OFFSCREEN_CANVAS","IMAGE_DECODE","CREATE_IMAGE_BITMAP","passive","createCanvasContext2D","canvasPool","settings","sharedCanvasContext","getSharedCanvasContext2D","releaseCanvas","createMockDiv","node","newNode","referenceNode","prop","receiver","isCanvas","obj","NO_COLOR","colorParseContext","getColorParseContext","rgbModernRegEx","rgbLegacyAbsoluteRegEx","rgbLegacyPercentageRegEx","hexRegEx","toColorComponent","s","divider","throwInvalidColor","color","parseRgba","rgb","alpha","rgbDivider","hex","step","colorFromHex","colorComponent","invalidCheckFillStyle","colorString","colorFromImage","MAX_CACHE_SIZE","cacheSize","asArray","BaseEvent","RenderEvent","Event","inversePixelTransform","frameState","RenderEventType","ZIndexContext","instructions","render","instructionsAtIndex","instructionAtIndex","EventType","Disposable","VOID","memoizeOne","lastResult","lastArgs","lastThis","nextArgs","arrayEquals","toPromise","promiseGetter","Target","listeners","listenersForType","event","isString","dispatching","pendingRemovals","propagate","pr","listen","thisArg","once","originalListener","eventsKey","listenOnce","unlistenByKey","Observable","EventTarget","len","keys","unByKey","abstract","uidCounter_","getUid","maxStaleKeys","LayerRenderer","layer","pixel","hitTolerance","matches","image","imageState","pixelContext","createPixelContext","CanvasLayerRenderer","createTransform","col","row","background","backgroundColor","layerClassName","container","style","topLeft","topRight","bottomRight","bottomLeft","applyTransform","inverted","pixelRatio","composeTransform","canvasTransform","toTransformString","offsetX","CanvasImageLayerRenderer","imageLayer","layerState","viewState","viewResolution","imageSource","hints","renderedExtent","layerExtent","imageExtent","img","imageMapWidth","imageMapHeight","imageResolution","imageResolutionX","imageResolutionY","imagePixelRatio","viewCenter","clipped","intersectsExtent","dw","dh","opacity","ObjectEventType","ObjectEvent","oldValue","BaseObject","values","eventType","silent","ViewProperty","createExtent","onlyCenter","smooth","isMoving","centerShift","viewWidth","viewHeight","shiftX","shiftY","ratio","none","easeIn","easeOut","inAndOut","transform2D","destinationStride","anchor","anchorX","anchorY","deltaX","deltaY","scale","translate","tmpTransform","tmpPoint","Geometry","revision","squaredTolerance","clone","closestPoint","minSquaredDistance","tolerance","sourceProj","getProjection","inCoordinates","outCoordinates","pixelExtent","projectedExtent","transformed","projTransform","SimpleGeometry","simplifiedGeometry","layout","getStrideForLayout","nesting","getLayoutForStride","linearRing","twiceArea","linearRings","ends","assignClosest","offset1","offset2","maxSquaredDelta","squaredDelta","squaredDx","arrayMaxSquaredDelta","assignClosestPoint","maxDelta","isRing","assignClosestArrayPoint","deflateCoordinate","deflateCoordinates","deflateCoordinatesArray","coordinatess","inflateCoordinates","inflateCoordinatesArray","douglasPeucker","simplifiedFlatCoordinates","simplifiedOffset","markers","stack","last","first","maxSquaredDistance","snap","quantize","quantizeArray","simplifiedEnds","LinearRing","linearRingArea","Point","linearRingContainsExtent","linearRingContainsXY","wn","linearRingsContainsXY","getInteriorPointOfArray","flatCenters","flatCentersOffset","intersections","rr","pointX","maxSegmentLength","segmentLength","forEach","ret","intersectsLineString","coordinatesExtent","forEachSegment","point1","point2","intersectsLinearRing","intersectsLinearRingArray","linearRingIsClockwise","edge","linearRingsAreOriented","right","isClockwise","orientLinearRings","reverseCoordinates","Polygon","polygon","linearRingsArea","flatCenter","fromExtent","getViewportClampedResolution","maxExtent","viewportSize","showFullExtent","xResolution","yResolution","getSmoothClampedResolution","maxResolution","minResolution","createSnapToResolutions","resolutions","cappedMaxRes","capped","z","createSnapToPower","power","minZoomLevel","cappedZoomLevel","zoomLevel","newResolution","createMinMaxResolution","createSnapToN","theta","createSnapToZero","DEFAULT_TILE_SIZE","DEFAULT_MIN_ZOOM","View","properties","resolutionConstraintInfo","createResolutionConstraint","centerConstraint","createCenterConstraint","resolutionConstraint","rotationConstraint","createRotationConstraint","padding","oldPadding","newPadding","offsetY","newOptions","var_args","animationCount","state","animationCallback","series","animation","isNoopAnimation","now","more","seriesComplete","elapsed","fraction","progress","constrainedResolution","constrainedRotation","currentCenter","rotateCoordinate","addCoordinate","currentResolution","h","enabled","logPower","reducedSize","calculateCenterOn","zoomFactor","nearest","baseLevel","geometryOrExtent","geometry","polygonFromExtent","minRotX","minRotY","maxRotX","maxRotY","rotX","rotY","rotatedExtent","centerRot","centerX","centerY","position","shiftedCenter","deltaCoordinates","newRotation","hint","doNotCancelAnims","forceMoving","newCenter","duration","resolutionDirection","targetCenter","targetResolution","targetZoom","targetRes","returnValue","centerNone","minZoom","maxZoom","multiWorld","projExtent","constrainOnlyCenter","defaultMaxResolution","defaultMinResolution","constrainRotation","rotationNone","coordinatesEqual","LayerProperty","BaseLayer","managed","zIndex","array","states","visible","zindex","Layer","baseOptions","inView","getAttributions","attributions","layerRenderer","renderEvent","layerStatesArray","arrayLayerState","BaseImageLayer","ImageLayer","ImageWrapper","stateOrLoader","requestResolution","load","src","reject","handleLoad","unlisten","handleError","decodeFallback","decode","brokenDiagonalRendering_","drawTestTriangle","u1","v1","u2","v2","verifyBrokenDiagonalRendering","isBrokenDiagonalRendering","calculateSourceResolution","targetProj","sourceCenter","sourceResolution","targetMetersPerUnit","sourceMetersPerUnit","sourceExtent","compensationFactor","targetExtent","triangulation","sources","gutter","renderEdges","interpolate","drawSingle","clipExtent","pixelRound","sourceDataExtent","stitchContext","stitchScale","inverseScale","xPos","yPos","srcWidth","srcHeight","targetTopLeft","triangle","u0","v0","sourceNumericalShiftX","sourceNumericalShiftY","augmentedMatrix","affineCoefs","steps","ud","vd","fromResolutionLike","MAX_SUBDIVISION","MAX_TRIANGLE_WIDTH","Triangulation","maxSourceExtent","errorThreshold","destinationResolution","sourceMatrix","transformInvCache","transformInv","applyMatrix","destinationTopLeft","destinationTopRight","destinationBottomRight","destinationBottomLeft","sourceTopLeft","sourceTopRight","sourceBottomRight","sourceBottomLeft","maxSubdivision","leftBound","newTriangle","aSrc","bSrc","cSrc","dSrc","sourceQuadExtent","sourceCoverageX","sourceWorldWidth","wrapsX","needsSubdivision","targetQuadExtent","isNotFinite","centerSrc","bc","bcSrc","da","daSrc","ab","abSrc","cd","cdSrc","ERROR_THRESHOLD","ReprojImage","getImageFunction","maxTargetExtent","limitedTargetExtent","errorThresholdInPixels","sourceImage","sourcePixelRatio","sourceState","renderReprojected","Source","adaptAttributions","self","attributionLike","DECIMALS","ImageSourceEventType","ImageSourceEvent","ImageSource","idx","requestExtent","getRequestExtent","defaultImageLoadFunction","marginWidth","requestWidth","marginHeight","requestHeight","createLoader","crossOrigin","resolutionX","resolutionY","Static","imageLoadFunction","useMapRendering","overlay","createDataOverlay","overrideBounds","overlayBounds","estimateBounds","imageUrl","processDataForRendering","ImageStatic","renderData","renderWidth","renderHeight","jsonItem","updateOpacity","updateColormap","colormapName","removeOverlay","getValueAtCoordinate","latlng","west","south","east","yFromSouth","clampedX","useGridLabels","gridStep","resizeObserver","moveEndHandler","changeResolutionHandler","canvasEl","syncCanvasSize","drawLabels","md","W","H","text","redraw","attachMapEvents","detachMapEvents","newMap","oldMap","onUnmounted","ProgressiveRenderer","renderChunk","onProgress","onComplete","chunk","chunkIndex","debounce","wait","timeout","later","throttle","inThrottle","getFileData","mapInfo","jsonColormapActive","showGridLabels","currentZoom","progressiveRenderer","renderingProgress","useProgressiveRendering","maxRenderPoints","renderingLoading","hasDataOverlay","isRendering","toRef","debouncedUpdateOverlay","leftTop","rightTop","rightBottom","leftBottom","minLon","maxLon","minLat","maxLat","renderProgressive","throttledZoomUpdate","newCoords","newData","dataArray","dataAsArray","_startIndex","getStatusInfo","systemStatus","statusText","statusDetail","currentValue","formattedCoordinates","formatCoord","version"],"mappings":"21BASQA,GAAgC,CACpC,CAAC,QAA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B,EAAE,CAAC,UAAU,GAAK,EAGlB/mC,EAAAA,MAAM,IAAMjB,EAAM,MAAQsC,GAAU,CAChCA,IACA0lC,EAAa,MAAQ,QAEzB,EAAE,CAAC,UAAU,GAAK,EAElB,SAASh8B,EAAeC,EAAuB,CAC/C,GAAI,CAACA,GAASA,IAAU,EAAG,MAAO,UAClC,MAAME,EAAI,KACJC,EAAQ,CAAC,QAAS,KAAM,KAAM,IAAI,EAClCnN,EAAI,KAAK,MAAM,KAAK,IAAIgN,CAAK,EAAI,KAAK,IAAIE,CAAC,CAAC,EAClD,OAAO,YAAYF,EAAQ,KAAK,IAAIE,EAAGlN,CAAC,GAAG,QAAQ,CAAC,CAAC,EAAI,IAAMmN,EAAMnN,CAAC,CACtE,CAGA,MAAO,CACH,qBAAAmpC,EACA,aAAAD,EACA,WAAAF,EACA,aAAAC,EACA,YAAaloC,EAAM,YACnB,UAAWA,EAAM,UACjB,aAAAgoC,EACA,eAAAh8B,CAAA,CAKR,ECjHMs8B,GAAU","x_google_ignoreList":[9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88]}