@opengeoweb/core 9.28.1 → 9.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +358 -400
- package/package.json +2 -2
- package/src/index.d.ts +4 -4
- package/src/lib/GeoWebDemo.stories.d.ts +6 -6
- package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +42 -42
- package/src/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +7 -7
- package/src/lib/components/ComponentsLookUp/componentsLookup.spec.d.ts +1 -1
- package/src/lib/components/ComponentsLookUp/index.d.ts +1 -1
- package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.d.ts +45 -45
- package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.spec.d.ts +1 -1
- package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.stories.d.ts +9 -9
- package/src/lib/components/ConfigurableMapConnect/index.d.ts +1 -1
- package/src/lib/components/FeatureInfo/GetFeatureInfoButtonConnect.d.ts +8 -8
- package/src/lib/components/FeatureInfo/GetFeatureInfoButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/FeatureInfo/GetFeatureInfoConnect.d.ts +8 -8
- package/src/lib/components/FeatureInfo/GetFeatureInfoConnect.spec.d.ts +1 -1
- package/src/lib/components/FeatureInfo/GetFeatureInfoDialog.d.ts +16 -16
- package/src/lib/components/FeatureInfo/GetFeatureInfoDialog.spec.d.ts +1 -1
- package/src/lib/components/FeatureInfo/index.d.ts +3 -3
- package/src/lib/components/FeatureInfo/utils.d.ts +17 -17
- package/src/lib/components/FeatureInfo/utils.spec.d.ts +1 -1
- package/src/lib/components/LanguageSelect/DemoLanguages.stories.d.ts +12 -12
- package/src/lib/components/LanguageSelect/LanguageSelect.d.ts +8 -8
- package/src/lib/components/LanguageSelect/LanguageSelect.spec.d.ts +1 -1
- package/src/lib/components/LanguageSelect/Languages.stories.d.ts +11 -10
- package/src/lib/components/LanguageSelect/languageTranslation.d.ts +31 -31
- package/src/lib/components/LanguageSelect/languagesService.d.ts +9 -9
- package/src/lib/components/LanguageSelect/languagesService.spec.d.ts +1 -1
- package/src/lib/components/LayerInfoConnect/LayerInfoButtonConnect.d.ts +11 -11
- package/src/lib/components/LayerInfoConnect/LayerInfoButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerInfoConnect/LayerInfoDialogConnect.d.ts +2 -2
- package/src/lib/components/LayerInfoConnect/index.d.ts +2 -2
- package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +12 -12
- package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +12 -12
- package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +13 -13
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.d.ts +11 -11
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +22 -22
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +12 -12
- package/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerContainerRow.d.ts +18 -18
- package/src/lib/components/LayerManager/LayerContainerRow/LayerContainerRow.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTime.d.ts +9 -9
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTimeConnect.d.ts +7 -7
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTimeConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +14 -14
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.d.ts +16 -16
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/CustomDimensionSelect/CustomDimensionSelectConnect.d.ts +9 -9
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/CustomDimensionSelect/CustomDimensionSelectConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.d.ts +18 -18
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +26 -26
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +8 -8
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectName.d.ts +13 -13
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectValue.d.ts +16 -16
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/dimensionSelectHooks.d.ts +15 -15
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +10 -10
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +19 -19
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +66 -66
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +10 -10
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.d.ts +10 -10
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.d.ts +13 -13
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts +9 -9
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/MissingData/MissingData.d.ts +16 -16
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/MissingData/MissingDataConnect.d.ts +5 -5
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/MissingData/MissingDataConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +9 -9
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +16 -16
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +12 -12
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +9 -9
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +13 -13
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +10 -10
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManager.custom.stories.d.ts +6 -6
- package/src/lib/components/LayerManager/LayerManager.d.ts +29 -29
- package/src/lib/components/LayerManager/LayerManager.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManager.stories.d.ts +82 -82
- package/src/lib/components/LayerManager/LayerManagerConnect.d.ts +29 -29
- package/src/lib/components/LayerManager/LayerManagerConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +25 -25
- package/src/lib/components/LayerManager/LayerManagerHeaderOptions.d.ts +50 -50
- package/src/lib/components/LayerManager/LayerManagerHeaderOptions.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.d.ts +12 -12
- package/src/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +9 -9
- package/src/lib/components/LayerManager/LayerManagerMapButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +266 -266
- package/src/lib/components/LayerManager/LayerManagerUtils.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectButton.d.ts +8 -8
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectConnect.stories.d.ts +7 -7
- package/src/lib/components/LayerManager/ProjectionSelect/ProjectionSelect.d.ts +14 -14
- package/src/lib/components/LayerManager/ProjectionSelect/ProjectionSelect.stories.d.ts +6 -6
- package/src/lib/components/LayerManager/ProjectionSelect/ProjectionSelectConnect.d.ts +6 -6
- package/src/lib/components/LayerManager/ProjectionSelect/ProjectionSelectConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/LayerManager/index.d.ts +8 -8
- package/src/lib/components/LayerManager/useFetchServices.d.ts +4 -4
- package/src/lib/components/LayerManager/useFetchServices.spec.d.ts +1 -1
- package/src/lib/components/LegendConnect/LegendConnect.d.ts +20 -20
- package/src/lib/components/LegendConnect/LegendConnect.spec.d.ts +1 -1
- package/src/lib/components/LegendConnect/LegendConnect.stories.d.ts +6 -6
- package/src/lib/components/LegendConnect/LegendMapButtonConnect.d.ts +9 -9
- package/src/lib/components/LegendConnect/LegendMapButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/LegendConnect/index.d.ts +2 -2
- package/src/lib/components/MapControlsConnect/ZoomControlsConnect.d.ts +6 -6
- package/src/lib/components/MapControlsConnect/ZoomControlsConnect.spec.d.ts +1 -1
- package/src/lib/components/MapControlsConnect/index.d.ts +1 -1
- package/src/lib/components/MapDrawToolRedux/MapDrawToolRedux.stories.d.ts +9 -9
- package/src/lib/components/MapDrawToolRedux/MapDrawToolReduxIntersection.stories.d.ts +7 -7
- package/src/lib/components/MapDrawToolRedux/MapDrawToolReduxMultipleDrawTools.stories.d.ts +6 -6
- package/src/lib/components/MapViewConnect/MapViewConnect.DoubleMap.stories.d.ts +7 -7
- package/src/lib/components/MapViewConnect/MapViewConnect.Errors.stories.d.ts +7 -7
- package/src/lib/components/MapViewConnect/MapViewConnect.FeatureLayers.stories.d.ts +7 -7
- package/src/lib/components/MapViewConnect/MapViewConnect.InitialBBoxAndWithout.stories.d.ts +7 -7
- package/src/lib/components/MapViewConnect/MapViewConnect.LayerActions.stories.d.ts +7 -7
- package/src/lib/components/MapViewConnect/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +13 -13
- package/src/lib/components/MapViewConnect/MapViewConnect.MapModuleOverDefaultMap.stories.d.ts +7 -7
- package/src/lib/components/MapViewConnect/MapViewConnect.MapPin.stories.d.ts +15 -15
- package/src/lib/components/MapViewConnect/MapViewConnect.MultiMapLayerManager.stories.d.ts +7 -7
- package/src/lib/components/MapViewConnect/MapViewConnect.SelectorTest.stories.d.ts +8 -8
- package/src/lib/components/MapViewConnect/MapViewConnect.SetBaseLayers.stories.d.ts +7 -7
- package/src/lib/components/MapViewConnect/MapViewConnect.ToggleControls.stories.d.ts +7 -7
- package/src/lib/components/MapViewConnect/MapViewConnect.d.ts +29 -29
- package/src/lib/components/MapViewConnect/MapViewConnect.spec.d.ts +1 -1
- package/src/lib/components/MapViewConnect/index.d.ts +1 -1
- package/src/lib/components/MapViewConnect/types.d.ts +8 -8
- package/src/lib/components/MapViewConnect/useKeyboardZoomAndPan.d.ts +1 -1
- package/src/lib/components/MapViewConnect/useKeyboardZoomAndPan.spec.d.ts +1 -1
- package/src/lib/components/MapViewConnect/useTouchZoomPan.d.ts +1 -1
- package/src/lib/components/MapViewConnect/useTouchZoomPan.spec.d.ts +1 -1
- package/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectButtonConnect.d.ts +9 -9
- package/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectDialogConnect.d.ts +14 -14
- package/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectDialogConnect.spec.d.ts +1 -1
- package/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectSliderConnect.d.ts +9 -9
- package/src/lib/components/MultiMapDimensionSelectConnect/DimensionSelectSliderConnect.spec.d.ts +1 -1
- package/src/lib/components/MultiMapDimensionSelectConnect/EnsembleDimensionExample.stories.d.ts +6 -6
- package/src/lib/components/MultiMapDimensionSelectConnect/MultiDimensionSelectConnect.stories.d.ts +6 -6
- package/src/lib/components/MultiMapDimensionSelectConnect/MultiDimensionSelectMapButtonsConnect.d.ts +8 -8
- package/src/lib/components/MultiMapDimensionSelectConnect/MultiDimensionSelectMapButtonsConnect.spec.d.ts +1 -1
- package/src/lib/components/MultiMapDimensionSelectConnect/MultiMapMultiDimensionSelect.stories.d.ts +6 -6
- package/src/lib/components/MultiMapDimensionSelectConnect/MultiMapMultiDimensionSelectConnect.d.ts +9 -9
- package/src/lib/components/MultiMapDimensionSelectConnect/MultiMapMultiDimensionSelectConnect.spec.d.ts +1 -1
- package/src/lib/components/MultiMapDimensionSelectConnect/MultiMapSingleDimensionSelectConnect.d.ts +8 -8
- package/src/lib/components/MultiMapDimensionSelectConnect/MultiMapSingleDimensionSelectConnect.spec.d.ts +1 -1
- package/src/lib/components/MultiMapDimensionSelectConnect/index.d.ts +2 -2
- package/src/lib/components/MultiMapViewConnect/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +12 -12
- package/src/lib/components/MultiMapViewConnect/HarmoniePresets/index.d.ts +1 -1
- package/src/lib/components/MultiMapViewConnect/ModelRunInterval/ModelRunInterval.d.ts +18 -18
- package/src/lib/components/MultiMapViewConnect/ModelRunInterval/ModelRunInterval.spec.d.ts +1 -1
- package/src/lib/components/MultiMapViewConnect/ModelRunInterval/ModelRunInterval.stories.d.ts +8 -8
- package/src/lib/components/MultiMapViewConnect/ModelRunInterval/index.d.ts +1 -1
- package/src/lib/components/MultiMapViewConnect/MultiMapView.stories.d.ts +9 -9
- package/src/lib/components/MultiMapViewConnect/MultiMapView10x10.stories.d.ts +6 -6
- package/src/lib/components/MultiMapViewConnect/MultiMapView2x2.stories.d.ts +6 -6
- package/src/lib/components/MultiMapViewConnect/MultiMapView4x3.stories.d.ts +6 -6
- package/src/lib/components/MultiMapViewConnect/MultiMapViewConnect.d.ts +29 -29
- package/src/lib/components/MultiMapViewConnect/MultiMapViewConnect.spec.d.ts +1 -1
- package/src/lib/components/MultiMapViewConnect/storyUtils/mapPresets.d.ts +177 -177
- package/src/lib/components/Providers/Providers.d.ts +28 -28
- package/src/lib/components/RouterWrapper/NavigateSetter.d.ts +1 -1
- package/src/lib/components/RouterWrapper/NavigateSetter.spec.d.ts +1 -1
- package/src/lib/components/RouterWrapper/RouterWrapperConnect.d.ts +6 -6
- package/src/lib/components/RouterWrapper/RouterWrapperConnect.spec.d.ts +1 -1
- package/src/lib/components/RouterWrapper/index.d.ts +1 -1
- package/src/lib/components/Search/MyMapLocation.d.ts +10 -10
- package/src/lib/components/Search/MyMapLocation.spec.d.ts +1 -1
- package/src/lib/components/Search/SearchControl.stories.d.ts +13 -13
- package/src/lib/components/Search/SearchControlButtonConnect.d.ts +8 -8
- package/src/lib/components/Search/SearchControlConnect.d.ts +5 -5
- package/src/lib/components/Search/SearchControlConnect.spec.d.ts +1 -1
- package/src/lib/components/Search/SearchDialog.d.ts +7 -7
- package/src/lib/components/Search/index.d.ts +4 -4
- package/src/lib/components/SentryRecordButton/SentryRecordButton.d.ts +3 -3
- package/src/lib/components/SentryRecordButton/SentryRecordButton.spec.d.ts +1 -1
- package/src/lib/components/SentryRecordButton/index.d.ts +1 -1
- package/src/lib/components/SyncGroups/DraggableThings.d.ts +13 -13
- package/src/lib/components/SyncGroups/SimpleTimeSlider.d.ts +8 -8
- package/src/lib/components/SyncGroups/SimpleTimeSliderConnect.d.ts +19 -19
- package/src/lib/components/SyncGroups/SyncGroupList.d.ts +11 -11
- package/src/lib/components/SyncGroups/SyncGroupListItem.d.ts +11 -11
- package/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +15 -15
- package/src/lib/components/SyncGroups/SyncGroupViewer.spec.d.ts +1 -1
- package/src/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +2 -2
- package/src/lib/components/SyncGroups/SyncGroups.FourMapsSynced.stories.d.ts +6 -6
- package/src/lib/components/SyncGroups/SyncGroups.SyncMany.stories.d.ts +6 -6
- package/src/lib/components/SyncGroups/SyncGroups.SyncMaps.stories.d.ts +6 -6
- package/src/lib/components/SyncGroups/SyncGroups.TwoMapsSynced.stories.d.ts +6 -6
- package/src/lib/components/TimeSliderClockConnect/TimeSliderClockConnect.d.ts +4 -4
- package/src/lib/components/TimeSliderClockConnect/TimeSliderClockConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderClockConnect/index.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/AutoUpdate.stories.d.ts +6 -6
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AnimationLengthButtonConnect.d.ts +5 -5
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AnimationLengthButtonConnect.spec.d.ts +2 -2
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AutoUpdateButtonConnect.d.ts +21 -21
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AutoUpdateButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/BackwardForwardStepButtonConnect.d.ts +6 -5
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/BackwardForwardStepButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/ControlButtonsConnect.d.ts +5 -5
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/ControlButtonsConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/NowButtonConnect.d.ts +8 -8
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuButtonConnect.d.ts +14 -14
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuConnect.d.ts +4 -4
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/PlayButtonConnect.d.ts +45 -45
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/PlayButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/SpeedButtonConnect.d.ts +6 -5
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/SpeedButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/TimeSpanButtonConnect.d.ts +5 -4
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/TimeSpanButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/TimeStepButtonConnect.d.ts +6 -6
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/TimeStepButtonConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect.d.ts +7 -7
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderConnect.d.ts +10 -10
- package/src/lib/components/TimeSliderConnect/TimeSliderConnect.integration.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderConnect.stories.d.ts +15 -15
- package/src/lib/components/TimeSliderConnect/TimeSliderCurrentTimeBoxConnect.d.ts +27 -27
- package/src/lib/components/TimeSliderConnect/TimeSliderCurrentTimeBoxConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderLegendConnect.d.ts +9 -9
- package/src/lib/components/TimeSliderConnect/TimeSliderLegendConnect.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/index.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/timeSliderUtils.spec.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/timesliderUtils.d.ts +7 -7
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTree.d.ts +9 -9
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTree.spec.d.ts +1 -1
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +24 -24
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.spec.d.ts +1 -1
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeHeader.d.ts +7 -7
- package/src/lib/components/WMSLoader/WMSLoader.d.ts +11 -11
- package/src/lib/components/WMSLoader/WMSLoader.spec.d.ts +1 -1
- package/src/lib/components/WMSLoader/WMSLoader.stories.d.ts +6 -6
- package/src/lib/components/WMSLoader/WMSLoaderConnect.d.ts +21 -21
- package/src/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +9 -9
- package/src/lib/components/WMSLoader/WMSServerList/WMSServerList.spec.d.ts +1 -1
- package/src/lib/index.d.ts +21 -21
- package/src/lib/utils/defaultConfigurations.d.ts +3 -3
- package/src/lib/utils/defaultTestSettings.d.ts +11 -11
- package/src/lib/utils/i18n.d.ts +6 -6
- package/src/lib/utils/jsonPresetFilter.d.ts +26 -26
- package/src/lib/utils/jsonPresetFilter.spec.d.ts +1 -1
- package/src/lib/utils/sanitizeHTML.d.ts +3 -3
- package/src/lib/utils/sanitizeHTML.spec.d.ts +1 -1
- package/src/lib/utils/testDimensionData.d.ts +39 -39
- package/src/lib/utils/testLayers.d.ts +70 -70
- package/src/lib/utils/testUtils.d.ts +3 -3
- package/src/lib/utils/verticalLevels.d.ts +4 -4
package/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useState, useCallback, useRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { Grid2, Box, MenuItem, Typography, useTheme, Popper, Fade, Tooltip, styled, LinearProgress, FormControl, InputLabel, Paper, List, ListItemButton, ListItemText, CircularProgress, ListSubheader, Dialog, DialogTitle, DialogContent, DialogContentText, TextField, InputAdornment, DialogActions, Button, circularProgressClasses, ListItemIcon, Checkbox } from '@mui/material';
|
|
5
5
|
import { SHARED_NAMESPACE, sharedTranslations, CustomIconButton, TooltipSelect, AlertIcon, sliderHeaderStyle, CustomSlider, ToggleMenu, CustomTooltip, tooltipContainerStyles, renderCounter, AlertBanner, CustomAccordion, PROJECTION, calculateStartSize, ToolContainerDraggable, useDebounce, dateUtils, withEggs, ErrorBoundary } from '@opengeoweb/shared';
|
|
6
6
|
import { CollapseSmall, CollapseMedium, CollapseLarge, CollapseWindow, ExpandWindow, LayersAdd, CloudLoading, Copy, None, FastForward, AutoUpdateActive, Both, Visibility, VisibilityOff, Delete, DragHandle as DragHandle$1, Cached, Add, MapAdd, WorldMapProjection, Layers, ExitDomain, Info, Search, Exclamation, MyLocation, Close, ThemeWrapper, lightTheme } from '@opengeoweb/theme';
|
|
7
7
|
import i18n from 'i18next';
|
|
@@ -2081,22 +2081,22 @@ const HeaderOptions = ({
|
|
|
2081
2081
|
});
|
|
2082
2082
|
};
|
|
2083
2083
|
|
|
2084
|
-
/* *
|
|
2085
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2086
|
-
* you may not use this file except in compliance with the License.
|
|
2087
|
-
* You may obtain a copy of the License at
|
|
2088
|
-
*
|
|
2089
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2090
|
-
*
|
|
2091
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2092
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2093
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2094
|
-
* See the License for the specific language governing permissions and
|
|
2095
|
-
* limitations under the License.
|
|
2096
|
-
*
|
|
2097
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2098
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
2099
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
2084
|
+
/* *
|
|
2085
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2086
|
+
* you may not use this file except in compliance with the License.
|
|
2087
|
+
* You may obtain a copy of the License at
|
|
2088
|
+
*
|
|
2089
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2090
|
+
*
|
|
2091
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2092
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2093
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2094
|
+
* See the License for the specific language governing permissions and
|
|
2095
|
+
* limitations under the License.
|
|
2096
|
+
*
|
|
2097
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2098
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
2099
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
2100
2100
|
* */
|
|
2101
2101
|
const iconButtonSize = 30;
|
|
2102
2102
|
const columnClasses = {
|
|
@@ -2341,9 +2341,8 @@ const DescriptionRow = _a => {
|
|
|
2341
2341
|
})
|
|
2342
2342
|
}) : undefined);
|
|
2343
2343
|
const hasMapPresetsModule = mapPresetsModule !== undefined;
|
|
2344
|
-
return jsxs(
|
|
2344
|
+
return jsxs(Grid2, Object.assign({
|
|
2345
2345
|
container: true,
|
|
2346
|
-
item: true,
|
|
2347
2346
|
"data-testid": "descriptionRow",
|
|
2348
2347
|
sx: {
|
|
2349
2348
|
height: 40
|
|
@@ -2351,8 +2350,7 @@ const DescriptionRow = _a => {
|
|
|
2351
2350
|
className: "descriptionRow",
|
|
2352
2351
|
alignItems: "center"
|
|
2353
2352
|
}, gridProps, {
|
|
2354
|
-
children: [jsx(
|
|
2355
|
-
item: true,
|
|
2353
|
+
children: [jsx(Grid2, Object.assign({
|
|
2356
2354
|
className: columnClasses.column1,
|
|
2357
2355
|
sx: Object.assign(Object.assign({}, leftButtonsStyle), {
|
|
2358
2356
|
justifyContent: 'center',
|
|
@@ -2363,7 +2361,7 @@ const DescriptionRow = _a => {
|
|
|
2363
2361
|
tooltipTitle: (_b = settings === null || settings === void 0 ? void 0 : settings.addLayer) === null || _b === void 0 ? void 0 : _b.tooltipTitle,
|
|
2364
2362
|
icon: (_c = settings === null || settings === void 0 ? void 0 : settings.addLayer) === null || _c === void 0 ? void 0 : _c.icon
|
|
2365
2363
|
})
|
|
2366
|
-
})), jsxs(
|
|
2364
|
+
})), jsxs(Grid2, Object.assign({
|
|
2367
2365
|
className: columnClasses.column2
|
|
2368
2366
|
}, {
|
|
2369
2367
|
children: [jsx(Box, Object.assign({
|
|
@@ -2379,7 +2377,7 @@ const DescriptionRow = _a => {
|
|
|
2379
2377
|
}, {
|
|
2380
2378
|
children: mapPresetsModuleInline
|
|
2381
2379
|
}))]
|
|
2382
|
-
})), jsx(
|
|
2380
|
+
})), jsx(Grid2, Object.assign({
|
|
2383
2381
|
className: columnClasses.column3
|
|
2384
2382
|
}, {
|
|
2385
2383
|
children: jsx(Box, Object.assign({
|
|
@@ -2387,7 +2385,7 @@ const DescriptionRow = _a => {
|
|
|
2387
2385
|
}, {
|
|
2388
2386
|
children: (_g = (_f = settings === null || settings === void 0 ? void 0 : settings.layerStyle) === null || _f === void 0 ? void 0 : _f.title) !== null && _g !== void 0 ? _g : t('layermanager-style-title')
|
|
2389
2387
|
}))
|
|
2390
|
-
})), jsx(
|
|
2388
|
+
})), jsx(Grid2, Object.assign({
|
|
2391
2389
|
className: columnClasses.column4
|
|
2392
2390
|
}, {
|
|
2393
2391
|
children: jsx(Box, Object.assign({
|
|
@@ -2395,7 +2393,7 @@ const DescriptionRow = _a => {
|
|
|
2395
2393
|
}, {
|
|
2396
2394
|
children: (_j = (_h = settings === null || settings === void 0 ? void 0 : settings.opacity) === null || _h === void 0 ? void 0 : _h.title) !== null && _j !== void 0 ? _j : t('layermanager-opacity-title')
|
|
2397
2395
|
}))
|
|
2398
|
-
})), jsx(
|
|
2396
|
+
})), jsx(Grid2, Object.assign({
|
|
2399
2397
|
className: columnClasses.column5
|
|
2400
2398
|
}, {
|
|
2401
2399
|
children: jsx(Box, Object.assign({
|
|
@@ -2403,7 +2401,7 @@ const DescriptionRow = _a => {
|
|
|
2403
2401
|
}, {
|
|
2404
2402
|
children: (_l = (_k = settings === null || settings === void 0 ? void 0 : settings.dimensions) === null || _k === void 0 ? void 0 : _k.title) !== null && _l !== void 0 ? _l : t('layermanager-dimensions-title')
|
|
2405
2403
|
}))
|
|
2406
|
-
})), jsx(
|
|
2404
|
+
})), jsx(Grid2, Object.assign({
|
|
2407
2405
|
className: columnClasses.acceptanceTime
|
|
2408
2406
|
}, {
|
|
2409
2407
|
children: jsx(Box, Object.assign({
|
|
@@ -2413,7 +2411,7 @@ const DescriptionRow = _a => {
|
|
|
2413
2411
|
}, {
|
|
2414
2412
|
children: (_o = (_m = settings === null || settings === void 0 ? void 0 : settings.acceptanceTime) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : t('layermanager-acceptance-time')
|
|
2415
2413
|
}))
|
|
2416
|
-
})), jsx(
|
|
2414
|
+
})), jsx(Grid2, Object.assign({
|
|
2417
2415
|
className: columnClasses.loadDuration
|
|
2418
2416
|
}, {
|
|
2419
2417
|
children: jsx(Box, Object.assign({
|
|
@@ -2424,7 +2422,7 @@ const DescriptionRow = _a => {
|
|
|
2424
2422
|
}, {
|
|
2425
2423
|
children: jsx(CloudLoading, {})
|
|
2426
2424
|
}))
|
|
2427
|
-
})), jsx(
|
|
2425
|
+
})), jsx(Grid2, {
|
|
2428
2426
|
className: columnClasses.column6
|
|
2429
2427
|
})]
|
|
2430
2428
|
}));
|
|
@@ -2948,15 +2946,14 @@ const DimensionSelect = ({
|
|
|
2948
2946
|
const defaultValueTooltip = (_d = defaultDimensionValueTooltip(selectedDimension)) !== null && _d !== void 0 ? _d : '';
|
|
2949
2947
|
const nameTooltip = (_e = tooltipGenerator === null || tooltipGenerator === void 0 ? void 0 : tooltipGenerator(selectedDimension)) !== null && _e !== void 0 ? _e : defaultNameTooltip;
|
|
2950
2948
|
const valueTooltip = (_f = tooltipGenerator === null || tooltipGenerator === void 0 ? void 0 : tooltipGenerator(selectedDimension, true)) !== null && _f !== void 0 ? _f : defaultValueTooltip;
|
|
2951
|
-
return jsx(
|
|
2949
|
+
return jsx(Grid2, Object.assign({
|
|
2952
2950
|
container: true,
|
|
2953
2951
|
direction: "row",
|
|
2954
2952
|
justifyContent: "flex-start",
|
|
2955
2953
|
alignItems: "center"
|
|
2956
2954
|
}, {
|
|
2957
|
-
children: jsxs(
|
|
2958
|
-
|
|
2959
|
-
xs: 12
|
|
2955
|
+
children: jsxs(Grid2, Object.assign({
|
|
2956
|
+
size: 12
|
|
2960
2957
|
}, {
|
|
2961
2958
|
children: [collapseDimensionDropdown ? jsx(SingleValueComponent, Object.assign({}, _layerDimensions[0], {
|
|
2962
2959
|
nameMappings: nameMappings,
|
|
@@ -3799,12 +3796,12 @@ const roundToDecimals = (num, decimals) => {
|
|
|
3799
3796
|
useGrouping: false
|
|
3800
3797
|
});
|
|
3801
3798
|
};
|
|
3802
|
-
/**
|
|
3803
|
-
* Hook to subscribe to changes in the load duration for a map layer.
|
|
3804
|
-
* This will only trigger a render when the load duration rounded down to seconds changes for the given layer and map combination
|
|
3805
|
-
* @param mapId
|
|
3806
|
-
* @param layerId
|
|
3807
|
-
* @returns {number}
|
|
3799
|
+
/**
|
|
3800
|
+
* Hook to subscribe to changes in the load duration for a map layer.
|
|
3801
|
+
* This will only trigger a render when the load duration rounded down to seconds changes for the given layer and map combination
|
|
3802
|
+
* @param mapId
|
|
3803
|
+
* @param layerId
|
|
3804
|
+
* @returns {number}
|
|
3808
3805
|
*/
|
|
3809
3806
|
const useLoadDurationLabel = (mapId, layerId) => {
|
|
3810
3807
|
const subscribe = React.useCallback(onStoreChange => {
|
|
@@ -3984,8 +3981,7 @@ const LayerRowUnstyled = ({
|
|
|
3984
3981
|
jsx("div", Object.assign({
|
|
3985
3982
|
className: className
|
|
3986
3983
|
}, {
|
|
3987
|
-
children: jsxs(
|
|
3988
|
-
item: true,
|
|
3984
|
+
children: jsxs(Grid2, Object.assign({
|
|
3989
3985
|
container: true,
|
|
3990
3986
|
"data-testid": `layerRow-${layerId}`,
|
|
3991
3987
|
className: "layerRow",
|
|
@@ -4028,8 +4024,7 @@ const LayerRowUnstyled = ({
|
|
|
4028
4024
|
DeleteLayer: layerDeleteLayout || jsx(DeleteLayer, {
|
|
4029
4025
|
onClick: deleteLayer
|
|
4030
4026
|
})
|
|
4031
|
-
}), jsx(
|
|
4032
|
-
item: true,
|
|
4027
|
+
}), jsx(Grid2, Object.assign({
|
|
4033
4028
|
className: columnClasses.column1,
|
|
4034
4029
|
alignItems: "center"
|
|
4035
4030
|
}, {
|
|
@@ -4044,8 +4039,7 @@ const LayerRowUnstyled = ({
|
|
|
4044
4039
|
onChangeEnable: changeEnable,
|
|
4045
4040
|
onChangeActive: onClickRow
|
|
4046
4041
|
})
|
|
4047
|
-
})), jsx(
|
|
4048
|
-
item: true,
|
|
4042
|
+
})), jsx(Grid2, Object.assign({
|
|
4049
4043
|
className: columnClasses.column2
|
|
4050
4044
|
}, {
|
|
4051
4045
|
children: layerServicesLayout || jsx(RenderLayers, {
|
|
@@ -4058,8 +4052,7 @@ const LayerRowUnstyled = ({
|
|
|
4058
4052
|
});
|
|
4059
4053
|
}
|
|
4060
4054
|
})
|
|
4061
|
-
})), _isLayerMissing ? jsx(
|
|
4062
|
-
item: true,
|
|
4055
|
+
})), _isLayerMissing ? jsx(Grid2, Object.assign({
|
|
4063
4056
|
className: columnClasses.column7
|
|
4064
4057
|
}, {
|
|
4065
4058
|
children: jsx(AlertBanner, {
|
|
@@ -4067,24 +4060,21 @@ const LayerRowUnstyled = ({
|
|
|
4067
4060
|
isCompact: true
|
|
4068
4061
|
})
|
|
4069
4062
|
})) : jsxs(Fragment, {
|
|
4070
|
-
children: [jsx(
|
|
4071
|
-
item: true,
|
|
4063
|
+
children: [jsx(Grid2, Object.assign({
|
|
4072
4064
|
className: columnClasses.column3
|
|
4073
4065
|
}, {
|
|
4074
4066
|
children: layerStylesLayout || jsx(Styles, {
|
|
4075
4067
|
style: layer.style,
|
|
4076
4068
|
onChangeStyle: changeStyle
|
|
4077
4069
|
})
|
|
4078
|
-
})), jsx(
|
|
4079
|
-
item: true,
|
|
4070
|
+
})), jsx(Grid2, Object.assign({
|
|
4080
4071
|
className: columnClasses.column4
|
|
4081
4072
|
}, {
|
|
4082
4073
|
children: layerOpacityLayout || jsx(Opacity, {
|
|
4083
4074
|
opacity: layer.opacity,
|
|
4084
4075
|
onChangeOpacity: changeOpacity
|
|
4085
4076
|
})
|
|
4086
|
-
})), jsx(
|
|
4087
|
-
item: true,
|
|
4077
|
+
})), jsx(Grid2, Object.assign({
|
|
4088
4078
|
className: columnClasses.column5
|
|
4089
4079
|
}, {
|
|
4090
4080
|
children: layerDimensionLayout || jsx(DimensionSelect, {
|
|
@@ -4101,16 +4091,14 @@ const LayerRowUnstyled = ({
|
|
|
4101
4091
|
});
|
|
4102
4092
|
}
|
|
4103
4093
|
})
|
|
4104
|
-
})), jsx(
|
|
4105
|
-
item: true,
|
|
4094
|
+
})), jsx(Grid2, Object.assign({
|
|
4106
4095
|
className: columnClasses.acceptanceTime
|
|
4107
4096
|
}, {
|
|
4108
4097
|
children: layerAcceptanceTimeLayout || jsx(Acceptance, {
|
|
4109
4098
|
acceptanceTime: layer.acceptanceTimeInMinutes,
|
|
4110
4099
|
onChangeAcceptanceTime: changeAcceptanceTime
|
|
4111
4100
|
})
|
|
4112
|
-
})), jsx(
|
|
4113
|
-
item: true,
|
|
4101
|
+
})), jsx(Grid2, Object.assign({
|
|
4114
4102
|
display: "flex",
|
|
4115
4103
|
justifyContent: "flex-end",
|
|
4116
4104
|
className: columnClasses.loadDuration
|
|
@@ -4120,8 +4108,7 @@ const LayerRowUnstyled = ({
|
|
|
4120
4108
|
mapId: mapId
|
|
4121
4109
|
})
|
|
4122
4110
|
}))]
|
|
4123
|
-
}), jsxs(
|
|
4124
|
-
item: true,
|
|
4111
|
+
}), jsxs(Grid2, Object.assign({
|
|
4125
4112
|
className: columnClasses.column6,
|
|
4126
4113
|
alignItems: "center"
|
|
4127
4114
|
}, {
|
|
@@ -4195,68 +4182,53 @@ const Accordion = ({
|
|
|
4195
4182
|
}))]
|
|
4196
4183
|
})
|
|
4197
4184
|
}, {
|
|
4198
|
-
children: jsxs(
|
|
4185
|
+
children: jsxs(Grid2, Object.assign({
|
|
4199
4186
|
container: true,
|
|
4200
4187
|
sx: {
|
|
4201
4188
|
padding: '16px 32px'
|
|
4202
4189
|
},
|
|
4203
4190
|
spacing: 3
|
|
4204
4191
|
}, {
|
|
4205
|
-
children: [jsxs(
|
|
4206
|
-
container: true
|
|
4207
|
-
item: true
|
|
4192
|
+
children: [jsxs(Grid2, Object.assign({
|
|
4193
|
+
container: true
|
|
4208
4194
|
}, {
|
|
4209
|
-
children: [jsx(
|
|
4210
|
-
item: true
|
|
4211
|
-
}, {
|
|
4195
|
+
children: [jsx(Grid2, {
|
|
4212
4196
|
children: t('layermanager-style-title')
|
|
4213
|
-
})
|
|
4214
|
-
})), jsxs(
|
|
4197
|
+
}), Styles]
|
|
4198
|
+
})), jsxs(Grid2, Object.assign({
|
|
4215
4199
|
container: true,
|
|
4216
|
-
item: true,
|
|
4217
4200
|
sx: {
|
|
4218
4201
|
'.MuiButtonBase-root': {
|
|
4219
4202
|
justifyContent: 'flex-start'
|
|
4220
4203
|
}
|
|
4221
4204
|
}
|
|
4222
4205
|
}, {
|
|
4223
|
-
children: [jsx(
|
|
4224
|
-
item: true
|
|
4225
|
-
}, {
|
|
4206
|
+
children: [jsx(Grid2, {
|
|
4226
4207
|
children: t('layermanager-opacity-title')
|
|
4227
|
-
})
|
|
4228
|
-
})), jsxs(
|
|
4229
|
-
container: true
|
|
4230
|
-
item: true
|
|
4208
|
+
}), Opacity]
|
|
4209
|
+
})), jsxs(Grid2, Object.assign({
|
|
4210
|
+
container: true
|
|
4231
4211
|
}, {
|
|
4232
|
-
children: [jsx(
|
|
4233
|
-
item: true
|
|
4234
|
-
}, {
|
|
4212
|
+
children: [jsx(Grid2, {
|
|
4235
4213
|
children: t('layermanager-acceptance-time')
|
|
4236
|
-
})
|
|
4237
|
-
})), jsxs(
|
|
4214
|
+
}), Acceptance]
|
|
4215
|
+
})), jsxs(Grid2, Object.assign({
|
|
4238
4216
|
container: true,
|
|
4239
|
-
item: true,
|
|
4240
4217
|
flexDirection: "column"
|
|
4241
4218
|
}, {
|
|
4242
|
-
children: [jsx(
|
|
4243
|
-
item: true
|
|
4244
|
-
}, {
|
|
4219
|
+
children: [jsx(Grid2, {
|
|
4245
4220
|
children: jsx(CloudLoading, {})
|
|
4246
|
-
})
|
|
4247
|
-
})), jsxs(
|
|
4221
|
+
}), LoadDuration]
|
|
4222
|
+
})), jsxs(Grid2, Object.assign({
|
|
4248
4223
|
container: true,
|
|
4249
|
-
item: true,
|
|
4250
4224
|
justifyContent: "center",
|
|
4251
4225
|
spacing: 2
|
|
4252
4226
|
}, {
|
|
4253
|
-
children: [jsx(
|
|
4254
|
-
item: true,
|
|
4227
|
+
children: [jsx(Grid2, Object.assign({
|
|
4255
4228
|
sx: {}
|
|
4256
4229
|
}, {
|
|
4257
4230
|
children: ShowLayerInfo
|
|
4258
|
-
})), jsx(
|
|
4259
|
-
item: true,
|
|
4231
|
+
})), jsx(Grid2, Object.assign({
|
|
4260
4232
|
sx: {}
|
|
4261
4233
|
}, {
|
|
4262
4234
|
children: DeleteLayer
|
|
@@ -4384,22 +4356,22 @@ const OpacitySelectConnect = ({
|
|
|
4384
4356
|
});
|
|
4385
4357
|
};
|
|
4386
4358
|
|
|
4387
|
-
/* *
|
|
4388
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4389
|
-
* you may not use this file except in compliance with the License.
|
|
4390
|
-
* You may obtain a copy of the License at
|
|
4391
|
-
*
|
|
4392
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4393
|
-
*
|
|
4394
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
4395
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4396
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4397
|
-
* See the License for the specific language governing permissions and
|
|
4398
|
-
* limitations under the License.
|
|
4399
|
-
*
|
|
4400
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4401
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
4402
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
4359
|
+
/* *
|
|
4360
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4361
|
+
* you may not use this file except in compliance with the License.
|
|
4362
|
+
* You may obtain a copy of the License at
|
|
4363
|
+
*
|
|
4364
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4365
|
+
*
|
|
4366
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4367
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4368
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4369
|
+
* See the License for the specific language governing permissions and
|
|
4370
|
+
* limitations under the License.
|
|
4371
|
+
*
|
|
4372
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4373
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
4374
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
4403
4375
|
* */
|
|
4404
4376
|
const useLayerDimensions = (layerId, mapId) => {
|
|
4405
4377
|
const dispatch = useDispatch();
|
|
@@ -5158,9 +5130,8 @@ const LayerContainerRow = /*#__PURE__*/React.memo(_a => {
|
|
|
5158
5130
|
});
|
|
5159
5131
|
}
|
|
5160
5132
|
}, [layerLength, rowsToDisplay]);
|
|
5161
|
-
return jsx(
|
|
5133
|
+
return jsx(Grid2, Object.assign({
|
|
5162
5134
|
container: true,
|
|
5163
|
-
item: true,
|
|
5164
5135
|
"data-testid": "layerContainerRow",
|
|
5165
5136
|
className: "layerContainerRow",
|
|
5166
5137
|
sx: {
|
|
@@ -5691,23 +5662,18 @@ const WMSServerList = ({
|
|
|
5691
5662
|
};
|
|
5692
5663
|
const sortedServices = [...availableServices].sort((a, b) => a.name.localeCompare(b.name));
|
|
5693
5664
|
return jsxs(Fragment, {
|
|
5694
|
-
children: [jsx(
|
|
5665
|
+
children: [jsx(Grid2, Object.assign({
|
|
5695
5666
|
container: true,
|
|
5696
5667
|
direction: "row",
|
|
5697
|
-
spacing: 1,
|
|
5698
5668
|
style: {
|
|
5699
|
-
height: '
|
|
5669
|
+
height: '26px'
|
|
5700
5670
|
}
|
|
5701
5671
|
}, {
|
|
5702
|
-
children: jsx(
|
|
5703
|
-
|
|
5672
|
+
children: jsx(InputLabel, Object.assign({
|
|
5673
|
+
shrink: true,
|
|
5674
|
+
htmlFor: "select-multiple-native"
|
|
5704
5675
|
}, {
|
|
5705
|
-
children:
|
|
5706
|
-
shrink: true,
|
|
5707
|
-
htmlFor: "select-multiple-native"
|
|
5708
|
-
}, {
|
|
5709
|
-
children: t('add-layer-popup-available-services')
|
|
5710
|
-
}))
|
|
5676
|
+
children: t('add-layer-popup-available-services')
|
|
5711
5677
|
}))
|
|
5712
5678
|
})), jsx(Paper, Object.assign({
|
|
5713
5679
|
style: {
|
|
@@ -5741,15 +5707,13 @@ const WMSLayerTreeHeader = ({
|
|
|
5741
5707
|
const {
|
|
5742
5708
|
t
|
|
5743
5709
|
} = useCoreTranslation();
|
|
5744
|
-
return jsxs(
|
|
5710
|
+
return jsxs(Grid2, Object.assign({
|
|
5745
5711
|
container: true,
|
|
5746
5712
|
direction: "row",
|
|
5747
5713
|
spacing: 1,
|
|
5748
5714
|
justifyContent: "space-between"
|
|
5749
5715
|
}, {
|
|
5750
|
-
children: [jsx(
|
|
5751
|
-
item: true
|
|
5752
|
-
}, {
|
|
5716
|
+
children: [jsx(Grid2, {
|
|
5753
5717
|
children: jsx(InputLabel, Object.assign({
|
|
5754
5718
|
shrink: true,
|
|
5755
5719
|
htmlFor: "select-multiple-native"
|
|
@@ -5758,9 +5722,7 @@ const WMSLayerTreeHeader = ({
|
|
|
5758
5722
|
serviceName
|
|
5759
5723
|
})
|
|
5760
5724
|
}))
|
|
5761
|
-
})
|
|
5762
|
-
item: true
|
|
5763
|
-
}, {
|
|
5725
|
+
}), onClickReload && jsx(Grid2, {
|
|
5764
5726
|
children: jsx(CustomIconButton, Object.assign({
|
|
5765
5727
|
tooltipTitle: t('add-layer-popup-reload-layers'),
|
|
5766
5728
|
"data-testid": "reloadLayers",
|
|
@@ -5768,7 +5730,7 @@ const WMSLayerTreeHeader = ({
|
|
|
5768
5730
|
}, {
|
|
5769
5731
|
children: jsx(Cached, {})
|
|
5770
5732
|
}))
|
|
5771
|
-
})
|
|
5733
|
+
})]
|
|
5772
5734
|
}));
|
|
5773
5735
|
};
|
|
5774
5736
|
|
|
@@ -5966,22 +5928,22 @@ const ConnectedTree = ({
|
|
|
5966
5928
|
};
|
|
5967
5929
|
const WMSLayerTreeConnect = connectRedux$3(ConnectedTree);
|
|
5968
5930
|
|
|
5969
|
-
/* *
|
|
5970
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5971
|
-
* you may not use this file except in compliance with the License.
|
|
5972
|
-
* You may obtain a copy of the License at
|
|
5973
|
-
*
|
|
5974
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5975
|
-
*
|
|
5976
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
5977
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5978
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5979
|
-
* See the License for the specific language governing permissions and
|
|
5980
|
-
* limitations under the License.
|
|
5981
|
-
*
|
|
5982
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
5983
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
5984
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
5931
|
+
/* *
|
|
5932
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5933
|
+
* you may not use this file except in compliance with the License.
|
|
5934
|
+
* You may obtain a copy of the License at
|
|
5935
|
+
*
|
|
5936
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5937
|
+
*
|
|
5938
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5939
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5940
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5941
|
+
* See the License for the specific language governing permissions and
|
|
5942
|
+
* limitations under the License.
|
|
5943
|
+
*
|
|
5944
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
5945
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
5946
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
5985
5947
|
* */
|
|
5986
5948
|
const isValidService = service => Object.prototype.hasOwnProperty.call(service, 'url');
|
|
5987
5949
|
const filterServices = presetArray => {
|
|
@@ -6149,22 +6111,22 @@ var initialPreset = {
|
|
|
6149
6111
|
preset: preset
|
|
6150
6112
|
};
|
|
6151
6113
|
|
|
6152
|
-
/* *
|
|
6153
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6154
|
-
* you may not use this file except in compliance with the License.
|
|
6155
|
-
* You may obtain a copy of the License at
|
|
6156
|
-
*
|
|
6157
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6158
|
-
*
|
|
6159
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
6160
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6161
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6162
|
-
* See the License for the specific language governing permissions and
|
|
6163
|
-
* limitations under the License.
|
|
6164
|
-
*
|
|
6165
|
-
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
6166
|
-
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
6167
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
6114
|
+
/* *
|
|
6115
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6116
|
+
* you may not use this file except in compliance with the License.
|
|
6117
|
+
* You may obtain a copy of the License at
|
|
6118
|
+
*
|
|
6119
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6120
|
+
*
|
|
6121
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6122
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6123
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6124
|
+
* See the License for the specific language governing permissions and
|
|
6125
|
+
* limitations under the License.
|
|
6126
|
+
*
|
|
6127
|
+
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
6128
|
+
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
6129
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
6168
6130
|
* */
|
|
6169
6131
|
const {
|
|
6170
6132
|
services,
|
|
@@ -6270,14 +6232,13 @@ const AddLayersPopup = ({
|
|
|
6270
6232
|
}), jsx(Box, Object.assign({
|
|
6271
6233
|
m: 2
|
|
6272
6234
|
}, {
|
|
6273
|
-
children: jsx(
|
|
6235
|
+
children: jsx(Grid2, Object.assign({
|
|
6274
6236
|
container: true,
|
|
6275
6237
|
direction: "row",
|
|
6276
6238
|
alignItems: "center"
|
|
6277
6239
|
}, {
|
|
6278
|
-
children: jsx(
|
|
6279
|
-
|
|
6280
|
-
xs: 12
|
|
6240
|
+
children: jsx(Grid2, Object.assign({
|
|
6241
|
+
size: 12
|
|
6281
6242
|
}, {
|
|
6282
6243
|
children: jsx(TextField, {
|
|
6283
6244
|
margin: "dense",
|
|
@@ -6301,24 +6262,26 @@ const AddLayersPopup = ({
|
|
|
6301
6262
|
error: urlError !== '',
|
|
6302
6263
|
helperText: urlError,
|
|
6303
6264
|
variant: "filled",
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
children: loading ? jsx(CircularProgress, {
|
|
6309
|
-
size: 24,
|
|
6310
|
-
sx: {
|
|
6311
|
-
zIndex: 1
|
|
6312
|
-
}
|
|
6313
|
-
}) : jsx(CustomIconButton, Object.assign({
|
|
6314
|
-
"data-testid": "add-service",
|
|
6315
|
-
onClick: handleAddServiceURL,
|
|
6316
|
-
disabled: loading,
|
|
6317
|
-
size: "large"
|
|
6265
|
+
slotProps: {
|
|
6266
|
+
input: {
|
|
6267
|
+
endAdornment: jsx(InputAdornment, Object.assign({
|
|
6268
|
+
position: "end"
|
|
6318
6269
|
}, {
|
|
6319
|
-
children: jsx(
|
|
6270
|
+
children: loading ? jsx(CircularProgress, {
|
|
6271
|
+
size: 24,
|
|
6272
|
+
sx: {
|
|
6273
|
+
zIndex: 1
|
|
6274
|
+
}
|
|
6275
|
+
}) : jsx(CustomIconButton, Object.assign({
|
|
6276
|
+
"data-testid": "add-service",
|
|
6277
|
+
onClick: handleAddServiceURL,
|
|
6278
|
+
disabled: loading,
|
|
6279
|
+
size: "large"
|
|
6280
|
+
}, {
|
|
6281
|
+
children: jsx(Add, {})
|
|
6282
|
+
}))
|
|
6320
6283
|
}))
|
|
6321
|
-
}
|
|
6284
|
+
}
|
|
6322
6285
|
}
|
|
6323
6286
|
})
|
|
6324
6287
|
}))
|
|
@@ -6326,24 +6289,22 @@ const AddLayersPopup = ({
|
|
|
6326
6289
|
})), jsx(Box, Object.assign({
|
|
6327
6290
|
m: 2
|
|
6328
6291
|
}, {
|
|
6329
|
-
children: jsxs(
|
|
6292
|
+
children: jsxs(Grid2, Object.assign({
|
|
6330
6293
|
container: true,
|
|
6331
6294
|
direction: "row",
|
|
6332
6295
|
alignItems: "center",
|
|
6333
6296
|
spacing: 3
|
|
6334
6297
|
}, {
|
|
6335
|
-
children: [jsx(
|
|
6336
|
-
|
|
6337
|
-
xs: 4
|
|
6298
|
+
children: [jsx(Grid2, Object.assign({
|
|
6299
|
+
size: 4
|
|
6338
6300
|
}, {
|
|
6339
6301
|
children: jsx(WMSServerList, {
|
|
6340
6302
|
availableServices: services,
|
|
6341
6303
|
service: activeService,
|
|
6342
6304
|
handleChangeService: handleChangeService
|
|
6343
6305
|
})
|
|
6344
|
-
})), jsx(
|
|
6345
|
-
|
|
6346
|
-
xs: 8
|
|
6306
|
+
})), jsx(Grid2, Object.assign({
|
|
6307
|
+
size: 8
|
|
6347
6308
|
}, {
|
|
6348
6309
|
children: onRenderTree ? onRenderTree(activeService) : jsx(WMSLayerTreeConnect, {
|
|
6349
6310
|
mapId: "",
|
|
@@ -6436,9 +6397,8 @@ const BaseLayerRow = _a => {
|
|
|
6436
6397
|
} = _a,
|
|
6437
6398
|
gridProps = __rest(_a, ["mapId", "preloadedAvailableBaseLayers", "preloadedServices", "tooltip", "settings"]);
|
|
6438
6399
|
const theme = useTheme();
|
|
6439
|
-
return jsxs(
|
|
6400
|
+
return jsxs(Grid2, Object.assign({
|
|
6440
6401
|
container: true,
|
|
6441
|
-
item: true,
|
|
6442
6402
|
"data-testid": "baseLayerRow",
|
|
6443
6403
|
className: "addLayer-column",
|
|
6444
6404
|
sx: Object.assign({
|
|
@@ -6446,8 +6406,7 @@ const BaseLayerRow = _a => {
|
|
|
6446
6406
|
height: '36px'
|
|
6447
6407
|
}, theme.palette.geowebColors.layerManager.baseLayerRow.root)
|
|
6448
6408
|
}, gridProps, {
|
|
6449
|
-
children: [jsxs(
|
|
6450
|
-
item: true,
|
|
6409
|
+
children: [jsxs(Grid2, Object.assign({
|
|
6451
6410
|
className: columnClasses.column1,
|
|
6452
6411
|
sx: [{
|
|
6453
6412
|
marginTop: '-2px'
|
|
@@ -6462,8 +6421,7 @@ const BaseLayerRow = _a => {
|
|
|
6462
6421
|
layerType: LayerType.baseLayer
|
|
6463
6422
|
})
|
|
6464
6423
|
}), (_d = settings === null || settings === void 0 ? void 0 : settings.baseLayerRow) === null || _d === void 0 ? void 0 : _d.title]
|
|
6465
|
-
})), jsx(
|
|
6466
|
-
item: true,
|
|
6424
|
+
})), jsx(Grid2, Object.assign({
|
|
6467
6425
|
className: columnClasses.column2
|
|
6468
6426
|
}, {
|
|
6469
6427
|
children: jsx(BaseLayersConnect, {
|
|
@@ -6575,7 +6533,7 @@ const ProjectionSelect = ({
|
|
|
6575
6533
|
const index = availableProjections.findIndex(projection => projection.value === currentProjection);
|
|
6576
6534
|
const currentProjectionObject = availableProjections.find(projection => projection.value === currentProjection);
|
|
6577
6535
|
const title = t('projection-title');
|
|
6578
|
-
return jsxs(
|
|
6536
|
+
return jsxs(Grid2, Object.assign({
|
|
6579
6537
|
container: true,
|
|
6580
6538
|
className: "setProjection-column",
|
|
6581
6539
|
sx: {
|
|
@@ -6583,8 +6541,7 @@ const ProjectionSelect = ({
|
|
|
6583
6541
|
height: '36px'
|
|
6584
6542
|
}
|
|
6585
6543
|
}, {
|
|
6586
|
-
children: [jsx(
|
|
6587
|
-
item: true,
|
|
6544
|
+
children: [jsx(Grid2, Object.assign({
|
|
6588
6545
|
className: columnClasses.column1,
|
|
6589
6546
|
sx: [{
|
|
6590
6547
|
marginTop: '-2px'
|
|
@@ -6599,8 +6556,7 @@ const ProjectionSelect = ({
|
|
|
6599
6556
|
}, {
|
|
6600
6557
|
children: jsx(WorldMapProjection, {})
|
|
6601
6558
|
}))
|
|
6602
|
-
})), jsx(
|
|
6603
|
-
item: true,
|
|
6559
|
+
})), jsx(Grid2, Object.assign({
|
|
6604
6560
|
className: columnClasses.column2
|
|
6605
6561
|
}, {
|
|
6606
6562
|
children: jsx(FormControl, Object.assign({
|
|
@@ -6800,7 +6756,7 @@ const LayerManager = ({
|
|
|
6800
6756
|
title: error,
|
|
6801
6757
|
shouldClose: true
|
|
6802
6758
|
})
|
|
6803
|
-
})), jsxs(
|
|
6759
|
+
})), jsxs(Grid2, Object.assign({
|
|
6804
6760
|
container: true,
|
|
6805
6761
|
"data-testid": "layerManagerRowContainer",
|
|
6806
6762
|
sx: styles$1.layerRowContainer
|
|
@@ -6869,16 +6825,16 @@ const getDialogType = (mapId, isMultiMap, isDocked) => {
|
|
|
6869
6825
|
}
|
|
6870
6826
|
return uiTypes.DialogTypes.LayerManager;
|
|
6871
6827
|
};
|
|
6872
|
-
/**
|
|
6873
|
-
* Layer Managerconnected to the store displaying the layers forthe active map Id
|
|
6874
|
-
* Please note that in order to use this and open/close the dialog, every map on the screen that should be able to show
|
|
6875
|
-
* a dialog should have the <LayerManagerMapButtonConnect/> which is used to focus the correct map and open the dialog
|
|
6876
|
-
*
|
|
6877
|
-
* Expects the following props:
|
|
6878
|
-
* @param {serviceTypes.InitialService[]} preloadedMapServices preloadedMapServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader for maplayers
|
|
6879
|
-
* @param {serviceTypes.InitialService[]} preloadedBaseServices preloadedBaseServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader fpr baselayers
|
|
6880
|
-
* @param {Layer[]} preloadedAvailableBaseLayers preloadedAvailableBaseLayers: array of Layer objects - contains an array of Layer objects (consisting solely of type baseLayer) that are available to be shown as basemaps
|
|
6881
|
-
* ``` <LayerManagerConnect />```
|
|
6828
|
+
/**
|
|
6829
|
+
* Layer Managerconnected to the store displaying the layers forthe active map Id
|
|
6830
|
+
* Please note that in order to use this and open/close the dialog, every map on the screen that should be able to show
|
|
6831
|
+
* a dialog should have the <LayerManagerMapButtonConnect/> which is used to focus the correct map and open the dialog
|
|
6832
|
+
*
|
|
6833
|
+
* Expects the following props:
|
|
6834
|
+
* @param {serviceTypes.InitialService[]} preloadedMapServices preloadedMapServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader for maplayers
|
|
6835
|
+
* @param {serviceTypes.InitialService[]} preloadedBaseServices preloadedBaseServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader fpr baselayers
|
|
6836
|
+
* @param {Layer[]} preloadedAvailableBaseLayers preloadedAvailableBaseLayers: array of Layer objects - contains an array of Layer objects (consisting solely of type baseLayer) that are available to be shown as basemaps
|
|
6837
|
+
* ``` <LayerManagerConnect />```
|
|
6882
6838
|
*/
|
|
6883
6839
|
const LayerManagerConnect = ({
|
|
6884
6840
|
preloadedAvailableBaseLayers,
|
|
@@ -7734,22 +7690,22 @@ const useTouchZoomPan = (mapIsActive, mapId) => {
|
|
|
7734
7690
|
};
|
|
7735
7691
|
const TOUCH_PAN_STEP_PERCENTAGE = 0.02;
|
|
7736
7692
|
|
|
7737
|
-
/* *
|
|
7738
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7739
|
-
* you may not use this file except in compliance with the License.
|
|
7740
|
-
* You may obtain a copy of the License at
|
|
7741
|
-
*
|
|
7742
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7743
|
-
*
|
|
7744
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
7745
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
7746
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
7747
|
-
* See the License for the specific language governing permissions and
|
|
7748
|
-
* limitations under the License.
|
|
7749
|
-
*
|
|
7750
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
7751
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
7752
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
7693
|
+
/* *
|
|
7694
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7695
|
+
* you may not use this file except in compliance with the License.
|
|
7696
|
+
* You may obtain a copy of the License at
|
|
7697
|
+
*
|
|
7698
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7699
|
+
*
|
|
7700
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7701
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
7702
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
7703
|
+
* See the License for the specific language governing permissions and
|
|
7704
|
+
* limitations under the License.
|
|
7705
|
+
*
|
|
7706
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
7707
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
7708
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
7753
7709
|
* */
|
|
7754
7710
|
const useKeyboardZoomAndPan = (mapIsActive, mapId) => {
|
|
7755
7711
|
React.useEffect(() => {
|
|
@@ -7803,17 +7759,17 @@ const useKeyboardZoomAndPan = (mapIsActive, mapId) => {
|
|
|
7803
7759
|
const PAN_STEP_PERCENTAGE = 0.02;
|
|
7804
7760
|
|
|
7805
7761
|
const ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION = 'ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION';
|
|
7806
|
-
/**
|
|
7807
|
-
* Connected component used to display the map and selected layers.
|
|
7808
|
-
* Includes options to disable the map controls and legend.
|
|
7809
|
-
*
|
|
7810
|
-
* Expects the following props:
|
|
7811
|
-
* @param {string} mapId mapId: string - Id of the map
|
|
7812
|
-
* @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true
|
|
7813
|
-
* @param {boolean} [displayTimeInMap] **optional** displayTimeInMap: boolean, toggles the mapTime, defaults to true
|
|
7814
|
-
* @param {boolean} [showScaleBar] **optional** showScaleBar: boolean, toggles the scaleBar, defaults to true
|
|
7815
|
-
* @example
|
|
7816
|
-
* ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} showScaleBar={false}/>```
|
|
7762
|
+
/**
|
|
7763
|
+
* Connected component used to display the map and selected layers.
|
|
7764
|
+
* Includes options to disable the map controls and legend.
|
|
7765
|
+
*
|
|
7766
|
+
* Expects the following props:
|
|
7767
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
7768
|
+
* @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true
|
|
7769
|
+
* @param {boolean} [displayTimeInMap] **optional** displayTimeInMap: boolean, toggles the mapTime, defaults to true
|
|
7770
|
+
* @param {boolean} [showScaleBar] **optional** showScaleBar: boolean, toggles the scaleBar, defaults to true
|
|
7771
|
+
* @example
|
|
7772
|
+
* ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} showScaleBar={false}/>```
|
|
7817
7773
|
*/
|
|
7818
7774
|
const MapViewConnect = _a => {
|
|
7819
7775
|
var {
|
|
@@ -8140,16 +8096,16 @@ const LegendConnectComponent = ({
|
|
|
8140
8096
|
source: uiSource
|
|
8141
8097
|
});
|
|
8142
8098
|
};
|
|
8143
|
-
/**
|
|
8144
|
-
* Legend component connected to the store displaying a legend for every layer shown on the active map Id
|
|
8145
|
-
* Please note that in order to use this and open/close the dialog, every map on the screen that should be able to show
|
|
8146
|
-
* a dialog should have the <LegendMapButtonConnect/> which is used to focus the correct map and open the dialog
|
|
8147
|
-
*
|
|
8148
|
-
* Expects the following props:
|
|
8149
|
-
* @param {boolean} showMapId (optional) showMapId: boolean - show the id of the map in the dialog title of which the legend is shown in te dialog
|
|
8150
|
-
* @param {uiTypes.Source} source (optional) source: uiTypes.Source - default is 'app', 'module' makes sure it will be shown on top of the module
|
|
8099
|
+
/**
|
|
8100
|
+
* Legend component connected to the store displaying a legend for every layer shown on the active map Id
|
|
8101
|
+
* Please note that in order to use this and open/close the dialog, every map on the screen that should be able to show
|
|
8102
|
+
* a dialog should have the <LegendMapButtonConnect/> which is used to focus the correct map and open the dialog
|
|
8103
|
+
*
|
|
8104
|
+
* Expects the following props:
|
|
8105
|
+
* @param {boolean} showMapId (optional) showMapId: boolean - show the id of the map in the dialog title of which the legend is shown in te dialog
|
|
8106
|
+
* @param {uiTypes.Source} source (optional) source: uiTypes.Source - default is 'app', 'module' makes sure it will be shown on top of the module
|
|
8151
8107
|
|
|
8152
|
-
* ``` <LegendConnect legendDialogId={legendDialogId} />```
|
|
8108
|
+
* ``` <LegendConnect legendDialogId={legendDialogId} />```
|
|
8153
8109
|
*/
|
|
8154
8110
|
const LegendConnect = _a => {
|
|
8155
8111
|
var {
|
|
@@ -8186,37 +8142,37 @@ const LegendMapButtonConnect = ({
|
|
|
8186
8142
|
});
|
|
8187
8143
|
};
|
|
8188
8144
|
|
|
8189
|
-
/* *
|
|
8190
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8191
|
-
* you may not use this file except in compliance with the License.
|
|
8192
|
-
* You may obtain a copy of the License at
|
|
8193
|
-
*
|
|
8194
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8195
|
-
*
|
|
8196
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
8197
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
8198
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
8199
|
-
* See the License for the specific language governing permissions and
|
|
8200
|
-
* limitations under the License.
|
|
8201
|
-
*
|
|
8202
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
8203
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
8204
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
8145
|
+
/* *
|
|
8146
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8147
|
+
* you may not use this file except in compliance with the License.
|
|
8148
|
+
* You may obtain a copy of the License at
|
|
8149
|
+
*
|
|
8150
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8151
|
+
*
|
|
8152
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
8153
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
8154
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
8155
|
+
* See the License for the specific language governing permissions and
|
|
8156
|
+
* limitations under the License.
|
|
8157
|
+
*
|
|
8158
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
8159
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
8160
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
8205
8161
|
* */
|
|
8206
|
-
/**
|
|
8207
|
-
* Get the title for this WMS layer based on its layerId. If not defined, layerId is used instead.
|
|
8208
|
-
* @param layerId
|
|
8209
|
-
* @returns Title for the layer
|
|
8162
|
+
/**
|
|
8163
|
+
* Get the title for this WMS layer based on its layerId. If not defined, layerId is used instead.
|
|
8164
|
+
* @param layerId
|
|
8165
|
+
* @returns Title for the layer
|
|
8210
8166
|
*/
|
|
8211
8167
|
const getTitle = layerId => {
|
|
8212
8168
|
const wmjsLayer = webmapUtils.getWMLayerById(layerId);
|
|
8213
8169
|
return wmjsLayer ? wmjsLayer.title || wmjsLayer.name : layerId;
|
|
8214
8170
|
};
|
|
8215
|
-
/**
|
|
8216
|
-
* Make a list of GFI Layers to display.
|
|
8217
|
-
* @param layers
|
|
8218
|
-
* @param mapId
|
|
8219
|
-
* @returns
|
|
8171
|
+
/**
|
|
8172
|
+
* Make a list of GFI Layers to display.
|
|
8173
|
+
* @param layers
|
|
8174
|
+
* @param mapId
|
|
8175
|
+
* @returns
|
|
8220
8176
|
*/
|
|
8221
8177
|
const getLayersToUpdate = (layers, mapId) => {
|
|
8222
8178
|
const wmjsMap = webmapUtils.getWMJSMapById(mapId);
|
|
@@ -8224,11 +8180,11 @@ const getLayersToUpdate = (layers, mapId) => {
|
|
|
8224
8180
|
return [];
|
|
8225
8181
|
}
|
|
8226
8182
|
return layers.filter(layer => layer && layer.enabled && !!webmapUtils.getWMLayerById(layer.id)).map(layer => {
|
|
8227
|
-
/*
|
|
8228
|
-
We need a wmjsLayer to build the getfeatureinfo url (getWMSGetFeatureInfoRequestURL function).
|
|
8229
|
-
But it seems that its dimension are lazely updated (by ReactMapView).
|
|
8230
|
-
Therefore make a clone of this layer and set its dimensions based on the layer object.
|
|
8231
|
-
Otherwise we risk making a getfeatureinfo call with outdated dimension values.
|
|
8183
|
+
/*
|
|
8184
|
+
We need a wmjsLayer to build the getfeatureinfo url (getWMSGetFeatureInfoRequestURL function).
|
|
8185
|
+
But it seems that its dimension are lazely updated (by ReactMapView).
|
|
8186
|
+
Therefore make a clone of this layer and set its dimensions based on the layer object.
|
|
8187
|
+
Otherwise we risk making a getfeatureinfo call with outdated dimension values.
|
|
8232
8188
|
*/
|
|
8233
8189
|
const wmjsLayer = webmapUtils.getWMLayerById(layer.id).cloneLayer();
|
|
8234
8190
|
return {
|
|
@@ -8239,22 +8195,22 @@ const getLayersToUpdate = (layers, mapId) => {
|
|
|
8239
8195
|
});
|
|
8240
8196
|
};
|
|
8241
8197
|
|
|
8242
|
-
/* *
|
|
8243
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8244
|
-
* you may not use this file except in compliance with the License.
|
|
8245
|
-
* You may obtain a copy of the License at
|
|
8246
|
-
*
|
|
8247
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8248
|
-
*
|
|
8249
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
8250
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
8251
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
8252
|
-
* See the License for the specific language governing permissions and
|
|
8253
|
-
* limitations under the License.
|
|
8254
|
-
*
|
|
8255
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
8256
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
8257
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
8198
|
+
/* *
|
|
8199
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8200
|
+
* you may not use this file except in compliance with the License.
|
|
8201
|
+
* You may obtain a copy of the License at
|
|
8202
|
+
*
|
|
8203
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8204
|
+
*
|
|
8205
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
8206
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
8207
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
8208
|
+
* See the License for the specific language governing permissions and
|
|
8209
|
+
* limitations under the License.
|
|
8210
|
+
*
|
|
8211
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
8212
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
8213
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
8258
8214
|
* */
|
|
8259
8215
|
const sanitizeHTML = htmlToBeSanitezed => ({
|
|
8260
8216
|
__html: DOMPurify.sanitize(htmlToBeSanitezed, {
|
|
@@ -8296,9 +8252,9 @@ const GetFeatureInfoDialog = ({
|
|
|
8296
8252
|
};
|
|
8297
8253
|
/* Build a layerlist array with a set of arguments per layer to do the query for */
|
|
8298
8254
|
const layerToUpdateList = isOpen ? getLayersToUpdate(layers, mapId) : [];
|
|
8299
|
-
/*
|
|
8300
|
-
Build a string based on the GFI urls. If this changes for whatever reason we need to update.
|
|
8301
|
-
These strings can change very often, therefore they need to be debounced and only use the most recent result must be used.
|
|
8255
|
+
/*
|
|
8256
|
+
Build a string based on the GFI urls. If this changes for whatever reason we need to update.
|
|
8257
|
+
These strings can change very often, therefore they need to be debounced and only use the most recent result must be used.
|
|
8302
8258
|
*/
|
|
8303
8259
|
const debouncedlayerListString = useDebounce(layerToUpdateList.map(layer => layer.url).join(','), 100);
|
|
8304
8260
|
/* Do a GFI call to the server and use the updateLayerResult to provide the results. */
|
|
@@ -8380,7 +8336,7 @@ const GetFeatureInfoDialog = ({
|
|
|
8380
8336
|
if (!result) {
|
|
8381
8337
|
return null;
|
|
8382
8338
|
}
|
|
8383
|
-
return jsxs(
|
|
8339
|
+
return jsxs(Grid2, Object.assign({
|
|
8384
8340
|
sx: {
|
|
8385
8341
|
margin: '4px 6px 4px 6px',
|
|
8386
8342
|
padding: '6px',
|
|
@@ -8684,7 +8640,7 @@ const MyMapLocation = ({
|
|
|
8684
8640
|
sx: {
|
|
8685
8641
|
height: '100%',
|
|
8686
8642
|
width: '100%',
|
|
8687
|
-
color: theme => theme.palette.mode === 'light' ? '#bad4ff' : '#
|
|
8643
|
+
color: theme => theme.palette.mode === 'light' ? '#bad4ff' : '#45556F',
|
|
8688
8644
|
animationDuration: '1000ms',
|
|
8689
8645
|
position: 'absolute',
|
|
8690
8646
|
left: 0,
|
|
@@ -8741,20 +8697,22 @@ const SearchDialog = ({
|
|
|
8741
8697
|
id: "dummy-search-field",
|
|
8742
8698
|
label: t('search-title'),
|
|
8743
8699
|
variant: "filled",
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
children: jsx(CustomIconButton, Object.assign({
|
|
8750
|
-
tooltipTitle: t('actions-close'),
|
|
8751
|
-
edge: "end",
|
|
8752
|
-
onClick: onClose,
|
|
8753
|
-
size: "large"
|
|
8700
|
+
slotProps: {
|
|
8701
|
+
input: {
|
|
8702
|
+
disableUnderline: true,
|
|
8703
|
+
endAdornment: jsx(InputAdornment, Object.assign({
|
|
8704
|
+
position: "end"
|
|
8754
8705
|
}, {
|
|
8755
|
-
children: jsx(
|
|
8706
|
+
children: jsx(CustomIconButton, Object.assign({
|
|
8707
|
+
tooltipTitle: t('actions-close'),
|
|
8708
|
+
edge: "end",
|
|
8709
|
+
onClick: onClose,
|
|
8710
|
+
size: "large"
|
|
8711
|
+
}, {
|
|
8712
|
+
children: jsx(Close, {})
|
|
8713
|
+
}))
|
|
8756
8714
|
}))
|
|
8757
|
-
}
|
|
8715
|
+
}
|
|
8758
8716
|
}
|
|
8759
8717
|
})]
|
|
8760
8718
|
})) : null;
|
|
@@ -8775,22 +8733,22 @@ const SearchControlConnect = ({
|
|
|
8775
8733
|
});
|
|
8776
8734
|
};
|
|
8777
8735
|
|
|
8778
|
-
/* *
|
|
8779
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8780
|
-
* you may not use this file except in compliance with the License.
|
|
8781
|
-
* You may obtain a copy of the License at
|
|
8782
|
-
*
|
|
8783
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8784
|
-
*
|
|
8785
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
8786
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
8787
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
8788
|
-
* See the License for the specific language governing permissions and
|
|
8789
|
-
* limitations under the License.
|
|
8790
|
-
*
|
|
8791
|
-
* Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
8792
|
-
* Copyright 2024 - Finnish Meteorological Institute (FMI)
|
|
8793
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
8736
|
+
/* *
|
|
8737
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8738
|
+
* you may not use this file except in compliance with the License.
|
|
8739
|
+
* You may obtain a copy of the License at
|
|
8740
|
+
*
|
|
8741
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8742
|
+
*
|
|
8743
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
8744
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
8745
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
8746
|
+
* See the License for the specific language governing permissions and
|
|
8747
|
+
* limitations under the License.
|
|
8748
|
+
*
|
|
8749
|
+
* Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
8750
|
+
* Copyright 2024 - Finnish Meteorological Institute (FMI)
|
|
8751
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
8794
8752
|
* */
|
|
8795
8753
|
const useTurnOffAutoUpdateIfItsOn = mapId => {
|
|
8796
8754
|
const isAutoUpdating = useSelector(store => mapSelectors.isAutoUpdating(store, mapId));
|
|
@@ -8805,8 +8763,8 @@ const useTurnOffAutoUpdateIfItsOn = mapId => {
|
|
|
8805
8763
|
};
|
|
8806
8764
|
return turnOffAutoUpdateIfItsOn;
|
|
8807
8765
|
};
|
|
8808
|
-
/**
|
|
8809
|
-
* Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
|
|
8766
|
+
/**
|
|
8767
|
+
* Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
|
|
8810
8768
|
*/
|
|
8811
8769
|
const getTimeBounds = dimensions => {
|
|
8812
8770
|
const defaultStartEnd = dateUtils.unix(dateUtils.set(dateUtils.utc(), {
|
|
@@ -8974,13 +8932,13 @@ const TimeSpanButtonConnect = ({
|
|
|
8974
8932
|
});
|
|
8975
8933
|
};
|
|
8976
8934
|
|
|
8977
|
-
/**
|
|
8978
|
-
* OptionsMenuButtonConnect component with components connected to the store displaying the options menu button
|
|
8979
|
-
*
|
|
8980
|
-
* Expects the following props:
|
|
8981
|
-
* @param {string} mapId mapId: string - Id of the map
|
|
8982
|
-
* @example
|
|
8983
|
-
* ``` <OptionsMenuButtonConnect mapId={mapId} />```
|
|
8935
|
+
/**
|
|
8936
|
+
* OptionsMenuButtonConnect component with components connected to the store displaying the options menu button
|
|
8937
|
+
*
|
|
8938
|
+
* Expects the following props:
|
|
8939
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
8940
|
+
* @example
|
|
8941
|
+
* ``` <OptionsMenuButtonConnect mapId={mapId} />```
|
|
8984
8942
|
*/
|
|
8985
8943
|
const OptionsMenuButtonConnect = ({
|
|
8986
8944
|
mapId
|
|
@@ -9125,14 +9083,14 @@ const NowButtonConnect = ({
|
|
|
9125
9083
|
});
|
|
9126
9084
|
};
|
|
9127
9085
|
|
|
9128
|
-
/**
|
|
9129
|
-
* TimeSliderButtons component with components connected to the store displaying the time slider buttons
|
|
9130
|
-
*
|
|
9131
|
-
* Expects the following props:
|
|
9132
|
-
* @param {string} mapId mapId: string - Id of the map
|
|
9133
|
-
* @param {string} sourceId mapId: string - Id of the source
|
|
9134
|
-
* @example
|
|
9135
|
-
* ``` <TimeSliderButtonsConnect mapId={mapId} sourceId={sourceId} />```
|
|
9086
|
+
/**
|
|
9087
|
+
* TimeSliderButtons component with components connected to the store displaying the time slider buttons
|
|
9088
|
+
*
|
|
9089
|
+
* Expects the following props:
|
|
9090
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
9091
|
+
* @param {string} sourceId mapId: string - Id of the source
|
|
9092
|
+
* @example
|
|
9093
|
+
* ``` <TimeSliderButtonsConnect mapId={mapId} sourceId={sourceId} />```
|
|
9136
9094
|
*/
|
|
9137
9095
|
const TimeSliderButtonsConnectComponent = ({
|
|
9138
9096
|
sourceId,
|
|
@@ -10055,10 +10013,10 @@ const useGetLatestReferenceTime = inputLayer => {
|
|
|
10055
10013
|
}, [inputLayer]);
|
|
10056
10014
|
return latestReferenceTime;
|
|
10057
10015
|
};
|
|
10058
|
-
/**
|
|
10059
|
-
* Custom hook to find out if the list of syncgroup id's contains a group which is of type SYNCGROUPS_TYPE_SETLAYERACTIONS
|
|
10060
|
-
* @param syncGroupsIds A string array of syncgroup ids
|
|
10061
|
-
* @returns True if indeed a group is included which is of type SYNCGROUPS_TYPE_SETLAYERACTIONS
|
|
10016
|
+
/**
|
|
10017
|
+
* Custom hook to find out if the list of syncgroup id's contains a group which is of type SYNCGROUPS_TYPE_SETLAYERACTIONS
|
|
10018
|
+
* @param syncGroupsIds A string array of syncgroup ids
|
|
10019
|
+
* @returns True if indeed a group is included which is of type SYNCGROUPS_TYPE_SETLAYERACTIONS
|
|
10062
10020
|
*/
|
|
10063
10021
|
const useHasSyncGroupWithLayerActions = syncGroupsIds => {
|
|
10064
10022
|
/* Get Syncgroupstate */
|
|
@@ -10145,7 +10103,7 @@ const useGetReferenceTimes = inputLayer => {
|
|
|
10145
10103
|
const wmLayer = new WMLayer(Object.assign({}, inputLayer));
|
|
10146
10104
|
wmLayer.parseLayerPromise().then(layer => {
|
|
10147
10105
|
const refTimeDim = layer.getDimension('reference_time');
|
|
10148
|
-
/* Loop through all values of the dimension.
|
|
10106
|
+
/* Loop through all values of the dimension.
|
|
10149
10107
|
A map cannot be used for iterating, as the dimension values are not in an array (it is an API). */
|
|
10150
10108
|
for (let j = 0; j < refTimeDim.size(); j += 1) {
|
|
10151
10109
|
const referenceTimeValue = refTimeDim.getValueForIndex(j);
|
|
@@ -10436,11 +10394,11 @@ const SyncGroupViewer = ({
|
|
|
10436
10394
|
const {
|
|
10437
10395
|
t
|
|
10438
10396
|
} = useCoreTranslation();
|
|
10439
|
-
/*
|
|
10440
|
-
_____ Handle Toggle _____
|
|
10441
|
-
- Handles checking, unchecking and toggling between in groups
|
|
10442
|
-
1. If checkbox is checked -> uncheck it
|
|
10443
|
-
2. If checkbox is not checked -> check if its checked elsewhere and uncheck it if found
|
|
10397
|
+
/*
|
|
10398
|
+
_____ Handle Toggle _____
|
|
10399
|
+
- Handles checking, unchecking and toggling between in groups
|
|
10400
|
+
1. If checkbox is checked -> uncheck it
|
|
10401
|
+
2. If checkbox is not checked -> check if its checked elsewhere and uncheck it if found
|
|
10444
10402
|
*/
|
|
10445
10403
|
const handleToggle = (groupCategory, groupId, sourceId) => {
|
|
10446
10404
|
const {
|
|
@@ -10475,10 +10433,10 @@ const SyncGroupViewer = ({
|
|
|
10475
10433
|
});
|
|
10476
10434
|
}
|
|
10477
10435
|
};
|
|
10478
|
-
/*
|
|
10479
|
-
_____ Add new group _____
|
|
10480
|
-
- Called when user clicks on + in the sidepane
|
|
10481
|
-
- Sends an action to add a new group in Redux
|
|
10436
|
+
/*
|
|
10437
|
+
_____ Add new group _____
|
|
10438
|
+
- Called when user clicks on + in the sidepane
|
|
10439
|
+
- Sends an action to add a new group in Redux
|
|
10482
10440
|
*/
|
|
10483
10441
|
const addNewGroup = (groupCategory, groupId) => {
|
|
10484
10442
|
syncGroupsSelector.groupTypes.forEach(({
|
|
@@ -10496,10 +10454,10 @@ const SyncGroupViewer = ({
|
|
|
10496
10454
|
}
|
|
10497
10455
|
});
|
|
10498
10456
|
};
|
|
10499
|
-
/*
|
|
10500
|
-
_____ Remove Group _____
|
|
10501
|
-
- Called when user clicks on the trashcan icon in sidepane
|
|
10502
|
-
- Send an action to remove the group in Redux
|
|
10457
|
+
/*
|
|
10458
|
+
_____ Remove Group _____
|
|
10459
|
+
- Called when user clicks on the trashcan icon in sidepane
|
|
10460
|
+
- Send an action to remove the group in Redux
|
|
10503
10461
|
*/
|
|
10504
10462
|
const removeGroup = (groupCategory, groupId) => {
|
|
10505
10463
|
syncGroupsSelector.groupTypes.forEach(({
|
|
@@ -10588,22 +10546,22 @@ const SyncGroupViewerConnect = () => {
|
|
|
10588
10546
|
});
|
|
10589
10547
|
};
|
|
10590
10548
|
|
|
10591
|
-
/* *
|
|
10592
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10593
|
-
* you may not use this file except in compliance with the License.
|
|
10594
|
-
* You may obtain a copy of the License at
|
|
10595
|
-
*
|
|
10596
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10597
|
-
*
|
|
10598
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10599
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10600
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10601
|
-
* See the License for the specific language governing permissions and
|
|
10602
|
-
* limitations under the License.
|
|
10603
|
-
*
|
|
10604
|
-
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
10605
|
-
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
10606
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
10549
|
+
/* *
|
|
10550
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10551
|
+
* you may not use this file except in compliance with the License.
|
|
10552
|
+
* You may obtain a copy of the License at
|
|
10553
|
+
*
|
|
10554
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10555
|
+
*
|
|
10556
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
10557
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10558
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10559
|
+
* See the License for the specific language governing permissions and
|
|
10560
|
+
* limitations under the License.
|
|
10561
|
+
*
|
|
10562
|
+
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
10563
|
+
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
10564
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
10607
10565
|
* */
|
|
10608
10566
|
const baseLayer = {
|
|
10609
10567
|
name: 'arcGisSat',
|
|
@@ -10705,10 +10663,10 @@ var testLayers = /*#__PURE__*/Object.freeze({
|
|
|
10705
10663
|
simplePolygonGeoJSON: simplePolygonGeoJSON
|
|
10706
10664
|
});
|
|
10707
10665
|
|
|
10708
|
-
/**
|
|
10709
|
-
* A Provider component which provides the GeoWeb theme
|
|
10710
|
-
* @param children
|
|
10711
|
-
* @returns
|
|
10666
|
+
/**
|
|
10667
|
+
* A Provider component which provides the GeoWeb theme
|
|
10668
|
+
* @param children
|
|
10669
|
+
* @returns
|
|
10712
10670
|
*/
|
|
10713
10671
|
const CoreThemeProvider = ({
|
|
10714
10672
|
children,
|
|
@@ -10726,11 +10684,11 @@ const ThemeWrapperWithModules = withEggs([...coreModuleConfig, layerSelectConfig
|
|
|
10726
10684
|
}, {
|
|
10727
10685
|
children: children
|
|
10728
10686
|
})));
|
|
10729
|
-
/**
|
|
10730
|
-
* A Provider component which provides the GeoWeb theme and store for the core.
|
|
10731
|
-
* Note: Should only be used with core components, as the provided store is only for core.
|
|
10732
|
-
* @param children
|
|
10733
|
-
* @returns
|
|
10687
|
+
/**
|
|
10688
|
+
* A Provider component which provides the GeoWeb theme and store for the core.
|
|
10689
|
+
* Note: Should only be used with core components, as the provided store is only for core.
|
|
10690
|
+
* @param children
|
|
10691
|
+
* @returns
|
|
10734
10692
|
*/
|
|
10735
10693
|
const CoreThemeStoreProvider = ({
|
|
10736
10694
|
children,
|
|
@@ -10766,22 +10724,22 @@ const DemoWrapperConnect = props => jsx(CoreI18nProvider, {
|
|
|
10766
10724
|
children: jsx(CoreThemeStoreProvider, Object.assign({}, props))
|
|
10767
10725
|
});
|
|
10768
10726
|
|
|
10769
|
-
/* *
|
|
10770
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10771
|
-
* you may not use this file except in compliance with the License.
|
|
10772
|
-
* You may obtain a copy of the License at
|
|
10773
|
-
*
|
|
10774
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10775
|
-
*
|
|
10776
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10777
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10778
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10779
|
-
* See the License for the specific language governing permissions and
|
|
10780
|
-
* limitations under the License.
|
|
10781
|
-
*
|
|
10782
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
10783
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
10784
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
10727
|
+
/* *
|
|
10728
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10729
|
+
* you may not use this file except in compliance with the License.
|
|
10730
|
+
* You may obtain a copy of the License at
|
|
10731
|
+
*
|
|
10732
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10733
|
+
*
|
|
10734
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
10735
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10736
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10737
|
+
* See the License for the specific language governing permissions and
|
|
10738
|
+
* limitations under the License.
|
|
10739
|
+
*
|
|
10740
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
10741
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
10742
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
10785
10743
|
* */
|
|
10786
10744
|
const NavigateSetter = () => {
|
|
10787
10745
|
// stores navigate hook method to historyDict, so it can be used outside components
|