@map-colonies/react-components 3.8.0 → 3.10.1
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.
- package/.storybook/main.js +1 -4
- package/CHANGELOG.md +36 -0
- package/dist/assets/img/map-marker.gif +0 -0
- package/dist/autocomplete/autocomplete.d.ts +0 -1
- package/dist/autocomplete/autocomplete.js +22 -9
- package/dist/autocomplete/index.d.ts +0 -1
- package/dist/autocomplete/index.js +2 -2
- package/dist/box/box.d.ts +0 -1
- package/dist/box/box.js +3 -2
- package/dist/box/index.d.ts +0 -1
- package/dist/box/index.js +2 -2
- package/dist/cesium-map/data-sources/custom.data-source.d.ts +0 -1
- package/dist/cesium-map/data-sources/custom.data-source.js +3 -2
- package/dist/cesium-map/data-sources/drawings.data-source.d.ts +0 -1
- package/dist/cesium-map/data-sources/drawings.data-source.js +29 -16
- package/dist/cesium-map/data-sources/index.d.ts +0 -1
- package/dist/cesium-map/data-sources/index.js +12 -6
- package/dist/cesium-map/entities/entity.d.ts +0 -1
- package/dist/cesium-map/entities/entity.description.d.ts +0 -1
- package/dist/cesium-map/entities/entity.description.js +5 -3
- package/dist/cesium-map/entities/entity.js +3 -2
- package/dist/cesium-map/entities/graphics/polygon.graphics.d.ts +0 -1
- package/dist/cesium-map/entities/graphics/polygon.graphics.js +3 -2
- package/dist/cesium-map/entities/graphics/polyline.graphics.d.ts +0 -1
- package/dist/cesium-map/entities/graphics/polyline.graphics.js +3 -2
- package/dist/cesium-map/entities/graphics/rectangle.graphics.d.ts +0 -1
- package/dist/cesium-map/entities/graphics/rectangle.graphics.js +3 -2
- package/dist/cesium-map/entities/index.d.ts +0 -1
- package/dist/cesium-map/entities/index.js +14 -8
- package/dist/cesium-map/index.d.ts +0 -1
- package/dist/cesium-map/index.js +17 -11
- package/dist/cesium-map/layers/3d.tileset.d.ts +0 -1
- package/dist/cesium-map/layers/3d.tileset.js +5 -4
- package/dist/cesium-map/layers/3d.tileset.update.d.ts +1 -0
- package/dist/cesium-map/layers/3d.tileset.update.js +5 -0
- package/dist/cesium-map/layers/geojson.layer.d.ts +0 -1
- package/dist/cesium-map/layers/geojson.layer.js +3 -2
- package/dist/cesium-map/layers/imagery.layer.d.ts +0 -1
- package/dist/cesium-map/layers/imagery.layer.js +22 -9
- package/dist/cesium-map/layers/index.d.ts +0 -1
- package/dist/cesium-map/layers/index.js +17 -11
- package/dist/cesium-map/layers/osm.layer.d.ts +0 -1
- package/dist/cesium-map/layers/osm.layer.js +3 -2
- package/dist/cesium-map/layers/wms.layer.d.ts +0 -1
- package/dist/cesium-map/layers/wms.layer.js +3 -2
- package/dist/cesium-map/layers/wmts.layer.d.ts +0 -1
- package/dist/cesium-map/layers/wmts.layer.js +3 -2
- package/dist/cesium-map/layers/xyz.layer.d.ts +0 -1
- package/dist/cesium-map/layers/xyz.layer.js +3 -2
- package/dist/cesium-map/layers-manager.d.ts +2 -2
- package/dist/cesium-map/layers-manager.js +3 -7
- package/dist/cesium-map/map.d.ts +2 -2
- package/dist/cesium-map/map.js +59 -37
- package/dist/cesium-map/map.types.d.ts +0 -1
- package/dist/cesium-map/map.types.js +1 -1
- package/dist/cesium-map/proxied.types.d.ts +0 -1
- package/dist/cesium-map/proxied.types.js +4 -2
- package/dist/cesium-map/settings/base-maps.d.ts +0 -1
- package/dist/cesium-map/settings/base-maps.js +22 -12
- package/dist/cesium-map/settings/scene-modes.d.ts +0 -1
- package/dist/cesium-map/settings/scene-modes.js +17 -4
- package/dist/cesium-map/settings/settings.d.ts +0 -1
- package/dist/cesium-map/settings/settings.js +20 -7
- package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.d.ts +3 -0
- package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.js +245 -0
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.d.ts +9 -0
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.js +202 -0
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.d.ts +50 -0
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.js +136 -0
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.d.ts +0 -1
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.js +17 -4
- package/dist/cesium-map/tools/coordinates-tracker.tool.d.ts +0 -1
- package/dist/cesium-map/tools/coordinates-tracker.tool.js +17 -4
- package/dist/cesium-map/tools/draw/drawHelper.d.ts +0 -1
- package/dist/cesium-map/tools/draw/drawHelper.js +16 -3
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.d.ts +1 -2
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.js +3 -2
- package/dist/cesium-map/tools/geojson/index.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/index.js +12 -6
- package/dist/cesium-map/tools/geojson/point.geojson.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/point.geojson.js +3 -2
- package/dist/cesium-map/tools/geojson/polygon.geojson.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/polygon.geojson.js +3 -2
- package/dist/cesium-map/tools/geojson/rectangle.geojson.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/rectangle.geojson.js +17 -4
- package/dist/cesium-map/tools/inspector.tool.d.ts +4 -0
- package/dist/cesium-map/tools/inspector.tool.js +33 -0
- package/dist/cesium-map/tools/scale-tracker.tool.d.ts +0 -1
- package/dist/cesium-map/tools/scale-tracker.tool.js +19 -6
- package/dist/cesium-map/tools/terranian-height.tool.d.ts +4 -0
- package/dist/cesium-map/tools/terranian-height.tool.js +113 -0
- package/dist/cssbaseline/cssbaseline.d.ts +0 -1
- package/dist/cssbaseline/cssbaseline.js +5 -3
- package/dist/cssbaseline/index.d.ts +0 -1
- package/dist/cssbaseline/index.js +3 -3
- package/dist/date-picker/date-picker.d.ts +0 -1
- package/dist/date-picker/date-picker.js +24 -11
- package/dist/date-picker/index.d.ts +0 -1
- package/dist/date-picker/index.js +11 -5
- package/dist/date-range-picker/date-range-picker.d.ts +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.d.ts +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.js +31 -18
- package/dist/date-range-picker/date-range-picker.js +26 -13
- package/dist/date-range-picker/index.d.ts +0 -1
- package/dist/date-range-picker/index.js +12 -6
- package/dist/file-picker/file-picker.css +56 -0
- package/dist/file-picker/file-picker.d.ts +275 -0
- package/dist/file-picker/file-picker.js +151 -0
- package/dist/file-picker/fs-map.json +1557 -0
- package/dist/file-picker/index.d.ts +1 -0
- package/dist/file-picker/index.js +13 -0
- package/dist/file-picker/localization.d.ts +6 -0
- package/dist/file-picker/localization.js +119 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +23 -16
- package/dist/map-filter-container/container-map.d.ts +0 -1
- package/dist/map-filter-container/container-map.js +3 -2
- package/dist/map-filter-container/index.d.ts +0 -1
- package/dist/map-filter-container/index.js +11 -5
- package/dist/map-filter-container/map-filter-container.d.ts +0 -1
- package/dist/map-filter-container/map-filter-container.js +17 -4
- package/dist/map-filter-container/polygon-selection-ui.d.ts +0 -1
- package/dist/map-filter-container/polygon-selection-ui.js +3 -2
- package/dist/models/defaults.d.ts +0 -1
- package/dist/models/defaults.js +0 -1
- package/dist/models/enums.d.ts +2 -2
- package/dist/models/enums.js +2 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +11 -5
- package/dist/ol-map/feature.d.ts +0 -1
- package/dist/ol-map/feature.js +3 -2
- package/dist/ol-map/index.d.ts +0 -1
- package/dist/ol-map/index.js +16 -10
- package/dist/ol-map/interactions/draw.d.ts +0 -1
- package/dist/ol-map/interactions/draw.js +4 -4
- package/dist/ol-map/interactions/index.d.ts +0 -1
- package/dist/ol-map/interactions/index.js +11 -5
- package/dist/ol-map/layers/index.d.ts +0 -1
- package/dist/ol-map/layers/index.js +13 -7
- package/dist/ol-map/layers/tile-layer.d.ts +0 -1
- package/dist/ol-map/layers/tile-layer.js +19 -5
- package/dist/ol-map/layers/vector-layer.d.ts +0 -1
- package/dist/ol-map/layers/vector-layer.js +19 -5
- package/dist/ol-map/layers/vector-tile-layer.d.ts +0 -1
- package/dist/ol-map/layers/vector-tile-layer.js +19 -5
- package/dist/ol-map/map.d.ts +0 -1
- package/dist/ol-map/map.js +24 -10
- package/dist/ol-map/source/index.d.ts +0 -1
- package/dist/ol-map/source/index.js +16 -10
- package/dist/ol-map/source/mvt.d.ts +0 -1
- package/dist/ol-map/source/mvt.js +7 -4
- package/dist/ol-map/source/osm.d.ts +0 -1
- package/dist/ol-map/source/osm.js +3 -2
- package/dist/ol-map/source/vector-source.d.ts +1 -2
- package/dist/ol-map/source/vector-source.js +19 -5
- package/dist/ol-map/source/wms.d.ts +0 -1
- package/dist/ol-map/source/wms.js +5 -3
- package/dist/ol-map/source/wmts.d.ts +0 -1
- package/dist/ol-map/source/wmts.js +5 -3
- package/dist/ol-map/source/xyz.d.ts +0 -1
- package/dist/ol-map/source/xyz.js +5 -3
- package/dist/ol-map/style.d.ts +0 -1
- package/dist/ol-map/style.js +1 -1
- package/dist/popover/index.d.ts +0 -1
- package/dist/popover/index.js +2 -2
- package/dist/popover/popover.d.ts +0 -1
- package/dist/popover/popover.js +3 -2
- package/dist/smart-table/__mock-data__/smartTableMocks.d.ts +0 -1
- package/dist/smart-table/__mock-data__/smartTableMocks.js +1 -1
- package/dist/smart-table/index.d.ts +0 -1
- package/dist/smart-table/index.js +12 -6
- package/dist/smart-table/smart-table-head.d.ts +0 -1
- package/dist/smart-table/smart-table-head.js +1 -1
- package/dist/smart-table/smart-table-row.d.ts +0 -2
- package/dist/smart-table/smart-table-row.js +18 -8
- package/dist/smart-table/smart-table-types.d.ts +0 -2
- package/dist/smart-table/smart-table-types.js +0 -1
- package/dist/smart-table/smart-table.d.ts +0 -1
- package/dist/smart-table/smart-table.js +15 -3
- package/dist/theme/index.d.ts +0 -1
- package/dist/theme/index.js +11 -5
- package/dist/theme/theme.d.ts +0 -1
- package/dist/theme/theme.js +1 -1
- package/dist/utils/map.d.ts +0 -1
- package/dist/utils/map.js +7 -4
- package/dist/utils/projections.d.ts +0 -1
- package/dist/utils/projections.js +1 -1
- package/dist/utils/story.d.ts +0 -1
- package/dist/utils/story.js +0 -1
- package/package.json +8 -4
- package/public/assets/img/map-marker.gif +0 -0
- package/src/lib/cesium-map/context-menu.stories.tsx +1 -2
- package/src/lib/cesium-map/layers/3d.tileset.stories.tsx +1 -2
- package/src/lib/cesium-map/layers/3d.tileset.update.ts +72 -0
- package/src/lib/cesium-map/layers/layers.rect.stories.tsx +171 -0
- package/src/lib/cesium-map/layers-manager.stories.tsx +2 -3
- package/src/lib/cesium-map/layers-manager.ts +3 -1
- package/src/lib/cesium-map/map.stories.tsx +3 -3
- package/src/lib/cesium-map/map.tsx +22 -11
- package/src/lib/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.ts +243 -0
- package/src/lib/cesium-map/terrain-providers/custom/quantized-mesh-decoder.ts +321 -0
- package/src/lib/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.ts +237 -0
- package/src/lib/cesium-map/terrain-providers/terrain-provider-heights-tool.stories.tsx +155 -0
- package/src/lib/cesium-map/terrain-providers/terrain-provider.stories.tsx +185 -0
- package/src/lib/cesium-map/tools/inspector.tool.tsx +15 -0
- package/src/lib/cesium-map/tools/terranian-height.tool.tsx +167 -0
- package/src/lib/date-range-picker/{stories/DateRangePicker.stories.tsx → date-range-picker.stories.tsx} +5 -5
- package/src/lib/file-picker/file-picker.css +56 -0
- package/src/lib/file-picker/file-picker.stories.tsx +444 -0
- package/src/lib/file-picker/file-picker.tsx +177 -0
- package/src/lib/file-picker/fs-map.json +1557 -0
- package/src/lib/file-picker/index.ts +1 -0
- package/src/lib/file-picker/localization.ts +137 -0
- package/src/lib/index.ts +1 -0
- package/src/lib/models/enums.ts +1 -0
- package/src/types/quantized-mesh-decoder.d.ts +1 -0
- package/storybook-static/mock/{tileset → tileset_1}/ll.b3dm +0 -0
- package/storybook-static/mock/{tileset → tileset_1}/lr.b3dm +0 -0
- package/storybook-static/mock/{tileset → tileset_1}/parent.b3dm +0 -0
- package/storybook-static/mock/{tileset → tileset_1}/tileset.json +0 -0
- package/storybook-static/mock/{tileset → tileset_1}/ul.b3dm +0 -0
- package/storybook-static/mock/{tileset → tileset_1}/ur.b3dm +0 -0
- package/tsbuildconfig.json +2 -2
- package/dist/autocomplete/autocomplete.d.ts.map +0 -1
- package/dist/autocomplete/autocomplete.js.map +0 -1
- package/dist/autocomplete/index.d.ts.map +0 -1
- package/dist/autocomplete/index.js.map +0 -1
- package/dist/box/box.d.ts.map +0 -1
- package/dist/box/box.js.map +0 -1
- package/dist/box/index.d.ts.map +0 -1
- package/dist/box/index.js.map +0 -1
- package/dist/cesium-map/data-sources/custom.data-source.d.ts.map +0 -1
- package/dist/cesium-map/data-sources/custom.data-source.js.map +0 -1
- package/dist/cesium-map/data-sources/drawings.data-source.d.ts.map +0 -1
- package/dist/cesium-map/data-sources/drawings.data-source.js.map +0 -1
- package/dist/cesium-map/data-sources/index.d.ts.map +0 -1
- package/dist/cesium-map/data-sources/index.js.map +0 -1
- package/dist/cesium-map/entities/entity.d.ts.map +0 -1
- package/dist/cesium-map/entities/entity.description.d.ts.map +0 -1
- package/dist/cesium-map/entities/entity.description.js.map +0 -1
- package/dist/cesium-map/entities/entity.js.map +0 -1
- package/dist/cesium-map/entities/graphics/polygon.graphics.d.ts.map +0 -1
- package/dist/cesium-map/entities/graphics/polygon.graphics.js.map +0 -1
- package/dist/cesium-map/entities/graphics/polyline.graphics.d.ts.map +0 -1
- package/dist/cesium-map/entities/graphics/polyline.graphics.js.map +0 -1
- package/dist/cesium-map/entities/graphics/rectangle.graphics.d.ts.map +0 -1
- package/dist/cesium-map/entities/graphics/rectangle.graphics.js.map +0 -1
- package/dist/cesium-map/entities/index.d.ts.map +0 -1
- package/dist/cesium-map/entities/index.js.map +0 -1
- package/dist/cesium-map/index.d.ts.map +0 -1
- package/dist/cesium-map/index.js.map +0 -1
- package/dist/cesium-map/layers/3d.tileset.d.ts.map +0 -1
- package/dist/cesium-map/layers/3d.tileset.js.map +0 -1
- package/dist/cesium-map/layers/geojson.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/geojson.layer.js.map +0 -1
- package/dist/cesium-map/layers/imagery.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/imagery.layer.js.map +0 -1
- package/dist/cesium-map/layers/index.d.ts.map +0 -1
- package/dist/cesium-map/layers/index.js.map +0 -1
- package/dist/cesium-map/layers/osm.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/osm.layer.js.map +0 -1
- package/dist/cesium-map/layers/wms.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/wms.layer.js.map +0 -1
- package/dist/cesium-map/layers/wmts.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/wmts.layer.js.map +0 -1
- package/dist/cesium-map/layers/xyz.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/xyz.layer.js.map +0 -1
- package/dist/cesium-map/layers-manager.d.ts.map +0 -1
- package/dist/cesium-map/layers-manager.js.map +0 -1
- package/dist/cesium-map/map.d.ts.map +0 -1
- package/dist/cesium-map/map.js.map +0 -1
- package/dist/cesium-map/map.types.d.ts.map +0 -1
- package/dist/cesium-map/map.types.js.map +0 -1
- package/dist/cesium-map/proxied.types.d.ts.map +0 -1
- package/dist/cesium-map/proxied.types.js.map +0 -1
- package/dist/cesium-map/settings/base-maps.d.ts.map +0 -1
- package/dist/cesium-map/settings/base-maps.js.map +0 -1
- package/dist/cesium-map/settings/scene-modes.d.ts.map +0 -1
- package/dist/cesium-map/settings/scene-modes.js.map +0 -1
- package/dist/cesium-map/settings/settings.d.ts.map +0 -1
- package/dist/cesium-map/settings/settings.js.map +0 -1
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.d.ts.map +0 -1
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.js.map +0 -1
- package/dist/cesium-map/tools/coordinates-tracker.tool.d.ts.map +0 -1
- package/dist/cesium-map/tools/coordinates-tracker.tool.js.map +0 -1
- package/dist/cesium-map/tools/draw/drawHelper.d.ts.map +0 -1
- package/dist/cesium-map/tools/draw/drawHelper.js.map +0 -1
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.js.map +0 -1
- package/dist/cesium-map/tools/geojson/index.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/index.js.map +0 -1
- package/dist/cesium-map/tools/geojson/point.geojson.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/point.geojson.js.map +0 -1
- package/dist/cesium-map/tools/geojson/polygon.geojson.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/polygon.geojson.js.map +0 -1
- package/dist/cesium-map/tools/geojson/rectangle.geojson.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/rectangle.geojson.js.map +0 -1
- package/dist/cesium-map/tools/scale-tracker.tool.d.ts.map +0 -1
- package/dist/cesium-map/tools/scale-tracker.tool.js.map +0 -1
- package/dist/cssbaseline/cssbaseline.d.ts.map +0 -1
- package/dist/cssbaseline/cssbaseline.js.map +0 -1
- package/dist/cssbaseline/index.d.ts.map +0 -1
- package/dist/cssbaseline/index.js.map +0 -1
- package/dist/date-picker/date-picker.d.ts.map +0 -1
- package/dist/date-picker/date-picker.js.map +0 -1
- package/dist/date-picker/index.d.ts.map +0 -1
- package/dist/date-picker/index.js.map +0 -1
- package/dist/date-range-picker/date-range-picker.d.ts.map +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.d.ts.map +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.js.map +0 -1
- package/dist/date-range-picker/date-range-picker.js.map +0 -1
- package/dist/date-range-picker/index.d.ts.map +0 -1
- package/dist/date-range-picker/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/map-filter-container/container-map.d.ts.map +0 -1
- package/dist/map-filter-container/container-map.js.map +0 -1
- package/dist/map-filter-container/index.d.ts.map +0 -1
- package/dist/map-filter-container/index.js.map +0 -1
- package/dist/map-filter-container/map-filter-container.d.ts.map +0 -1
- package/dist/map-filter-container/map-filter-container.js.map +0 -1
- package/dist/map-filter-container/polygon-selection-ui.d.ts.map +0 -1
- package/dist/map-filter-container/polygon-selection-ui.js.map +0 -1
- package/dist/models/defaults.d.ts.map +0 -1
- package/dist/models/defaults.js.map +0 -1
- package/dist/models/enums.d.ts.map +0 -1
- package/dist/models/enums.js.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js.map +0 -1
- package/dist/ol-map/feature.d.ts.map +0 -1
- package/dist/ol-map/feature.js.map +0 -1
- package/dist/ol-map/index.d.ts.map +0 -1
- package/dist/ol-map/index.js.map +0 -1
- package/dist/ol-map/interactions/draw.d.ts.map +0 -1
- package/dist/ol-map/interactions/draw.js.map +0 -1
- package/dist/ol-map/interactions/index.d.ts.map +0 -1
- package/dist/ol-map/interactions/index.js.map +0 -1
- package/dist/ol-map/layers/index.d.ts.map +0 -1
- package/dist/ol-map/layers/index.js.map +0 -1
- package/dist/ol-map/layers/tile-layer.d.ts.map +0 -1
- package/dist/ol-map/layers/tile-layer.js.map +0 -1
- package/dist/ol-map/layers/vector-layer.d.ts.map +0 -1
- package/dist/ol-map/layers/vector-layer.js.map +0 -1
- package/dist/ol-map/layers/vector-tile-layer.d.ts.map +0 -1
- package/dist/ol-map/layers/vector-tile-layer.js.map +0 -1
- package/dist/ol-map/map.d.ts.map +0 -1
- package/dist/ol-map/map.js.map +0 -1
- package/dist/ol-map/source/index.d.ts.map +0 -1
- package/dist/ol-map/source/index.js.map +0 -1
- package/dist/ol-map/source/mvt.d.ts.map +0 -1
- package/dist/ol-map/source/mvt.js.map +0 -1
- package/dist/ol-map/source/osm.d.ts.map +0 -1
- package/dist/ol-map/source/osm.js.map +0 -1
- package/dist/ol-map/source/vector-source.d.ts.map +0 -1
- package/dist/ol-map/source/vector-source.js.map +0 -1
- package/dist/ol-map/source/wms.d.ts.map +0 -1
- package/dist/ol-map/source/wms.js.map +0 -1
- package/dist/ol-map/source/wmts.d.ts.map +0 -1
- package/dist/ol-map/source/wmts.js.map +0 -1
- package/dist/ol-map/source/xyz.d.ts.map +0 -1
- package/dist/ol-map/source/xyz.js.map +0 -1
- package/dist/ol-map/style.d.ts.map +0 -1
- package/dist/ol-map/style.js.map +0 -1
- package/dist/popover/index.d.ts.map +0 -1
- package/dist/popover/index.js.map +0 -1
- package/dist/popover/popover.d.ts.map +0 -1
- package/dist/popover/popover.js.map +0 -1
- package/dist/smart-table/__mock-data__/smartTableMocks.d.ts.map +0 -1
- package/dist/smart-table/__mock-data__/smartTableMocks.js.map +0 -1
- package/dist/smart-table/index.d.ts.map +0 -1
- package/dist/smart-table/index.js.map +0 -1
- package/dist/smart-table/smart-table-head.d.ts.map +0 -1
- package/dist/smart-table/smart-table-head.js.map +0 -1
- package/dist/smart-table/smart-table-row.d.ts.map +0 -1
- package/dist/smart-table/smart-table-row.js.map +0 -1
- package/dist/smart-table/smart-table-types.d.ts.map +0 -1
- package/dist/smart-table/smart-table-types.js.map +0 -1
- package/dist/smart-table/smart-table.d.ts.map +0 -1
- package/dist/smart-table/smart-table.js.map +0 -1
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/theme.d.ts.map +0 -1
- package/dist/theme/theme.js.map +0 -1
- package/dist/utils/map.d.ts.map +0 -1
- package/dist/utils/map.js.map +0 -1
- package/dist/utils/projections.d.ts.map +0 -1
- package/dist/utils/projections.js.map +0 -1
- package/dist/utils/story.d.ts.map +0 -1
- package/dist/utils/story.js.map +0 -1
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
2
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
15
|
if (mod && mod.__esModule) return mod;
|
|
4
16
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
7
19
|
return result;
|
|
8
20
|
};
|
|
9
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.CoordinatesTrackerTool = void 0;
|
|
10
23
|
var react_1 = __importStar(require("react"));
|
|
11
24
|
var cesium_1 = require("cesium");
|
|
12
25
|
var map_1 = require("../map");
|
|
13
26
|
require("./coordinates-tracker.tool.css");
|
|
14
27
|
var __1 = require("..");
|
|
15
|
-
|
|
28
|
+
var CoordinatesTrackerTool = function (props) {
|
|
16
29
|
var mapViewer = map_1.useCesiumMap();
|
|
17
30
|
var ref = react_1.useRef(null);
|
|
18
31
|
var _a = react_1.useState({ x: 0, y: 0 }), position = _a[0], setPosition = _a[1];
|
|
@@ -62,4 +75,4 @@ exports.CoordinatesTrackerTool = function (props) {
|
|
|
62
75
|
}, [position, ref, mapViewer, props.projection]);
|
|
63
76
|
return react_1.default.createElement("div", { className: "trackerPosition", ref: ref });
|
|
64
77
|
};
|
|
65
|
-
|
|
78
|
+
exports.CoordinatesTrackerTool = CoordinatesTrackerTool;
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
2
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
15
|
if (mod && mod.__esModule) return mod;
|
|
4
16
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
7
19
|
return result;
|
|
8
20
|
};
|
|
9
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.DrawHelper = void 0;
|
|
10
23
|
// inspired by https://github.com/leforthomas/cesium-drawhelper
|
|
11
24
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
12
25
|
// @ts-nocheck
|
|
@@ -271,6 +284,7 @@ var DrawHelper = (function () {
|
|
|
271
284
|
},
|
|
272
285
|
//MC_CHANGE
|
|
273
286
|
lineWidth: this.strokeWidth || 4.0,
|
|
287
|
+
// lineWidth : Math.min(this.strokeWidth || 4.0, context._aliasedLineWidthRange[1])
|
|
274
288
|
},
|
|
275
289
|
}),
|
|
276
290
|
});
|
|
@@ -1678,4 +1692,3 @@ var DrawHelper = (function () {
|
|
|
1678
1692
|
return _;
|
|
1679
1693
|
})();
|
|
1680
1694
|
exports.DrawHelper = DrawHelper;
|
|
1681
|
-
//# sourceMappingURL=drawHelper.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FeatureCollection } from 'geojson';
|
|
2
2
|
import { PrimitiveCoordinates } from '../../data-sources';
|
|
3
3
|
import { DrawType } from '../../../models/enums';
|
|
4
|
-
export declare const geoJSONToPrimitive: (type: DrawType, geojson: FeatureCollection
|
|
5
|
-
//# sourceMappingURL=geojson-to-primitive.d.ts.map
|
|
4
|
+
export declare const geoJSONToPrimitive: (type: DrawType, geojson: FeatureCollection) => PrimitiveCoordinates | never;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.geoJSONToPrimitive = void 0;
|
|
3
4
|
var cesium_1 = require("cesium");
|
|
4
5
|
var lodash_1 = require("lodash");
|
|
5
6
|
var enums_1 = require("../../../models/enums");
|
|
6
7
|
var POINTS_NUM = 2;
|
|
7
|
-
|
|
8
|
+
var geoJSONToPrimitive = function (type, geojson) {
|
|
8
9
|
switch (type) {
|
|
9
10
|
case enums_1.DrawType.BOX: {
|
|
10
11
|
if (geojson.features.length !== POINTS_NUM)
|
|
@@ -37,4 +38,4 @@ exports.geoJSONToPrimitive = function (type, geojson) {
|
|
|
37
38
|
throw new Error(type + " type geoJSON still not supported");
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
|
-
|
|
41
|
+
exports.geoJSONToPrimitive = geoJSONToPrimitive;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
__exportStar(require("./polygon.geojson"), exports);
|
|
14
|
+
__exportStar(require("./rectangle.geojson"), exports);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pointToGeoJSON = void 0;
|
|
3
4
|
var cesium_1 = require("cesium");
|
|
4
|
-
|
|
5
|
+
var pointToGeoJSON = function (mapViewer, x, y) {
|
|
5
6
|
var ellipsoid = mapViewer.scene.globe.ellipsoid;
|
|
6
7
|
var cartesian = mapViewer.camera.pickEllipsoid(new cesium_1.Cartesian3(x, y), ellipsoid);
|
|
7
8
|
var cartographic = ellipsoid.cartesianToCartographic(cartesian);
|
|
@@ -17,4 +18,4 @@ exports.pointToGeoJSON = function (mapViewer, x, y) {
|
|
|
17
18
|
},
|
|
18
19
|
};
|
|
19
20
|
};
|
|
20
|
-
|
|
21
|
+
exports.pointToGeoJSON = pointToGeoJSON;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.polygonToGeoJSON = void 0;
|
|
3
4
|
var cesium_1 = require("cesium");
|
|
4
|
-
|
|
5
|
+
var polygonToGeoJSON = function (positions) {
|
|
5
6
|
var coords = positions.map(function (vertex) {
|
|
6
7
|
var posRadians = cesium_1.Cartographic.fromCartesian(vertex);
|
|
7
8
|
return [
|
|
@@ -20,4 +21,4 @@ exports.polygonToGeoJSON = function (positions) {
|
|
|
20
21
|
},
|
|
21
22
|
};
|
|
22
23
|
};
|
|
23
|
-
|
|
24
|
+
exports.polygonToGeoJSON = polygonToGeoJSON;
|
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
2
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
15
|
if (mod && mod.__esModule) return mod;
|
|
4
16
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
7
19
|
return result;
|
|
8
20
|
};
|
|
9
21
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
23
|
};
|
|
12
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.rectangleToGeoJSON = void 0;
|
|
13
26
|
var cesium_1 = require("cesium");
|
|
14
27
|
var turf = __importStar(require("@turf/helpers"));
|
|
15
28
|
var bbox_1 = __importDefault(require("@turf/bbox"));
|
|
16
29
|
var bbox_polygon_1 = __importDefault(require("@turf/bbox-polygon"));
|
|
17
|
-
|
|
30
|
+
var rectangleToGeoJSON = function (positions) {
|
|
18
31
|
var line = turf.lineString([
|
|
19
32
|
[
|
|
20
33
|
cesium_1.Math.toDegrees(positions.west),
|
|
@@ -28,4 +41,4 @@ exports.rectangleToGeoJSON = function (positions) {
|
|
|
28
41
|
var polygon = bbox_polygon_1.default(bbox_1.default(line));
|
|
29
42
|
return polygon;
|
|
30
43
|
};
|
|
31
|
-
|
|
44
|
+
exports.rectangleToGeoJSON = rectangleToGeoJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.InspectorTool = void 0;
|
|
23
|
+
var react_1 = __importStar(require("react"));
|
|
24
|
+
var cesium_1 = require("cesium");
|
|
25
|
+
var map_1 = require("../map");
|
|
26
|
+
var InspectorTool = function (props) {
|
|
27
|
+
var mapViewer = map_1.useCesiumMap();
|
|
28
|
+
react_1.useEffect(function () {
|
|
29
|
+
mapViewer.extend(cesium_1.viewerCesiumInspectorMixin);
|
|
30
|
+
}, [mapViewer]);
|
|
31
|
+
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
32
|
+
};
|
|
33
|
+
exports.InspectorTool = InspectorTool;
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
2
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
15
|
if (mod && mod.__esModule) return mod;
|
|
4
16
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
7
19
|
return result;
|
|
8
20
|
};
|
|
9
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.ScaleTrackerTool = void 0;
|
|
10
23
|
var react_1 = __importStar(require("react"));
|
|
11
24
|
var cesium_1 = require("cesium");
|
|
12
25
|
var lodash_1 = require("lodash");
|
|
@@ -49,8 +62,8 @@ var distances = [
|
|
|
49
62
|
];
|
|
50
63
|
var updateDistanceLegendCesium = function (mapViewer, prevScaleData, setScaleData, locale) {
|
|
51
64
|
var _a, _b;
|
|
52
|
-
var metersUnit = (_a = lodash_1.get(locale, 'METERS_UNIT')
|
|
53
|
-
var kiloMetersUnit = (_b = lodash_1.get(locale, 'KILOMETERS_UNIT')
|
|
65
|
+
var metersUnit = (_a = lodash_1.get(locale, 'METERS_UNIT')) !== null && _a !== void 0 ? _a : 'm';
|
|
66
|
+
var kiloMetersUnit = (_b = lodash_1.get(locale, 'KILOMETERS_UNIT')) !== null && _b !== void 0 ? _b : 'km';
|
|
54
67
|
var scale = {
|
|
55
68
|
barWidth: undefined,
|
|
56
69
|
distanceLabel: undefined,
|
|
@@ -99,7 +112,7 @@ var updateDistanceLegendCesium = function (mapViewer, prevScaleData, setScaleDat
|
|
|
99
112
|
setScaleData(scale);
|
|
100
113
|
};
|
|
101
114
|
/* eslint-enable @typescript-eslint/no-magic-numbers */
|
|
102
|
-
|
|
115
|
+
var ScaleTrackerTool = function (props) {
|
|
103
116
|
var mapViewer = map_1.useCesiumMap();
|
|
104
117
|
var _a = react_1.useState({
|
|
105
118
|
barWidth: undefined,
|
|
@@ -142,4 +155,4 @@ exports.ScaleTrackerTool = function (props) {
|
|
|
142
155
|
left: calcLeft(scaleData.barWidth).toString() + "px",
|
|
143
156
|
} })))));
|
|
144
157
|
};
|
|
145
|
-
|
|
158
|
+
exports.ScaleTrackerTool = ScaleTrackerTool;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TerrainianHeightTool = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var cesium_1 = require("cesium");
|
|
9
|
+
var map_1 = require("../map");
|
|
10
|
+
var LABEL_PIXEL_OFFSET = -25;
|
|
11
|
+
var FIRST_DATA_ROW_IDX = 2;
|
|
12
|
+
var TerrainianHeightTool = function (props) {
|
|
13
|
+
var mapViewer = map_1.useCesiumMap();
|
|
14
|
+
var csvToArray = function (str, delimiter) {
|
|
15
|
+
if (delimiter === void 0) { delimiter = ','; }
|
|
16
|
+
// const headers = str.slice(0, str.indexOf('\n')).split(delimiter);
|
|
17
|
+
var rows = str.slice(str.indexOf('\n') + 1).split('\n');
|
|
18
|
+
var arr = rows.map(function (row) {
|
|
19
|
+
var values = row.split(delimiter);
|
|
20
|
+
var el = cesium_1.Cartographic.fromDegrees(parseFloat(values[0]), parseFloat(values[1]));
|
|
21
|
+
// const el = headers.reduce((object: Record<string, number>, header, index) => {
|
|
22
|
+
// const trimmedHeader = header.trim();
|
|
23
|
+
// object[trimmedHeader] = parseFloat(values[index]);
|
|
24
|
+
// return object;
|
|
25
|
+
// }, {});
|
|
26
|
+
//return el;
|
|
27
|
+
return {
|
|
28
|
+
cartographic: el,
|
|
29
|
+
cartesian: new cesium_1.Cartesian2(parseFloat(values[0]), parseFloat(values[1])),
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
return arr;
|
|
33
|
+
};
|
|
34
|
+
var loadCSV = function (evt) {
|
|
35
|
+
var _a;
|
|
36
|
+
evt.preventDefault();
|
|
37
|
+
evt.persist();
|
|
38
|
+
var reader = new FileReader();
|
|
39
|
+
reader.onload = function (e) {
|
|
40
|
+
var _a;
|
|
41
|
+
var text = (_a = e.target) === null || _a === void 0 ? void 0 : _a.result;
|
|
42
|
+
var parsed = csvToArray(text);
|
|
43
|
+
var ellipsoid = cesium_1.Ellipsoid.WGS84;
|
|
44
|
+
console.log('Loaded CSV content:\n', text);
|
|
45
|
+
void cesium_1.sampleTerrainMostDetailed(mapViewer.terrainProvider, parsed.map(function (item) { return item.cartographic; })).then(function (updatedPositions) {
|
|
46
|
+
console.log(updatedPositions);
|
|
47
|
+
mapViewer.scene.globe.depthTestAgainstTerrain = true;
|
|
48
|
+
mapViewer.entities.suspendEvents();
|
|
49
|
+
mapViewer.entities.removeAll();
|
|
50
|
+
updatedPositions.forEach(function (position, idx) {
|
|
51
|
+
mapViewer.entities.add({
|
|
52
|
+
name: (idx + FIRST_DATA_ROW_IDX).toString(),
|
|
53
|
+
position: ellipsoid.cartographicToCartesian(position),
|
|
54
|
+
billboard: {
|
|
55
|
+
verticalOrigin: cesium_1.VerticalOrigin.BOTTOM,
|
|
56
|
+
scale: 0.7,
|
|
57
|
+
image: 'assets/img/map-marker.gif',
|
|
58
|
+
},
|
|
59
|
+
label: {
|
|
60
|
+
text: (idx + FIRST_DATA_ROW_IDX).toString(),
|
|
61
|
+
font: '14pt monospace',
|
|
62
|
+
fillColor: cesium_1.Color.BLACK,
|
|
63
|
+
style: cesium_1.LabelStyle.FILL_AND_OUTLINE,
|
|
64
|
+
outlineWidth: 4,
|
|
65
|
+
outlineColor: cesium_1.Color.BLACK,
|
|
66
|
+
verticalOrigin: cesium_1.VerticalOrigin.BOTTOM,
|
|
67
|
+
pixelOffset: new cesium_1.Cartesian2(0, LABEL_PIXEL_OFFSET),
|
|
68
|
+
},
|
|
69
|
+
description: "\n Long: " + parsed[idx].cartesian.x + " </br>\n Lat: " + parsed[idx].cartesian.y + " </br>\n Height(m): <span style=\"font-weight: 500\">" + position.height + "</span>\n ",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
mapViewer.entities.resumeEvents();
|
|
73
|
+
if (evt.target.files !== null) {
|
|
74
|
+
exportToCsv("terranian_heights_" + evt.target.files[0].name, parsed);
|
|
75
|
+
evt.target.value = '';
|
|
76
|
+
}
|
|
77
|
+
console.log('Pinned point count is ', mapViewer.entities.values.length);
|
|
78
|
+
}, function (err) {
|
|
79
|
+
console.error('ERROR while sampleTerrainMostDetailed:', err);
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
if ((_a = evt.target.files) === null || _a === void 0 ? void 0 : _a[0]) {
|
|
83
|
+
reader.readAsText(evt.target.files[0]);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
var exportToCsv = function (filename, rows) {
|
|
87
|
+
var processRow = function (row) {
|
|
88
|
+
var finalVal = '';
|
|
89
|
+
finalVal += row.cartesian.x.toString() + ',';
|
|
90
|
+
finalVal += row.cartesian.y.toString() + ',';
|
|
91
|
+
finalVal += row.cartographic.height.toString();
|
|
92
|
+
return finalVal + '\n';
|
|
93
|
+
};
|
|
94
|
+
var csvFile = 'long,lat,height\n';
|
|
95
|
+
rows.forEach(function (row) {
|
|
96
|
+
csvFile += processRow(row);
|
|
97
|
+
});
|
|
98
|
+
var blob = new Blob([csvFile], { type: 'text/csv;charset=utf-8;' });
|
|
99
|
+
var link = document.createElement('a');
|
|
100
|
+
var url = URL.createObjectURL(blob);
|
|
101
|
+
link.setAttribute('href', url);
|
|
102
|
+
link.setAttribute('download', filename);
|
|
103
|
+
link.style.visibility = 'hidden';
|
|
104
|
+
document.body.appendChild(link);
|
|
105
|
+
link.click();
|
|
106
|
+
document.body.removeChild(link);
|
|
107
|
+
};
|
|
108
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
109
|
+
react_1.default.createElement("input", { type: "file", id: "csvFile", accept: ".csv", onChange: function (e) {
|
|
110
|
+
loadCSV(e);
|
|
111
|
+
} })));
|
|
112
|
+
};
|
|
113
|
+
exports.TerrainianHeightTool = TerrainianHeightTool;
|
|
@@ -3,4 +3,3 @@ import { CssBaselineProps } from '@material-ui/core/CssBaseline';
|
|
|
3
3
|
import { ScopedCssBaselineProps } from '@material-ui/core/ScopedCssBaseline';
|
|
4
4
|
export declare const McCssBaseline: React.FC<CssBaselineProps>;
|
|
5
5
|
export declare const McScopedCssBaseline: React.FC<ScopedCssBaselineProps>;
|
|
6
|
-
//# sourceMappingURL=cssbaseline.d.ts.map
|
|
@@ -25,15 +25,17 @@ 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.McScopedCssBaseline = exports.McCssBaseline = void 0;
|
|
28
29
|
var react_1 = __importDefault(require("react"));
|
|
29
30
|
var CssBaseline_1 = __importDefault(require("@material-ui/core/CssBaseline"));
|
|
30
31
|
var ScopedCssBaseline_1 = __importDefault(require("@material-ui/core/ScopedCssBaseline"));
|
|
31
|
-
|
|
32
|
+
var McCssBaseline = function (props) {
|
|
32
33
|
var children = props.children, rest = __rest(props, ["children"]);
|
|
33
34
|
return react_1.default.createElement(CssBaseline_1.default, __assign({}, rest), children);
|
|
34
35
|
};
|
|
35
|
-
exports.
|
|
36
|
+
exports.McCssBaseline = McCssBaseline;
|
|
37
|
+
var McScopedCssBaseline = function (props) {
|
|
36
38
|
var children = props.children, rest = __rest(props, ["children"]);
|
|
37
39
|
return react_1.default.createElement(ScopedCssBaseline_1.default, __assign({}, rest), children);
|
|
38
40
|
};
|
|
39
|
-
|
|
41
|
+
exports.McScopedCssBaseline = McScopedCssBaseline;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScopedCssBaseline = exports.CssBaseline = void 0;
|
|
3
4
|
var cssbaseline_1 = require("./cssbaseline");
|
|
4
|
-
exports
|
|
5
|
-
exports
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
Object.defineProperty(exports, "CssBaseline", { enumerable: true, get: function () { return cssbaseline_1.McCssBaseline; } });
|
|
6
|
+
Object.defineProperty(exports, "ScopedCssBaseline", { enumerable: true, get: function () { return cssbaseline_1.McScopedCssBaseline; } });
|
|
@@ -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,17 +40,11 @@ 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
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32
44
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33
45
|
};
|
|
34
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.DateTimePicker = void 0;
|
|
35
48
|
var react_1 = __importStar(require("react"));
|
|
36
49
|
var locale_1 = require("date-fns/locale");
|
|
37
50
|
var pickers_1 = require("@material-ui/pickers");
|
|
@@ -43,15 +56,15 @@ var defaults_1 = __importDefault(require("../models/defaults"));
|
|
|
43
56
|
var theme_1 = require("../theme");
|
|
44
57
|
require("@map-colonies/react-core/dist/button/styles");
|
|
45
58
|
require("./date-picker.css");
|
|
46
|
-
|
|
59
|
+
var DateTimePicker = function (props) {
|
|
47
60
|
var theme = react_core_1.useTheme();
|
|
48
61
|
var themeMui = theme_1.useMappedMuiTheme(theme);
|
|
49
62
|
var _a = react_1.useState(props.value), value = _a[0], setValue = _a[1];
|
|
50
63
|
var _b = props.format, format = _b === void 0 ? defaults_1.default.DATE_PICKER.dateFormat : _b, _c = props.variant, variant = _c === void 0 ? defaults_1.default.DATE_PICKER.variant : _c, _d = props.disableFuture, disableFuture = _d === void 0 ? defaults_1.default.DATE_PICKER.disableFuture : _d, local = props.local, onChange = props.onChange, _e = props.showTime, showTime = _e === void 0 ? defaults_1.default.DATE_PICKER.showTime : _e, propValue = props.value, resProps = __rest(props, ["format", "variant", "disableFuture", "local", "onChange", "showTime", "value"]);
|
|
51
|
-
var _f =
|
|
64
|
+
var _f = local !== null && local !== void 0 ? local : {
|
|
52
65
|
placeHolderText: defaults_1.default.DATE_PICKER.local.placeHolderText,
|
|
53
66
|
calendarLocale: enums_1.SupportedLocales.EN,
|
|
54
|
-
}
|
|
67
|
+
}, _g = _f.placeHolderText, placeHolderText = _g === void 0 ? defaults_1.default.DATE_PICKER.local.placeHolderText : _g, calendarLocale = _f.calendarLocale;
|
|
55
68
|
var locale = calendarLocale === enums_1.SupportedLocales.HE ? locale_1.he : locale_1.enUS;
|
|
56
69
|
var handleOnChange = function (e) {
|
|
57
70
|
setValue(e);
|
|
@@ -62,4 +75,4 @@ exports.DateTimePicker = function (props) {
|
|
|
62
75
|
showTime && (react_1.default.createElement(pickers_1.KeyboardDateTimePicker, __assign({ variant: variant, placeholder: placeHolderText, onChange: handleOnChange, value: value, disableFuture: disableFuture, format: format }, resProps))),
|
|
63
76
|
!showTime && (react_1.default.createElement(pickers_1.KeyboardDatePicker, __assign({ variant: variant, placeholder: placeHolderText, onChange: handleOnChange, value: value, disableFuture: disableFuture, format: format }, resProps))))));
|
|
64
77
|
};
|
|
65
|
-
|
|
78
|
+
exports.DateTimePicker = DateTimePicker;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
__exportStar(require("./date-picker"), exports);
|