@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,25 +1,39 @@
|
|
|
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.VectorLayer = exports.useVectorLayer = void 0;
|
|
10
23
|
var react_1 = __importStar(require("react"));
|
|
11
24
|
var layer_1 = require("ol/layer");
|
|
12
25
|
var map_1 = require("../map");
|
|
13
26
|
var vectorLayerContext = react_1.createContext(null);
|
|
14
27
|
var VectorLayerProvider = vectorLayerContext.Provider;
|
|
15
|
-
|
|
28
|
+
var useVectorLayer = function () {
|
|
16
29
|
var layer = react_1.useContext(vectorLayerContext);
|
|
17
30
|
if (layer === null) {
|
|
18
31
|
throw new Error('vector layer context is null, please check the provider');
|
|
19
32
|
}
|
|
20
33
|
return layer;
|
|
21
34
|
};
|
|
22
|
-
exports.
|
|
35
|
+
exports.useVectorLayer = useVectorLayer;
|
|
36
|
+
var VectorLayer = function (_a) {
|
|
23
37
|
var children = _a.children;
|
|
24
38
|
var map = map_1.useMap();
|
|
25
39
|
var vectorLayer = react_1.useState(new layer_1.Vector())[0];
|
|
@@ -31,4 +45,4 @@ exports.VectorLayer = function (_a) {
|
|
|
31
45
|
}, [map, vectorLayer]);
|
|
32
46
|
return (react_1.default.createElement(VectorLayerProvider, { value: vectorLayer }, children));
|
|
33
47
|
};
|
|
34
|
-
|
|
48
|
+
exports.VectorLayer = VectorLayer;
|
|
@@ -10,31 +10,45 @@ 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
|
+
});
|
|
13
25
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
14
26
|
if (mod && mod.__esModule) return mod;
|
|
15
27
|
var result = {};
|
|
16
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
17
|
-
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);
|
|
18
30
|
return result;
|
|
19
31
|
};
|
|
20
32
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21
33
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
34
|
};
|
|
23
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.VectorTileLayer = exports.useVectorTileLayer = void 0;
|
|
24
37
|
var react_1 = __importStar(require("react"));
|
|
25
38
|
var VectorTile_1 = __importDefault(require("ol/layer/VectorTile"));
|
|
26
39
|
var map_1 = require("../map");
|
|
27
40
|
var style_1 = require("../style");
|
|
28
41
|
var vectorTileLayerContext = react_1.createContext(null);
|
|
29
42
|
var VectorTileLayerProvider = vectorTileLayerContext.Provider;
|
|
30
|
-
|
|
43
|
+
var useVectorTileLayer = function () {
|
|
31
44
|
var layer = react_1.useContext(vectorTileLayerContext);
|
|
32
45
|
if (layer === null) {
|
|
33
46
|
throw new Error('vector tile layer context is null, please check the provider');
|
|
34
47
|
}
|
|
35
48
|
return layer;
|
|
36
49
|
};
|
|
37
|
-
exports.
|
|
50
|
+
exports.useVectorTileLayer = useVectorTileLayer;
|
|
51
|
+
var VectorTileLayer = function (_a) {
|
|
38
52
|
var children = _a.children, options = _a.options, style = _a.style;
|
|
39
53
|
var map = map_1.useMap();
|
|
40
54
|
var vectorTileLayer = react_1.useState(new VectorTile_1.default(__assign(__assign({}, options), { style: style ? style : style_1.defaultStyle })))[0];
|
|
@@ -49,4 +63,4 @@ exports.VectorTileLayer = function (_a) {
|
|
|
49
63
|
}, [vectorTileLayer, style]);
|
|
50
64
|
return (react_1.default.createElement(VectorTileLayerProvider, { value: vectorTileLayer }, children));
|
|
51
65
|
};
|
|
52
|
-
|
|
66
|
+
exports.VectorTileLayer = VectorTileLayer;
|
package/dist/ol-map/map.d.ts
CHANGED
package/dist/ol-map/map.js
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
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.Map = exports.useMap = void 0;
|
|
13
26
|
var react_1 = __importStar(require("react"));
|
|
14
27
|
var ol_1 = require("ol");
|
|
15
28
|
require("./map.css");
|
|
@@ -41,29 +54,30 @@ var getCoordinateFormatString = function (projection) {
|
|
|
41
54
|
return function (coord) { return ''; };
|
|
42
55
|
}
|
|
43
56
|
};
|
|
44
|
-
|
|
57
|
+
var useMap = function () {
|
|
45
58
|
var map = react_1.useContext(mapContext);
|
|
46
59
|
if (map === null) {
|
|
47
60
|
throw new Error('map context is null, please check the provider');
|
|
48
61
|
}
|
|
49
62
|
return map;
|
|
50
63
|
};
|
|
51
|
-
exports.
|
|
64
|
+
exports.useMap = useMap;
|
|
65
|
+
var Map = function (props) {
|
|
52
66
|
var mapElementRef = react_1.useRef(null);
|
|
53
67
|
var allowFullScreen = props.allowFullScreen, showMousePosition = props.showMousePosition, projection = props.projection;
|
|
54
68
|
var map = react_1.useState(new ol_1.Map({
|
|
55
69
|
view: new ol_1.View({
|
|
56
|
-
projection:
|
|
70
|
+
projection: projection !== null && projection !== void 0 ? projection : projections_1.Proj.WGS84,
|
|
57
71
|
}),
|
|
58
72
|
controls: control_1.defaults(),
|
|
59
73
|
}))[0];
|
|
60
74
|
react_1.useEffect(function () {
|
|
61
75
|
var _a;
|
|
62
|
-
map.getView().setCenter((_a = props.center
|
|
76
|
+
map.getView().setCenter((_a = props.center) !== null && _a !== void 0 ? _a : getDefaultCenter(props.projection));
|
|
63
77
|
}, [map, props.center, props.projection]);
|
|
64
78
|
react_1.useEffect(function () {
|
|
65
79
|
var _a;
|
|
66
|
-
map.getView().setZoom((_a = props.zoom
|
|
80
|
+
map.getView().setZoom((_a = props.zoom) !== null && _a !== void 0 ? _a : DEFAULT_ZOOM);
|
|
67
81
|
}, [map, props.zoom, props.projection]);
|
|
68
82
|
// eslint-disable-next-line
|
|
69
83
|
var removeControl = function (ctrType, mapInst) {
|
|
@@ -87,8 +101,8 @@ exports.Map = function (props) {
|
|
|
87
101
|
if (showMousePosition !== undefined && showMousePosition) {
|
|
88
102
|
removeControl(MousePosition_1.default, map);
|
|
89
103
|
map.addControl(new MousePosition_1.default({
|
|
90
|
-
coordinateFormat: getCoordinateFormatString(
|
|
91
|
-
projection:
|
|
104
|
+
coordinateFormat: getCoordinateFormatString(projection !== null && projection !== void 0 ? projection : projections_1.Proj.WGS84),
|
|
105
|
+
projection: projection !== null && projection !== void 0 ? projection : projections_1.Proj.WGS84,
|
|
92
106
|
undefinedHTML: ' ',
|
|
93
107
|
}));
|
|
94
108
|
}
|
|
@@ -100,4 +114,4 @@ exports.Map = function (props) {
|
|
|
100
114
|
react_1.default.createElement("div", { className: "map", ref: mapElementRef }),
|
|
101
115
|
props.children));
|
|
102
116
|
};
|
|
103
|
-
|
|
117
|
+
exports.Map = Map;
|
|
@@ -1,12 +1,18 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
__exportStar(require("./osm"), exports);
|
|
14
|
+
__exportStar(require("./vector-source"), exports);
|
|
15
|
+
__exportStar(require("./wmts"), exports);
|
|
16
|
+
__exportStar(require("./wms"), exports);
|
|
17
|
+
__exportStar(require("./xyz"), exports);
|
|
18
|
+
__exportStar(require("./mvt"), exports);
|
|
@@ -3,19 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MVTSource = exports.getMVTOptions = exports.useVectorTileSource = void 0;
|
|
6
7
|
var react_1 = require("react");
|
|
7
8
|
var VectorTile_1 = __importDefault(require("ol/source/VectorTile"));
|
|
8
9
|
var format_1 = require("ol/format");
|
|
9
10
|
var vector_tile_layer_1 = require("../layers/vector-tile-layer");
|
|
10
11
|
var vectorTileSourceContext = react_1.createContext(null);
|
|
11
|
-
|
|
12
|
+
var useVectorTileSource = function () {
|
|
12
13
|
var source = react_1.useContext(vectorTileSourceContext);
|
|
13
14
|
if (source === null) {
|
|
14
15
|
throw new Error('vector tile source context is null, please check the provider');
|
|
15
16
|
}
|
|
16
17
|
return source;
|
|
17
18
|
};
|
|
18
|
-
exports.
|
|
19
|
+
exports.useVectorTileSource = useVectorTileSource;
|
|
20
|
+
var getMVTOptions = function (optionParams) {
|
|
19
21
|
var url = optionParams.url;
|
|
20
22
|
var mvtOptions = {
|
|
21
23
|
url: url,
|
|
@@ -23,7 +25,8 @@ exports.getMVTOptions = function (optionParams) {
|
|
|
23
25
|
};
|
|
24
26
|
return mvtOptions;
|
|
25
27
|
};
|
|
26
|
-
exports.
|
|
28
|
+
exports.getMVTOptions = getMVTOptions;
|
|
29
|
+
var MVTSource = function (_a) {
|
|
27
30
|
var children = _a.children, options = _a.options;
|
|
28
31
|
var vectorTileLayer = vector_tile_layer_1.useVectorTileLayer();
|
|
29
32
|
react_1.useEffect(function () {
|
|
@@ -31,4 +34,4 @@ exports.MVTSource = function (_a) {
|
|
|
31
34
|
}, [options, vectorTileLayer]);
|
|
32
35
|
return null;
|
|
33
36
|
};
|
|
34
|
-
|
|
37
|
+
exports.MVTSource = MVTSource;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TileOsm = void 0;
|
|
3
4
|
var react_1 = require("react");
|
|
4
5
|
var source_1 = require("ol/source");
|
|
5
6
|
var tile_layer_1 = require("../layers/tile-layer");
|
|
6
|
-
|
|
7
|
+
var TileOsm = function (props) {
|
|
7
8
|
var tileLayer = tile_layer_1.useTileLayer();
|
|
8
9
|
react_1.useEffect(function () {
|
|
9
10
|
tileLayer.setSource(new source_1.OSM());
|
|
10
11
|
}, [tileLayer]);
|
|
11
12
|
return null;
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
+
exports.TileOsm = TileOsm;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Vector } from 'ol/source';
|
|
3
|
-
export declare const useVectorSource: () => Vector
|
|
3
|
+
export declare const useVectorSource: () => Vector;
|
|
4
4
|
export declare const VectorSource: React.FC;
|
|
5
|
-
//# sourceMappingURL=vector-source.d.ts.map
|
|
@@ -1,25 +1,39 @@
|
|
|
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.VectorSource = exports.useVectorSource = void 0;
|
|
10
23
|
var react_1 = __importStar(require("react"));
|
|
11
24
|
var source_1 = require("ol/source");
|
|
12
25
|
var vector_layer_1 = require("../layers/vector-layer");
|
|
13
26
|
var vectorSourceContext = react_1.createContext(null);
|
|
14
27
|
var VectorSourceProvider = vectorSourceContext.Provider;
|
|
15
|
-
|
|
28
|
+
var useVectorSource = function () {
|
|
16
29
|
var source = react_1.useContext(vectorSourceContext);
|
|
17
30
|
if (source === null) {
|
|
18
31
|
throw new Error('vector source context is null, please check the provider');
|
|
19
32
|
}
|
|
20
33
|
return source;
|
|
21
34
|
};
|
|
22
|
-
exports.
|
|
35
|
+
exports.useVectorSource = useVectorSource;
|
|
36
|
+
var VectorSource = function (_a) {
|
|
23
37
|
var children = _a.children;
|
|
24
38
|
var vectorLayer = vector_layer_1.useVectorLayer();
|
|
25
39
|
var vectorSource = react_1.useState(new source_1.Vector())[0];
|
|
@@ -28,4 +42,4 @@ exports.VectorSource = function (_a) {
|
|
|
28
42
|
}, [vectorSource, vectorLayer]);
|
|
29
43
|
return (react_1.default.createElement(VectorSourceProvider, { value: vectorSource }, children));
|
|
30
44
|
};
|
|
31
|
-
|
|
45
|
+
exports.VectorSource = VectorSource;
|
|
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TileWMS = exports.getWMSOptions = void 0;
|
|
6
7
|
var react_1 = require("react");
|
|
7
8
|
var TileWMS_1 = __importDefault(require("ol/source/TileWMS"));
|
|
8
9
|
var tile_layer_1 = require("../layers/tile-layer");
|
|
9
|
-
|
|
10
|
+
var getWMSOptions = function (optionParams) {
|
|
10
11
|
var attributions = optionParams.attributions, url = optionParams.url, params = optionParams.params, serverType = optionParams.serverType, transition = optionParams.transition;
|
|
11
12
|
var wmsOptions = {
|
|
12
13
|
attributions: attributions,
|
|
@@ -17,7 +18,8 @@ exports.getWMSOptions = function (optionParams) {
|
|
|
17
18
|
};
|
|
18
19
|
return wmsOptions;
|
|
19
20
|
};
|
|
20
|
-
exports.
|
|
21
|
+
exports.getWMSOptions = getWMSOptions;
|
|
22
|
+
var TileWMS = function (props) {
|
|
21
23
|
var tileLayer = tile_layer_1.useTileLayer();
|
|
22
24
|
var options = props.options;
|
|
23
25
|
react_1.useEffect(function () {
|
|
@@ -25,4 +27,4 @@ exports.TileWMS = function (props) {
|
|
|
25
27
|
}, [tileLayer, options]);
|
|
26
28
|
return null;
|
|
27
29
|
};
|
|
28
|
-
|
|
30
|
+
exports.TileWMS = TileWMS;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TileWMTS = exports.getWMTSOptions = void 0;
|
|
6
7
|
var react_1 = require("react");
|
|
7
8
|
var source_1 = require("ol/source");
|
|
8
9
|
var proj_1 = require("ol/proj");
|
|
@@ -10,7 +11,7 @@ var WMTS_1 = __importDefault(require("ol/tilegrid/WMTS"));
|
|
|
10
11
|
var extent_1 = require("ol/extent");
|
|
11
12
|
var tile_layer_1 = require("../layers/tile-layer");
|
|
12
13
|
var RESOLUTIONS = 20, TILE_GRANULARITY = 256, WMTS_RESOLUTION_BASIS = 2, LAYER_HEIGHT_WIDHT_RATIO = 2, REQUEST_ENCODING = 'REST';
|
|
13
|
-
|
|
14
|
+
var getWMTSOptions = function (params) {
|
|
14
15
|
var projection = proj_1.get(params.projection);
|
|
15
16
|
var projectionExtent = projection.getExtent();
|
|
16
17
|
var resolutions = new Array(RESOLUTIONS);
|
|
@@ -46,7 +47,8 @@ exports.getWMTSOptions = function (params) {
|
|
|
46
47
|
};
|
|
47
48
|
return wmtsOptions;
|
|
48
49
|
};
|
|
49
|
-
exports.
|
|
50
|
+
exports.getWMTSOptions = getWMTSOptions;
|
|
51
|
+
var TileWMTS = function (props) {
|
|
50
52
|
var tileLayer = tile_layer_1.useTileLayer();
|
|
51
53
|
var options = props.options;
|
|
52
54
|
react_1.useEffect(function () {
|
|
@@ -54,4 +56,4 @@ exports.TileWMTS = function (props) {
|
|
|
54
56
|
}, [tileLayer, options]);
|
|
55
57
|
return null;
|
|
56
58
|
};
|
|
57
|
-
|
|
59
|
+
exports.TileWMTS = TileWMTS;
|
|
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TileXYZ = exports.getXYZOptions = void 0;
|
|
6
7
|
var react_1 = require("react");
|
|
7
8
|
var XYZ_1 = __importDefault(require("ol/source/XYZ"));
|
|
8
9
|
var tile_layer_1 = require("../layers/tile-layer");
|
|
9
|
-
|
|
10
|
+
var getXYZOptions = function (optionParams) {
|
|
10
11
|
var attributions = optionParams.attributions, url = optionParams.url;
|
|
11
12
|
var xyzOptions = {
|
|
12
13
|
attributions: attributions,
|
|
@@ -14,7 +15,8 @@ exports.getXYZOptions = function (optionParams) {
|
|
|
14
15
|
};
|
|
15
16
|
return xyzOptions;
|
|
16
17
|
};
|
|
17
|
-
exports.
|
|
18
|
+
exports.getXYZOptions = getXYZOptions;
|
|
19
|
+
var TileXYZ = function (props) {
|
|
18
20
|
var tileLayer = tile_layer_1.useTileLayer();
|
|
19
21
|
var options = props.options;
|
|
20
22
|
react_1.useEffect(function () {
|
|
@@ -22,4 +24,4 @@ exports.TileXYZ = function (props) {
|
|
|
22
24
|
}, [tileLayer, options]);
|
|
23
25
|
return null;
|
|
24
26
|
};
|
|
25
|
-
|
|
27
|
+
exports.TileXYZ = TileXYZ;
|
package/dist/ol-map/style.d.ts
CHANGED
package/dist/ol-map/style.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultStyle = void 0;
|
|
3
4
|
var style_1 = require("ol/style");
|
|
4
5
|
var fill = new style_1.Fill({
|
|
5
6
|
color: 'rgba(255,255,255,0.4)',
|
|
@@ -19,4 +20,3 @@ exports.defaultStyle = [
|
|
|
19
20
|
stroke: stroke,
|
|
20
21
|
}),
|
|
21
22
|
];
|
|
22
|
-
//# sourceMappingURL=style.js.map
|
package/dist/popover/index.d.ts
CHANGED
package/dist/popover/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Popover = void 0;
|
|
3
4
|
var popover_1 = require("./popover");
|
|
4
|
-
exports
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
Object.defineProperty(exports, "Popover", { enumerable: true, get: function () { return popover_1.McPopover; } });
|
package/dist/popover/popover.js
CHANGED
|
@@ -25,10 +25,11 @@ 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.McPopover = void 0;
|
|
28
29
|
var react_1 = __importDefault(require("react"));
|
|
29
30
|
var core_1 = require("@material-ui/core");
|
|
30
|
-
|
|
31
|
+
var McPopover = function (props) {
|
|
31
32
|
var children = props.children, rest = __rest(props, ["children"]);
|
|
32
33
|
return react_1.default.createElement(core_1.Popover, __assign({}, rest), children);
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
+
exports.McPopover = McPopover;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.items = exports.headCells = void 0;
|
|
3
4
|
exports.headCells = [
|
|
4
5
|
{
|
|
5
6
|
disablePadding: true,
|
|
@@ -14,4 +15,3 @@ exports.items = [
|
|
|
14
15
|
{ first: 'a', second: 1 },
|
|
15
16
|
{ first: 'b', second: 2 },
|
|
16
17
|
];
|
|
17
|
-
//# sourceMappingURL=smartTableMocks.js.map
|
|
@@ -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("./smart-table"), exports);
|
|
14
|
+
__exportStar(require("./smart-table-types"), exports);
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.SmartEnhancedTableHead = void 0;
|
|
7
8
|
var react_1 = __importDefault(require("react"));
|
|
8
9
|
var TableHead_1 = __importDefault(require("@material-ui/core/TableHead"));
|
|
9
10
|
var core_1 = require("@material-ui/core");
|
|
@@ -19,4 +20,3 @@ function SmartEnhancedTableHead(props) {
|
|
|
19
20
|
react_1.default.createElement(core_1.TableSortLabel, { active: orderBy === headCell.id, direction: orderBy === headCell.id ? order : 'asc', onClick: createSortHandler(headCell.id) }, headCell.label))); }))));
|
|
20
21
|
}
|
|
21
22
|
exports.SmartEnhancedTableHead = SmartEnhancedTableHead;
|
|
22
|
-
//# sourceMappingURL=smart-table-head.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CellMetadata, ElementFunction } from './smart-table-types';
|
|
3
2
|
interface SmartTableRowProps<T> {
|
|
4
3
|
item: T;
|
|
@@ -11,4 +10,3 @@ interface SmartTableRowProps<T> {
|
|
|
11
10
|
}
|
|
12
11
|
export declare function SmartTableRow<T>(props: SmartTableRowProps<T>): JSX.Element;
|
|
13
12
|
export {};
|
|
14
|
-
//# sourceMappingURL=smart-table-row.d.ts.map
|