@opengeoweb/core 7.0.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -0
- package/index.esm.d.ts +0 -0
- package/index.esm.js +257 -1259
- package/package.json +11 -10
- package/src/index.d.ts +0 -0
- package/src/lib/GeoWebDemo.stories.d.ts +0 -0
- package/src/lib/components/AppWrapper/AppWrapperConnect.d.ts +0 -0
- package/src/lib/components/AppWrapper/index.d.ts +0 -0
- package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +0 -0
- package/src/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +0 -0
- package/src/lib/components/ComponentsLookUp/componentsLookup.spec.d.ts +0 -0
- package/src/lib/components/ComponentsLookUp/index.d.ts +0 -0
- package/src/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +1 -1
- package/src/lib/components/ConfigurableMap/ConfigurableMapConnect.spec.d.ts +0 -0
- package/src/lib/components/ConfigurableMap/ConfigurableMapConnect.stories.d.ts +0 -0
- package/src/lib/components/ConfigurableMap/index.d.ts +0 -0
- package/src/lib/components/FeatureInfo/GetFeatureInfoButtonConnect.d.ts +0 -0
- package/src/lib/components/FeatureInfo/GetFeatureInfoButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/FeatureInfo/GetFeatureInfoConnect.d.ts +0 -0
- package/src/lib/components/FeatureInfo/GetFeatureInfoConnect.spec.d.ts +0 -0
- package/src/lib/components/FeatureInfo/GetFeatureInfoDialog.d.ts +0 -0
- package/src/lib/components/FeatureInfo/GetFeatureInfoDialog.spec.d.ts +0 -0
- package/src/lib/components/FeatureInfo/index.d.ts +0 -0
- package/src/lib/components/FeatureInfo/utils.d.ts +0 -0
- package/src/lib/components/FeatureInfo/utils.spec.d.ts +0 -0
- package/src/lib/components/LanguageSelect/DemoLanguages.stories.d.ts +0 -0
- package/src/lib/components/LanguageSelect/LanguageSelect.d.ts +0 -0
- package/src/lib/components/LanguageSelect/LanguageSelect.spec.d.ts +0 -0
- package/src/lib/components/LanguageSelect/Languages.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +0 -0
- package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +0 -0
- package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +0 -0
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.d.ts +0 -0
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +0 -0
- package/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerContainerRow.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerContainerRow.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTime.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTimeConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTimeConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/CustomDimensionSelect/CustomDimensionSelectConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/CustomDimensionSelect/CustomDimensionSelectConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/MissingData/MissingData.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/MissingData/MissingDataConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/MissingData/MissingDataConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManager.custom.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManager.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManager.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManager.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerHeaderOptions.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerHeaderOptions.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerMapButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerManagerUtils.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/keywordFilterResultsConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialogConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoList.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoText.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/index.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerList.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListDimensions.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectConnect.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectUtils.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/SearchField/SearchField.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/SearchField/SearchField.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.stories.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupDialogConnect.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +0 -0
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/utils.spec.d.ts +0 -0
- package/src/lib/components/LayerManager/index.d.ts +0 -0
- package/src/lib/components/LayerManager/useFetchServices.d.ts +0 -0
- package/src/lib/components/LayerManager/useFetchServices.spec.d.ts +0 -0
- package/src/lib/components/Legend/LegendConnect.d.ts +0 -0
- package/src/lib/components/Legend/LegendConnect.spec.d.ts +0 -0
- package/src/lib/components/Legend/LegendConnect.stories.d.ts +0 -0
- package/src/lib/components/Legend/LegendMapButtonConnect.d.ts +0 -0
- package/src/lib/components/Legend/LegendMapButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/Legend/index.d.ts +0 -0
- package/src/lib/components/MapControls/ZoomControlsConnect.d.ts +0 -0
- package/src/lib/components/MapControls/ZoomControlsConnect.spec.d.ts +0 -0
- package/src/lib/components/MapControls/index.d.ts +0 -0
- package/src/lib/components/{MapDraw → MapDrawToolRedux}/MapDrawToolRedux.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.DoubleMap.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.Errors.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.FeatureLayers.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.InitialBBoxAndWithout.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.LayerActions.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.MapModuleOverDefaultMap.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.MapPin.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.MultiMapLayerManager.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.SelectorTest.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.SetBaseLayers.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.ToggleControls.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.d.ts +0 -0
- package/src/lib/components/MapView/MapViewConnect.spec.d.ts +0 -0
- package/src/lib/components/MapView/index.d.ts +0 -0
- package/src/lib/components/MapView/types.d.ts +0 -0
- package/src/lib/components/MapView/useKeyboardZoomAndPan.d.ts +0 -0
- package/src/lib/components/MapView/useKeyboardZoomAndPan.spec.d.ts +0 -0
- package/src/lib/components/MapView/useTouchZoomPan.d.ts +0 -0
- package/src/lib/components/MapView/useTouchZoomPan.spec.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectButton.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectButton.spec.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.spec.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.stories.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectSlider.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectSlider.spec.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.spec.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/EnsembleDimensionExample.stories.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConnect.stories.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.spec.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelect.stories.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.spec.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.spec.d.ts +0 -0
- package/src/lib/components/MultiMapDimensionSelect/index.d.ts +0 -0
- package/src/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +0 -0
- package/src/lib/components/MultiMapView/HarmoniePresets/index.d.ts +0 -0
- package/src/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +0 -0
- package/src/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.spec.d.ts +0 -0
- package/src/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.stories.d.ts +0 -0
- package/src/lib/components/MultiMapView/ModelRunInterval/index.d.ts +0 -0
- package/src/lib/components/MultiMapView/MultiMapView.stories.d.ts +0 -0
- package/src/lib/components/MultiMapView/MultiMapView10x10.stories.d.ts +0 -0
- package/src/lib/components/MultiMapView/MultiMapView2x2.stories.d.ts +0 -0
- package/src/lib/components/MultiMapView/MultiMapView4x3.stories.d.ts +0 -0
- package/src/lib/components/MultiMapView/MultiMapViewConnect.d.ts +0 -0
- package/src/lib/components/MultiMapView/MultiMapViewConnect.spec.d.ts +0 -0
- package/src/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +0 -0
- package/src/lib/components/Providers/Providers.d.ts +0 -0
- package/src/lib/components/RouterWrapper/NavigateSetter.d.ts +0 -0
- package/src/lib/components/RouterWrapper/NavigateSetter.spec.d.ts +0 -0
- package/src/lib/components/RouterWrapper/RouterWrapperConnect.d.ts +0 -0
- package/src/lib/components/RouterWrapper/RouterWrapperConnect.spec.d.ts +0 -0
- package/src/lib/components/RouterWrapper/index.d.ts +0 -0
- package/src/lib/components/Snackbar/SnackbarWrapper.d.ts +0 -0
- package/src/lib/components/Snackbar/SnackbarWrapper.spec.d.ts +0 -0
- package/src/lib/components/Snackbar/SnackbarWrapper.stories.d.ts +0 -0
- package/src/lib/components/Snackbar/SnackbarWrapperConnect.d.ts +0 -0
- package/src/lib/components/Snackbar/SnackbarWrapperConnect.spec.d.ts +0 -0
- package/src/lib/components/Snackbar/index.d.ts +0 -0
- package/src/lib/components/SyncGroups/DraggableThings.d.ts +0 -0
- package/src/lib/components/SyncGroups/SimpleTimeSlider.d.ts +0 -0
- package/src/lib/components/SyncGroups/SimpleTimeSliderConnect.d.ts +0 -0
- package/src/lib/components/SyncGroups/SyncGroupList.d.ts +0 -0
- package/src/lib/components/SyncGroups/SyncGroupListItem.d.ts +0 -0
- package/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +0 -0
- package/src/lib/components/SyncGroups/SyncGroupViewer.spec.d.ts +0 -0
- package/src/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +0 -0
- package/src/lib/components/SyncGroups/SyncGroups.SyncMany.stories.d.ts +0 -0
- package/src/lib/components/SyncGroups/SyncGroups.SyncMaps.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSlider.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSlider.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSlider.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButton.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButton.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButtonConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdate.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButton.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButton.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButtonConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/BackwardForwardStepButton/BackwardForwardStepButton.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/BackwardForwardStepButton/BackwardForwardStepButton.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/BackwardForwardStepButton/BackwardForwardStepButtonConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/ControlButtons/ControlButtons.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/ControlButtons/ControlButtonsConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/ControlButtons/ControlButtonsConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/HideSliderButton/HideSliderButton.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/HideSliderButton/HideSliderButton.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButton.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButton.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButtonConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenu.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButtonConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButton.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButton.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonComponents.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonsConnect.d.ts +0 -0
- package/src/lib/components/{MapDraw/DrawingTool/DrawingToolConnect.spec.d.ts → TimeSlider/TimeSliderButtons/TimeSliderButtonsConnect.integration.spec.d.ts} +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.d.ts +1 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButton.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButton.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButton.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButtonConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButtonConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButtonConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderClock/ClockContainer.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderClock/PopperMenu.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderClock/TimeSliderClock.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderClock/TimeSliderClock.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderClock/TimeSliderClock.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderClock/TimeSliderClockConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderClock/TimeSliderClockConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderConnect.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBox.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBox.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxConnect.d.ts +4 -8
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxMouseEvents.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxMouseEvents.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxRenderFunctions.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.stories.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendConnect.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawBackground.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawBackground.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawCurrentTime.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawNeedle.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeScale.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeScale.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeSliderLegend.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/index.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/timeSliderLegendUtils.d.ts +0 -0
- package/src/lib/components/TimeSlider/TimeSliderLegend/timeSliderLegenedUtils.spec.d.ts +0 -0
- package/src/lib/components/TimeSlider/constants.d.ts +0 -0
- package/src/lib/components/TimeSlider/index.d.ts +0 -0
- package/src/lib/components/TimeSlider/timeSliderUtils.d.ts +1 -20
- package/src/lib/components/TimeSlider/timeSliderUtils.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLite.d.ts +3 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLite.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLite.stories.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderDraggableNeedle.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderDraggableNeedle.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteBackground.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteBackground.stories.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteBackgroundSvg.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteBackgroundSvg.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteClickableTimeline.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteBackground/TimeSliderLiteClickableTimeline.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteButtons/ControlButtonGroup/ControlButtonGroup.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteButtons/HideButton/HideButton.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteButtons/MenuButton/MenuButton.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteButtons/PlayButton/PlayButton.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteButtons/StepButton/StepButton.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteButtons/TimeSliderLiteButtonUtils.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteConnect.d.ts +6 -6
- package/src/lib/components/TimeSliderLite/TimeSliderLiteConnect.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteConnect.stories.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/AnimationSpeedOptions/AnimationSpeedOptions.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/AnimationSpeedOptions/AnimationSpeedOptions.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/SubmenuSelectLabel.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/SubmenuWrapper.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/SubmenuWrapper.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeRangeOptions/DayHourSelector.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeRangeOptions/DayHourSelector.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeRangeOptions/TimeRangeOptions.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeSliderLiteOptionsMenu.d.ts +1 -1
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeSliderLiteOptionsMenu.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeStepOptions/TimeStepOptions.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeStepOptions/TimeStepOptions.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeStepOptions/TimeStepSelector.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/UpdateIntervalOptions/UpdateIntervalOptions.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/UpdateIntervalOptions/UpdateIntervalOptions.spec.d.ts +0 -0
- package/src/lib/components/TimeSliderLite/index.d.ts +1 -1
- package/src/lib/components/TimeSliderLite/timeSliderLiteUtils.d.ts +1 -1
- package/src/lib/components/TimeSliderLite/timeSliderLiteUtils.spec.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTree.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTree.spec.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.spec.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeHeader.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSLoader.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSLoader.spec.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSLoader.stories.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSLoaderConnect.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +0 -0
- package/src/lib/components/WMSLoader/WMSServerList/WMSServerList.spec.d.ts +0 -0
- package/src/lib/hooks/index.d.ts +0 -0
- package/src/lib/hooks/useSetupDialog/index.d.ts +0 -0
- package/src/lib/hooks/useSetupDialog/useSetupDialog.d.ts +0 -0
- package/src/lib/hooks/useSetupDialog/useSetupDialog.spec.d.ts +0 -0
- package/src/lib/index.d.ts +1 -3
- package/src/lib/storybookUtils/HelperComponents.d.ts +0 -0
- package/src/lib/storybookUtils/defaultStorySettings.d.ts +0 -0
- package/src/lib/storybookUtils/store.d.ts +0 -0
- package/src/lib/storyshots/Storyshots.spec.d.ts +0 -0
- package/src/lib/utils/defaultConfigurations.d.ts +0 -0
- package/src/lib/utils/defaultTestSettings.d.ts +3 -19
- package/src/lib/utils/dimensionUtils.d.ts +0 -0
- package/src/lib/utils/dimensionUtils.spec.d.ts +0 -0
- package/src/lib/utils/jsonPresetFilter.d.ts +0 -0
- package/src/lib/utils/jsonPresetFilter.spec.d.ts +0 -0
- package/src/lib/utils/languageTranslation.d.ts +0 -0
- package/src/lib/utils/languagesService.d.ts +0 -0
- package/src/lib/utils/sanitizeHTML.d.ts +0 -0
- package/src/lib/utils/sanitizeHTML.spec.d.ts +0 -0
- package/src/lib/utils/testDimensionData.d.ts +0 -0
- package/src/lib/utils/testLayers.d.ts +0 -0
- package/src/lib/utils/testUtils.d.ts +0 -0
- package/src/lib/utils/translationUpdater.d.ts +0 -0
- package/src/lib/utils/verticalLevels.d.ts +0 -0
- package/src/lib/components/MapDraw/DrawingTool/DrawingTool.stories.d.ts +0 -25
- package/src/lib/components/MapDraw/DrawingTool/DrawingToolConnect.d.ts +0 -14
- package/src/lib/components/MapDraw/DrawingTool/DrawingToolConnect.stories.d.ts +0 -25
- package/src/lib/components/MapDraw/DrawingTool/DrawingToolDialog.d.ts +0 -32
- package/src/lib/components/MapDraw/DrawingTool/DrawingToolDialog.spec.d.ts +0 -1
- package/src/lib/components/MapDraw/DrawingTool/DrawingToolMapButtonConnect.d.ts +0 -8
- package/src/lib/components/MapDraw/DrawingTool/DrawingToolMapButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/MapDraw/DrawingTool/index.d.ts +0 -3
- package/src/lib/components/MapDraw/DrawingTool/useAreaDrawDialogAction.d.ts +0 -10
- package/src/lib/components/MapDraw/DrawingTool/useAreaDrawDialogAction.spec.d.ts +0 -1
- package/src/lib/components/MapDraw/DrawingToolForm/DrawingToolForm.d.ts +0 -23
- package/src/lib/components/MapDraw/DrawingToolForm/DrawingToolForm.spec.d.ts +0 -1
- package/src/lib/components/MapDraw/DrawingToolForm/DrawingToolFormConnect.d.ts +0 -4
- package/src/lib/components/MapDraw/DrawingToolForm/DrawingToolFormConnect.spec.d.ts +0 -1
- package/src/lib/components/MapDraw/DrawingToolForm/index.d.ts +0 -2
- package/src/lib/components/MapDraw/MapDraw.stories.d.ts +0 -33
- package/src/lib/components/MapDraw/MapDrawContext.d.ts +0 -11
- package/src/lib/components/MapDraw/MapDrawContext.spec.d.ts +0 -1
- package/src/lib/components/MapDraw/MapDrawContext.stories.d.ts +0 -6
- package/src/lib/components/MapDraw/MapDrawTool.stories.d.ts +0 -12
- package/src/lib/components/MapDraw/MapDrawToolDoubleControls.stories.d.ts +0 -6
- package/src/lib/components/MapDraw/MapDrawToolIntersection.stories.d.ts +0 -11
- package/src/lib/components/MapDraw/index.d.ts +0 -4
- package/src/lib/components/MapDraw/storyComponents/EditModeButton.d.ts +0 -8
- package/src/lib/components/MapDraw/storyComponents/FeatureInfo.d.ts +0 -3
- package/src/lib/components/MapDraw/storyComponents/FeatureInfoHTML.d.ts +0 -3
- package/src/lib/components/MapDraw/storyComponents/FeatureLayers.d.ts +0 -8
- package/src/lib/components/MapDraw/storyComponents/GeoJSONTextField.d.ts +0 -11
- package/src/lib/components/MapDraw/storyComponents/IntersectionSelect.d.ts +0 -11
- package/src/lib/components/MapDraw/storyComponents/MapDrawGeoJSON.d.ts +0 -51
- package/src/lib/components/MapDraw/storyComponents/StoryLayout.d.ts +0 -9
- package/src/lib/components/MapDraw/storyComponents/Synops.d.ts +0 -3
- package/src/lib/components/MapDraw/storyComponents/ToolButton.d.ts +0 -9
- package/src/lib/components/MapDraw/useMapDrawTool.d.ts +0 -105
- package/src/lib/components/MapDraw/useMapDrawTool.spec.d.ts +0 -1
- package/src/lib/components/MapWarning/MapWarningProperties.d.ts +0 -23
- package/src/lib/components/MapWarning/MapWarningProperties.spec.d.ts +0 -1
- package/src/lib/components/TimeSlider/TimeSliderButtons/BackwardForwardStepButton/BackwardForwardStepButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonsConnect.spec.d.ts +0 -1
package/index.esm.js
CHANGED
|
@@ -2,18 +2,18 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { forwardRef, useContext, useCallback, useEffect, createElement, PureComponent, useState, useRef, useLayoutEffect } from 'react';
|
|
3
3
|
import { Grid, Box as Box$2, MenuItem, Typography, useTheme as useTheme$2, Button, Popper, ListItemText, ListItemIcon, FormControl, InputLabel, Paper, List, ListItemButton, CircularProgress, ListSubheader, Dialog, DialogTitle, DialogContent, DialogContentText, TextField, InputAdornment, DialogActions, LinearProgress, Backdrop, ListItem, ListItemSecondaryAction, Checkbox, Switch, styled as styled$1, Slider, Menu, Card, IconButton, Select, CardContent, RadioGroup, FormControlLabel, Radio, ToggleButtonGroup, ToggleButton, Divider, Tooltip, ButtonGroup, Snackbar } from '@mui/material';
|
|
4
4
|
import { CustomIconButton, TooltipSelect, AlertIcon, useControlledTooltip, CustomTooltip, tooltipContainerStyles, sliderHeaderStyle, CustomSlider, ToggleMenu, AlertBanner, CustomAccordion, ToolContainerDraggable, calculateDialogSizeAndPosition, CustomToggleButton, SearchHighlight, dateUtils, useMakeSureContainerStaysInsideWindow, withEggs } from '@opengeoweb/shared';
|
|
5
|
-
import { CollapseSmall, CollapseMedium, CollapseLarge, CollapseWindow, ExpandWindow, LayersAdd, Copy, None, FastForward, AutoUpdateActive, Both, Visibility, VisibilityOff, Delete, DragHandle as DragHandle$1, Cached, Add, MapAdd, Filter, Search, Clear, Info, DimensionsOther, DimensionsElevation, DimensionsRefTime, DimensionsTime, Edit, Close, Layers, Equalizer, Link, LinkOff, AutoUpdateInActive, Speed, Clock, Now, Animation, Options, Pause, Play, StepForward, StepBackward, dragHandlePath, ChevronDown, ChevronUp, List as List$1, ChevronRight, ChevronLeft, Resize, ExitDomain,
|
|
5
|
+
import { CollapseSmall, CollapseMedium, CollapseLarge, CollapseWindow, ExpandWindow, LayersAdd, Copy, None, FastForward, AutoUpdateActive, Both, Visibility, VisibilityOff, Delete, DragHandle as DragHandle$1, Cached, Add, MapAdd, Filter, Search, Clear, Info, DimensionsOther, DimensionsElevation, DimensionsRefTime, DimensionsTime, Edit, Close, Layers, Equalizer, Link, LinkOff, AutoUpdateInActive, Speed, Clock, Now, Animation, Options, Pause, Play, StepForward, StepBackward, dragHandlePath, ChevronDown, ChevronUp, List as List$1, ChevronRight, ChevronLeft, Resize, ExitDomain, ThemeWrapper, lightTheme } from '@opengeoweb/theme';
|
|
6
6
|
import { useDispatch, useSelector, connect, Provider } from 'react-redux';
|
|
7
|
-
import { uiTypes, uiSelectors, uiActions, layerTypes, layerUtils, layerActions, layerSelectors, serviceSelectors, serviceActions, mapSelectors, mapActions, mapEnums, mapConstants, filterLayers, getUserAddedServices, layerSelectSelectors, layerSelectActions, storeUtils, snackbarActions, layerSelectTypes, mapUtils, genericActions, syncConstants,
|
|
7
|
+
import { uiTypes, uiSelectors, uiActions, layerTypes, layerUtils, layerActions, layerSelectors, serviceSelectors, serviceActions, mapSelectors, mapActions, mapEnums, mapConstants, filterLayers, getUserAddedServices, layerSelectSelectors, layerSelectActions, storeUtils, snackbarActions, layerSelectTypes, mapUtils, genericActions, syncConstants, defaultLayers, mapStoreActions, getSingularDrawtoolDrawLayerId, syncGroupsSelectors, syncGroupsSelector, snackbarModuleConfig, snackbarSelectors, coreModuleConfig, routerUtils, routerModuleConfig, appModuleConfig, appActions } from '@opengeoweb/store';
|
|
8
8
|
import { ReactSortable } from 'react-sortablejs';
|
|
9
9
|
import { webmapUtils, WMGetServiceFromStore, getCapabilities, LayerType, clearImageCache, WMLayer } from '@opengeoweb/webmap';
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
|
-
import _, { isEqual as isEqual$1, debounce, groupBy, throttle as throttle$1,
|
|
11
|
+
import _, { isEqual as isEqual$1, debounce, groupBy, throttle as throttle$1, range } from 'lodash';
|
|
12
12
|
import Box$3 from '@mui/material/Box';
|
|
13
13
|
import Typography$1 from '@mui/material/Typography';
|
|
14
14
|
import Grid$1 from '@mui/material/Grid';
|
|
15
|
-
import { LegendLayout, MapControlButton, ZoomControls, CanvasComponent, MapView, MapViewLayer, LegendDialog,
|
|
16
|
-
import { ReactHookFormProvider, defaultFormOptions, ReactHookFormTextField
|
|
15
|
+
import { LegendLayout, MapControlButton, ZoomControls, CanvasComponent, MapView, MapViewLayer, LegendDialog, emptyGeoJSON, MapControls, publicLayers } from '@opengeoweb/webmap-react';
|
|
16
|
+
import { ReactHookFormProvider, defaultFormOptions, ReactHookFormTextField } from '@opengeoweb/form-fields';
|
|
17
17
|
import moment from 'moment';
|
|
18
18
|
import Draggable from 'react-draggable';
|
|
19
19
|
import { flushSync } from 'react-dom';
|
|
@@ -11856,7 +11856,7 @@ var styles$6 = {
|
|
|
11856
11856
|
boxSizing: 'border-box'
|
|
11857
11857
|
}
|
|
11858
11858
|
};
|
|
11859
|
-
var calculateStartSize
|
|
11859
|
+
var calculateStartSize = function calculateStartSize(minSize, prefSize, startPosition) {
|
|
11860
11860
|
var _calculateDialogSizeA = calculateDialogSizeAndPosition(),
|
|
11861
11861
|
calcWidth = _calculateDialogSizeA.width,
|
|
11862
11862
|
calcHeight = _calculateDialogSizeA.height;
|
|
@@ -11907,7 +11907,7 @@ var LayerManager = function LayerManager(_ref) {
|
|
|
11907
11907
|
width: 100,
|
|
11908
11908
|
height: 126
|
|
11909
11909
|
};
|
|
11910
|
-
var startSizeCalc = calculateStartSize
|
|
11910
|
+
var startSizeCalc = calculateStartSize(minSize, size, startPosition);
|
|
11911
11911
|
var _React$useState = React.useState(startSizeCalc),
|
|
11912
11912
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
11913
11913
|
sizeInState = _React$useState2[0],
|
|
@@ -12169,7 +12169,7 @@ var mergePresetsAndUserAddedServices = function mergePresetsAndUserAddedServices
|
|
|
12169
12169
|
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
12170
12170
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
12171
12171
|
* */
|
|
12172
|
-
var getDialogType
|
|
12172
|
+
var getDialogType = function getDialogType(mapId, isMultiMap, isDocked) {
|
|
12173
12173
|
if (isDocked) {
|
|
12174
12174
|
return "".concat(uiTypes.DialogTypes.DockedLayerManager, "-").concat(mapId);
|
|
12175
12175
|
}
|
|
@@ -12209,7 +12209,7 @@ var LayerManagerConnect = function LayerManagerConnect(_ref) {
|
|
|
12209
12209
|
_ref$source = _ref.source,
|
|
12210
12210
|
source = _ref$source === void 0 ? 'app' : _ref$source;
|
|
12211
12211
|
var dispatch = useDispatch();
|
|
12212
|
-
var dialogType = getDialogType
|
|
12212
|
+
var dialogType = getDialogType(initialMapId, isMultiMap, isDocked);
|
|
12213
12213
|
var activeMapId = useSelector(function (store) {
|
|
12214
12214
|
return uiSelectors.getDialogMapId(store, dialogType);
|
|
12215
12215
|
});
|
|
@@ -16571,11 +16571,6 @@ var AutoUpdateButton = function AutoUpdateButton(_ref) {
|
|
|
16571
16571
|
var millisecondsInSecond = 1000;
|
|
16572
16572
|
var speedFactors = [0.1, 0.2, 0.5, 1, 2, 4, 8, 16]; // Declares available animation speed multipliers for default delay
|
|
16573
16573
|
|
|
16574
|
-
var getSelectedTime = function getSelectedTime(timeDimension) {
|
|
16575
|
-
var currentValueIsValid = timeDimension && timeDimension.currentValue && dateUtils.isValid(dateUtils.utc(timeDimension.currentValue));
|
|
16576
|
-
var selectedTime = currentValueIsValid && timeDimension ? dateUtils.unix(dateUtils.utc(timeDimension.currentValue)) : dateUtils.unix(dateUtils.utc());
|
|
16577
|
-
return selectedTime;
|
|
16578
|
-
};
|
|
16579
16574
|
/**
|
|
16580
16575
|
* Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
|
|
16581
16576
|
*/
|
|
@@ -16589,27 +16584,11 @@ var getTimeBounds = function getTimeBounds(dimensions) {
|
|
|
16589
16584
|
});
|
|
16590
16585
|
var startTime = timeDimension && timeDimension.minValue ? dateUtils.unix(dateUtils.utc(timeDimension.minValue)) : defaultStartEnd;
|
|
16591
16586
|
var endTime = timeDimension && timeDimension.maxValue ? dateUtils.unix(dateUtils.utc(timeDimension.maxValue)) : defaultStartEnd;
|
|
16592
|
-
var selectedTime = getSelectedTime(timeDimension);
|
|
16593
16587
|
return {
|
|
16594
|
-
selectedTime: selectedTime,
|
|
16595
16588
|
startTime: startTime,
|
|
16596
16589
|
endTime: endTime
|
|
16597
16590
|
};
|
|
16598
16591
|
};
|
|
16599
|
-
/**
|
|
16600
|
-
* Returns time bounds as *Moment* time instances from the given dimension. If no time dimension given, current time is returned as default
|
|
16601
|
-
*/
|
|
16602
|
-
var getMomentTimeBounds = function getMomentTimeBounds(dimensions) {
|
|
16603
|
-
var _getTimeBounds = getTimeBounds(dimensions),
|
|
16604
|
-
selectedTime = _getTimeBounds.selectedTime,
|
|
16605
|
-
startTime = _getTimeBounds.startTime,
|
|
16606
|
-
endTime = _getTimeBounds.endTime;
|
|
16607
|
-
return {
|
|
16608
|
-
selectedTime: moment.unix(selectedTime),
|
|
16609
|
-
startTime: moment.unix(startTime),
|
|
16610
|
-
endTime: moment.unix(endTime)
|
|
16611
|
-
};
|
|
16612
|
-
};
|
|
16613
16592
|
var scalingCoefficient = function scalingCoefficient(end, start, width) {
|
|
16614
16593
|
return width / (end - start);
|
|
16615
16594
|
};
|
|
@@ -16637,27 +16616,6 @@ var setNewRoundedTime = function setNewRoundedTime(x, centerTime, width, seconds
|
|
|
16637
16616
|
var selectedTimeString = moment.unix(newTime).toISOString();
|
|
16638
16617
|
onsetNewDateDebounced(selectedTimeString, onSetNewDate);
|
|
16639
16618
|
};
|
|
16640
|
-
var getDataLimitsFromLayers = function getDataLimitsFromLayers(layers) {
|
|
16641
|
-
return layers.reduce(function (_ref, layer) {
|
|
16642
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
16643
|
-
start = _ref2[0],
|
|
16644
|
-
end = _ref2[1];
|
|
16645
|
-
var dimension = webmapUtils.getWMJSTimeDimensionForLayerId(layer.id);
|
|
16646
|
-
if (dimension) {
|
|
16647
|
-
var lastValue = moment(dimension.getLastValue()).unix();
|
|
16648
|
-
var firstValue = moment(dimension.getFirstValue()).unix();
|
|
16649
|
-
var newLast = lastValue > end ? lastValue : end;
|
|
16650
|
-
var newFirst = firstValue < start ? firstValue : start;
|
|
16651
|
-
return [newFirst, newLast];
|
|
16652
|
-
}
|
|
16653
|
-
return [start, end];
|
|
16654
|
-
},
|
|
16655
|
-
/* Using the maximum 32-bit value and 0 as starting points
|
|
16656
|
-
* bigger values like Number.MAX_VALUE or Number.MAX_SAFE_INTEGER
|
|
16657
|
-
* cause weird behaviour as timestamps break at 32bit limit (year 2038)
|
|
16658
|
-
*/
|
|
16659
|
-
[2147483647, 0]);
|
|
16660
|
-
};
|
|
16661
16619
|
var setPreviousTimeStep = function setPreviousTimeStep(timeStep, currentTime, dataStartTime, onSetNewDate) {
|
|
16662
16620
|
var nextTime = currentTime - timeStep;
|
|
16663
16621
|
var roundedTime = mapUtils.roundWithTimeStep(nextTime, timeStep, 'floor');
|
|
@@ -16691,19 +16649,6 @@ var moveSelectedTimePx = function moveSelectedTimePx(x, canvasWidth, centerTime,
|
|
|
16691
16649
|
var newUnfilteredSelectedTimePx = Math.max(minClickedUnfilteredSelectedTimePx, leftMarkerPx);
|
|
16692
16650
|
setNewRoundedTime(newUnfilteredSelectedTimePx, centerTime, canvasWidth, secondsPerPx, timeStep, dataStartTime, dataEndTime, onSetNewDate);
|
|
16693
16651
|
};
|
|
16694
|
-
/**
|
|
16695
|
-
* This function gets the length in seconds of the data layers
|
|
16696
|
-
* @param layers
|
|
16697
|
-
* @returns dataSpanSeconds,
|
|
16698
|
-
*/
|
|
16699
|
-
var getDataSpanSeconds = function getDataSpanSeconds(layers) {
|
|
16700
|
-
var _getDataLimitsFromLay = getDataLimitsFromLayers(layers),
|
|
16701
|
-
_getDataLimitsFromLay2 = _slicedToArray(_getDataLimitsFromLay, 2),
|
|
16702
|
-
dataStartTime = _getDataLimitsFromLay2[0],
|
|
16703
|
-
dataEndTime = _getDataLimitsFromLay2[1];
|
|
16704
|
-
var dataRegionInSeconds = dataEndTime - dataStartTime;
|
|
16705
|
-
return Math.floor(dataRegionInSeconds);
|
|
16706
|
-
};
|
|
16707
16652
|
/**
|
|
16708
16653
|
* This function creates and returns an array where there is secondsPerPx
|
|
16709
16654
|
* number of the data set added for a data scale (secondsPerPx)
|
|
@@ -16889,20 +16834,16 @@ var getFundamentalScale$1 = function getFundamentalScale(secondsPerPx) {
|
|
|
16889
16834
|
|
|
16890
16835
|
var timeSliderUtils = /*#__PURE__*/Object.freeze({
|
|
16891
16836
|
__proto__: null,
|
|
16892
|
-
getSelectedTime: getSelectedTime,
|
|
16893
16837
|
getTimeBounds: getTimeBounds,
|
|
16894
|
-
getMomentTimeBounds: getMomentTimeBounds,
|
|
16895
16838
|
scalingCoefficient: scalingCoefficient,
|
|
16896
16839
|
timestampToPixelEdges: timestampToPixelEdges,
|
|
16897
16840
|
timestampToPixel: timestampToPixel,
|
|
16898
16841
|
pixelToTimestamp: pixelToTimestamp,
|
|
16899
16842
|
onsetNewDateDebounced: onsetNewDateDebounced,
|
|
16900
16843
|
setNewRoundedTime: setNewRoundedTime,
|
|
16901
|
-
getDataLimitsFromLayers: getDataLimitsFromLayers,
|
|
16902
16844
|
setPreviousTimeStep: setPreviousTimeStep,
|
|
16903
16845
|
setNextTimeStep: setNextTimeStep,
|
|
16904
16846
|
moveSelectedTimePx: moveSelectedTimePx,
|
|
16905
|
-
getDataSpanSeconds: getDataSpanSeconds,
|
|
16906
16847
|
secondsPerPxValues: secondsPerPxValues,
|
|
16907
16848
|
secondsPerPxFromCanvasWidth: secondsPerPxFromCanvasWidth,
|
|
16908
16849
|
getNewCenterOfFixedPointZoom: getNewCenterOfFixedPointZoom,
|
|
@@ -19227,12 +19168,12 @@ var NowButtonConnect = function NowButtonConnect(_ref) {
|
|
|
19227
19168
|
var timeStep = useSelector(function (store) {
|
|
19228
19169
|
return mapSelectors.getMapTimeStep(store, mapId);
|
|
19229
19170
|
});
|
|
19230
|
-
var
|
|
19231
|
-
return mapSelectors.
|
|
19232
|
-
})
|
|
19233
|
-
|
|
19234
|
-
dataStartTime =
|
|
19235
|
-
dataEndTime =
|
|
19171
|
+
var _useSelector = useSelector(function (store) {
|
|
19172
|
+
return mapSelectors.getDataLimitsFromLayers(store, mapId);
|
|
19173
|
+
}),
|
|
19174
|
+
_useSelector2 = _slicedToArray(_useSelector, 2),
|
|
19175
|
+
dataStartTime = _useSelector2[0],
|
|
19176
|
+
dataEndTime = _useSelector2[1];
|
|
19236
19177
|
var isAnimating = useSelector(function (store) {
|
|
19237
19178
|
return mapSelectors.isAnimating(store, mapId);
|
|
19238
19179
|
});
|
|
@@ -19295,7 +19236,8 @@ var AnimationLengthButtonConnect = function AnimationLengthButtonConnect(_ref) {
|
|
|
19295
19236
|
var animationEndTime = moment(animationStartTime).add(length, 'minutes').toISOString();
|
|
19296
19237
|
dispatch(mapActions.setAnimationEndTime({
|
|
19297
19238
|
mapId: mapId,
|
|
19298
|
-
animationEndTime: animationEndTime
|
|
19239
|
+
animationEndTime: animationEndTime,
|
|
19240
|
+
origin: mapEnums.MapActionOrigin.map
|
|
19299
19241
|
}));
|
|
19300
19242
|
};
|
|
19301
19243
|
return /*#__PURE__*/React.createElement(AnimationLengthButton, {
|
|
@@ -19341,9 +19283,6 @@ var TimeSpanButtonConnect = function TimeSpanButtonConnect(_ref) {
|
|
|
19341
19283
|
var secondsPerPx = useSelector(function (store) {
|
|
19342
19284
|
return mapSelectors.getMapTimeSliderSecondsPerPx(store, mapId);
|
|
19343
19285
|
});
|
|
19344
|
-
var dimensions = useSelector(function (store) {
|
|
19345
|
-
return mapSelectors.getMapDimensions(store, mapId);
|
|
19346
|
-
});
|
|
19347
19286
|
var autoTimeStepLayerId = useSelector(function (store) {
|
|
19348
19287
|
return mapSelectors.getAutoTimeStepLayerId(store, mapId);
|
|
19349
19288
|
});
|
|
@@ -19373,8 +19312,9 @@ var TimeSpanButtonConnect = function TimeSpanButtonConnect(_ref) {
|
|
|
19373
19312
|
origin: mapEnums.MapActionOrigin.map
|
|
19374
19313
|
}));
|
|
19375
19314
|
}, [dispatch, isTimeSpanAuto, mapId]);
|
|
19376
|
-
var
|
|
19377
|
-
|
|
19315
|
+
var selectedTime = useSelector(function (store) {
|
|
19316
|
+
return mapSelectors.getSelectedTime(store, mapId);
|
|
19317
|
+
});
|
|
19378
19318
|
return /*#__PURE__*/React.createElement(TimeSpanButton, {
|
|
19379
19319
|
timeSliderSpan: timeSliderSpan,
|
|
19380
19320
|
onChangeTimeSliderSpan: onSetTimeSliderSpan,
|
|
@@ -19524,17 +19464,15 @@ var BackwardForwardStepButtonConnect = function BackwardForwardStepButtonConnect
|
|
|
19524
19464
|
var isAnimating = useSelector(function (store) {
|
|
19525
19465
|
return mapSelectors.isAnimating(store, mapId);
|
|
19526
19466
|
});
|
|
19527
|
-
var
|
|
19528
|
-
return mapSelectors.
|
|
19529
|
-
});
|
|
19530
|
-
var selectedTime = getSelectedTime(timedim);
|
|
19531
|
-
var layers = useSelector(function (store) {
|
|
19532
|
-
return mapSelectors.getMapLayers(store, mapId);
|
|
19467
|
+
var selectedTime = useSelector(function (store) {
|
|
19468
|
+
return mapSelectors.getSelectedTime(store, mapId);
|
|
19533
19469
|
});
|
|
19534
|
-
var
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19470
|
+
var _useSelector = useSelector(function (store) {
|
|
19471
|
+
return mapSelectors.getDataLimitsFromLayers(store, mapId);
|
|
19472
|
+
}),
|
|
19473
|
+
_useSelector2 = _slicedToArray(_useSelector, 2),
|
|
19474
|
+
dataStartTime = _useSelector2[0],
|
|
19475
|
+
dataEndTime = _useSelector2[1];
|
|
19538
19476
|
var onClickBF = function onClickBF() {
|
|
19539
19477
|
if (isAnimating) {
|
|
19540
19478
|
stopAnimation();
|
|
@@ -19600,12 +19538,6 @@ var TimeSliderButtonsConnectMemo = /*#__PURE__*/React.memo(TimeSliderButtonsConn
|
|
|
19600
19538
|
var TimeSliderLegendConnect = function TimeSliderLegendConnect(_ref) {
|
|
19601
19539
|
var sourceId = _ref.sourceId,
|
|
19602
19540
|
mapId = _ref.mapId;
|
|
19603
|
-
var layers = useSelector(function (store) {
|
|
19604
|
-
return mapSelectors.getMapLayers(store, mapId);
|
|
19605
|
-
});
|
|
19606
|
-
var dimensions = useSelector(function (store) {
|
|
19607
|
-
return mapSelectors.getMapDimensions(store, mapId);
|
|
19608
|
-
});
|
|
19609
19541
|
var centerTime = useSelector(function (store) {
|
|
19610
19542
|
return mapSelectors.getMapTimeSliderCenterTime(store, mapId);
|
|
19611
19543
|
});
|
|
@@ -19633,13 +19565,16 @@ var TimeSliderLegendConnect = function TimeSliderLegendConnect(_ref) {
|
|
|
19633
19565
|
var unfilteredSelectedTime = useSelector(function (store) {
|
|
19634
19566
|
return mapSelectors.getTimeSliderUnfilteredSelectedTime(store, mapId);
|
|
19635
19567
|
});
|
|
19636
|
-
var
|
|
19637
|
-
|
|
19568
|
+
var selectedTime = useSelector(function (store) {
|
|
19569
|
+
return mapSelectors.getSelectedTime(store, mapId);
|
|
19570
|
+
});
|
|
19638
19571
|
var currentTime = moment.utc().unix();
|
|
19639
|
-
var
|
|
19640
|
-
|
|
19641
|
-
|
|
19642
|
-
|
|
19572
|
+
var _useSelector = useSelector(function (store) {
|
|
19573
|
+
return mapSelectors.getDataLimitsFromLayers(store, mapId);
|
|
19574
|
+
}),
|
|
19575
|
+
_useSelector2 = _slicedToArray(_useSelector, 2),
|
|
19576
|
+
dataStartTime = _useSelector2[0],
|
|
19577
|
+
dataEndTime = _useSelector2[1];
|
|
19643
19578
|
var dispatch = useDispatch();
|
|
19644
19579
|
return /*#__PURE__*/React.createElement(TimeSliderLegend, {
|
|
19645
19580
|
mapId: mapId,
|
|
@@ -19692,13 +19627,15 @@ var TimeSliderLegendConnect = function TimeSliderLegendConnect(_ref) {
|
|
|
19692
19627
|
onSetAnimationStartTime: function onSetAnimationStartTime(animationStartTime) {
|
|
19693
19628
|
dispatch(mapActions.setAnimationStartTime({
|
|
19694
19629
|
mapId: mapId,
|
|
19695
|
-
animationStartTime: animationStartTime
|
|
19630
|
+
animationStartTime: animationStartTime,
|
|
19631
|
+
origin: mapEnums.MapActionOrigin.map
|
|
19696
19632
|
}));
|
|
19697
19633
|
},
|
|
19698
19634
|
onSetAnimationEndTime: function onSetAnimationEndTime(animationEndTime) {
|
|
19699
19635
|
dispatch(mapActions.setAnimationEndTime({
|
|
19700
19636
|
mapId: mapId,
|
|
19701
|
-
animationEndTime: animationEndTime
|
|
19637
|
+
animationEndTime: animationEndTime,
|
|
19638
|
+
origin: mapEnums.MapActionOrigin.map
|
|
19702
19639
|
}));
|
|
19703
19640
|
},
|
|
19704
19641
|
updateCanvasWidth: function updateCanvasWidth(storeWidth, newWidth) {
|
|
@@ -19722,8 +19659,6 @@ var TimeSliderLegendConnect = function TimeSliderLegendConnect(_ref) {
|
|
|
19722
19659
|
|
|
19723
19660
|
var connectRedux = connect(function (store, props) {
|
|
19724
19661
|
return {
|
|
19725
|
-
layers: mapSelectors.getMapLayers(store, props.mapId),
|
|
19726
|
-
dimensions: mapSelectors.getMapDimensions(store, props.mapId),
|
|
19727
19662
|
centerTime: mapSelectors.getMapTimeSliderCenterTime(store, props.mapId),
|
|
19728
19663
|
secondsPerPx: mapSelectors.getMapTimeSliderSecondsPerPx(store, props.mapId),
|
|
19729
19664
|
span: mapSelectors.getMapTimeSliderSpan(store, props.mapId),
|
|
@@ -19741,11 +19676,9 @@ var connectRedux = connect(function (store, props) {
|
|
|
19741
19676
|
var TimeSliderCurrentTimeBoxConnectComponent = function TimeSliderCurrentTimeBoxConnectComponent(_ref) {
|
|
19742
19677
|
var mapId = _ref.mapId,
|
|
19743
19678
|
sourceId = _ref.sourceId,
|
|
19744
|
-
dimensions = _ref.dimensions,
|
|
19745
19679
|
centerTime = _ref.centerTime,
|
|
19746
19680
|
secondsPerPx = _ref.secondsPerPx,
|
|
19747
19681
|
span = _ref.span,
|
|
19748
|
-
layers = _ref.layers,
|
|
19749
19682
|
timeStep = _ref.timeStep,
|
|
19750
19683
|
isAnimating = _ref.isAnimating,
|
|
19751
19684
|
isAutoUpdating = _ref.isAutoUpdating,
|
|
@@ -19754,12 +19687,15 @@ var TimeSliderCurrentTimeBoxConnectComponent = function TimeSliderCurrentTimeBox
|
|
|
19754
19687
|
setTimeSliderUnfilteredSelectedTime = _ref.setTimeSliderUnfilteredSelectedTime,
|
|
19755
19688
|
setTime = _ref.setTime,
|
|
19756
19689
|
setCenterTime = _ref.setCenterTime;
|
|
19757
|
-
var
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
|
|
19761
|
-
|
|
19762
|
-
|
|
19690
|
+
var selectedTime = useSelector(function (store) {
|
|
19691
|
+
return mapSelectors.getSelectedTime(store, mapId);
|
|
19692
|
+
});
|
|
19693
|
+
var _useSelector = useSelector(function (store) {
|
|
19694
|
+
return mapSelectors.getDataLimitsFromLayers(store, mapId);
|
|
19695
|
+
}),
|
|
19696
|
+
_useSelector2 = _slicedToArray(_useSelector, 2),
|
|
19697
|
+
dataStartTime = _useSelector2[0],
|
|
19698
|
+
dataEndTime = _useSelector2[1];
|
|
19763
19699
|
return /*#__PURE__*/React.createElement(TimeSliderCurrentTimeBox, {
|
|
19764
19700
|
centerTime: centerTime,
|
|
19765
19701
|
secondsPerPx: secondsPerPx,
|
|
@@ -19842,14 +19778,12 @@ var useUpdateTimeSpan = function useUpdateTimeSpan(mapId, onSetTimeSliderSpan) {
|
|
|
19842
19778
|
var secondsPerPx = useSelector(function (store) {
|
|
19843
19779
|
return mapSelectors.getMapTimeSliderSecondsPerPx(store, mapId);
|
|
19844
19780
|
});
|
|
19845
|
-
var dimensions = useSelector(function (store) {
|
|
19846
|
-
return mapSelectors.getMapDimensions(store, mapId);
|
|
19847
|
-
});
|
|
19848
19781
|
var currentTimeSpan = useSelector(function (store) {
|
|
19849
19782
|
return mapSelectors.getMapTimeSliderSpan(store, mapId);
|
|
19850
19783
|
});
|
|
19851
|
-
var
|
|
19852
|
-
|
|
19784
|
+
var selectedTime = useSelector(function (store) {
|
|
19785
|
+
return mapSelectors.getSelectedTime(store, mapId);
|
|
19786
|
+
});
|
|
19853
19787
|
var updateTimeSliderSpan = function updateTimeSliderSpan(spanInSeconds, newCenterTime, newSecondsPerPx) {
|
|
19854
19788
|
if (spanInSeconds !== undefined && newCenterTime !== undefined && newSecondsPerPx !== undefined) {
|
|
19855
19789
|
onSetTimeSliderSpan(spanInSeconds, newCenterTime, newSecondsPerPx);
|
|
@@ -19857,9 +19791,9 @@ var useUpdateTimeSpan = function useUpdateTimeSpan(mapId, onSetTimeSliderSpan) {
|
|
|
19857
19791
|
};
|
|
19858
19792
|
React.useEffect(function () {
|
|
19859
19793
|
if (isTimeSpanAuto && autoTimeStepLayerId) {
|
|
19860
|
-
var
|
|
19861
|
-
startTime =
|
|
19862
|
-
endTime =
|
|
19794
|
+
var _getTimeBounds = getTimeBounds([activeLayerTimeDimension]),
|
|
19795
|
+
startTime = _getTimeBounds.startTime,
|
|
19796
|
+
endTime = _getTimeBounds.endTime;
|
|
19863
19797
|
var spanInSeconds = endTime - startTime;
|
|
19864
19798
|
var newSecondsPerPx = secondsPerPxFromCanvasWidth(timeSliderWidth, spanInSeconds);
|
|
19865
19799
|
var newCenterTime = (startTime + endTime) / 2;
|
|
@@ -19930,21 +19864,18 @@ var TimeSliderConnect = function TimeSliderConnect(_ref) {
|
|
|
19930
19864
|
var timeStep = useSelector(function (store) {
|
|
19931
19865
|
return mapSelectors.getMapTimeStep(store, mapId);
|
|
19932
19866
|
});
|
|
19933
|
-
var
|
|
19934
|
-
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
|
|
19938
|
-
|
|
19939
|
-
dataEndTime = _getDataLimitsFromLay2[1];
|
|
19867
|
+
var _useSelector = useSelector(function (store) {
|
|
19868
|
+
return mapSelectors.getDataLimitsFromLayers(store, mapId);
|
|
19869
|
+
}),
|
|
19870
|
+
_useSelector2 = _slicedToArray(_useSelector, 2),
|
|
19871
|
+
dataStartTime = _useSelector2[0],
|
|
19872
|
+
dataEndTime = _useSelector2[1];
|
|
19940
19873
|
var isAnimating = useSelector(function (store) {
|
|
19941
19874
|
return mapSelectors.isAnimating(store, mapId);
|
|
19942
19875
|
});
|
|
19943
|
-
var
|
|
19944
|
-
return mapSelectors.
|
|
19876
|
+
var selectedTime = useSelector(function (store) {
|
|
19877
|
+
return mapSelectors.getSelectedTime(store, mapId);
|
|
19945
19878
|
});
|
|
19946
|
-
var _getTimeBounds3 = getTimeBounds(dimensions),
|
|
19947
|
-
selectedTime = _getTimeBounds3.selectedTime;
|
|
19948
19879
|
useUpdateTimestep(mapId);
|
|
19949
19880
|
useUpdateTimeSpan(mapId, onSetTimeSliderSpan);
|
|
19950
19881
|
return /*#__PURE__*/React.createElement(TimeSlider, {
|
|
@@ -20412,10 +20343,12 @@ var MapViewConnect = function MapViewConnect(_a) {
|
|
|
20412
20343
|
});
|
|
20413
20344
|
},
|
|
20414
20345
|
onClickFeature: layer.geojson ? function (event) {
|
|
20415
|
-
|
|
20416
|
-
|
|
20417
|
-
|
|
20418
|
-
|
|
20346
|
+
if ((event === null || event === void 0 ? void 0 : event.isInEditMode) === false) {
|
|
20347
|
+
setSelectedFeature({
|
|
20348
|
+
layerId: layer.id,
|
|
20349
|
+
selectedFeatureIndex: event === null || event === void 0 ? void 0 : event.featureIndex
|
|
20350
|
+
});
|
|
20351
|
+
}
|
|
20419
20352
|
} : undefined,
|
|
20420
20353
|
updateGeojson: function updateGeojson(geojson) {
|
|
20421
20354
|
return updateFeature({
|
|
@@ -21858,11 +21791,9 @@ var resizeHandlePlacement = {
|
|
|
21858
21791
|
* */
|
|
21859
21792
|
var TimeSliderClockConnect = function TimeSliderClockConnect(_ref) {
|
|
21860
21793
|
var mapId = _ref.mapId;
|
|
21861
|
-
var
|
|
21862
|
-
return mapSelectors.
|
|
21794
|
+
var selectedTime = useSelector(function (store) {
|
|
21795
|
+
return mapSelectors.getSelectedTime(store, mapId);
|
|
21863
21796
|
});
|
|
21864
|
-
var _getMomentTimeBounds = getMomentTimeBounds(dimensions),
|
|
21865
|
-
selectedTime = _getMomentTimeBounds.selectedTime;
|
|
21866
21797
|
var isTimeSliderVisible = useSelector(function (store) {
|
|
21867
21798
|
return mapSelectors.isTimeSliderVisible(store, mapId);
|
|
21868
21799
|
});
|
|
@@ -21875,7 +21806,7 @@ var TimeSliderClockConnect = function TimeSliderClockConnect(_ref) {
|
|
|
21875
21806
|
mapId: mapId,
|
|
21876
21807
|
sourceId: mapId
|
|
21877
21808
|
}),
|
|
21878
|
-
time: selectedTime
|
|
21809
|
+
time: moment.unix(selectedTime)
|
|
21879
21810
|
});
|
|
21880
21811
|
};
|
|
21881
21812
|
|
|
@@ -23882,1021 +23813,104 @@ var GetFeatureInfoButtonConnect = function GetFeatureInfoButtonConnect(_ref) {
|
|
|
23882
23813
|
}, /*#__PURE__*/React.createElement(Info, null));
|
|
23883
23814
|
};
|
|
23884
23815
|
|
|
23885
|
-
var
|
|
23886
|
-
'fill-opacity': 0.5
|
|
23887
|
-
});
|
|
23888
|
-
var emptyLineString = Object.assign(Object.assign({}, lineString.features[0]), {
|
|
23889
|
-
properties: Object.assign(Object.assign({}, defaultStyleProperties), {
|
|
23890
|
-
selectionType: 'linestring'
|
|
23891
|
-
})
|
|
23892
|
-
});
|
|
23893
|
-
var emptyPoint = Object.assign(Object.assign({}, featurePoint), {
|
|
23894
|
-
properties: Object.assign(Object.assign({}, defaultStyleProperties), {
|
|
23895
|
-
selectionType: 'point'
|
|
23896
|
-
})
|
|
23897
|
-
});
|
|
23898
|
-
var emptyPolygon = Object.assign(Object.assign({}, featurePolygon), {
|
|
23899
|
-
properties: Object.assign(Object.assign({}, defaultStyleProperties), {
|
|
23900
|
-
selectionType: 'poly'
|
|
23901
|
-
})
|
|
23902
|
-
});
|
|
23903
|
-
var emptyBox = Object.assign(Object.assign({}, featurePolygon), {
|
|
23904
|
-
properties: Object.assign(Object.assign({}, defaultStyleProperties), {
|
|
23905
|
-
selectionType: 'box'
|
|
23906
|
-
})
|
|
23907
|
-
});
|
|
23908
|
-
// TODO: improve this: without a feature, the custom shape does not work on first click
|
|
23909
|
-
var emptyIntersectionShape = Object.assign(Object.assign({}, emptyGeoJSON), {
|
|
23910
|
-
features: [featurePolygon]
|
|
23911
|
-
});
|
|
23912
|
-
var defaultPoint = {
|
|
23913
|
-
id: 'drawtools-point',
|
|
23914
|
-
value: DRAWMODE.POINT,
|
|
23915
|
-
title: 'Point',
|
|
23916
|
-
icon: /*#__PURE__*/React__default.createElement(Location, null),
|
|
23917
|
-
shape: emptyPoint,
|
|
23918
|
-
isSelectable: true
|
|
23919
|
-
};
|
|
23920
|
-
var defaultPolygon = {
|
|
23921
|
-
id: 'drawtools-polygon',
|
|
23922
|
-
value: DRAWMODE.POLYGON,
|
|
23923
|
-
title: 'Polygon',
|
|
23924
|
-
icon: /*#__PURE__*/React__default.createElement(DrawPolygon, null),
|
|
23925
|
-
shape: emptyPolygon,
|
|
23926
|
-
isSelectable: true
|
|
23927
|
-
};
|
|
23928
|
-
var defaultBox = {
|
|
23929
|
-
id: 'drawtools-box',
|
|
23930
|
-
value: DRAWMODE.BOX,
|
|
23931
|
-
title: 'Box',
|
|
23932
|
-
icon: /*#__PURE__*/React__default.createElement(DrawRegion, null),
|
|
23933
|
-
shape: emptyBox,
|
|
23934
|
-
isSelectable: true
|
|
23935
|
-
};
|
|
23936
|
-
var defaultLineString = {
|
|
23937
|
-
id: 'drawtools-linestring',
|
|
23938
|
-
value: DRAWMODE.LINESTRING,
|
|
23939
|
-
title: 'LineString',
|
|
23940
|
-
icon: /*#__PURE__*/React__default.createElement(Edit, null),
|
|
23941
|
-
shape: emptyLineString,
|
|
23942
|
-
isSelectable: true
|
|
23943
|
-
};
|
|
23944
|
-
var defaultDelete = {
|
|
23945
|
-
id: 'drawtools-delete',
|
|
23946
|
-
value: 'DELETE',
|
|
23947
|
-
title: 'Delete',
|
|
23948
|
-
icon: /*#__PURE__*/React__default.createElement(Delete, null),
|
|
23949
|
-
shape: emptyGeoJSON,
|
|
23950
|
-
isSelectable: false
|
|
23951
|
-
};
|
|
23952
|
-
var defaultModes = [defaultPoint, defaultPolygon, defaultBox, defaultLineString, defaultDelete];
|
|
23953
|
-
var useMapDrawTool = function useMapDrawTool(_ref) {
|
|
23954
|
-
var _ref$defaultEditModes = _ref.defaultEditModes,
|
|
23955
|
-
defaultEditModes = _ref$defaultEditModes === void 0 ? defaultModes : _ref$defaultEditModes,
|
|
23956
|
-
_ref$shouldAllowMulti = _ref.shouldAllowMultipleshapes,
|
|
23957
|
-
shouldAllowMultipleshapes = _ref$shouldAllowMulti === void 0 ? false : _ref$shouldAllowMulti,
|
|
23958
|
-
_ref$defaultGeoJSON = _ref.defaultGeoJSON,
|
|
23959
|
-
defaultGeoJSON = _ref$defaultGeoJSON === void 0 ? emptyGeoJSON : _ref$defaultGeoJSON,
|
|
23960
|
-
_ref$defaultGeoJSONIn = _ref.defaultGeoJSONIntersection,
|
|
23961
|
-
defaultGeoJSONIntersection = _ref$defaultGeoJSONIn === void 0 ? emptyIntersectionShape : _ref$defaultGeoJSONIn,
|
|
23962
|
-
defaultGeoJSONIntersectionBounds = _ref.defaultGeoJSONIntersectionBounds,
|
|
23963
|
-
_ref$defaultGeoJSONIn2 = _ref.defaultGeoJSONIntersectionProperties,
|
|
23964
|
-
defaultGeoJSONIntersectionProperties = _ref$defaultGeoJSONIn2 === void 0 ? defaultIntersectionStyleProperties : _ref$defaultGeoJSONIn2;
|
|
23965
|
-
// geoJSON feature collections
|
|
23966
|
-
var _React$useState = React__default.useState(defaultGeoJSON),
|
|
23967
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
23968
|
-
geoJSON = _React$useState2[0],
|
|
23969
|
-
setGeoJSON = _React$useState2[1];
|
|
23970
|
-
var _React$useState3 = React__default.useState(defaultGeoJSONIntersection),
|
|
23971
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
23972
|
-
geoJSONIntersection = _React$useState4[0],
|
|
23973
|
-
setGeoJSONIntersection = _React$useState4[1];
|
|
23974
|
-
var _React$useState5 = React__default.useState(defaultGeoJSONIntersectionBounds),
|
|
23975
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
23976
|
-
geoJSONIntersectionBounds = _React$useState6[0],
|
|
23977
|
-
setGeoJSONIntersectionBounds = _React$useState6[1];
|
|
23978
|
-
// state
|
|
23979
|
-
var _React$useState7 = React__default.useState(defaultEditModes),
|
|
23980
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
23981
|
-
editModes = _React$useState8[0],
|
|
23982
|
-
setEditModes = _React$useState8[1];
|
|
23983
|
-
var _React$useState9 = React__default.useState(''),
|
|
23984
|
-
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
23985
|
-
activeTool = _React$useState10[0],
|
|
23986
|
-
setActiveTool = _React$useState10[1];
|
|
23987
|
-
var _React$useState11 = React__default.useState(''),
|
|
23988
|
-
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
23989
|
-
drawMode = _React$useState12[0],
|
|
23990
|
-
setDrawMode = _React$useState12[1];
|
|
23991
|
-
var _React$useState13 = React__default.useState(false),
|
|
23992
|
-
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
23993
|
-
isInEditMode = _React$useState14[0],
|
|
23994
|
-
setEditMode = _React$useState14[1];
|
|
23995
|
-
var _React$useState15 = React__default.useState(0),
|
|
23996
|
-
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
23997
|
-
featureLayerIndex = _React$useState16[0],
|
|
23998
|
-
setFeatureLayerIndex = _React$useState16[1];
|
|
23999
|
-
var changeProperties = function changeProperties(styleProperties) {
|
|
24000
|
-
// update all modes with new properties
|
|
24001
|
-
var newModes = editModes.map(function (mode) {
|
|
24002
|
-
var shape = mode.shape.type === 'Feature' ? Object.assign(Object.assign({}, mode.shape), {
|
|
24003
|
-
properties: Object.assign(Object.assign({}, mode.shape.properties), styleProperties)
|
|
24004
|
-
}) : addFeatureProperties(mode.shape, styleProperties);
|
|
24005
|
-
return Object.assign(Object.assign({}, mode), {
|
|
24006
|
-
shape: shape
|
|
24007
|
-
});
|
|
24008
|
-
});
|
|
24009
|
-
setEditModes(newModes);
|
|
24010
|
-
// update current geoJSON with new properties
|
|
24011
|
-
var updateGeoJSON = addFeatureProperties(geoJSON, styleProperties, featureLayerIndex);
|
|
24012
|
-
setGeoJSON(updateGeoJSON);
|
|
24013
|
-
};
|
|
24014
|
-
var getProperties = function getProperties() {
|
|
24015
|
-
if (!geoJSON || !geoJSON.features.length) {
|
|
24016
|
-
return {};
|
|
24017
|
-
}
|
|
24018
|
-
return geoJSON.features[featureLayerIndex].properties;
|
|
24019
|
-
};
|
|
24020
|
-
var changeActiveTool = function changeActiveTool(newMode) {
|
|
24021
|
-
var shouldDeleteShape = newMode.value === 'DELETE';
|
|
24022
|
-
// reset if same tool is selected
|
|
24023
|
-
if (newMode.id === activeTool || shouldDeleteShape) {
|
|
24024
|
-
reset(shouldDeleteShape);
|
|
24025
|
-
return;
|
|
24026
|
-
}
|
|
24027
|
-
setActiveTool(newMode.id);
|
|
24028
|
-
// updates shape
|
|
24029
|
-
var isNewSelectedTool = !isGeoJSONFeatureCreatedByTool(geoJSON, newMode.shape);
|
|
24030
|
-
var shouldUpdateShape = !geoJSON.features.length || shouldAllowMultipleshapes || isNewSelectedTool;
|
|
24031
|
-
if (shouldUpdateShape) {
|
|
24032
|
-
var updatedGeoJSON = changeGeoJSON(newMode.shape);
|
|
24033
|
-
setFeatureLayerIndex(updatedGeoJSON.features.length - 1);
|
|
24034
|
-
}
|
|
24035
|
-
// handle modes and update feature layer index
|
|
24036
|
-
setDrawMode(newMode.value);
|
|
24037
|
-
setEditMode(!!newMode.value);
|
|
24038
|
-
};
|
|
24039
|
-
var changeGeoJSON = function changeGeoJSON(updatedGeoJSON) {
|
|
24040
|
-
var geoJSONFeatureCollection = getFeatureCollection(updatedGeoJSON, shouldAllowMultipleshapes, geoJSON);
|
|
24041
|
-
var newGeoJSON = getGeoJson(geoJSONFeatureCollection, shouldAllowMultipleshapes);
|
|
24042
|
-
setGeoJSON(newGeoJSON);
|
|
24043
|
-
if (geoJSONIntersectionBounds) {
|
|
24044
|
-
setGeoJSONIntersection(createInterSections(newGeoJSON, geoJSONIntersectionBounds, defaultGeoJSONIntersectionProperties));
|
|
24045
|
-
}
|
|
24046
|
-
return newGeoJSON;
|
|
24047
|
-
};
|
|
24048
|
-
var onSetGeoJSONIntersectionBounds = function onSetGeoJSONIntersectionBounds(newGeoJSON) {
|
|
24049
|
-
setGeoJSONIntersectionBounds(newGeoJSON);
|
|
24050
|
-
// reset all other geoJSONs
|
|
24051
|
-
setGeoJSONIntersection(emptyIntersectionShape);
|
|
24052
|
-
setGeoJSON(emptyGeoJSON);
|
|
24053
|
-
};
|
|
24054
|
-
var onSetDrawMode = function onSetDrawMode(drawMode) {
|
|
24055
|
-
setDrawMode(drawMode);
|
|
24056
|
-
var newActiveTool = editModes.find(function (mode) {
|
|
24057
|
-
return mode.value === drawMode;
|
|
24058
|
-
});
|
|
24059
|
-
if (newActiveTool) {
|
|
24060
|
-
setActiveTool(newActiveTool.id);
|
|
24061
|
-
}
|
|
24062
|
-
};
|
|
24063
|
-
var deactivateTool = function deactivateTool() {
|
|
24064
|
-
setEditMode(false);
|
|
24065
|
-
setActiveTool('');
|
|
24066
|
-
setDrawMode('');
|
|
24067
|
-
};
|
|
24068
|
-
var reset = function reset() {
|
|
24069
|
-
var shouldClearState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
24070
|
-
deactivateTool();
|
|
24071
|
-
if (shouldClearState) {
|
|
24072
|
-
setGeoJSONIntersection(emptyIntersectionShape);
|
|
24073
|
-
setGeoJSON(emptyGeoJSON);
|
|
24074
|
-
setFeatureLayerIndex(0);
|
|
24075
|
-
}
|
|
24076
|
-
};
|
|
24077
|
-
var getLayer = function getLayer(layerType, layerId) {
|
|
24078
|
-
// geoJSON
|
|
24079
|
-
if (layerType === 'geoJSON') {
|
|
24080
|
-
return {
|
|
24081
|
-
id: layerId,
|
|
24082
|
-
geojson: geoJSON,
|
|
24083
|
-
isInEditMode: isInEditMode,
|
|
24084
|
-
drawMode: drawMode,
|
|
24085
|
-
updateGeojson: changeGeoJSON,
|
|
24086
|
-
featureNrToEdit: featureLayerIndex
|
|
24087
|
-
};
|
|
24088
|
-
}
|
|
24089
|
-
// intersections
|
|
24090
|
-
return {
|
|
24091
|
-
id: layerId,
|
|
24092
|
-
geojson: layerType === 'geoJSONIntersection' ? geoJSONIntersection : geoJSONIntersectionBounds,
|
|
24093
|
-
isInEditMode: false
|
|
24094
|
-
};
|
|
24095
|
-
};
|
|
24096
|
-
var layers = [].concat(_toConsumableArray(geoJSONIntersectionBounds ? [getLayer('geoJSONIntersectionBounds', 'static-layer'), getLayer('geoJSONIntersection', 'intersection-layer')] : []), [getLayer('geoJSON', 'draw-layer')]);
|
|
23816
|
+
var titleStyle = function titleStyle(theme) {
|
|
24097
23817
|
return {
|
|
24098
|
-
|
|
24099
|
-
|
|
24100
|
-
|
|
24101
|
-
|
|
24102
|
-
|
|
24103
|
-
|
|
24104
|
-
isInEditMode: isInEditMode,
|
|
24105
|
-
changeDrawMode: onSetDrawMode,
|
|
24106
|
-
setEditMode: setEditMode,
|
|
24107
|
-
featureLayerIndex: featureLayerIndex,
|
|
24108
|
-
setFeatureLayerIndex: setFeatureLayerIndex,
|
|
24109
|
-
activeTool: activeTool,
|
|
24110
|
-
changeActiveTool: changeActiveTool,
|
|
24111
|
-
setActiveTool: setActiveTool,
|
|
24112
|
-
layers: layers,
|
|
24113
|
-
getLayer: getLayer,
|
|
24114
|
-
deactivateTool: deactivateTool,
|
|
24115
|
-
setEditModes: setEditModes,
|
|
24116
|
-
changeProperties: changeProperties,
|
|
24117
|
-
getProperties: getProperties
|
|
23818
|
+
position: 'absolute',
|
|
23819
|
+
padding: '5px',
|
|
23820
|
+
zIndex: 50,
|
|
23821
|
+
color: theme.palette.common.black,
|
|
23822
|
+
whiteSpace: 'nowrap',
|
|
23823
|
+
userSelect: 'none'
|
|
24118
23824
|
};
|
|
24119
23825
|
};
|
|
24120
|
-
|
|
24121
|
-
|
|
24122
|
-
|
|
24123
|
-
|
|
24124
|
-
|
|
24125
|
-
|
|
24126
|
-
|
|
24127
|
-
|
|
24128
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
24129
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24130
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24131
|
-
* See the License for the specific language governing permissions and
|
|
24132
|
-
* limitations under the License.
|
|
24133
|
-
*
|
|
24134
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
24135
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
24136
|
-
* */
|
|
24137
|
-
var MapDrawToolContext = /*#__PURE__*/React.createContext({});
|
|
24138
|
-
// currently used options
|
|
24139
|
-
var drawOptions = {
|
|
24140
|
-
defaultEditModes: [defaultPolygon, defaultDelete]
|
|
24141
|
-
};
|
|
24142
|
-
var MapDrawToolProvider = function MapDrawToolProvider(_ref) {
|
|
24143
|
-
var children = _ref.children,
|
|
24144
|
-
_ref$options = _ref.options,
|
|
24145
|
-
options = _ref$options === void 0 ? {} : _ref$options;
|
|
24146
|
-
var value = useMapDrawTool(options);
|
|
24147
|
-
return /*#__PURE__*/React.createElement(MapDrawToolContext.Provider, {
|
|
24148
|
-
value: value
|
|
24149
|
-
}, children);
|
|
23826
|
+
var defaultBbox = {
|
|
23827
|
+
srs: 'EPSG:3857',
|
|
23828
|
+
bbox: {
|
|
23829
|
+
left: 58703.6377,
|
|
23830
|
+
bottom: 6408480.4514,
|
|
23831
|
+
right: 3967387.5161,
|
|
23832
|
+
top: 11520588.9031
|
|
23833
|
+
}
|
|
24150
23834
|
};
|
|
24151
|
-
function
|
|
24152
|
-
|
|
24153
|
-
|
|
24154
|
-
|
|
24155
|
-
|
|
24156
|
-
|
|
24157
|
-
|
|
24158
|
-
|
|
24159
|
-
|
|
24160
|
-
|
|
24161
|
-
|
|
24162
|
-
|
|
24163
|
-
|
|
24164
|
-
|
|
24165
|
-
|
|
24166
|
-
|
|
24167
|
-
|
|
24168
|
-
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
23835
|
+
var ConfigurableMapConnect = function ConfigurableMapConnect(_a) {
|
|
23836
|
+
var id = _a.id,
|
|
23837
|
+
dockedLayerManagerSize = _a.dockedLayerManagerSize,
|
|
23838
|
+
title = _a.title,
|
|
23839
|
+
_a$layers = _a.layers,
|
|
23840
|
+
layers = _a$layers === void 0 ? [] : _a$layers,
|
|
23841
|
+
_a$dimensions = _a.dimensions,
|
|
23842
|
+
dimensions = _a$dimensions === void 0 ? [] : _a$dimensions,
|
|
23843
|
+
_a$shouldAutoUpdate = _a.shouldAutoUpdate,
|
|
23844
|
+
shouldAutoUpdate = _a$shouldAutoUpdate === void 0 ? false : _a$shouldAutoUpdate,
|
|
23845
|
+
_a$shouldAnimate = _a.shouldAnimate,
|
|
23846
|
+
shouldAnimate = _a$shouldAnimate === void 0 ? false : _a$shouldAnimate,
|
|
23847
|
+
_a$bbox = _a.bbox,
|
|
23848
|
+
bbox = _a$bbox === void 0 ? defaultBbox.bbox : _a$bbox,
|
|
23849
|
+
_a$srs = _a.srs,
|
|
23850
|
+
srs = _a$srs === void 0 ? defaultBbox.srs : _a$srs,
|
|
23851
|
+
_a$shouldShowZoomCont = _a.shouldShowZoomControls,
|
|
23852
|
+
shouldShowZoomControls = _a$shouldShowZoomCont === void 0 ? true : _a$shouldShowZoomCont,
|
|
23853
|
+
_a$displayMapPin = _a.displayMapPin,
|
|
23854
|
+
displayMapPin = _a$displayMapPin === void 0 ? false : _a$displayMapPin,
|
|
23855
|
+
_a$showTimeSlider = _a.showTimeSlider,
|
|
23856
|
+
showTimeSlider = _a$showTimeSlider === void 0 ? true : _a$showTimeSlider,
|
|
23857
|
+
_a$disableTimeSlider = _a.disableTimeSlider,
|
|
23858
|
+
disableTimeSlider = _a$disableTimeSlider === void 0 ? false : _a$disableTimeSlider,
|
|
23859
|
+
_a$displayTimeInMap = _a.displayTimeInMap,
|
|
23860
|
+
displayTimeInMap = _a$displayTimeInMap === void 0 ? false : _a$displayTimeInMap,
|
|
23861
|
+
_a$displayLayerManage = _a.displayLayerManagerAndLegendButtonInMap,
|
|
23862
|
+
displayLayerManagerAndLegendButtonInMap = _a$displayLayerManage === void 0 ? true : _a$displayLayerManage,
|
|
23863
|
+
_a$displayDimensionSe = _a.displayDimensionSelectButtonInMap,
|
|
23864
|
+
displayDimensionSelectButtonInMap = _a$displayDimensionSe === void 0 ? true : _a$displayDimensionSe,
|
|
23865
|
+
_a$multiLegend = _a.multiLegend,
|
|
23866
|
+
multiLegend = _a$multiLegend === void 0 ? true : _a$multiLegend,
|
|
23867
|
+
shouldShowLayerManager = _a.shouldShowLayerManager,
|
|
23868
|
+
shouldShowDockedLayerManager = _a.shouldShowDockedLayerManager,
|
|
23869
|
+
_a$showClock = _a.showClock,
|
|
23870
|
+
showClock = _a$showClock === void 0 ? true : _a$showClock,
|
|
23871
|
+
_a$displayGetFeatureI = _a.displayGetFeatureInfoButtonInMap,
|
|
23872
|
+
displayGetFeatureInfoButtonInMap = _a$displayGetFeatureI === void 0 ? false : _a$displayGetFeatureI,
|
|
23873
|
+
_a$shouldDisplayDrawC = _a.shouldDisplayDrawControls,
|
|
23874
|
+
shouldDisplayDrawControls = _a$shouldDisplayDrawC === void 0 ? false : _a$shouldDisplayDrawC,
|
|
23875
|
+
mapControls = _a.mapControls,
|
|
23876
|
+
children = _a.children,
|
|
23877
|
+
props = __rest(_a, ["id", "dockedLayerManagerSize", "title", "layers", "dimensions", "shouldAutoUpdate", "shouldAnimate", "bbox", "srs", "shouldShowZoomControls", "displayMapPin", "showTimeSlider", "disableTimeSlider", "displayTimeInMap", "displayLayerManagerAndLegendButtonInMap", "displayDimensionSelectButtonInMap", "multiLegend", "shouldShowLayerManager", "shouldShowDockedLayerManager", "showClock", "displayGetFeatureInfoButtonInMap", "shouldDisplayDrawControls", "mapControls", "children"]);
|
|
24175
23878
|
var dispatch = useDispatch();
|
|
24176
|
-
var
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24193
|
-
|
|
24194
|
-
|
|
24195
|
-
|
|
24196
|
-
|
|
24197
|
-
|
|
24198
|
-
|
|
24199
|
-
|
|
24200
|
-
|
|
24201
|
-
|
|
24202
|
-
id: ''
|
|
24203
|
-
}));
|
|
24204
|
-
dispatch(uiActions.setActiveMapIdForDialog({
|
|
24205
|
-
type: drawingDialogType,
|
|
23879
|
+
var mapId = React__default.useRef(id || webmapUtils.generateMapId()).current;
|
|
23880
|
+
React__default.useEffect(function () {
|
|
23881
|
+
var layersWithDefaultBaseLayer = layers.find(function (layer) {
|
|
23882
|
+
return layer.layerType === LayerType.baseLayer;
|
|
23883
|
+
}) ? layers : [].concat(_toConsumableArray(layers), [defaultLayers.baseLayerGrey]);
|
|
23884
|
+
var layersWithDefaultOverLayer = layersWithDefaultBaseLayer.find(function (layer) {
|
|
23885
|
+
return layer.layerType === LayerType.overLayer;
|
|
23886
|
+
}) ? layersWithDefaultBaseLayer : [].concat(_toConsumableArray(layersWithDefaultBaseLayer), [defaultLayers.overLayer]);
|
|
23887
|
+
var mapPreset = Object.assign({
|
|
23888
|
+
layers: layersWithDefaultOverLayer,
|
|
23889
|
+
proj: {
|
|
23890
|
+
bbox: bbox,
|
|
23891
|
+
srs: srs
|
|
23892
|
+
},
|
|
23893
|
+
dimensions: dimensions,
|
|
23894
|
+
shouldAutoUpdate: shouldAutoUpdate,
|
|
23895
|
+
shouldAnimate: shouldAnimate,
|
|
23896
|
+
shouldShowZoomControls: shouldShowZoomControls,
|
|
23897
|
+
displayMapPin: displayMapPin,
|
|
23898
|
+
showTimeSlider: showTimeSlider,
|
|
23899
|
+
dockedLayerManagerSize: dockedLayerManagerSize
|
|
23900
|
+
}, props);
|
|
23901
|
+
var initialProps = {
|
|
23902
|
+
mapPreset: mapPreset
|
|
23903
|
+
};
|
|
23904
|
+
dispatch(mapActions.setMapPreset({
|
|
24206
23905
|
mapId: mapId,
|
|
24207
|
-
|
|
24208
|
-
source: source
|
|
23906
|
+
initialProps: initialProps
|
|
24209
23907
|
}));
|
|
24210
|
-
|
|
24211
|
-
|
|
24212
|
-
|
|
24213
|
-
dispatch(mapStoreActions.layerDelete({
|
|
24214
|
-
layerId: geoJSONLayerId,
|
|
23908
|
+
if (shouldShowLayerManager !== undefined) {
|
|
23909
|
+
dispatch(uiActions.setActiveMapIdForDialog({
|
|
23910
|
+
type: uiTypes.DialogTypes.LayerManager,
|
|
24215
23911
|
mapId: mapId,
|
|
24216
|
-
|
|
24217
|
-
|
|
24218
|
-
}
|
|
24219
|
-
dispatch(uiActions.setActiveMapIdForDialog({
|
|
24220
|
-
type: areaDialogType$1,
|
|
24221
|
-
mapId: mapId,
|
|
24222
|
-
setOpen: false,
|
|
24223
|
-
source: source
|
|
24224
|
-
}));
|
|
24225
|
-
dispatch(drawActions.setDrawValues({
|
|
24226
|
-
mapId: mapId,
|
|
24227
|
-
area: undefined,
|
|
24228
|
-
areaName: '',
|
|
24229
|
-
id: ''
|
|
24230
|
-
}));
|
|
24231
|
-
}, [dispatch, mapId, source, currentLayer, geoJSONLayerId]);
|
|
24232
|
-
return {
|
|
24233
|
-
closeDrawDialog: closeDrawDialog,
|
|
24234
|
-
closeAreaDialog: closeAreaDialog,
|
|
24235
|
-
openAreaDialog: openAreaDialog,
|
|
24236
|
-
openDrawDialog: openDrawDialog
|
|
24237
|
-
};
|
|
24238
|
-
};
|
|
24239
|
-
|
|
24240
|
-
/* *
|
|
24241
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
24242
|
-
* you may not use this file except in compliance with the License.
|
|
24243
|
-
* You may obtain a copy of the License at
|
|
24244
|
-
*
|
|
24245
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
24246
|
-
*
|
|
24247
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
24248
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24249
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24250
|
-
* See the License for the specific language governing permissions and
|
|
24251
|
-
* limitations under the License.
|
|
24252
|
-
*
|
|
24253
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
24254
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
24255
|
-
* */
|
|
24256
|
-
var areaDialogType = uiTypes.DialogTypes.AreaManager;
|
|
24257
|
-
var DrawingToolMapButtonConnect = function DrawingToolMapButtonConnect(_ref) {
|
|
24258
|
-
var mapId = _ref.mapId,
|
|
24259
|
-
_ref$source = _ref.source,
|
|
24260
|
-
source = _ref$source === void 0 ? 'app' : _ref$source;
|
|
24261
|
-
var _useMapDrawContext = useMapDrawContext(),
|
|
24262
|
-
deactivateTool = _useMapDrawContext.deactivateTool;
|
|
24263
|
-
// TODO: Re-enable when we put back in the floating version when drawing tools become available: https://gitlab.com/opengeoweb/opengeoweb/-/issues/3872
|
|
24264
|
-
var drawingDialogType = "".concat(uiTypes.DialogTypes.DockedDrawingTool, "-").concat(mapId);
|
|
24265
|
-
// const drawingDialogType = isMultiMap
|
|
24266
|
-
// ? `${uiTypes.DialogTypes.DrawingTool}-${mapId}`
|
|
24267
|
-
// : uiTypes.DialogTypes.DrawingTool;
|
|
24268
|
-
var _useAreaDrawDialogAct = useAreaDrawDialogAction({
|
|
24269
|
-
mapId: mapId,
|
|
24270
|
-
source: source
|
|
24271
|
-
}),
|
|
24272
|
-
closeAreaDialog = _useAreaDrawDialogAct.closeAreaDialog,
|
|
24273
|
-
openDrawDialog = _useAreaDrawDialogAct.openDrawDialog,
|
|
24274
|
-
closeDrawDialog = _useAreaDrawDialogAct.closeDrawDialog;
|
|
24275
|
-
var currentActiveMapId = useSelector(function (store) {
|
|
24276
|
-
return uiSelectors.getDialogMapId(store, drawingDialogType);
|
|
24277
|
-
});
|
|
24278
|
-
var isDrawDialogOpen = useSelector(function (store) {
|
|
24279
|
-
return uiSelectors.getisDialogOpen(store, drawingDialogType);
|
|
24280
|
-
});
|
|
24281
|
-
var isAreaDialogOpen = useSelector(function (store) {
|
|
24282
|
-
return uiSelectors.getisDialogOpen(store, areaDialogType);
|
|
24283
|
-
});
|
|
24284
|
-
var openDrawingDialog = React.useCallback(function () {
|
|
24285
|
-
if (isAreaDialogOpen) {
|
|
24286
|
-
closeAreaDialog();
|
|
24287
|
-
}
|
|
24288
|
-
openDrawDialog();
|
|
24289
|
-
}, [isAreaDialogOpen, closeAreaDialog, openDrawDialog]);
|
|
24290
|
-
var closeDrawingDialog = React.useCallback(function () {
|
|
24291
|
-
deactivateTool();
|
|
24292
|
-
closeDrawDialog();
|
|
24293
|
-
}, [deactivateTool, closeDrawDialog]);
|
|
24294
|
-
var onClick = React.useCallback(function () {
|
|
24295
|
-
var shouldOpen = currentActiveMapId !== mapId ? true : !isDrawDialogOpen;
|
|
24296
|
-
shouldOpen ? openDrawingDialog() : closeDrawingDialog();
|
|
24297
|
-
}, [currentActiveMapId, isDrawDialogOpen, mapId, closeDrawingDialog, openDrawingDialog]);
|
|
24298
|
-
var isOpen = currentActiveMapId === mapId && isDrawDialogOpen;
|
|
24299
|
-
return /*#__PURE__*/React.createElement(MapControlButton, {
|
|
24300
|
-
title: "Drawing Toolbox",
|
|
24301
|
-
"data-testid": "drawingToolButton",
|
|
24302
|
-
onClick: onClick,
|
|
24303
|
-
isActive: isOpen
|
|
24304
|
-
}, /*#__PURE__*/React.createElement(DrawPolygon, null));
|
|
24305
|
-
};
|
|
24306
|
-
|
|
24307
|
-
var calculateStartSize = function calculateStartSize(minSize, prefSize, startPosition) {
|
|
24308
|
-
var _calculateDialogSizeA = calculateDialogSizeAndPosition(),
|
|
24309
|
-
calcWidth = _calculateDialogSizeA.width,
|
|
24310
|
-
calcHeight = _calculateDialogSizeA.height;
|
|
24311
|
-
return {
|
|
24312
|
-
width: Math.max(minSize.width, Math.min(prefSize.width, calcWidth)),
|
|
24313
|
-
height: Math.max(minSize.height, Math.min(prefSize.height, calcHeight - startPosition.top))
|
|
24314
|
-
};
|
|
24315
|
-
};
|
|
24316
|
-
var DERFAULT_DRAW_TOOL_SIZE = {
|
|
24317
|
-
width: 320,
|
|
24318
|
-
height: 542
|
|
24319
|
-
};
|
|
24320
|
-
var DEFAULT_DRAW_TOOL_POSITION = {
|
|
24321
|
-
top: 120,
|
|
24322
|
-
left: 50
|
|
24323
|
-
};
|
|
24324
|
-
var DEFAULT_DRAW_TOOL_MIN_SIZE = {
|
|
24325
|
-
width: 160,
|
|
24326
|
-
height: 300
|
|
24327
|
-
};
|
|
24328
|
-
var DrawingTool = function DrawingTool(_ref) {
|
|
24329
|
-
var bounds = _ref.bounds,
|
|
24330
|
-
onClose = _ref.onClose,
|
|
24331
|
-
_ref$title = _ref.title,
|
|
24332
|
-
title = _ref$title === void 0 ? 'Drawing Toolbox' : _ref$title,
|
|
24333
|
-
isOpen = _ref.isOpen,
|
|
24334
|
-
_ref$onMouseDown = _ref.onMouseDown,
|
|
24335
|
-
onMouseDown = _ref$onMouseDown === void 0 ? function () {} : _ref$onMouseDown,
|
|
24336
|
-
_ref$order = _ref.order,
|
|
24337
|
-
order = _ref$order === void 0 ? 0 : _ref$order,
|
|
24338
|
-
_ref$source = _ref.source,
|
|
24339
|
-
source = _ref$source === void 0 ? 'app' : _ref$source,
|
|
24340
|
-
_ref$isLoading = _ref.isLoading,
|
|
24341
|
-
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
24342
|
-
error = _ref.error,
|
|
24343
|
-
_ref$isDocked = _ref.isDocked,
|
|
24344
|
-
isDocked = _ref$isDocked === void 0 ? false : _ref$isDocked,
|
|
24345
|
-
_ref$size = _ref.size,
|
|
24346
|
-
size = _ref$size === void 0 ? DERFAULT_DRAW_TOOL_SIZE : _ref$size,
|
|
24347
|
-
_ref$startPosition = _ref.startPosition,
|
|
24348
|
-
startPosition = _ref$startPosition === void 0 ? DEFAULT_DRAW_TOOL_POSITION : _ref$startPosition,
|
|
24349
|
-
_ref$setFocused = _ref.setFocused,
|
|
24350
|
-
setFocused = _ref$setFocused === void 0 ? function () {} : _ref$setFocused,
|
|
24351
|
-
_ref$headerSize = _ref.headerSize,
|
|
24352
|
-
headerSize = _ref$headerSize === void 0 ? 'xs' : _ref$headerSize,
|
|
24353
|
-
children = _ref.children;
|
|
24354
|
-
var minSize = DEFAULT_DRAW_TOOL_MIN_SIZE;
|
|
24355
|
-
var startSizeCalc = calculateStartSize(minSize, size, startPosition);
|
|
24356
|
-
var _React$useState = React.useState(startSizeCalc),
|
|
24357
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
24358
|
-
sizeInState = _React$useState2[0],
|
|
24359
|
-
setSizeInState = _React$useState2[1];
|
|
24360
|
-
React.useEffect(function () {
|
|
24361
|
-
if (size !== sizeInState && isDocked && isOpen) {
|
|
24362
|
-
setSizeInState(size);
|
|
24363
|
-
}
|
|
24364
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24365
|
-
}, [size, isOpen]);
|
|
24366
|
-
return /*#__PURE__*/React.createElement(ToolContainerDraggable, {
|
|
24367
|
-
title: title,
|
|
24368
|
-
startSize: sizeInState,
|
|
24369
|
-
minWidth: minSize.width,
|
|
24370
|
-
minHeight: minSize.height,
|
|
24371
|
-
startPosition: startPosition,
|
|
24372
|
-
isOpen: isOpen,
|
|
24373
|
-
onClose: onClose,
|
|
24374
|
-
headerSize: headerSize,
|
|
24375
|
-
bounds: bounds,
|
|
24376
|
-
"data-testid": "drawingToolWindow",
|
|
24377
|
-
onMouseDown: onMouseDown,
|
|
24378
|
-
onFocus: function onFocus() {
|
|
24379
|
-
return setFocused(true);
|
|
24380
|
-
},
|
|
24381
|
-
onBlur: function onBlur() {
|
|
24382
|
-
return setFocused(false);
|
|
24383
|
-
},
|
|
24384
|
-
order: order,
|
|
24385
|
-
source: source,
|
|
24386
|
-
// TODO: Re-enable when we put back in the floating version when drawing tools become available: https://gitlab.com/opengeoweb/opengeoweb/-/issues/3872
|
|
24387
|
-
// rightHeaderComponent={
|
|
24388
|
-
// <CustomIconButton
|
|
24389
|
-
// tooltipTitle={isDocked ? 'Undock' : 'Dock'}
|
|
24390
|
-
// data-testid="dockedBtn"
|
|
24391
|
-
// disableRipple
|
|
24392
|
-
// onClick={(): void => onToggleDock()}
|
|
24393
|
-
// >
|
|
24394
|
-
// {isDocked ? (
|
|
24395
|
-
// <CollapseWindow data-testid="dockedDrawingTool-collapse" />
|
|
24396
|
-
// ) : (
|
|
24397
|
-
// <ExpandWindow data-testid="dockedDrawingTool-uncollapse" />
|
|
24398
|
-
// )}
|
|
24399
|
-
// </CustomIconButton>
|
|
24400
|
-
// }
|
|
24401
|
-
onResizeStop: function onResizeStop(_event, _direction, node) {
|
|
24402
|
-
var width = node.offsetWidth,
|
|
24403
|
-
height = node.offsetHeight;
|
|
24404
|
-
setSizeInState({
|
|
24405
|
-
width: width,
|
|
24406
|
-
height: height
|
|
24407
|
-
});
|
|
24408
|
-
},
|
|
24409
|
-
onDragEnd: function onDragEnd(_position, dragSize) {
|
|
24410
|
-
if (dragSize !== sizeInState) {
|
|
24411
|
-
setSizeInState(dragSize);
|
|
24412
|
-
}
|
|
24413
|
-
}
|
|
24414
|
-
}, /*#__PURE__*/React.createElement(Box$2, {
|
|
24415
|
-
onKeyDown: function onKeyDown(event) {
|
|
24416
|
-
event.stopPropagation();
|
|
24417
|
-
},
|
|
24418
|
-
sx: {
|
|
24419
|
-
height: '100%'
|
|
24420
|
-
}
|
|
24421
|
-
}, isLoading && /*#__PURE__*/React.createElement(LinearProgress, {
|
|
24422
|
-
"data-testid": "loading-bar-drawingTool",
|
|
24423
|
-
color: "secondary",
|
|
24424
|
-
sx: {
|
|
24425
|
-
position: 'absolute',
|
|
24426
|
-
width: '100%'
|
|
24427
|
-
}
|
|
24428
|
-
}), error && /*#__PURE__*/React.createElement(Box$2, {
|
|
24429
|
-
sx: {
|
|
24430
|
-
padding: '0 6px'
|
|
24431
|
-
}
|
|
24432
|
-
}, /*#__PURE__*/React.createElement(AlertBanner, {
|
|
24433
|
-
title: error,
|
|
24434
|
-
shouldClose: true
|
|
24435
|
-
})), children));
|
|
24436
|
-
};
|
|
24437
|
-
|
|
24438
|
-
var opacityOptions = [100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0];
|
|
24439
|
-
var getAreaName = function getAreaName(areaName) {
|
|
24440
|
-
return areaName || "".concat(dateUtils.dateToString(new Date(), 'dd/MM/yyyy HH:mm', true), " UTC");
|
|
24441
|
-
};
|
|
24442
|
-
var SAVE_AREA_BUTTON = 'Save new area';
|
|
24443
|
-
var UPDATE_AREA_BUTTON = 'Update area';
|
|
24444
|
-
var INPUT_AREA = 'Area name';
|
|
24445
|
-
var INPUT_OPACITY = 'Opacity';
|
|
24446
|
-
var DRAW_EXIT_MODE_MESSAGE = 'press ESC to exit draw mode';
|
|
24447
|
-
var DrawingToolForm = function DrawingToolForm(_ref) {
|
|
24448
|
-
var onSubmitForm = _ref.onSubmitForm,
|
|
24449
|
-
defaultGeoJSON = _ref.area,
|
|
24450
|
-
isLoading = _ref.isLoading,
|
|
24451
|
-
_ref$id = _ref.id,
|
|
24452
|
-
id = _ref$id === void 0 ? '' : _ref$id;
|
|
24453
|
-
var _useFormContext = useFormContext(),
|
|
24454
|
-
handleSubmit = _useFormContext.handleSubmit,
|
|
24455
|
-
errors = _useFormContext.formState.errors;
|
|
24456
|
-
var _useMapDrawContext = useMapDrawContext(),
|
|
24457
|
-
editModes = _useMapDrawContext.editModes,
|
|
24458
|
-
changeActiveTool = _useMapDrawContext.changeActiveTool,
|
|
24459
|
-
activeTool = _useMapDrawContext.activeTool,
|
|
24460
|
-
deactivateTool = _useMapDrawContext.deactivateTool,
|
|
24461
|
-
geoJSON = _useMapDrawContext.geoJSON,
|
|
24462
|
-
getProperties = _useMapDrawContext.getProperties,
|
|
24463
|
-
changeProperties = _useMapDrawContext.changeProperties,
|
|
24464
|
-
isInEditMode = _useMapDrawContext.isInEditMode,
|
|
24465
|
-
setGeoJSON = _useMapDrawContext.setGeoJSON;
|
|
24466
|
-
var onSubmit = function onSubmit() {
|
|
24467
|
-
deactivateTool();
|
|
24468
|
-
handleSubmit(function (formValues) {
|
|
24469
|
-
// remove unneeded properties
|
|
24470
|
-
formValues.opacity;
|
|
24471
|
-
var allFormValues = __rest(formValues, ["opacity"]);
|
|
24472
|
-
onSubmitForm(Object.assign(Object.assign({}, allFormValues), {
|
|
24473
|
-
area: geoJSON,
|
|
24474
|
-
id: id
|
|
24475
|
-
}));
|
|
24476
|
-
})();
|
|
24477
|
-
};
|
|
24478
|
-
var hasErrors = Object.keys(errors).length > 0;
|
|
24479
|
-
var getInitialGeoJSONPropertyValue = function getInitialGeoJSONPropertyValue(property) {
|
|
24480
|
-
if (getProperties()[property]) {
|
|
24481
|
-
return getProperties()[property];
|
|
24482
|
-
}
|
|
24483
|
-
return defaultStyleProperties[property];
|
|
24484
|
-
};
|
|
24485
|
-
var _React$useState = React.useState(getInitialGeoJSONPropertyValue('fill-opacity') * 100),
|
|
24486
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
24487
|
-
opacity = _React$useState2[0],
|
|
24488
|
-
setOpacity = _React$useState2[1];
|
|
24489
|
-
var onChangeOpacity = function onChangeOpacity(event) {
|
|
24490
|
-
var value = event.target.value;
|
|
24491
|
-
var parseValue = parseInt(value, 10);
|
|
24492
|
-
setOpacity(parseValue);
|
|
24493
|
-
var newOpacity = parseValue / 100;
|
|
24494
|
-
var additionalStrokeOpacity = 0.8;
|
|
24495
|
-
changeProperties({
|
|
24496
|
-
'fill-opacity': newOpacity,
|
|
24497
|
-
'stroke-opacity': clamp$1(newOpacity + additionalStrokeOpacity, 0.01, 1)
|
|
24498
|
-
});
|
|
24499
|
-
};
|
|
24500
|
-
var onKeyDown = function onKeyDown(event) {
|
|
24501
|
-
if (event.key === 'Escape') {
|
|
24502
|
-
deactivateTool();
|
|
24503
|
-
}
|
|
24504
|
-
};
|
|
24505
|
-
var onMount = function onMount() {
|
|
24506
|
-
// sets the initial values
|
|
24507
|
-
if (defaultGeoJSON) {
|
|
24508
|
-
// TODO: defaults open to poly. When creating new tools, this should be based on the selectionType properties of the given geoJSON
|
|
24509
|
-
changeActiveTool(editModes[0]);
|
|
24510
|
-
setGeoJSON(defaultGeoJSON);
|
|
24511
|
-
}
|
|
24512
|
-
};
|
|
24513
|
-
var onUnMount = function onUnMount() {
|
|
24514
|
-
// clear shape
|
|
24515
|
-
changeActiveTool(editModes.find(function (mode) {
|
|
24516
|
-
return mode.value === 'DELETE';
|
|
24517
|
-
}));
|
|
24518
|
-
};
|
|
24519
|
-
React.useEffect(function () {
|
|
24520
|
-
onMount();
|
|
24521
|
-
return function () {
|
|
24522
|
-
onUnMount();
|
|
24523
|
-
};
|
|
24524
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24525
|
-
}, []);
|
|
24526
|
-
return /*#__PURE__*/React.createElement(Box$2, {
|
|
24527
|
-
"data-testid": "drawingToolForm",
|
|
24528
|
-
sx: {
|
|
24529
|
-
padding: '16px',
|
|
24530
|
-
height: '100%'
|
|
24531
|
-
}
|
|
24532
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
24533
|
-
container: true,
|
|
24534
|
-
direction: "column",
|
|
24535
|
-
justifyContent: "space-between",
|
|
24536
|
-
sx: {
|
|
24537
|
-
height: '100%'
|
|
24538
|
-
}
|
|
24539
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
24540
|
-
item: true,
|
|
24541
|
-
container: true,
|
|
24542
|
-
direction: "column",
|
|
24543
|
-
spacing: 1
|
|
24544
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
24545
|
-
item: true
|
|
24546
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
24547
|
-
variant: "body2"
|
|
24548
|
-
}, "Tools")), /*#__PURE__*/React.createElement(Grid, {
|
|
24549
|
-
item: true,
|
|
24550
|
-
container: true
|
|
24551
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
24552
|
-
item: true
|
|
24553
|
-
}, editModes.map(function (mode) {
|
|
24554
|
-
return /*#__PURE__*/React.createElement(CustomIconButton, {
|
|
24555
|
-
key: mode.id,
|
|
24556
|
-
variant: "tool",
|
|
24557
|
-
tooltipTitle: mode.title,
|
|
24558
|
-
isSelected: mode.isSelectable && activeTool === mode.id,
|
|
24559
|
-
onClick: function onClick() {
|
|
24560
|
-
return changeActiveTool(mode);
|
|
24561
|
-
},
|
|
24562
|
-
sx: {
|
|
24563
|
-
marginRight: 1,
|
|
24564
|
-
marginBottom: 1
|
|
24565
|
-
},
|
|
24566
|
-
"data-testid": mode.id,
|
|
24567
|
-
onKeyDown: onKeyDown,
|
|
24568
|
-
disabled: isLoading
|
|
24569
|
-
}, mode.icon);
|
|
24570
|
-
}), isInEditMode && /*#__PURE__*/React.createElement(Typography, {
|
|
24571
|
-
component: "span",
|
|
24572
|
-
sx: {
|
|
24573
|
-
display: 'inline-block',
|
|
24574
|
-
marginLeft: 2,
|
|
24575
|
-
top: -1,
|
|
24576
|
-
position: 'relative',
|
|
24577
|
-
fontSize: 14
|
|
24578
|
-
}
|
|
24579
|
-
}, DRAW_EXIT_MODE_MESSAGE))), /*#__PURE__*/React.createElement(Grid, {
|
|
24580
|
-
item: true,
|
|
24581
|
-
container: true
|
|
24582
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
24583
|
-
item: true,
|
|
24584
|
-
xs: 12,
|
|
24585
|
-
sm: 6
|
|
24586
|
-
}, /*#__PURE__*/React.createElement(ReactHookFormSelect, {
|
|
24587
|
-
name: "opacity",
|
|
24588
|
-
label: INPUT_OPACITY,
|
|
24589
|
-
rules: {},
|
|
24590
|
-
disabled: isLoading,
|
|
24591
|
-
isReadOnly: false,
|
|
24592
|
-
"data-testid": "drawingToolForm-opacity",
|
|
24593
|
-
onChange: onChangeOpacity,
|
|
24594
|
-
autoFocus: true,
|
|
24595
|
-
value: opacity
|
|
24596
|
-
}, opacityOptions.map(function (opacity) {
|
|
24597
|
-
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
24598
|
-
value: opacity,
|
|
24599
|
-
key: opacity
|
|
24600
|
-
}, opacity, " %");
|
|
24601
|
-
})))), /*#__PURE__*/React.createElement(Grid, {
|
|
24602
|
-
item: true
|
|
24603
|
-
}, /*#__PURE__*/React.createElement(ReactHookFormTextField, {
|
|
24604
|
-
name: "areaName",
|
|
24605
|
-
label: INPUT_AREA,
|
|
24606
|
-
rules: {
|
|
24607
|
-
required: true
|
|
24608
|
-
},
|
|
24609
|
-
disabled: isLoading,
|
|
24610
|
-
isReadOnly: false
|
|
24611
|
-
}), /*#__PURE__*/React.createElement(ReactHookFormHiddenInput, {
|
|
24612
|
-
name: "id"
|
|
24613
|
-
}))), /*#__PURE__*/React.createElement(Grid, {
|
|
24614
|
-
item: true
|
|
24615
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
24616
|
-
variant: "primary",
|
|
24617
|
-
onClick: onSubmit,
|
|
24618
|
-
sx: {
|
|
24619
|
-
width: '100%',
|
|
24620
|
-
textTransform: 'none'
|
|
24621
|
-
},
|
|
24622
|
-
"data-testid": "saveDrawingFormButton",
|
|
24623
|
-
// TODO: re-enable for: https://gitlab.com/opengeoweb/opengeoweb/-/issues/4080
|
|
24624
|
-
// disabled={isLoading || hasErrors}
|
|
24625
|
-
disabled: isLoading || id !== '' || hasErrors
|
|
24626
|
-
}, id !== '' ? UPDATE_AREA_BUTTON : SAVE_AREA_BUTTON))));
|
|
24627
|
-
};
|
|
24628
|
-
var Wrapper = function Wrapper(props) {
|
|
24629
|
-
var _props$id = props.id,
|
|
24630
|
-
id = _props$id === void 0 ? '' : _props$id,
|
|
24631
|
-
_props$areaName = props.areaName,
|
|
24632
|
-
areaName = _props$areaName === void 0 ? '' : _props$areaName,
|
|
24633
|
-
area = props.area;
|
|
24634
|
-
return /*#__PURE__*/React.createElement(ReactHookFormProvider, {
|
|
24635
|
-
options: Object.assign(Object.assign({}, defaultFormOptions), {
|
|
24636
|
-
defaultValues: {
|
|
24637
|
-
id: id,
|
|
24638
|
-
area: area,
|
|
24639
|
-
areaName: getAreaName(areaName)
|
|
24640
|
-
}
|
|
24641
|
-
})
|
|
24642
|
-
}, /*#__PURE__*/React.createElement(DrawingToolForm, Object.assign({}, props)));
|
|
24643
|
-
};
|
|
24644
|
-
|
|
24645
|
-
/* *
|
|
24646
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
24647
|
-
* you may not use this file except in compliance with the License.
|
|
24648
|
-
* You may obtain a copy of the License at
|
|
24649
|
-
*
|
|
24650
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
24651
|
-
*
|
|
24652
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
24653
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24654
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24655
|
-
* See the License for the specific language governing permissions and
|
|
24656
|
-
* limitations under the License.
|
|
24657
|
-
*
|
|
24658
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
24659
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
24660
|
-
* */
|
|
24661
|
-
var DrawingToolFormConnect = function DrawingToolFormConnect(_ref) {
|
|
24662
|
-
var mapId = _ref.mapId;
|
|
24663
|
-
var dispatch = useDispatch();
|
|
24664
|
-
var drawing = useSelector(function (store) {
|
|
24665
|
-
return drawSelectors.selectDrawByMapId(store, mapId);
|
|
24666
|
-
});
|
|
24667
|
-
var isDialogLoading = useSelector(function (store) {
|
|
24668
|
-
return uiSelectors.getDialogIsLoading(store, "".concat(uiTypes.DialogTypes.DockedDrawingTool, "-").concat(mapId));
|
|
24669
|
-
});
|
|
24670
|
-
var onSubmitForm = function onSubmitForm(formValues) {
|
|
24671
|
-
dispatch(drawActions.submitDrawValues({
|
|
24672
|
-
mapId: mapId,
|
|
24673
|
-
area: formValues.area,
|
|
24674
|
-
name: formValues.areaName,
|
|
24675
|
-
scope: 'user'
|
|
24676
|
-
}));
|
|
24677
|
-
};
|
|
24678
|
-
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
24679
|
-
id: drawing === null || drawing === void 0 ? void 0 : drawing.id,
|
|
24680
|
-
onSubmitForm: onSubmitForm,
|
|
24681
|
-
areaName: drawing === null || drawing === void 0 ? void 0 : drawing.areaName,
|
|
24682
|
-
area: drawing === null || drawing === void 0 ? void 0 : drawing.area,
|
|
24683
|
-
isLoading: isDialogLoading
|
|
24684
|
-
});
|
|
24685
|
-
};
|
|
24686
|
-
|
|
24687
|
-
/* *
|
|
24688
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
24689
|
-
* you may not use this file except in compliance with the License.
|
|
24690
|
-
* You may obtain a copy of the License at
|
|
24691
|
-
*
|
|
24692
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
24693
|
-
*
|
|
24694
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
24695
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24696
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24697
|
-
* See the License for the specific language governing permissions and
|
|
24698
|
-
* limitations under the License.
|
|
24699
|
-
*
|
|
24700
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
24701
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
24702
|
-
* */
|
|
24703
|
-
var getDialogType = function getDialogType(mapId, isMultiMap, isDocked) {
|
|
24704
|
-
if (isDocked) {
|
|
24705
|
-
return "".concat(uiTypes.DialogTypes.DockedDrawingTool, "-").concat(mapId);
|
|
24706
|
-
}
|
|
24707
|
-
if (isMultiMap) {
|
|
24708
|
-
return "".concat(uiTypes.DialogTypes.DrawingTool, "-").concat(mapId);
|
|
24709
|
-
}
|
|
24710
|
-
return uiTypes.DialogTypes.DrawingTool;
|
|
24711
|
-
};
|
|
24712
|
-
var DrawingToolConnect = function DrawingToolConnect(_ref) {
|
|
24713
|
-
var bounds = _ref.bounds,
|
|
24714
|
-
_ref$title = _ref.title,
|
|
24715
|
-
title = _ref$title === void 0 ? 'Drawing Toolbox' : _ref$title,
|
|
24716
|
-
_ref$showMapIdInTitle = _ref.showMapIdInTitle,
|
|
24717
|
-
showMapIdInTitle = _ref$showMapIdInTitle === void 0 ? false : _ref$showMapIdInTitle,
|
|
24718
|
-
_ref$mapId = _ref.mapId,
|
|
24719
|
-
initialMapId = _ref$mapId === void 0 ? null : _ref$mapId,
|
|
24720
|
-
_ref$isMultiMap = _ref.isMultiMap,
|
|
24721
|
-
isMultiMap = _ref$isMultiMap === void 0 ? false : _ref$isMultiMap,
|
|
24722
|
-
_ref$isDocked = _ref.isDocked,
|
|
24723
|
-
isDocked = _ref$isDocked === void 0 ? false : _ref$isDocked,
|
|
24724
|
-
_ref$source = _ref.source,
|
|
24725
|
-
source = _ref$source === void 0 ? 'app' : _ref$source;
|
|
24726
|
-
var dialogType = getDialogType(initialMapId, isMultiMap, isDocked);
|
|
24727
|
-
var _useMapDrawContext = useMapDrawContext(),
|
|
24728
|
-
deactivateTool = _useMapDrawContext.deactivateTool;
|
|
24729
|
-
var activeMapId = useSelector(function (store) {
|
|
24730
|
-
return uiSelectors.getDialogMapId(store, dialogType);
|
|
24731
|
-
});
|
|
24732
|
-
// In case of a docked drawing toolbox or multimap, use the map id that is passed
|
|
24733
|
-
// For floating drawingtoolbox, use the currently active, selected mapid
|
|
24734
|
-
var mapId = initialMapId || activeMapId;
|
|
24735
|
-
var _useAreaDrawDialogAct = useAreaDrawDialogAction({
|
|
24736
|
-
mapId: mapId,
|
|
24737
|
-
source: source
|
|
24738
|
-
}),
|
|
24739
|
-
closeDrawDialog = _useAreaDrawDialogAct.closeDrawDialog;
|
|
24740
|
-
var _useSetupDialog = useSetupDialog(dialogType, source),
|
|
24741
|
-
dialogOrder = _useSetupDialog.dialogOrder,
|
|
24742
|
-
setDialogOrder = _useSetupDialog.setDialogOrder,
|
|
24743
|
-
isDialogOpen = _useSetupDialog.isDialogOpen,
|
|
24744
|
-
uiSource = _useSetupDialog.uiSource,
|
|
24745
|
-
uiIsLoading = _useSetupDialog.uiIsLoading,
|
|
24746
|
-
uiError = _useSetupDialog.uiError,
|
|
24747
|
-
setFocused = _useSetupDialog.setFocused;
|
|
24748
|
-
// TODO: Re-enable when we put back in the floating version when drawing tools become available: https://gitlab.com/opengeoweb/opengeoweb/-/issues/3872
|
|
24749
|
-
// const onToggleDock = (): void => {
|
|
24750
|
-
// onCloseDialog();
|
|
24751
|
-
// if (isDocked) {
|
|
24752
|
-
// // Close docked drawingtool and open the floating drawingtool
|
|
24753
|
-
// dispatch(
|
|
24754
|
-
// uiActions.setActiveMapIdForDialog({
|
|
24755
|
-
// type: uiTypes.DialogTypes.DrawingTool,
|
|
24756
|
-
// mapId,
|
|
24757
|
-
// setOpen: true,
|
|
24758
|
-
// source,
|
|
24759
|
-
// }),
|
|
24760
|
-
// );
|
|
24761
|
-
// } else {
|
|
24762
|
-
// // Close the floating drawingtool and open docked drawingtool
|
|
24763
|
-
// dispatch(
|
|
24764
|
-
// uiActions.setToggleOpenDialog({
|
|
24765
|
-
// type: `${uiTypes.DialogTypes.DockedDrawingTool}-${mapId}`,
|
|
24766
|
-
// setOpen: true,
|
|
24767
|
-
// }),
|
|
24768
|
-
// );
|
|
24769
|
-
// }
|
|
24770
|
-
// };
|
|
24771
|
-
var shownTitle = showMapIdInTitle ? "".concat(title, " ").concat(mapId) : title;
|
|
24772
|
-
var onClose = function onClose() {
|
|
24773
|
-
deactivateTool();
|
|
24774
|
-
closeDrawDialog();
|
|
24775
|
-
};
|
|
24776
|
-
if (!isDialogOpen) {
|
|
24777
|
-
return null;
|
|
24778
|
-
}
|
|
24779
|
-
return /*#__PURE__*/React.createElement(DrawingTool, {
|
|
24780
|
-
bounds: bounds,
|
|
24781
|
-
isOpen: isDialogOpen,
|
|
24782
|
-
onClose: onClose,
|
|
24783
|
-
title: shownTitle,
|
|
24784
|
-
onMouseDown: setDialogOrder,
|
|
24785
|
-
order: dialogOrder,
|
|
24786
|
-
source: uiSource,
|
|
24787
|
-
isLoading: uiIsLoading,
|
|
24788
|
-
error: uiError,
|
|
24789
|
-
// onToggleDock={onToggleDock}
|
|
24790
|
-
setFocused: setFocused,
|
|
24791
|
-
headerSize: "xs",
|
|
24792
|
-
isDocked: isDocked,
|
|
24793
|
-
startPosition: {
|
|
24794
|
-
top: 134,
|
|
24795
|
-
left: 50
|
|
24796
|
-
}
|
|
24797
|
-
}, /*#__PURE__*/React.createElement(DrawingToolFormConnect, {
|
|
24798
|
-
mapId: mapId
|
|
24799
|
-
}));
|
|
24800
|
-
};
|
|
24801
|
-
|
|
24802
|
-
var titleStyle = function titleStyle(theme) {
|
|
24803
|
-
return {
|
|
24804
|
-
position: 'absolute',
|
|
24805
|
-
padding: '5px',
|
|
24806
|
-
zIndex: 50,
|
|
24807
|
-
color: theme.palette.common.black,
|
|
24808
|
-
whiteSpace: 'nowrap',
|
|
24809
|
-
userSelect: 'none'
|
|
24810
|
-
};
|
|
24811
|
-
};
|
|
24812
|
-
var defaultBbox = {
|
|
24813
|
-
srs: 'EPSG:3857',
|
|
24814
|
-
bbox: {
|
|
24815
|
-
left: 58703.6377,
|
|
24816
|
-
bottom: 6408480.4514,
|
|
24817
|
-
right: 3967387.5161,
|
|
24818
|
-
top: 11520588.9031
|
|
24819
|
-
}
|
|
24820
|
-
};
|
|
24821
|
-
var BaseConfigurableMapConnect = function BaseConfigurableMapConnect(_a) {
|
|
24822
|
-
var id = _a.id,
|
|
24823
|
-
dockedLayerManagerSize = _a.dockedLayerManagerSize,
|
|
24824
|
-
title = _a.title,
|
|
24825
|
-
_a$layers = _a.layers,
|
|
24826
|
-
layers = _a$layers === void 0 ? [] : _a$layers,
|
|
24827
|
-
_a$dimensions = _a.dimensions,
|
|
24828
|
-
dimensions = _a$dimensions === void 0 ? [] : _a$dimensions,
|
|
24829
|
-
_a$shouldAutoUpdate = _a.shouldAutoUpdate,
|
|
24830
|
-
shouldAutoUpdate = _a$shouldAutoUpdate === void 0 ? false : _a$shouldAutoUpdate,
|
|
24831
|
-
_a$shouldAnimate = _a.shouldAnimate,
|
|
24832
|
-
shouldAnimate = _a$shouldAnimate === void 0 ? false : _a$shouldAnimate,
|
|
24833
|
-
_a$bbox = _a.bbox,
|
|
24834
|
-
bbox = _a$bbox === void 0 ? defaultBbox.bbox : _a$bbox,
|
|
24835
|
-
_a$srs = _a.srs,
|
|
24836
|
-
srs = _a$srs === void 0 ? defaultBbox.srs : _a$srs,
|
|
24837
|
-
_a$shouldShowZoomCont = _a.shouldShowZoomControls,
|
|
24838
|
-
shouldShowZoomControls = _a$shouldShowZoomCont === void 0 ? true : _a$shouldShowZoomCont,
|
|
24839
|
-
_a$displayMapPin = _a.displayMapPin,
|
|
24840
|
-
displayMapPin = _a$displayMapPin === void 0 ? false : _a$displayMapPin,
|
|
24841
|
-
_a$showTimeSlider = _a.showTimeSlider,
|
|
24842
|
-
showTimeSlider = _a$showTimeSlider === void 0 ? true : _a$showTimeSlider,
|
|
24843
|
-
_a$disableTimeSlider = _a.disableTimeSlider,
|
|
24844
|
-
disableTimeSlider = _a$disableTimeSlider === void 0 ? false : _a$disableTimeSlider,
|
|
24845
|
-
_a$displayTimeInMap = _a.displayTimeInMap,
|
|
24846
|
-
displayTimeInMap = _a$displayTimeInMap === void 0 ? false : _a$displayTimeInMap,
|
|
24847
|
-
_a$displayLayerManage = _a.displayLayerManagerAndLegendButtonInMap,
|
|
24848
|
-
displayLayerManagerAndLegendButtonInMap = _a$displayLayerManage === void 0 ? true : _a$displayLayerManage,
|
|
24849
|
-
_a$displayDimensionSe = _a.displayDimensionSelectButtonInMap,
|
|
24850
|
-
displayDimensionSelectButtonInMap = _a$displayDimensionSe === void 0 ? true : _a$displayDimensionSe,
|
|
24851
|
-
_a$multiLegend = _a.multiLegend,
|
|
24852
|
-
multiLegend = _a$multiLegend === void 0 ? true : _a$multiLegend,
|
|
24853
|
-
shouldShowLayerManager = _a.shouldShowLayerManager,
|
|
24854
|
-
shouldShowDockedLayerManager = _a.shouldShowDockedLayerManager,
|
|
24855
|
-
_a$showClock = _a.showClock,
|
|
24856
|
-
showClock = _a$showClock === void 0 ? true : _a$showClock,
|
|
24857
|
-
_a$displayGetFeatureI = _a.displayGetFeatureInfoButtonInMap,
|
|
24858
|
-
displayGetFeatureInfoButtonInMap = _a$displayGetFeatureI === void 0 ? false : _a$displayGetFeatureI,
|
|
24859
|
-
_a$shouldDisplayDrawC = _a.shouldDisplayDrawControls,
|
|
24860
|
-
shouldDisplayDrawControls = _a$shouldDisplayDrawC === void 0 ? false : _a$shouldDisplayDrawC,
|
|
24861
|
-
mapControls = _a.mapControls,
|
|
24862
|
-
children = _a.children,
|
|
24863
|
-
props = __rest(_a, ["id", "dockedLayerManagerSize", "title", "layers", "dimensions", "shouldAutoUpdate", "shouldAnimate", "bbox", "srs", "shouldShowZoomControls", "displayMapPin", "showTimeSlider", "disableTimeSlider", "displayTimeInMap", "displayLayerManagerAndLegendButtonInMap", "displayDimensionSelectButtonInMap", "multiLegend", "shouldShowLayerManager", "shouldShowDockedLayerManager", "showClock", "displayGetFeatureInfoButtonInMap", "shouldDisplayDrawControls", "mapControls", "children"]);
|
|
24864
|
-
var dispatch = useDispatch();
|
|
24865
|
-
var mapId = React__default.useRef(id || webmapUtils.generateMapId()).current;
|
|
24866
|
-
React__default.useEffect(function () {
|
|
24867
|
-
var layersWithDefaultBaseLayer = layers.find(function (layer) {
|
|
24868
|
-
return layer.layerType === LayerType.baseLayer;
|
|
24869
|
-
}) ? layers : [].concat(_toConsumableArray(layers), [defaultLayers.baseLayerGrey]);
|
|
24870
|
-
var layersWithDefaultOverLayer = layersWithDefaultBaseLayer.find(function (layer) {
|
|
24871
|
-
return layer.layerType === LayerType.overLayer;
|
|
24872
|
-
}) ? layersWithDefaultBaseLayer : [].concat(_toConsumableArray(layersWithDefaultBaseLayer), [defaultLayers.overLayer]);
|
|
24873
|
-
var mapPreset = Object.assign({
|
|
24874
|
-
layers: layersWithDefaultOverLayer,
|
|
24875
|
-
proj: {
|
|
24876
|
-
bbox: bbox,
|
|
24877
|
-
srs: srs
|
|
24878
|
-
},
|
|
24879
|
-
dimensions: dimensions,
|
|
24880
|
-
shouldAutoUpdate: shouldAutoUpdate,
|
|
24881
|
-
shouldAnimate: shouldAnimate,
|
|
24882
|
-
shouldShowZoomControls: shouldShowZoomControls,
|
|
24883
|
-
displayMapPin: displayMapPin,
|
|
24884
|
-
showTimeSlider: showTimeSlider,
|
|
24885
|
-
dockedLayerManagerSize: dockedLayerManagerSize
|
|
24886
|
-
}, props);
|
|
24887
|
-
var initialProps = {
|
|
24888
|
-
mapPreset: mapPreset
|
|
24889
|
-
};
|
|
24890
|
-
dispatch(mapActions.setMapPreset({
|
|
24891
|
-
mapId: mapId,
|
|
24892
|
-
initialProps: initialProps
|
|
24893
|
-
}));
|
|
24894
|
-
if (shouldShowLayerManager !== undefined) {
|
|
24895
|
-
dispatch(uiActions.setActiveMapIdForDialog({
|
|
24896
|
-
type: uiTypes.DialogTypes.LayerManager,
|
|
24897
|
-
mapId: mapId,
|
|
24898
|
-
setOpen: shouldShowLayerManager,
|
|
24899
|
-
source: 'app'
|
|
23912
|
+
setOpen: shouldShowLayerManager,
|
|
23913
|
+
source: 'app'
|
|
24900
23914
|
}));
|
|
24901
23915
|
}
|
|
24902
23916
|
if (shouldShowDockedLayerManager) {
|
|
@@ -24911,16 +23925,20 @@ var BaseConfigurableMapConnect = function BaseConfigurableMapConnect(_a) {
|
|
|
24911
23925
|
setOpen: true
|
|
24912
23926
|
}));
|
|
24913
23927
|
}
|
|
23928
|
+
if (shouldDisplayDrawControls) {
|
|
23929
|
+
dispatch(mapStoreActions.addLayer({
|
|
23930
|
+
mapId: mapId,
|
|
23931
|
+
layer: {
|
|
23932
|
+
geojson: emptyGeoJSON,
|
|
23933
|
+
layerType: LayerType.featureLayer
|
|
23934
|
+
},
|
|
23935
|
+
layerId: getSingularDrawtoolDrawLayerId(mapId),
|
|
23936
|
+
origin: 'ConfigurableMapConnect'
|
|
23937
|
+
}));
|
|
23938
|
+
}
|
|
24914
23939
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24915
23940
|
}, []);
|
|
24916
23941
|
var mapControlsPositionTop = title ? 24 : 8;
|
|
24917
|
-
// draw tools
|
|
24918
|
-
var _useMapDrawContext = useMapDrawContext(),
|
|
24919
|
-
geoJSONLayers = _useMapDrawContext.layers,
|
|
24920
|
-
deactivateTool = _useMapDrawContext.deactivateTool;
|
|
24921
|
-
var onExitDrawMode = function onExitDrawMode() {
|
|
24922
|
-
deactivateTool();
|
|
24923
|
-
};
|
|
24924
23942
|
return /*#__PURE__*/React__default.createElement(Box$2, {
|
|
24925
23943
|
sx: {
|
|
24926
23944
|
width: '100%',
|
|
@@ -24948,8 +23966,6 @@ var BaseConfigurableMapConnect = function BaseConfigurableMapConnect(_a) {
|
|
|
24948
23966
|
mapId: mapId
|
|
24949
23967
|
}), displayGetFeatureInfoButtonInMap && /*#__PURE__*/React__default.createElement(GetFeatureInfoButtonConnect, {
|
|
24950
23968
|
mapId: mapId
|
|
24951
|
-
}), shouldDisplayDrawControls && /*#__PURE__*/React__default.createElement(DrawingToolMapButtonConnect, {
|
|
24952
|
-
mapId: mapId
|
|
24953
23969
|
}), mapControls), !disableTimeSlider && /*#__PURE__*/React__default.createElement(Box$2, {
|
|
24954
23970
|
sx: {
|
|
24955
23971
|
position: 'absolute',
|
|
@@ -24966,13 +23982,7 @@ var BaseConfigurableMapConnect = function BaseConfigurableMapConnect(_a) {
|
|
|
24966
23982
|
displayTimeInMap: displayTimeInMap,
|
|
24967
23983
|
showScaleBar: false,
|
|
24968
23984
|
mapId: mapId
|
|
24969
|
-
}, children
|
|
24970
|
-
return /*#__PURE__*/React__default.createElement(MapViewLayer, Object.assign({
|
|
24971
|
-
key: layer.id
|
|
24972
|
-
}, layer, {
|
|
24973
|
-
exitDrawModeCallback: onExitDrawMode
|
|
24974
|
-
}));
|
|
24975
|
-
})), multiLegend && /*#__PURE__*/React__default.createElement(LegendConnect, {
|
|
23985
|
+
}, children), multiLegend && /*#__PURE__*/React__default.createElement(LegendConnect, {
|
|
24976
23986
|
showMapId: true,
|
|
24977
23987
|
mapId: mapId,
|
|
24978
23988
|
multiLegend: multiLegend
|
|
@@ -24985,17 +23995,8 @@ var BaseConfigurableMapConnect = function BaseConfigurableMapConnect(_a) {
|
|
|
24985
23995
|
mapId: mapId,
|
|
24986
23996
|
bounds: "parent",
|
|
24987
23997
|
isDocked: true
|
|
24988
|
-
}), shouldDisplayDrawControls && /*#__PURE__*/React__default.createElement(DrawingToolConnect, {
|
|
24989
|
-
mapId: mapId,
|
|
24990
|
-
isDocked: true,
|
|
24991
|
-
bounds: "parent"
|
|
24992
23998
|
}));
|
|
24993
23999
|
};
|
|
24994
|
-
var ConfigurableMapConnect = function ConfigurableMapConnect(props) {
|
|
24995
|
-
return /*#__PURE__*/React__default.createElement(MapDrawToolProvider, {
|
|
24996
|
-
options: drawOptions
|
|
24997
|
-
}, /*#__PURE__*/React__default.createElement(BaseConfigurableMapConnect, Object.assign({}, props)));
|
|
24998
|
-
};
|
|
24999
24000
|
|
|
25000
24001
|
/* *
|
|
25001
24002
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -25794,6 +24795,7 @@ var HOUR_TO_SECOND = 3600;
|
|
|
25794
24795
|
var HOUR_TO_MINUTE = 60;
|
|
25795
24796
|
var MILLISECOND_TO_DAY = 1 / 86400000;
|
|
25796
24797
|
var MILLISECOND_TO_SECOND = 1 / 1000;
|
|
24798
|
+
var MILLISECOND_TO_MINUTE = 1 / 60000;
|
|
25797
24799
|
var MINUTE_TO_SECOND = 60;
|
|
25798
24800
|
var SECOND_TO_DAY = 1 / 86400;
|
|
25799
24801
|
var SECOND_TO_HOUR = 1 / 3600;
|
|
@@ -25863,6 +24865,11 @@ var getNearestSelectableTime = function getNearestSelectableTime(timeStep, start
|
|
|
25863
24865
|
var result = isBetweenObservedAndForecast ? roundedCurrentTime : floorLocalSeconds(hoveredTime + timeStepSeconds / 2, timeStepSeconds);
|
|
25864
24866
|
return result;
|
|
25865
24867
|
};
|
|
24868
|
+
var floorLocalMinutes = function floorLocalMinutes(selectedTimeMinutes, timeStepMinutes, timeZoneOffsetMinutes) {
|
|
24869
|
+
var localTimeZoneOffset = timeZoneOffsetMinutes !== null && timeZoneOffsetMinutes !== void 0 ? timeZoneOffsetMinutes : new Date().getTimezoneOffset();
|
|
24870
|
+
var unFlooredTimeSteps = (selectedTimeMinutes - localTimeZoneOffset) / timeStepMinutes;
|
|
24871
|
+
return Math.floor(unFlooredTimeSteps) * timeStepMinutes + localTimeZoneOffset;
|
|
24872
|
+
};
|
|
25866
24873
|
var floorLocalSeconds = function floorLocalSeconds(selectedTimeSeconds, timeStepSeconds, timeZoneOffsetSeconds) {
|
|
25867
24874
|
var localTimeZoneOffset = timeZoneOffsetSeconds !== null && timeZoneOffsetSeconds !== void 0 ? timeZoneOffsetSeconds : new Date().getTimezoneOffset() * 60;
|
|
25868
24875
|
var unFlooredTimeSteps = (selectedTimeSeconds - localTimeZoneOffset) / timeStepSeconds;
|
|
@@ -26016,6 +25023,54 @@ var getRemainingHours = function getRemainingHours(maxHours, days) {
|
|
|
26016
25023
|
var secondsSinceLocalMidnight = function secondsSinceLocalMidnight(currentTimeInSeconds) {
|
|
26017
25024
|
return new Date(currentTimeInSeconds * 1000).getHours() * HOUR_TO_SECOND + new Date(currentTimeInSeconds * 1000).getMinutes() * MINUTE_TO_SECOND + new Date(currentTimeInSeconds * 1000).getSeconds();
|
|
26018
25025
|
};
|
|
25026
|
+
var getTimeScaleDescription = function getTimeScaleDescription(timeScale) {
|
|
25027
|
+
if (timeScale !== 1 && timeScale < HOUR_TO_SECOND) {
|
|
25028
|
+
return "".concat(Math.round(timeScale / MINUTE_TO_SECOND), " minutes is ~1 second");
|
|
25029
|
+
}
|
|
25030
|
+
if (timeScale > 60) {
|
|
25031
|
+
var hours = Math.floor(timeScale / HOUR_TO_SECOND);
|
|
25032
|
+
var mins = Math.round((timeScale - hours * HOUR_TO_SECOND) / MINUTE_TO_SECOND);
|
|
25033
|
+
return "".concat(hours, " h ").concat(mins, " min is ~1 second");
|
|
25034
|
+
}
|
|
25035
|
+
return 'Real-time';
|
|
25036
|
+
};
|
|
25037
|
+
|
|
25038
|
+
var timeSliderLiteUtils = /*#__PURE__*/Object.freeze({
|
|
25039
|
+
__proto__: null,
|
|
25040
|
+
DAY_TO_MILLISECOND: DAY_TO_MILLISECOND,
|
|
25041
|
+
DAY_TO_SECOND: DAY_TO_SECOND,
|
|
25042
|
+
HOUR_TO_SECOND: HOUR_TO_SECOND,
|
|
25043
|
+
HOUR_TO_MINUTE: HOUR_TO_MINUTE,
|
|
25044
|
+
MILLISECOND_TO_DAY: MILLISECOND_TO_DAY,
|
|
25045
|
+
MILLISECOND_TO_SECOND: MILLISECOND_TO_SECOND,
|
|
25046
|
+
MILLISECOND_TO_MINUTE: MILLISECOND_TO_MINUTE,
|
|
25047
|
+
MINUTE_TO_SECOND: MINUTE_TO_SECOND,
|
|
25048
|
+
SECOND_TO_DAY: SECOND_TO_DAY,
|
|
25049
|
+
SECOND_TO_HOUR: SECOND_TO_HOUR,
|
|
25050
|
+
SECOND_TO_MILLISECOND: SECOND_TO_MILLISECOND,
|
|
25051
|
+
SEVEN_DAYS_IN_SECONDS: SEVEN_DAYS_IN_SECONDS,
|
|
25052
|
+
reformatFinnishDateString: reformatFinnishDateString,
|
|
25053
|
+
shortUTCTime: shortUTCTime,
|
|
25054
|
+
getMonthChanges: getMonthChanges,
|
|
25055
|
+
getSelectedTimePx: getSelectedTimePx,
|
|
25056
|
+
boundedValue: boundedValue,
|
|
25057
|
+
getSelectedTimeFromPx: getSelectedTimeFromPx,
|
|
25058
|
+
getNearestSelectableTime: getNearestSelectableTime,
|
|
25059
|
+
floorLocalMinutes: floorLocalMinutes,
|
|
25060
|
+
floorLocalSeconds: floorLocalSeconds,
|
|
25061
|
+
secondsToDaysAndHours: secondsToDaysAndHours,
|
|
25062
|
+
hoursAndDaysToSeconds: hoursAndDaysToSeconds,
|
|
25063
|
+
TIME_SLIDER_LITE_DEFAULT_MAX_FORECAST_RANGE: TIME_SLIDER_LITE_DEFAULT_MAX_FORECAST_RANGE,
|
|
25064
|
+
TIME_SLIDER_LITE_DEFAULT_MAX_OBSERVED_RANGE: TIME_SLIDER_LITE_DEFAULT_MAX_OBSERVED_RANGE,
|
|
25065
|
+
defaultTimeRange: defaultTimeRange,
|
|
25066
|
+
useDefaultTimeRange: useDefaultTimeRange,
|
|
25067
|
+
generateCustomTimeList: generateCustomTimeList,
|
|
25068
|
+
subTicksPerDay: subTicksPerDay,
|
|
25069
|
+
maxSubTicksPerDay: maxSubTicksPerDay,
|
|
25070
|
+
getRemainingHours: getRemainingHours,
|
|
25071
|
+
secondsSinceLocalMidnight: secondsSinceLocalMidnight,
|
|
25072
|
+
getTimeScaleDescription: getTimeScaleDescription
|
|
25073
|
+
});
|
|
26019
25074
|
|
|
26020
25075
|
/* *
|
|
26021
25076
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -26639,7 +25694,7 @@ var TimeSliderLiteOptionsMenu = function TimeSliderLiteOptionsMenu(_ref) {
|
|
|
26639
25694
|
speedOptionItemPrefix = _ref.speedOptionItemPrefix,
|
|
26640
25695
|
speedOptions = _ref.speedOptions,
|
|
26641
25696
|
updateIntervalOptions = _ref.updateIntervalOptions,
|
|
26642
|
-
|
|
25697
|
+
subMenuSx = _ref.subMenuSx,
|
|
26643
25698
|
sx = _ref.sx,
|
|
26644
25699
|
_ref$TimeZoneSwitch = _ref.TimeZoneSwitch,
|
|
26645
25700
|
TimeZoneSwitch$1 = _ref$TimeZoneSwitch === void 0 ? TimeZoneSwitch : _ref$TimeZoneSwitch,
|
|
@@ -26660,7 +25715,7 @@ var TimeSliderLiteOptionsMenu = function TimeSliderLiteOptionsMenu(_ref) {
|
|
|
26660
25715
|
sx: Object.assign({
|
|
26661
25716
|
left: submenuLeft,
|
|
26662
25717
|
marginLeft: '-12px'
|
|
26663
|
-
},
|
|
25718
|
+
}, subMenuSx),
|
|
26664
25719
|
setSubmenu: setSubmenu,
|
|
26665
25720
|
title: getTitle(submenu),
|
|
26666
25721
|
closeButtonIcon: closeButtonIcon
|
|
@@ -27498,6 +26553,9 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
|
|
|
27498
26553
|
_ref$height = _ref.height,
|
|
27499
26554
|
height = _ref$height === void 0 ? TIME_SLIDER_LITE_DEFAULT_HEIGHT : _ref$height,
|
|
27500
26555
|
hideButton = _ref.hideButton,
|
|
26556
|
+
hideMenuButton = _ref.hideMenuButton,
|
|
26557
|
+
hideStepButtons = _ref.hideStepButtons,
|
|
26558
|
+
hidePlayButton = _ref.hidePlayButton,
|
|
27501
26559
|
isAnimating = _ref.isAnimating,
|
|
27502
26560
|
isVisible = _ref.isVisible,
|
|
27503
26561
|
_ref$locale = _ref.locale,
|
|
@@ -27508,12 +26566,12 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
|
|
|
27508
26566
|
overrideAnimation = _ref.overrideAnimation,
|
|
27509
26567
|
onToggleAnimation = _ref.onToggleAnimation,
|
|
27510
26568
|
onToggleMenu = _ref.onToggleMenu,
|
|
26569
|
+
onToggleTimeSlider = _ref.onToggleTimeSlider,
|
|
27511
26570
|
needleWidth = _ref.needleWidth,
|
|
27512
26571
|
needleDragAreaWidth = _ref.needleDragAreaWidth,
|
|
27513
26572
|
needleLabelZIndex = _ref.needleLabelZIndex,
|
|
27514
26573
|
needleLabelOffset = _ref.needleLabelOffset,
|
|
27515
26574
|
draggableTimeStamp = _ref.draggableTimeStamp,
|
|
27516
|
-
onToggleTimeSlider = _ref.onToggleTimeSlider,
|
|
27517
26575
|
selectedTime = _ref.selectedTime,
|
|
27518
26576
|
setSelectedTime = _ref.setSelectedTime,
|
|
27519
26577
|
settings = _ref.settings,
|
|
@@ -27609,7 +26667,7 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
|
|
|
27609
26667
|
}
|
|
27610
26668
|
}, controlButtons || /*#__PURE__*/React__default.createElement(ControlButtonGroup, {
|
|
27611
26669
|
left: true
|
|
27612
|
-
}, /*#__PURE__*/React__default.createElement(MenuButton, {
|
|
26670
|
+
}, !hideMenuButton && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MenuButton, {
|
|
27613
26671
|
settings: settings === null || settings === void 0 ? void 0 : settings.menuButton,
|
|
27614
26672
|
menuOpen: menuOpen,
|
|
27615
26673
|
onClick: onToggleMenu
|
|
@@ -27619,12 +26677,12 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
|
|
|
27619
26677
|
height: "".concat(height, "px"),
|
|
27620
26678
|
margin: '2px'
|
|
27621
26679
|
}
|
|
27622
|
-
}), /*#__PURE__*/React__default.createElement(PlayButton, {
|
|
26680
|
+
})), !hidePlayButton && /*#__PURE__*/React__default.createElement(PlayButton, {
|
|
27623
26681
|
settings: settings === null || settings === void 0 ? void 0 : settings.playButton,
|
|
27624
26682
|
isAnimating: isAnimating,
|
|
27625
26683
|
onTogglePlayButton: onToggleAnimation,
|
|
27626
26684
|
tooltipDelay: tooltipDelay
|
|
27627
|
-
}), /*#__PURE__*/React__default.createElement(StepButton, {
|
|
26685
|
+
}), !hideStepButtons && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StepButton, {
|
|
27628
26686
|
settings: settings === null || settings === void 0 ? void 0 : settings.stepButton,
|
|
27629
26687
|
onClick: function onClick() {
|
|
27630
26688
|
return handleTimeStep(-timeStepSeconds);
|
|
@@ -27637,7 +26695,7 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
|
|
|
27637
26695
|
return handleTimeStep(timeStepSeconds);
|
|
27638
26696
|
},
|
|
27639
26697
|
tooltipDelay: tooltipDelay
|
|
27640
|
-
}))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
26698
|
+
})))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
27641
26699
|
item: true
|
|
27642
26700
|
}, /*#__PURE__*/React__default.createElement(TimeSliderLiteBackground, {
|
|
27643
26701
|
draggableTimeStamp: draggableTimeStamp,
|
|
@@ -27679,13 +26737,13 @@ var TimeSliderLiteConnect = function TimeSliderLiteConnect(_a) {
|
|
|
27679
26737
|
var _b, _c, _d, _e, _f;
|
|
27680
26738
|
var overrideUseTimeRange = _a.overrideUseTimeRange,
|
|
27681
26739
|
overrideUseTimeStep = _a.overrideUseTimeStep,
|
|
26740
|
+
overrideUseTimeZone = _a.overrideUseTimeZone,
|
|
27682
26741
|
sourceId = _a.sourceId,
|
|
27683
26742
|
mapId = _a.mapId,
|
|
27684
26743
|
_a$isAlwaysVisible = _a.isAlwaysVisible,
|
|
27685
26744
|
isAlwaysVisible = _a$isAlwaysVisible === void 0 ? false : _a$isAlwaysVisible,
|
|
27686
|
-
|
|
27687
|
-
|
|
27688
|
-
timeSliderProps = __rest(_a, ["overrideUseTimeRange", "overrideUseTimeStep", "sourceId", "mapId", "isAlwaysVisible", "menuSx", "subMenuSx"]);
|
|
26745
|
+
TimeSliderLiteOptionsMenuProps = _a.TimeSliderLiteOptionsMenuProps,
|
|
26746
|
+
timeSliderProps = __rest(_a, ["overrideUseTimeRange", "overrideUseTimeStep", "overrideUseTimeZone", "sourceId", "mapId", "isAlwaysVisible", "TimeSliderLiteOptionsMenuProps"]);
|
|
27689
26747
|
var _React$useState = React.useState(false),
|
|
27690
26748
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
27691
26749
|
menuOpen = _React$useState2[0],
|
|
@@ -27700,10 +26758,11 @@ var TimeSliderLiteConnect = function TimeSliderLiteConnect(_a) {
|
|
|
27700
26758
|
_ref4 = _slicedToArray(_ref3, 2),
|
|
27701
26759
|
timeStep = _ref4[0],
|
|
27702
26760
|
setTimeStep = _ref4[1];
|
|
27703
|
-
var
|
|
27704
|
-
|
|
27705
|
-
|
|
27706
|
-
|
|
26761
|
+
var useTimeZone = React.useState('LT');
|
|
26762
|
+
var _ref5 = overrideUseTimeZone || useTimeZone,
|
|
26763
|
+
_ref6 = _slicedToArray(_ref5, 2),
|
|
26764
|
+
timeZone = _ref6[0],
|
|
26765
|
+
setTimeZone = _ref6[1];
|
|
27707
26766
|
var isTimeSliderVisible = useSelector(function (store) {
|
|
27708
26767
|
return mapSelectors.isTimeSliderVisible(store, mapId);
|
|
27709
26768
|
});
|
|
@@ -27732,9 +26791,6 @@ var TimeSliderLiteConnect = function TimeSliderLiteConnect(_a) {
|
|
|
27732
26791
|
}));
|
|
27733
26792
|
};
|
|
27734
26793
|
var defaultTimeStep = [5, 15];
|
|
27735
|
-
var dimensions = useSelector(function (store) {
|
|
27736
|
-
return mapSelectors.getMapDimensions(store, mapId);
|
|
27737
|
-
});
|
|
27738
26794
|
var layers = useSelector(function (store) {
|
|
27739
26795
|
return mapSelectors.getMapLayers(store, mapId);
|
|
27740
26796
|
});
|
|
@@ -27742,12 +26798,13 @@ var TimeSliderLiteConnect = function TimeSliderLiteConnect(_a) {
|
|
|
27742
26798
|
_useDefaultTimeRange2 = _slicedToArray(_useDefaultTimeRange, 2),
|
|
27743
26799
|
defaultStartTime = _useDefaultTimeRange2[0],
|
|
27744
26800
|
defaultEndTime = _useDefaultTimeRange2[1];
|
|
27745
|
-
var
|
|
27746
|
-
|
|
27747
|
-
startTime =
|
|
27748
|
-
endTime =
|
|
27749
|
-
var
|
|
27750
|
-
|
|
26801
|
+
var _ref7 = timeRange || [defaultStartTime, defaultEndTime],
|
|
26802
|
+
_ref8 = _slicedToArray(_ref7, 2),
|
|
26803
|
+
startTime = _ref8[0],
|
|
26804
|
+
endTime = _ref8[1];
|
|
26805
|
+
var selectedTime = useSelector(function (store) {
|
|
26806
|
+
return mapSelectors.getSelectedTime(store, mapId);
|
|
26807
|
+
});
|
|
27751
26808
|
var onToggleAnimation = function onToggleAnimation() {
|
|
27752
26809
|
var _a, _b;
|
|
27753
26810
|
if (isAnimating) {
|
|
@@ -27786,9 +26843,7 @@ var TimeSliderLiteConnect = function TimeSliderLiteConnect(_a) {
|
|
|
27786
26843
|
}
|
|
27787
26844
|
setTimeStep(newTimeStep);
|
|
27788
26845
|
};
|
|
27789
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, isVisible && menuOpen && /*#__PURE__*/React.createElement(TimeSliderLiteOptionsMenu, {
|
|
27790
|
-
sx: menuSx,
|
|
27791
|
-
submenuSx: subMenuSx,
|
|
26846
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isVisible && menuOpen && /*#__PURE__*/React.createElement(TimeSliderLiteOptionsMenu, Object.assign({
|
|
27792
26847
|
menuOpen: menuOpen,
|
|
27793
26848
|
setMenuOpen: setMenuOpen,
|
|
27794
26849
|
defaultTimeRange: [defaultStartTime, defaultEndTime],
|
|
@@ -27800,7 +26855,7 @@ var TimeSliderLiteConnect = function TimeSliderLiteConnect(_a) {
|
|
|
27800
26855
|
closeButtonIcon: (_c = (_b = timeSliderProps.settings) === null || _b === void 0 ? void 0 : _b.closeButton) === null || _c === void 0 ? void 0 : _c.icon,
|
|
27801
26856
|
dropdownButtonIcon: (_e = (_d = timeSliderProps.settings) === null || _d === void 0 ? void 0 : _d.dropdownButton) === null || _e === void 0 ? void 0 : _e.icon,
|
|
27802
26857
|
TimeZoneSwitch: (_f = timeSliderProps === null || timeSliderProps === void 0 ? void 0 : timeSliderProps.settings) === null || _f === void 0 ? void 0 : _f.TimeZoneSwitch
|
|
27803
|
-
}), /*#__PURE__*/React.createElement(TimeSliderLite, Object.assign({
|
|
26858
|
+
}, TimeSliderLiteOptionsMenuProps)), /*#__PURE__*/React.createElement(TimeSliderLite, Object.assign({
|
|
27804
26859
|
selectedTime: selectedTime,
|
|
27805
26860
|
timeStep: timeStep !== null && timeStep !== void 0 ? timeStep : defaultTimeStep,
|
|
27806
26861
|
timeZone: timeZone,
|
|
@@ -28649,61 +27704,4 @@ var AppWrapperConnect = withEggs([appModuleConfig])(function (_ref) {
|
|
|
28649
27704
|
return children;
|
|
28650
27705
|
});
|
|
28651
27706
|
|
|
28652
|
-
|
|
28653
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
28654
|
-
* you may not use this file except in compliance with the License.
|
|
28655
|
-
* You may obtain a copy of the License at
|
|
28656
|
-
*
|
|
28657
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
28658
|
-
*
|
|
28659
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
28660
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
28661
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
28662
|
-
* See the License for the specific language governing permissions and
|
|
28663
|
-
* limitations under the License.
|
|
28664
|
-
*
|
|
28665
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
28666
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
28667
|
-
* */
|
|
28668
|
-
var MapWarningProperties = function MapWarningProperties(_ref) {
|
|
28669
|
-
var selectedFeatureProperties = _ref.selectedFeatureProperties,
|
|
28670
|
-
languageIndex = _ref.languageIndex,
|
|
28671
|
-
parentSize = _ref.parentSize;
|
|
28672
|
-
var language = languageIndex || 0;
|
|
28673
|
-
var newWidth = parentSize ? parentSize - 100 : 350;
|
|
28674
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
28675
|
-
style: {
|
|
28676
|
-
position: 'fixed',
|
|
28677
|
-
width: "".concat(newWidth, "px"),
|
|
28678
|
-
height: '1px',
|
|
28679
|
-
display: 'flex',
|
|
28680
|
-
justifyContent: 'center',
|
|
28681
|
-
left: '50px'
|
|
28682
|
-
}
|
|
28683
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28684
|
-
"data-testid": "map-warning-properties",
|
|
28685
|
-
style: {
|
|
28686
|
-
marginTop: '50px',
|
|
28687
|
-
width: '350px',
|
|
28688
|
-
height: '190px',
|
|
28689
|
-
padding: '0px 20px 20px',
|
|
28690
|
-
overflow: 'auto',
|
|
28691
|
-
fontSize: '11px',
|
|
28692
|
-
backgroundColor: '#CCCCCCC0'
|
|
28693
|
-
}
|
|
28694
|
-
}, /*#__PURE__*/React__default.createElement("h1", {
|
|
28695
|
-
"data-testid": "map-warning-properties-title"
|
|
28696
|
-
}, selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].areaDesc), selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].areaDesc && /*#__PURE__*/React__default.createElement("pre", {
|
|
28697
|
-
"data-testid": "map-warning-properties-row"
|
|
28698
|
-
}, "event:", ' ', selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].event), selectedFeatureProperties.onset && /*#__PURE__*/React__default.createElement("pre", {
|
|
28699
|
-
"data-testid": "map-warning-properties-row"
|
|
28700
|
-
}, "Sent:", ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.onset), 'dd MMM yyyy, HH:mm'), ' ', "UTC"), selectedFeatureProperties.expires && /*#__PURE__*/React__default.createElement("pre", {
|
|
28701
|
-
"data-testid": "map-warning-properties-row"
|
|
28702
|
-
}, "Expires:", ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.expires), 'dd MMM yyyy, HH:mm'), ' ', "UTC"), selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].senderName && /*#__PURE__*/React__default.createElement("pre", {
|
|
28703
|
-
"data-testid": "map-warning-properties-row"
|
|
28704
|
-
}, "Sender:", ' ', selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].senderName), selectedFeatureProperties.identifier && /*#__PURE__*/React__default.createElement("pre", {
|
|
28705
|
-
"data-testid": "map-warning-properties-row"
|
|
28706
|
-
}, "Identifier: ", selectedFeatureProperties.identifier)));
|
|
28707
|
-
};
|
|
28708
|
-
|
|
28709
|
-
export { AppWrapperConnect, ConfigurableMapConnect, CoreThemeProvider, CoreThemeStoreProvider, DrawingToolConnect, DrawingToolMapButtonConnect, HarmonieTempAndPrecipPreset, LayerManager, BaseLayerRow as LayerManagerBaseLayerRow, LayerManagerConnect, DescriptionRow as LayerManagerDescriptionRow, HeaderOptions as LayerManagerHeaderOptions, LayerContainerRow as LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LayerSelectConnect, LegendConnect, LegendMapButtonConnect, MapDrawToolProvider, MapViewConnect, MapWarningProperties, MultiDimensionSelectMapButtonsConnect, MultiMapMultiDimensionSelectConnect as MultiMapDimensionSelectConnect, MultiMapViewConnect, RouterWrapperConnect, SnackbarWrapperConnect, SyncGroupViewerConnect, TimeSlider, BackwardForwardStepButtonConnect as TimeSliderBackwardForwardStepButtonConnect, TimeSliderButtonsConnectMemo as TimeSliderButtonsConnect, TimeSliderConnect, TimeSliderLite, TimeSliderLiteConnect, TimeSliderLiteOptionsMenu, OptionsMenuButtonConnect as TimeSliderOptionsMenuButtonConnect, PlayButtonConnect as TimeSliderPlayButtonConnect, ZoomControlConnect, componentsLookUp, defaultBbox, defaultBox, defaultConfigurations, defaultDelete, defaultIntersectionStyleProperties, defaultPoint, defaultPolygon, drawOptions, filterMapPresets, filterServices, store, testLayers, timeSliderUtils, useAreaDrawDialogAction, useFetchServices, useMapDrawContext, useMapDrawTool, useSetupDialog };
|
|
27707
|
+
export { AppWrapperConnect, ConfigurableMapConnect, CoreThemeProvider, CoreThemeStoreProvider, HarmonieTempAndPrecipPreset, LayerManager, BaseLayerRow as LayerManagerBaseLayerRow, LayerManagerConnect, DescriptionRow as LayerManagerDescriptionRow, HeaderOptions as LayerManagerHeaderOptions, LayerContainerRow as LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LayerSelectConnect, LegendConnect, LegendMapButtonConnect, MapViewConnect, MultiDimensionSelectMapButtonsConnect, MultiMapMultiDimensionSelectConnect as MultiMapDimensionSelectConnect, MultiMapViewConnect, RouterWrapperConnect, SnackbarWrapperConnect, SyncGroupViewerConnect, TimeSlider, BackwardForwardStepButtonConnect as TimeSliderBackwardForwardStepButtonConnect, TimeSliderButtonsConnectMemo as TimeSliderButtonsConnect, TimeSliderConnect, TimeSliderLite, TimeSliderLiteConnect, TimeSliderLiteOptionsMenu, timeSliderLiteUtils as TimeSliderLiteUtils, OptionsMenuButtonConnect as TimeSliderOptionsMenuButtonConnect, PlayButtonConnect as TimeSliderPlayButtonConnect, ZoomControlConnect, componentsLookUp, defaultBbox, defaultConfigurations, filterMapPresets, filterServices, store, testLayers, timeSliderUtils, useFetchServices, useSetupDialog };
|