@map-colonies/react-components 3.9.0 → 3.10.3

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 (385) hide show
  1. package/.env +1 -0
  2. package/.storybook/main.js +2 -5
  3. package/CHANGELOG.md +66 -0
  4. package/dist/assets/img/map-marker.gif +0 -0
  5. package/dist/autocomplete/autocomplete.d.ts +2 -3
  6. package/dist/autocomplete/autocomplete.js +38 -27
  7. package/dist/autocomplete/index.d.ts +0 -1
  8. package/dist/autocomplete/index.js +2 -2
  9. package/dist/box/box.d.ts +0 -1
  10. package/dist/box/box.js +3 -2
  11. package/dist/box/index.d.ts +0 -1
  12. package/dist/box/index.js +2 -2
  13. package/dist/cesium-map/data-sources/custom.data-source.d.ts +0 -1
  14. package/dist/cesium-map/data-sources/custom.data-source.js +3 -2
  15. package/dist/cesium-map/data-sources/drawings.data-source.d.ts +0 -1
  16. package/dist/cesium-map/data-sources/drawings.data-source.js +29 -16
  17. package/dist/cesium-map/data-sources/index.d.ts +0 -1
  18. package/dist/cesium-map/data-sources/index.js +12 -6
  19. package/dist/cesium-map/entities/entity.d.ts +0 -1
  20. package/dist/cesium-map/entities/entity.description.d.ts +0 -1
  21. package/dist/cesium-map/entities/entity.description.js +5 -3
  22. package/dist/cesium-map/entities/entity.js +3 -2
  23. package/dist/cesium-map/entities/graphics/polygon.graphics.d.ts +0 -1
  24. package/dist/cesium-map/entities/graphics/polygon.graphics.js +3 -2
  25. package/dist/cesium-map/entities/graphics/polyline.graphics.d.ts +0 -1
  26. package/dist/cesium-map/entities/graphics/polyline.graphics.js +3 -2
  27. package/dist/cesium-map/entities/graphics/rectangle.graphics.d.ts +0 -1
  28. package/dist/cesium-map/entities/graphics/rectangle.graphics.js +3 -2
  29. package/dist/cesium-map/entities/index.d.ts +0 -1
  30. package/dist/cesium-map/entities/index.js +14 -8
  31. package/dist/cesium-map/index.d.ts +0 -1
  32. package/dist/cesium-map/index.js +17 -11
  33. package/dist/cesium-map/layers/3d.tileset.d.ts +0 -1
  34. package/dist/cesium-map/layers/3d.tileset.js +5 -4
  35. package/dist/cesium-map/layers/3d.tileset.update.d.ts +0 -1
  36. package/dist/cesium-map/layers/3d.tileset.update.js +0 -1
  37. package/dist/cesium-map/layers/geojson.layer.d.ts +0 -1
  38. package/dist/cesium-map/layers/geojson.layer.js +3 -2
  39. package/dist/cesium-map/layers/imagery.layer.d.ts +0 -1
  40. package/dist/cesium-map/layers/imagery.layer.js +22 -9
  41. package/dist/cesium-map/layers/index.d.ts +0 -1
  42. package/dist/cesium-map/layers/index.js +17 -11
  43. package/dist/cesium-map/layers/osm.layer.d.ts +0 -1
  44. package/dist/cesium-map/layers/osm.layer.js +3 -2
  45. package/dist/cesium-map/layers/wms.layer.d.ts +0 -1
  46. package/dist/cesium-map/layers/wms.layer.js +3 -2
  47. package/dist/cesium-map/layers/wmts.layer.d.ts +0 -1
  48. package/dist/cesium-map/layers/wmts.layer.js +3 -2
  49. package/dist/cesium-map/layers/xyz.layer.d.ts +0 -1
  50. package/dist/cesium-map/layers/xyz.layer.js +3 -2
  51. package/dist/cesium-map/layers-manager.d.ts +0 -1
  52. package/dist/cesium-map/layers-manager.js +3 -7
  53. package/dist/cesium-map/map.d.ts +2 -2
  54. package/dist/cesium-map/map.js +64 -41
  55. package/dist/cesium-map/map.types.d.ts +0 -1
  56. package/dist/cesium-map/map.types.js +1 -1
  57. package/dist/cesium-map/proxied.types.d.ts +0 -1
  58. package/dist/cesium-map/proxied.types.js +4 -2
  59. package/dist/cesium-map/settings/base-maps.d.ts +0 -1
  60. package/dist/cesium-map/settings/base-maps.js +22 -12
  61. package/dist/cesium-map/settings/scene-modes.d.ts +0 -1
  62. package/dist/cesium-map/settings/scene-modes.js +17 -4
  63. package/dist/cesium-map/settings/settings.d.ts +0 -1
  64. package/dist/cesium-map/settings/settings.js +20 -7
  65. package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.d.ts +1 -2
  66. package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.js +1 -1
  67. package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.d.ts +1 -2
  68. package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.js +3 -2
  69. package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.d.ts +0 -1
  70. package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.js +1 -2
  71. package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.d.ts +0 -1
  72. package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.js +17 -4
  73. package/dist/cesium-map/tools/coordinates-tracker.tool.d.ts +1 -2
  74. package/dist/cesium-map/tools/coordinates-tracker.tool.js +23 -10
  75. package/dist/cesium-map/tools/draw/drawHelper.d.ts +0 -1
  76. package/dist/cesium-map/tools/draw/drawHelper.js +16 -3
  77. package/dist/cesium-map/tools/geojson/geojson-to-primitive.d.ts +1 -2
  78. package/dist/cesium-map/tools/geojson/geojson-to-primitive.js +3 -2
  79. package/dist/cesium-map/tools/geojson/index.d.ts +0 -1
  80. package/dist/cesium-map/tools/geojson/index.js +12 -6
  81. package/dist/cesium-map/tools/geojson/point.geojson.d.ts +0 -1
  82. package/dist/cesium-map/tools/geojson/point.geojson.js +3 -2
  83. package/dist/cesium-map/tools/geojson/polygon.geojson.d.ts +0 -1
  84. package/dist/cesium-map/tools/geojson/polygon.geojson.js +3 -2
  85. package/dist/cesium-map/tools/geojson/rectangle.geojson.d.ts +0 -1
  86. package/dist/cesium-map/tools/geojson/rectangle.geojson.js +17 -4
  87. package/dist/cesium-map/tools/inspector.tool.d.ts +4 -0
  88. package/dist/cesium-map/tools/inspector.tool.js +33 -0
  89. package/dist/cesium-map/tools/scale-tracker.tool.d.ts +0 -1
  90. package/dist/cesium-map/tools/scale-tracker.tool.js +19 -6
  91. package/dist/cesium-map/tools/terranian-height.tool.d.ts +4 -0
  92. package/dist/cesium-map/tools/terranian-height.tool.js +113 -0
  93. package/dist/cssbaseline/cssbaseline.d.ts +0 -1
  94. package/dist/cssbaseline/cssbaseline.js +5 -3
  95. package/dist/cssbaseline/index.d.ts +0 -1
  96. package/dist/cssbaseline/index.js +3 -3
  97. package/dist/date-picker/date-picker.d.ts +0 -1
  98. package/dist/date-picker/date-picker.js +24 -11
  99. package/dist/date-picker/index.d.ts +0 -1
  100. package/dist/date-picker/index.js +11 -5
  101. package/dist/date-range-picker/date-range-picker.d.ts +0 -1
  102. package/dist/date-range-picker/date-range-picker.form-control.d.ts +0 -1
  103. package/dist/date-range-picker/date-range-picker.form-control.js +31 -18
  104. package/dist/date-range-picker/date-range-picker.js +26 -13
  105. package/dist/date-range-picker/index.d.ts +0 -1
  106. package/dist/date-range-picker/index.js +12 -6
  107. package/dist/file-picker/file-picker.css +62 -0
  108. package/dist/file-picker/file-picker.d.ts +276 -0
  109. package/dist/file-picker/file-picker.js +151 -0
  110. package/dist/file-picker/fs-map.json +1557 -0
  111. package/dist/file-picker/index.d.ts +2 -0
  112. package/dist/file-picker/index.js +14 -0
  113. package/dist/file-picker/localization.d.ts +11 -0
  114. package/dist/file-picker/localization.js +124 -0
  115. package/dist/index.d.ts +1 -1
  116. package/dist/index.js +23 -16
  117. package/dist/map-filter-container/container-map.d.ts +0 -1
  118. package/dist/map-filter-container/container-map.js +3 -2
  119. package/dist/map-filter-container/index.d.ts +0 -1
  120. package/dist/map-filter-container/index.js +11 -5
  121. package/dist/map-filter-container/map-filter-container.d.ts +0 -1
  122. package/dist/map-filter-container/map-filter-container.js +17 -4
  123. package/dist/map-filter-container/polygon-selection-ui.d.ts +0 -1
  124. package/dist/map-filter-container/polygon-selection-ui.js +3 -2
  125. package/dist/models/defaults.d.ts +0 -1
  126. package/dist/models/defaults.js +0 -1
  127. package/dist/models/enums.d.ts +2 -2
  128. package/dist/models/enums.js +2 -1
  129. package/dist/models/index.d.ts +0 -1
  130. package/dist/models/index.js +11 -5
  131. package/dist/ol-map/feature.d.ts +0 -1
  132. package/dist/ol-map/feature.js +3 -2
  133. package/dist/ol-map/index.d.ts +0 -1
  134. package/dist/ol-map/index.js +16 -10
  135. package/dist/ol-map/interactions/draw.d.ts +0 -1
  136. package/dist/ol-map/interactions/draw.js +4 -4
  137. package/dist/ol-map/interactions/index.d.ts +0 -1
  138. package/dist/ol-map/interactions/index.js +11 -5
  139. package/dist/ol-map/layers/index.d.ts +0 -1
  140. package/dist/ol-map/layers/index.js +13 -7
  141. package/dist/ol-map/layers/tile-layer.d.ts +0 -1
  142. package/dist/ol-map/layers/tile-layer.js +19 -5
  143. package/dist/ol-map/layers/vector-layer.d.ts +0 -1
  144. package/dist/ol-map/layers/vector-layer.js +19 -5
  145. package/dist/ol-map/layers/vector-tile-layer.d.ts +0 -1
  146. package/dist/ol-map/layers/vector-tile-layer.js +19 -5
  147. package/dist/ol-map/map.d.ts +0 -1
  148. package/dist/ol-map/map.js +24 -10
  149. package/dist/ol-map/source/index.d.ts +0 -1
  150. package/dist/ol-map/source/index.js +16 -10
  151. package/dist/ol-map/source/mvt.d.ts +0 -1
  152. package/dist/ol-map/source/mvt.js +7 -4
  153. package/dist/ol-map/source/osm.d.ts +0 -1
  154. package/dist/ol-map/source/osm.js +3 -2
  155. package/dist/ol-map/source/vector-source.d.ts +1 -2
  156. package/dist/ol-map/source/vector-source.js +19 -5
  157. package/dist/ol-map/source/wms.d.ts +0 -1
  158. package/dist/ol-map/source/wms.js +5 -3
  159. package/dist/ol-map/source/wmts.d.ts +0 -1
  160. package/dist/ol-map/source/wmts.js +5 -3
  161. package/dist/ol-map/source/xyz.d.ts +0 -1
  162. package/dist/ol-map/source/xyz.js +5 -3
  163. package/dist/ol-map/style.d.ts +0 -1
  164. package/dist/ol-map/style.js +1 -1
  165. package/dist/popover/index.d.ts +0 -1
  166. package/dist/popover/index.js +2 -2
  167. package/dist/popover/popover.d.ts +0 -1
  168. package/dist/popover/popover.js +3 -2
  169. package/dist/smart-table/__mock-data__/smartTableMocks.d.ts +0 -1
  170. package/dist/smart-table/__mock-data__/smartTableMocks.js +1 -1
  171. package/dist/smart-table/index.d.ts +0 -1
  172. package/dist/smart-table/index.js +12 -6
  173. package/dist/smart-table/smart-table-head.d.ts +0 -1
  174. package/dist/smart-table/smart-table-head.js +1 -1
  175. package/dist/smart-table/smart-table-row.d.ts +0 -2
  176. package/dist/smart-table/smart-table-row.js +18 -8
  177. package/dist/smart-table/smart-table-types.d.ts +0 -2
  178. package/dist/smart-table/smart-table-types.js +0 -1
  179. package/dist/smart-table/smart-table.d.ts +0 -1
  180. package/dist/smart-table/smart-table.js +15 -3
  181. package/dist/theme/index.d.ts +0 -1
  182. package/dist/theme/index.js +11 -5
  183. package/dist/theme/theme.d.ts +0 -1
  184. package/dist/theme/theme.js +1 -1
  185. package/dist/utils/map.d.ts +0 -1
  186. package/dist/utils/map.js +7 -4
  187. package/dist/utils/projections.d.ts +0 -1
  188. package/dist/utils/projections.js +1 -1
  189. package/dist/utils/story.d.ts +0 -1
  190. package/dist/utils/story.js +0 -1
  191. package/package.json +103 -100
  192. package/public/assets/img/map-marker.gif +0 -0
  193. package/src/lib/autocomplete/autocomplete.tsx +16 -18
  194. package/src/lib/cesium-map/map.tsx +22 -12
  195. package/src/lib/cesium-map/terrain-providers/terrain-provider-heights-tool.stories.tsx +155 -0
  196. package/src/lib/cesium-map/terrain-providers/terrain-provider.stories.tsx +5 -3
  197. package/src/lib/cesium-map/tools/coordinates-tracker.tool.tsx +1 -1
  198. package/src/lib/cesium-map/tools/inspector.tool.tsx +15 -0
  199. package/src/lib/cesium-map/tools/terranian-height.tool.tsx +167 -0
  200. package/src/lib/date-range-picker/{stories/DateRangePicker.stories.tsx → date-range-picker.stories.tsx} +5 -5
  201. package/src/lib/file-picker/file-picker.css +62 -0
  202. package/src/lib/file-picker/file-picker.stories.tsx +447 -0
  203. package/src/lib/file-picker/file-picker.tsx +180 -0
  204. package/src/lib/file-picker/fs-map.json +1557 -0
  205. package/src/lib/file-picker/index.ts +2 -0
  206. package/src/lib/file-picker/localization.ts +164 -0
  207. package/src/lib/index.ts +1 -0
  208. package/src/lib/models/enums.ts +1 -0
  209. package/src/lib/smart-table/smart-table-row.spec.tsx +1 -1
  210. package/tsbuildconfig.json +2 -2
  211. package/tsconfig.json +2 -1
  212. package/dist/autocomplete/autocomplete.d.ts.map +0 -1
  213. package/dist/autocomplete/autocomplete.js.map +0 -1
  214. package/dist/autocomplete/index.d.ts.map +0 -1
  215. package/dist/autocomplete/index.js.map +0 -1
  216. package/dist/box/box.d.ts.map +0 -1
  217. package/dist/box/box.js.map +0 -1
  218. package/dist/box/index.d.ts.map +0 -1
  219. package/dist/box/index.js.map +0 -1
  220. package/dist/cesium-map/data-sources/custom.data-source.d.ts.map +0 -1
  221. package/dist/cesium-map/data-sources/custom.data-source.js.map +0 -1
  222. package/dist/cesium-map/data-sources/drawings.data-source.d.ts.map +0 -1
  223. package/dist/cesium-map/data-sources/drawings.data-source.js.map +0 -1
  224. package/dist/cesium-map/data-sources/index.d.ts.map +0 -1
  225. package/dist/cesium-map/data-sources/index.js.map +0 -1
  226. package/dist/cesium-map/entities/entity.d.ts.map +0 -1
  227. package/dist/cesium-map/entities/entity.description.d.ts.map +0 -1
  228. package/dist/cesium-map/entities/entity.description.js.map +0 -1
  229. package/dist/cesium-map/entities/entity.js.map +0 -1
  230. package/dist/cesium-map/entities/graphics/polygon.graphics.d.ts.map +0 -1
  231. package/dist/cesium-map/entities/graphics/polygon.graphics.js.map +0 -1
  232. package/dist/cesium-map/entities/graphics/polyline.graphics.d.ts.map +0 -1
  233. package/dist/cesium-map/entities/graphics/polyline.graphics.js.map +0 -1
  234. package/dist/cesium-map/entities/graphics/rectangle.graphics.d.ts.map +0 -1
  235. package/dist/cesium-map/entities/graphics/rectangle.graphics.js.map +0 -1
  236. package/dist/cesium-map/entities/index.d.ts.map +0 -1
  237. package/dist/cesium-map/entities/index.js.map +0 -1
  238. package/dist/cesium-map/index.d.ts.map +0 -1
  239. package/dist/cesium-map/index.js.map +0 -1
  240. package/dist/cesium-map/layers/3d.tileset.d.ts.map +0 -1
  241. package/dist/cesium-map/layers/3d.tileset.js.map +0 -1
  242. package/dist/cesium-map/layers/3d.tileset.update.d.ts.map +0 -1
  243. package/dist/cesium-map/layers/3d.tileset.update.js.map +0 -1
  244. package/dist/cesium-map/layers/geojson.layer.d.ts.map +0 -1
  245. package/dist/cesium-map/layers/geojson.layer.js.map +0 -1
  246. package/dist/cesium-map/layers/imagery.layer.d.ts.map +0 -1
  247. package/dist/cesium-map/layers/imagery.layer.js.map +0 -1
  248. package/dist/cesium-map/layers/index.d.ts.map +0 -1
  249. package/dist/cesium-map/layers/index.js.map +0 -1
  250. package/dist/cesium-map/layers/osm.layer.d.ts.map +0 -1
  251. package/dist/cesium-map/layers/osm.layer.js.map +0 -1
  252. package/dist/cesium-map/layers/wms.layer.d.ts.map +0 -1
  253. package/dist/cesium-map/layers/wms.layer.js.map +0 -1
  254. package/dist/cesium-map/layers/wmts.layer.d.ts.map +0 -1
  255. package/dist/cesium-map/layers/wmts.layer.js.map +0 -1
  256. package/dist/cesium-map/layers/xyz.layer.d.ts.map +0 -1
  257. package/dist/cesium-map/layers/xyz.layer.js.map +0 -1
  258. package/dist/cesium-map/layers-manager.d.ts.map +0 -1
  259. package/dist/cesium-map/layers-manager.js.map +0 -1
  260. package/dist/cesium-map/map.d.ts.map +0 -1
  261. package/dist/cesium-map/map.js.map +0 -1
  262. package/dist/cesium-map/map.types.d.ts.map +0 -1
  263. package/dist/cesium-map/map.types.js.map +0 -1
  264. package/dist/cesium-map/proxied.types.d.ts.map +0 -1
  265. package/dist/cesium-map/proxied.types.js.map +0 -1
  266. package/dist/cesium-map/settings/base-maps.d.ts.map +0 -1
  267. package/dist/cesium-map/settings/base-maps.js.map +0 -1
  268. package/dist/cesium-map/settings/scene-modes.d.ts.map +0 -1
  269. package/dist/cesium-map/settings/scene-modes.js.map +0 -1
  270. package/dist/cesium-map/settings/settings.d.ts.map +0 -1
  271. package/dist/cesium-map/settings/settings.js.map +0 -1
  272. package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.d.ts.map +0 -1
  273. package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.js.map +0 -1
  274. package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.d.ts.map +0 -1
  275. package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.js.map +0 -1
  276. package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.d.ts.map +0 -1
  277. package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.js.map +0 -1
  278. package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.d.ts.map +0 -1
  279. package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.js.map +0 -1
  280. package/dist/cesium-map/tools/coordinates-tracker.tool.d.ts.map +0 -1
  281. package/dist/cesium-map/tools/coordinates-tracker.tool.js.map +0 -1
  282. package/dist/cesium-map/tools/draw/drawHelper.d.ts.map +0 -1
  283. package/dist/cesium-map/tools/draw/drawHelper.js.map +0 -1
  284. package/dist/cesium-map/tools/geojson/geojson-to-primitive.d.ts.map +0 -1
  285. package/dist/cesium-map/tools/geojson/geojson-to-primitive.js.map +0 -1
  286. package/dist/cesium-map/tools/geojson/index.d.ts.map +0 -1
  287. package/dist/cesium-map/tools/geojson/index.js.map +0 -1
  288. package/dist/cesium-map/tools/geojson/point.geojson.d.ts.map +0 -1
  289. package/dist/cesium-map/tools/geojson/point.geojson.js.map +0 -1
  290. package/dist/cesium-map/tools/geojson/polygon.geojson.d.ts.map +0 -1
  291. package/dist/cesium-map/tools/geojson/polygon.geojson.js.map +0 -1
  292. package/dist/cesium-map/tools/geojson/rectangle.geojson.d.ts.map +0 -1
  293. package/dist/cesium-map/tools/geojson/rectangle.geojson.js.map +0 -1
  294. package/dist/cesium-map/tools/scale-tracker.tool.d.ts.map +0 -1
  295. package/dist/cesium-map/tools/scale-tracker.tool.js.map +0 -1
  296. package/dist/cssbaseline/cssbaseline.d.ts.map +0 -1
  297. package/dist/cssbaseline/cssbaseline.js.map +0 -1
  298. package/dist/cssbaseline/index.d.ts.map +0 -1
  299. package/dist/cssbaseline/index.js.map +0 -1
  300. package/dist/date-picker/date-picker.d.ts.map +0 -1
  301. package/dist/date-picker/date-picker.js.map +0 -1
  302. package/dist/date-picker/index.d.ts.map +0 -1
  303. package/dist/date-picker/index.js.map +0 -1
  304. package/dist/date-range-picker/date-range-picker.d.ts.map +0 -1
  305. package/dist/date-range-picker/date-range-picker.form-control.d.ts.map +0 -1
  306. package/dist/date-range-picker/date-range-picker.form-control.js.map +0 -1
  307. package/dist/date-range-picker/date-range-picker.js.map +0 -1
  308. package/dist/date-range-picker/index.d.ts.map +0 -1
  309. package/dist/date-range-picker/index.js.map +0 -1
  310. package/dist/index.d.ts.map +0 -1
  311. package/dist/index.js.map +0 -1
  312. package/dist/map-filter-container/container-map.d.ts.map +0 -1
  313. package/dist/map-filter-container/container-map.js.map +0 -1
  314. package/dist/map-filter-container/index.d.ts.map +0 -1
  315. package/dist/map-filter-container/index.js.map +0 -1
  316. package/dist/map-filter-container/map-filter-container.d.ts.map +0 -1
  317. package/dist/map-filter-container/map-filter-container.js.map +0 -1
  318. package/dist/map-filter-container/polygon-selection-ui.d.ts.map +0 -1
  319. package/dist/map-filter-container/polygon-selection-ui.js.map +0 -1
  320. package/dist/models/defaults.d.ts.map +0 -1
  321. package/dist/models/defaults.js.map +0 -1
  322. package/dist/models/enums.d.ts.map +0 -1
  323. package/dist/models/enums.js.map +0 -1
  324. package/dist/models/index.d.ts.map +0 -1
  325. package/dist/models/index.js.map +0 -1
  326. package/dist/ol-map/feature.d.ts.map +0 -1
  327. package/dist/ol-map/feature.js.map +0 -1
  328. package/dist/ol-map/index.d.ts.map +0 -1
  329. package/dist/ol-map/index.js.map +0 -1
  330. package/dist/ol-map/interactions/draw.d.ts.map +0 -1
  331. package/dist/ol-map/interactions/draw.js.map +0 -1
  332. package/dist/ol-map/interactions/index.d.ts.map +0 -1
  333. package/dist/ol-map/interactions/index.js.map +0 -1
  334. package/dist/ol-map/layers/index.d.ts.map +0 -1
  335. package/dist/ol-map/layers/index.js.map +0 -1
  336. package/dist/ol-map/layers/tile-layer.d.ts.map +0 -1
  337. package/dist/ol-map/layers/tile-layer.js.map +0 -1
  338. package/dist/ol-map/layers/vector-layer.d.ts.map +0 -1
  339. package/dist/ol-map/layers/vector-layer.js.map +0 -1
  340. package/dist/ol-map/layers/vector-tile-layer.d.ts.map +0 -1
  341. package/dist/ol-map/layers/vector-tile-layer.js.map +0 -1
  342. package/dist/ol-map/map.d.ts.map +0 -1
  343. package/dist/ol-map/map.js.map +0 -1
  344. package/dist/ol-map/source/index.d.ts.map +0 -1
  345. package/dist/ol-map/source/index.js.map +0 -1
  346. package/dist/ol-map/source/mvt.d.ts.map +0 -1
  347. package/dist/ol-map/source/mvt.js.map +0 -1
  348. package/dist/ol-map/source/osm.d.ts.map +0 -1
  349. package/dist/ol-map/source/osm.js.map +0 -1
  350. package/dist/ol-map/source/vector-source.d.ts.map +0 -1
  351. package/dist/ol-map/source/vector-source.js.map +0 -1
  352. package/dist/ol-map/source/wms.d.ts.map +0 -1
  353. package/dist/ol-map/source/wms.js.map +0 -1
  354. package/dist/ol-map/source/wmts.d.ts.map +0 -1
  355. package/dist/ol-map/source/wmts.js.map +0 -1
  356. package/dist/ol-map/source/xyz.d.ts.map +0 -1
  357. package/dist/ol-map/source/xyz.js.map +0 -1
  358. package/dist/ol-map/style.d.ts.map +0 -1
  359. package/dist/ol-map/style.js.map +0 -1
  360. package/dist/popover/index.d.ts.map +0 -1
  361. package/dist/popover/index.js.map +0 -1
  362. package/dist/popover/popover.d.ts.map +0 -1
  363. package/dist/popover/popover.js.map +0 -1
  364. package/dist/smart-table/__mock-data__/smartTableMocks.d.ts.map +0 -1
  365. package/dist/smart-table/__mock-data__/smartTableMocks.js.map +0 -1
  366. package/dist/smart-table/index.d.ts.map +0 -1
  367. package/dist/smart-table/index.js.map +0 -1
  368. package/dist/smart-table/smart-table-head.d.ts.map +0 -1
  369. package/dist/smart-table/smart-table-head.js.map +0 -1
  370. package/dist/smart-table/smart-table-row.d.ts.map +0 -1
  371. package/dist/smart-table/smart-table-row.js.map +0 -1
  372. package/dist/smart-table/smart-table-types.d.ts.map +0 -1
  373. package/dist/smart-table/smart-table-types.js.map +0 -1
  374. package/dist/smart-table/smart-table.d.ts.map +0 -1
  375. package/dist/smart-table/smart-table.js.map +0 -1
  376. package/dist/theme/index.d.ts.map +0 -1
  377. package/dist/theme/index.js.map +0 -1
  378. package/dist/theme/theme.d.ts.map +0 -1
  379. package/dist/theme/theme.js.map +0 -1
  380. package/dist/utils/map.d.ts.map +0 -1
  381. package/dist/utils/map.js.map +0 -1
  382. package/dist/utils/projections.d.ts.map +0 -1
  383. package/dist/utils/projections.js.map +0 -1
  384. package/dist/utils/story.d.ts.map +0 -1
  385. package/dist/utils/story.js.map +0 -1
@@ -5,4 +5,3 @@ export interface RCesium3DTilesetProps extends Cesium3DTilesetProps {
5
5
  heightFromGround?: number;
6
6
  }
7
7
  export declare const Cesium3DTileset: React.FC<RCesium3DTilesetProps>;
8
- //# sourceMappingURL=3d.tileset.d.ts.map
@@ -14,15 +14,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Cesium3DTileset = void 0;
17
18
  var cesium_1 = require("cesium");
18
19
  var react_1 = __importDefault(require("react"));
19
20
  var resium_1 = require("resium");
20
21
  var map_1 = require("../map");
21
- exports.Cesium3DTileset = function (props) {
22
+ var Cesium3DTileset = function (props) {
22
23
  var mapViewer = map_1.useCesiumMap();
23
24
  return (react_1.default.createElement(resium_1.Cesium3DTileset, __assign({}, props, { onReady: function (tileset) {
24
- var _a, _b;
25
- (_b = (_a = props).onReady) === null || _b === void 0 ? void 0 : _b.call(_a, tileset);
25
+ var _a;
26
+ (_a = props.onReady) === null || _a === void 0 ? void 0 : _a.call(props, tileset);
26
27
  if (props.isZoomTo) {
27
28
  void mapViewer.zoomTo(tileset);
28
29
  }
@@ -35,4 +36,4 @@ exports.Cesium3DTileset = function (props) {
35
36
  }
36
37
  } })));
37
38
  };
38
- //# sourceMappingURL=3d.tileset.js.map
39
+ exports.Cesium3DTileset = Cesium3DTileset;
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=3d.tileset.update.d.ts.map
@@ -3,4 +3,3 @@
3
3
  https://sandcastle.cesium.com/index.html?#c=fVZtTxs5EP4re3xho0YOkOv1jgC6ElIuiAQKKaWQqnJ2nayL187Z3qCk4r/f+GXf8nKWot3YzzOeGT8z6wWWQRdLTRTFvB2cBl14y1JUznXGfMxbreBSYq798tV9gKOIKBVoESxFJgMqeICVIlqNuTfRFxzFZIozpj9a8Ei8EA5b7JPlVTK5jOgNvep/WfUPh7Sv+vzufdTt/9F/mT8+dK/+QgD6N758MSA6GJ3/HB712gN60H66fHq5Ht0l39K+vvnaWw27h/RmFP+8ueitBqvB+8FqRq+7V/MnMDa8+Kz6KUtieB+MPv8+/Am/i8HBoH2AztvdD0NBlu2n28do+uHHp8fz3rdXKiN91J6qLyS64/eHR5+YHv65b3OwgFRFNrQRkRJTfivFgsZEllmLJMGafBWSxR4TNjqOSRijcyVovEnm5DU30NuBsmacoQUlr+u0BzsX7jv3uoJr4BK53wx+jXkAY4IVucZLIm9p9ALs42CKmSJNt6rXXDreHueYv+XRqIhwAj44Z5D9az20b2jGxITA4c91MiJKf5yBFaW9OaBpmZEiIE0ZAeHAtCPPJU2ppguiEI7j0LlYCdY92hcjxwt9iGZkkh0HpfzuiAJtRgRNpUg/GnX247D9oX3UcJQ3ePrEujhWQqQjEXqPPAoJnRD5ShUJpxmPtJF6CKEI2Qgqe0eCK8EIYmLmVzv5LnaLgpvNYxCJ8T6wOxVWTDImIuMx5bMHwbLUZNggUH3W26XTIPSxQpnBecfWHAJHNOH6vMZp1HzdvstWYh5E6aKHrbE6JSAVMWGw7FfQDztRASSEzhJjoO4HSimnaZb+Y5creJCFtpK3htAPqaOunapguJApZoWInAKLokMzAlRNo/tMTnFEhhYdOsNNp66i44WNRsWwmE6dOksASqGn0Tlbni/vI8ywDN3uTR/Z/xuMYF7UO62YSTxPaGSFWvC8e1XuHNZBiCX7NSG2y/oWkevCJWG9rk9PT3f2oZo+zFaSKIjSHKNxsFMuugVUHOJBZc37hwAj2IKEDltUAuwOzv/awJfxKJzOGfG+DYTSFwR6GQNtbw2pGTxb9743EBQpLwrUb6xqUW1E5kHPB987dZRJ4W9rteVD2bDoUqIzyTcyVSmcNaQzVoG+NcpCcy95KrfFVXOiCGeboLQo5VQ/jEJSQlHbl2oKV9lESxxpT2r6MtitbDPWy7NuMmKCkzDfrrmBrvXLtx0t0zR8KUSZAXNUZiLvQ3cEx8tafkqyY+4Uo8kGowqsWNf9VwCZ57XAsfka9RawxbXHlKdSa+NVEZkFW3Y1n6uj4p210tmE5D6Fjd3a2tSPbTUJZbG0ly6XI/+/0lEY4TOdmDL3a8jNeMhUyCA0OGorHR4nntIJ3r2jOxJtTim390y/V3yz7t1jHkdYafh6QE5HYjZj5DzTGjK5n18SehxPoOzhCmMuC82gyHWUELjCxDUBrM+ZsaMFbr/a7NTELiu72uj6KdRzkksq16E9tb3m3onSS0bOHOVvms6F1OYyEyLU0gQ6IthQrUkGQcIhKmVoJ62cdBLTRUDj0/He2v1vvBdEDG7lsDLNGLunKzLeOztpAb5GY6Bu+ArfLIhkeGkgyeHZtZtECJ204O8mSwvBJlhWLP4H
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=3d.tileset.update.js.map
@@ -3,4 +3,3 @@ import { GeoJsonDataSourceProps } from 'resium/dist/types/src/GeoJsonDataSource/
3
3
  export interface RCesiumGeojsonLayerProps extends GeoJsonDataSourceProps {
4
4
  }
5
5
  export declare const CesiumGeojsonLayer: React.FC<RCesiumGeojsonLayerProps>;
6
- //# sourceMappingURL=geojson.layer.d.ts.map
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.CesiumGeojsonLayer = void 0;
17
18
  var react_1 = __importDefault(require("react"));
18
19
  var resium_1 = require("resium");
19
- exports.CesiumGeojsonLayer = function (props) {
20
+ var CesiumGeojsonLayer = function (props) {
20
21
  return react_1.default.createElement(resium_1.GeoJsonDataSource, __assign({}, props));
21
22
  };
22
- //# sourceMappingURL=geojson.layer.js.map
23
+ exports.CesiumGeojsonLayer = CesiumGeojsonLayer;
@@ -4,4 +4,3 @@ export interface RCesiumImageryLayerProps extends ImageryLayerProps {
4
4
  meta?: any;
5
5
  }
6
6
  export declare const CesiumImageryLayer: React.FC<RCesiumImageryLayerProps>;
7
- //# sourceMappingURL=imagery.layer.d.ts.map
@@ -10,6 +10,25 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
13
32
  var __rest = (this && this.__rest) || function (s, e) {
14
33
  var t = {};
15
34
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -21,18 +40,12 @@ var __rest = (this && this.__rest) || function (s, e) {
21
40
  }
22
41
  return t;
23
42
  };
24
- var __importStar = (this && this.__importStar) || function (mod) {
25
- if (mod && mod.__esModule) return mod;
26
- var result = {};
27
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
28
- result["default"] = mod;
29
- return result;
30
- };
31
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
+ exports.CesiumImageryLayer = void 0;
32
45
  var react_1 = __importStar(require("react"));
33
46
  var resium_1 = require("resium");
34
47
  var map_1 = require("../map");
35
- exports.CesiumImageryLayer = function (props) {
48
+ var CesiumImageryLayer = function (props) {
36
49
  // eslint-disable-next-line
37
50
  var meta = props.meta, restProps = __rest(props, ["meta"]);
38
51
  var mapViewer = map_1.useCesiumMap();
@@ -48,4 +61,4 @@ exports.CesiumImageryLayer = function (props) {
48
61
  }, [meta, mapViewer]);
49
62
  return react_1.default.createElement(resium_1.ImageryLayer, __assign({}, restProps));
50
63
  };
51
- //# sourceMappingURL=imagery.layer.js.map
64
+ exports.CesiumImageryLayer = CesiumImageryLayer;
@@ -5,4 +5,3 @@ export * from './wms.layer';
5
5
  export * from './wmts.layer';
6
6
  export * from './xyz.layer';
7
7
  export * from './osm.layer';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1,13 +1,19 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
5
12
  Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./3d.tileset"));
7
- __export(require("./geojson.layer"));
8
- __export(require("./imagery.layer"));
9
- __export(require("./wms.layer"));
10
- __export(require("./wmts.layer"));
11
- __export(require("./xyz.layer"));
12
- __export(require("./osm.layer"));
13
- //# sourceMappingURL=index.js.map
13
+ __exportStar(require("./3d.tileset"), exports);
14
+ __exportStar(require("./geojson.layer"), exports);
15
+ __exportStar(require("./imagery.layer"), exports);
16
+ __exportStar(require("./wms.layer"), exports);
17
+ __exportStar(require("./wmts.layer"), exports);
18
+ __exportStar(require("./xyz.layer"), exports);
19
+ __exportStar(require("./osm.layer"), exports);
@@ -7,4 +7,3 @@ export interface RCesiumOSMLayerProps extends Partial<RCesiumImageryLayerProps>
7
7
  options: RCesiumOSMLayerOptions;
8
8
  }
9
9
  export declare const CesiumOSMLayer: React.FC<RCesiumOSMLayerProps>;
10
- //# sourceMappingURL=osm.layer.d.ts.map
@@ -25,11 +25,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.CesiumOSMLayer = void 0;
28
29
  var react_1 = __importDefault(require("react"));
29
30
  var cesium_1 = require("cesium");
30
31
  var imagery_layer_1 = require("./imagery.layer");
31
- exports.CesiumOSMLayer = function (props) {
32
+ var CesiumOSMLayer = function (props) {
32
33
  var options = props.options, restProps = __rest(props, ["options"]);
33
34
  return (react_1.default.createElement(imagery_layer_1.CesiumImageryLayer, __assign({}, restProps, { imageryProvider: new cesium_1.OpenStreetMapImageryProvider(options) })));
34
35
  };
35
- //# sourceMappingURL=osm.layer.js.map
36
+ exports.CesiumOSMLayer = CesiumOSMLayer;
@@ -7,4 +7,3 @@ export interface RCesiumWMSLayerProps extends Partial<RCesiumImageryLayerProps>
7
7
  options: RCesiumWMSLayerOptions;
8
8
  }
9
9
  export declare const CesiumWMSLayer: React.FC<RCesiumWMSLayerProps>;
10
- //# sourceMappingURL=wms.layer.d.ts.map
@@ -25,11 +25,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.CesiumWMSLayer = void 0;
28
29
  var react_1 = __importDefault(require("react"));
29
30
  var cesium_1 = require("cesium");
30
31
  var imagery_layer_1 = require("./imagery.layer");
31
- exports.CesiumWMSLayer = function (props) {
32
+ var CesiumWMSLayer = function (props) {
32
33
  var options = props.options, restProps = __rest(props, ["options"]);
33
34
  return (react_1.default.createElement(imagery_layer_1.CesiumImageryLayer, __assign({}, restProps, { imageryProvider: new cesium_1.WebMapServiceImageryProvider(options) })));
34
35
  };
35
- //# sourceMappingURL=wms.layer.js.map
36
+ exports.CesiumWMSLayer = CesiumWMSLayer;
@@ -7,4 +7,3 @@ export interface RCesiumWMTSLayerProps extends Partial<RCesiumImageryLayerProps>
7
7
  options: RCesiumWMTSLayerOptions;
8
8
  }
9
9
  export declare const CesiumWMTSLayer: React.FC<RCesiumWMTSLayerProps>;
10
- //# sourceMappingURL=wmts.layer.d.ts.map
@@ -25,11 +25,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.CesiumWMTSLayer = void 0;
28
29
  var react_1 = __importDefault(require("react"));
29
30
  var cesium_1 = require("cesium");
30
31
  var imagery_layer_1 = require("./imagery.layer");
31
- exports.CesiumWMTSLayer = function (props) {
32
+ var CesiumWMTSLayer = function (props) {
32
33
  var options = props.options, restProps = __rest(props, ["options"]);
33
34
  return (react_1.default.createElement(imagery_layer_1.CesiumImageryLayer, __assign({}, restProps, { imageryProvider: new cesium_1.WebMapTileServiceImageryProvider(options) })));
34
35
  };
35
- //# sourceMappingURL=wmts.layer.js.map
36
+ exports.CesiumWMTSLayer = CesiumWMTSLayer;
@@ -7,4 +7,3 @@ export interface RCesiumXYZLayerProps extends Partial<RCesiumImageryLayerProps>
7
7
  options: UrlTemplateImageryProvider.ConstructorOptions;
8
8
  }
9
9
  export declare const CesiumXYZLayer: React.FC<RCesiumXYZLayerProps>;
10
- //# sourceMappingURL=xyz.layer.d.ts.map
@@ -25,11 +25,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.CesiumXYZLayer = void 0;
28
29
  var react_1 = __importDefault(require("react"));
29
30
  var cesium_1 = require("cesium");
30
31
  var imagery_layer_1 = require("./imagery.layer");
31
- exports.CesiumXYZLayer = function (props) {
32
+ var CesiumXYZLayer = function (props) {
32
33
  var options = props.options, restProps = __rest(props, ["options"]);
33
34
  return (react_1.default.createElement(imagery_layer_1.CesiumImageryLayer, __assign({}, restProps, { imageryProvider: new cesium_1.UrlTemplateImageryProvider(options) })));
34
35
  };
35
- //# sourceMappingURL=xyz.layer.js.map
36
+ exports.CesiumXYZLayer = CesiumXYZLayer;
@@ -45,4 +45,3 @@ declare class LayerManager {
45
45
  private updateLayersOrder;
46
46
  }
47
47
  export default LayerManager;
48
- //# sourceMappingURL=layers-manager.d.ts.map
@@ -96,9 +96,8 @@ var LayerManager = /** @class */ (function () {
96
96
  };
97
97
  LayerManager.prototype.raise = function (layerId, positions) {
98
98
  if (positions === void 0) { positions = 1; }
99
- var _a;
100
99
  var layer = this.findLayerById(layerId);
101
- var order = ((_a = layer) === null || _a === void 0 ? void 0 : _a.meta).zIndex;
100
+ var order = (layer === null || layer === void 0 ? void 0 : layer.meta).zIndex;
102
101
  if (layer) {
103
102
  for (var position = 0; position < positions; position++) {
104
103
  this.mapViewer.imageryLayers.raise(layer);
@@ -108,9 +107,8 @@ var LayerManager = /** @class */ (function () {
108
107
  };
109
108
  LayerManager.prototype.lower = function (layerId, positions) {
110
109
  if (positions === void 0) { positions = 1; }
111
- var _a;
112
110
  var layer = this.findLayerById(layerId);
113
- var order = ((_a = layer) === null || _a === void 0 ? void 0 : _a.meta).zIndex;
111
+ var order = (layer === null || layer === void 0 ? void 0 : layer.meta).zIndex;
114
112
  var lowerLimit = this.getBaseLayersCount();
115
113
  var layerIdx = this.mapViewer.imageryLayers.indexOf(layer);
116
114
  if (layerIdx - positions <= lowerLimit) {
@@ -124,9 +122,8 @@ var LayerManager = /** @class */ (function () {
124
122
  this.updateLayersOrder(layerId, order, order - positions);
125
123
  };
126
124
  LayerManager.prototype.raiseToTop = function (layerId) {
127
- var _a;
128
125
  var layer = this.findLayerById(layerId);
129
- var order = ((_a = layer) === null || _a === void 0 ? void 0 : _a.meta).zIndex;
126
+ var order = (layer === null || layer === void 0 ? void 0 : layer.meta).zIndex;
130
127
  if (layer) {
131
128
  this.mapViewer.imageryLayers.raiseToTop(layer);
132
129
  }
@@ -229,4 +226,3 @@ var LayerManager = /** @class */ (function () {
229
226
  return LayerManager;
230
227
  }());
231
228
  exports.default = LayerManager;
232
- //# sourceMappingURL=layers-manager.js.map
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { ViewerProps } from 'resium/dist/types/src/Viewer/Viewer';
3
3
  import { Viewer as CesiumViewerCls, TerrainProvider } from 'cesium';
4
+ import { Proj } from '../utils/projections';
4
5
  import { IBaseMaps } from './settings/settings';
5
6
  import LayerManager from './layers-manager';
6
- import { CesiumSceneModeEnum, Proj } from '.';
7
+ import { CesiumSceneModeEnum } from './map.types';
7
8
  import './map.css';
8
9
  export declare class CesiumViewer extends CesiumViewerCls {
9
10
  layersManager?: LayerManager;
@@ -43,4 +44,3 @@ export interface CesiumMapProps extends ViewerProps {
43
44
  }
44
45
  export declare const useCesiumMap: () => CesiumViewer;
45
46
  export declare const CesiumMap: React.FC<CesiumMapProps>;
46
- //# sourceMappingURL=map.d.ts.map
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -23,28 +25,42 @@ var __assign = (this && this.__assign) || function () {
23
25
  };
24
26
  return __assign.apply(this, arguments);
25
27
  };
28
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
+ if (k2 === undefined) k2 = k;
30
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
31
+ }) : (function(o, m, k, k2) {
32
+ if (k2 === undefined) k2 = k;
33
+ o[k2] = m[k];
34
+ }));
35
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
36
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
37
+ }) : function(o, v) {
38
+ o["default"] = v;
39
+ });
26
40
  var __importStar = (this && this.__importStar) || function (mod) {
27
41
  if (mod && mod.__esModule) return mod;
28
42
  var result = {};
29
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
30
- result["default"] = mod;
43
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
44
+ __setModuleDefault(result, mod);
31
45
  return result;
32
46
  };
33
47
  var __importDefault = (this && this.__importDefault) || function (mod) {
34
48
  return (mod && mod.__esModule) ? mod : { "default": mod };
35
49
  };
36
50
  Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.CesiumMap = exports.useCesiumMap = exports.CesiumViewer = void 0;
37
52
  var react_1 = __importStar(require("react"));
38
53
  var resium_1 = require("resium");
39
54
  var cesium_1 = require("cesium");
40
55
  var lodash_1 = require("lodash");
41
56
  var map_1 = require("../utils/map");
42
57
  var box_1 = require("../box");
58
+ var projections_1 = require("../utils/projections");
43
59
  var coordinates_tracker_tool_1 = require("./tools/coordinates-tracker.tool");
44
60
  var scale_tracker_tool_1 = require("./tools/scale-tracker.tool");
45
61
  var settings_1 = require("./settings/settings");
46
62
  var layers_manager_1 = __importDefault(require("./layers-manager"));
47
- var _1 = require(".");
63
+ var map_types_1 = require("./map.types");
48
64
  require("./map.css");
49
65
  var DEFAULT_HEIGHT = 212;
50
66
  var DEFAULT_WIDTH = 260;
@@ -60,26 +76,27 @@ exports.CesiumViewer = CesiumViewer;
60
76
  var mapContext = react_1.createContext(null);
61
77
  var MapViewProvider = mapContext.Provider;
62
78
  var cameraPositionRefreshRate = 10000;
63
- exports.useCesiumMap = function () {
79
+ var useCesiumMap = function () {
64
80
  var mapViewer = react_1.useContext(mapContext);
65
81
  if (mapViewer === null) {
66
82
  throw new Error('map context is null, please check the provider');
67
83
  }
68
84
  return mapViewer;
69
85
  };
70
- exports.CesiumMap = function (props) {
71
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
86
+ exports.useCesiumMap = useCesiumMap;
87
+ var CesiumMap = function (props) {
88
+ var _a, _b, _c, _d, _e, _f, _g, _h;
72
89
  var ref = react_1.useRef(null);
73
- var _k = react_1.useState(), mapViewRef = _k[0], setMapViewRef = _k[1];
74
- var _l = react_1.useState(), projection = _l[0], setProjection = _l[1];
75
- var _m = react_1.useState(), showMousePosition = _m[0], setShowMousePosition = _m[1];
76
- var _o = react_1.useState(), showScale = _o[0], setShowScale = _o[1];
77
- var _p = react_1.useState(), locale = _p[0], setLocale = _p[1];
78
- var _q = react_1.useState(), cameraState = _q[0], setCameraState = _q[1];
79
- var _r = react_1.useState(), sceneModes = _r[0], setSceneModes = _r[1];
80
- var _s = react_1.useState(), baseMaps = _s[0], setBaseMaps = _s[1];
81
- var _t = react_1.useState(false), showImageryMenu = _t[0], setShowImageryMenu = _t[1];
82
- var _u = react_1.useState(undefined), imageryMenuPosition = _u[0], setImageryMenuPosition = _u[1];
90
+ var _j = react_1.useState(), mapViewRef = _j[0], setMapViewRef = _j[1];
91
+ var _k = react_1.useState(), projection = _k[0], setProjection = _k[1];
92
+ var _l = react_1.useState(), showMousePosition = _l[0], setShowMousePosition = _l[1];
93
+ var _m = react_1.useState(), showScale = _m[0], setShowScale = _m[1];
94
+ var _o = react_1.useState(), locale = _o[0], setLocale = _o[1];
95
+ var _p = react_1.useState(), cameraState = _p[0], setCameraState = _p[1];
96
+ var _q = react_1.useState(), sceneModes = _q[0], setSceneModes = _q[1];
97
+ var _r = react_1.useState(), baseMaps = _r[0], setBaseMaps = _r[1];
98
+ var _s = react_1.useState(false), showImageryMenu = _s[0], setShowImageryMenu = _s[1];
99
+ var _t = react_1.useState(undefined), imageryMenuPosition = _t[0], setImageryMenuPosition = _t[1];
83
100
  var viewerProps = __assign({ fullscreenButton: true, timeline: false, animation: false, baseLayerPicker: false, geocoder: false, navigationHelpButton: false, homeButton: false, sceneModePicker: false }, props);
84
101
  var getImageryMenuStyle = function (x, y, menuWidth, menuHeight, menuDynamicHeightIncrement) {
85
102
  var container = mapViewRef.container;
@@ -111,11 +128,11 @@ exports.CesiumMap = function (props) {
111
128
  }, [ref, props.imageryContextMenu]);
112
129
  react_1.useEffect(function () {
113
130
  var _a;
114
- setSceneModes((_a = props.sceneModes, (_a !== null && _a !== void 0 ? _a : [
115
- _1.CesiumSceneMode.SCENE2D,
116
- _1.CesiumSceneMode.SCENE3D,
117
- _1.CesiumSceneMode.COLUMBUS_VIEW,
118
- ])));
131
+ setSceneModes((_a = props.sceneModes) !== null && _a !== void 0 ? _a : [
132
+ map_types_1.CesiumSceneMode.SCENE2D,
133
+ map_types_1.CesiumSceneMode.SCENE3D,
134
+ map_types_1.CesiumSceneMode.COLUMBUS_VIEW,
135
+ ]);
119
136
  }, [props.sceneModes]);
120
137
  react_1.useEffect(function () {
121
138
  var _a, _b;
@@ -127,18 +144,18 @@ exports.CesiumMap = function (props) {
127
144
  }, [props.baseMaps, mapViewRef]);
128
145
  react_1.useEffect(function () {
129
146
  var _a;
130
- setProjection((_a = props.projection, (_a !== null && _a !== void 0 ? _a : _1.Proj.WGS84)));
147
+ setProjection((_a = props.projection) !== null && _a !== void 0 ? _a : projections_1.Proj.WGS84);
131
148
  }, [props.projection]);
132
149
  react_1.useEffect(function () {
133
150
  setLocale(props.locale);
134
151
  }, [props.locale]);
135
152
  react_1.useEffect(function () {
136
153
  var _a;
137
- setShowMousePosition((_a = props.showMousePosition, (_a !== null && _a !== void 0 ? _a : true)));
154
+ setShowMousePosition((_a = props.showMousePosition) !== null && _a !== void 0 ? _a : true);
138
155
  }, [props.showMousePosition]);
139
156
  react_1.useEffect(function () {
140
157
  var _a;
141
- setShowScale((_a = props.showScale, (_a !== null && _a !== void 0 ? _a : true)));
158
+ setShowScale((_a = props.showScale) !== null && _a !== void 0 ? _a : true);
142
159
  }, [props.showScale]);
143
160
  react_1.useEffect(function () {
144
161
  var getCameraPosition = function () {
@@ -149,6 +166,14 @@ exports.CesiumMap = function (props) {
149
166
  height: 0,
150
167
  };
151
168
  }
169
+ var getCameraPositionCartographic = function () {
170
+ var camPos = mapViewRef.camera.positionCartographic;
171
+ return {
172
+ longitude: map_1.toDegrees(camPos.longitude),
173
+ latitude: map_1.toDegrees(camPos.latitude),
174
+ height: camPos.height,
175
+ };
176
+ };
152
177
  // https://stackoverflow.com/questions/33348761/get-center-in-cesium-map
153
178
  if (mapViewRef.scene.mode === cesium_1.SceneMode.SCENE3D) {
154
179
  var windowPosition = new cesium_1.Cartesian2(
@@ -159,19 +184,17 @@ exports.CesiumMap = function (props) {
159
184
  var pickRay = mapViewRef.scene.camera.getPickRay(windowPosition);
160
185
  var pickPosition = mapViewRef.scene.globe.pick(pickRay, mapViewRef.scene);
161
186
  var pickPositionCartographic = mapViewRef.scene.globe.ellipsoid.cartesianToCartographic(pickPosition);
162
- return {
163
- longitude: map_1.toDegrees(pickPositionCartographic.longitude),
164
- latitude: map_1.toDegrees(pickPositionCartographic.latitude),
165
- height: mapViewRef.scene.camera.positionCartographic.height,
166
- };
187
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
188
+ return pickPositionCartographic !== undefined
189
+ ? {
190
+ longitude: map_1.toDegrees(pickPositionCartographic.longitude),
191
+ latitude: map_1.toDegrees(pickPositionCartographic.latitude),
192
+ height: mapViewRef.scene.camera.positionCartographic.height,
193
+ }
194
+ : getCameraPositionCartographic();
167
195
  }
168
196
  else {
169
- var camPos = mapViewRef.camera.positionCartographic;
170
- return {
171
- longitude: map_1.toDegrees(camPos.longitude),
172
- latitude: map_1.toDegrees(camPos.latitude),
173
- height: camPos.height,
174
- };
197
+ return getCameraPositionCartographic();
175
198
  }
176
199
  };
177
200
  var intervalHandle = setInterval(function () {
@@ -232,19 +255,19 @@ exports.CesiumMap = function (props) {
232
255
  showImageryMenu &&
233
256
  imageryMenuPosition &&
234
257
  react_1.default.cloneElement(props.imageryContextMenu, {
235
- data: (_b = (_a = mapViewRef) === null || _a === void 0 ? void 0 : _a.layersManager) === null || _b === void 0 ? void 0 : _b.findLayerByPOI(imageryMenuPosition.x, imageryMenuPosition.y),
258
+ data: (_a = mapViewRef === null || mapViewRef === void 0 ? void 0 : mapViewRef.layersManager) === null || _a === void 0 ? void 0 : _a.findLayerByPOI(imageryMenuPosition.x, imageryMenuPosition.y),
236
259
  position: {
237
260
  x: imageryMenuPosition.x,
238
261
  y: imageryMenuPosition.y,
239
262
  },
240
- style: getImageryMenuStyle(imageryMenuPosition.x, imageryMenuPosition.y, (_d = (_c = props.imageryContextMenuSize) === null || _c === void 0 ? void 0 : _c.width, (_d !== null && _d !== void 0 ? _d : DEFAULT_WIDTH)), (_f = (_e = props.imageryContextMenuSize) === null || _e === void 0 ? void 0 : _e.height, (_f !== null && _f !== void 0 ? _f : DEFAULT_HEIGHT)), (_h = (_g = props.imageryContextMenuSize) === null || _g === void 0 ? void 0 : _g.dynamicHeightIncrement, (_h !== null && _h !== void 0 ? _h : DEFAULT_DYNAMIC_HEIGHT_INCREMENT))),
241
- size: (_j = props.imageryContextMenuSize, (_j !== null && _j !== void 0 ? _j : {
263
+ style: getImageryMenuStyle(imageryMenuPosition.x, imageryMenuPosition.y, (_c = (_b = props.imageryContextMenuSize) === null || _b === void 0 ? void 0 : _b.width) !== null && _c !== void 0 ? _c : DEFAULT_WIDTH, (_e = (_d = props.imageryContextMenuSize) === null || _d === void 0 ? void 0 : _d.height) !== null && _e !== void 0 ? _e : DEFAULT_HEIGHT, (_g = (_f = props.imageryContextMenuSize) === null || _f === void 0 ? void 0 : _f.dynamicHeightIncrement) !== null && _g !== void 0 ? _g : DEFAULT_DYNAMIC_HEIGHT_INCREMENT),
264
+ size: (_h = props.imageryContextMenuSize) !== null && _h !== void 0 ? _h : {
242
265
  height: DEFAULT_HEIGHT,
243
266
  width: DEFAULT_WIDTH,
244
- })),
267
+ },
245
268
  handleClose: function () {
246
269
  setShowImageryMenu(!showImageryMenu);
247
270
  },
248
271
  }))));
249
272
  };
250
- //# sourceMappingURL=map.js.map
273
+ exports.CesiumMap = CesiumMap;
@@ -6,4 +6,3 @@ export declare const CesiumSceneMode: {
6
6
  SCENE2D: SceneMode;
7
7
  SCENE3D: SceneMode;
8
8
  };
9
- //# sourceMappingURL=map.types.d.ts.map
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CesiumSceneMode = void 0;
3
4
  var cesium_1 = require("cesium");
4
5
  /* eslint-disable */
5
6
  exports.CesiumSceneMode = {
@@ -9,4 +10,3 @@ exports.CesiumSceneMode = {
9
10
  SCENE3D: cesium_1.SceneMode.SCENE3D,
10
11
  };
11
12
  /* eslint-enable */
12
- //# sourceMappingURL=map.types.js.map
@@ -17,4 +17,3 @@ export declare class CesiumGeographicTilingScheme extends GeographicTilingScheme
17
17
  }
18
18
  export declare const CesiumVerticalOrigin: typeof VerticalOrigin;
19
19
  export declare const CesiumLabelStyle: typeof LabelStyle;
20
- //# sourceMappingURL=proxied.types.d.ts.map
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CesiumLabelStyle = exports.CesiumVerticalOrigin = exports.CesiumGeographicTilingScheme = exports.CesiumEllipsoid = exports.CesiumBoundingSphere = exports.CesiumCartesian3 = exports.CesiumCartesian2 = exports.CesiumConstantPositionProperty = exports.CesiumConstantProperty = exports.CesiumPolylineDashMaterialProperty = void 0;
16
19
  var cesium_1 = require("cesium");
17
20
  // PROXIED CLASSES
18
21
  var CesiumPolylineDashMaterialProperty = /** @class */ (function (_super) {
@@ -84,4 +87,3 @@ exports.CesiumGeographicTilingScheme = CesiumGeographicTilingScheme;
84
87
  exports.CesiumVerticalOrigin = cesium_1.VerticalOrigin;
85
88
  // eslint-disable-next-line @typescript-eslint/naming-convention
86
89
  exports.CesiumLabelStyle = cesium_1.LabelStyle;
87
- //# sourceMappingURL=proxied.types.js.map
@@ -5,4 +5,3 @@ export interface RCesiumBaseMapsProps {
5
5
  baseMaps?: IBaseMaps;
6
6
  }
7
7
  export declare const CesiumBaseMaps: React.FC<RCesiumBaseMapsProps>;
8
- //# sourceMappingURL=base-maps.d.ts.map