@opengeoweb/core 4.22.0 → 5.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/index.js +18031 -3821
- package/package.json +12 -12
- package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +4 -4
- package/src/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +6 -6
- package/src/lib/components/FeatureInfo/GetFeatureInfoButtonConnect.d.ts +2 -2
- package/src/lib/components/FeatureInfo/GetFeatureInfoDialog.d.ts +4 -5
- package/src/lib/components/FeatureInfo/utils.d.ts +2 -2
- package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +2 -2
- package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +2 -2
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +2 -2
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.d.ts +3 -3
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +6 -6
- package/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +3 -2
- package/src/lib/components/LayerManager/DockedLayerManagerConnect.d.ts +3 -4
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +3 -3
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +5 -4
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerManager.d.ts +5 -4
- package/src/lib/components/LayerManager/LayerManagerConnect.d.ts +4 -2
- package/src/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +3 -2
- package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +3 -2
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +3 -4
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +2 -0
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +3 -4
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +3 -4
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +6 -7
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +3 -3
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +4 -6
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +4 -4
- package/src/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +3 -2
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +3 -2
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +2 -0
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +4 -5
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +4 -5
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupDialogConnect.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +4 -5
- package/src/lib/components/LayerManager/useFetchServices.d.ts +2 -2
- package/src/lib/components/Legend/Legend.d.ts +2 -2
- package/src/lib/components/Legend/LegendConnect.d.ts +3 -3
- package/src/lib/components/Legend/LegendDialog.d.ts +3 -4
- package/src/lib/components/Legend/LegendLayout.d.ts +2 -2
- package/src/lib/components/Legend/LegendMapButtonConnect.d.ts +2 -2
- package/src/lib/components/MapDraw/MapDraw.d.ts +5 -3
- package/src/lib/components/MapDraw/MapDrawContainer.d.ts +2 -2
- package/src/lib/components/MapDraw/MapDrawTool.stories.d.ts +6 -0
- package/src/lib/components/MapDraw/index.d.ts +1 -1
- package/src/lib/components/MapDraw/useMapDrawTool.d.ts +52 -0
- package/src/lib/components/MapTime/MapTime.d.ts +3 -3
- package/src/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +2 -3
- package/src/lib/components/MapView/MapViewConnect.MultiMapLayerManager.stories.d.ts +7 -0
- package/src/lib/components/MapView/MapViewLayer.d.ts +2 -2
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +2 -2
- package/src/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +2 -2
- package/src/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +2 -2
- package/src/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +3 -3
- package/src/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +3 -3
- package/src/lib/components/MultiMapView/MultiMapViewConnect.d.ts +4 -4
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
- package/src/lib/components/ReactMapView/types.d.ts +9 -9
- package/src/lib/components/ReactMapView/utils.d.ts +5 -5
- package/src/lib/components/SyncGroups/SimpleTimeSliderConnect.d.ts +2 -2
- package/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +5 -5
- package/src/lib/components/SyncGroups/selector.d.ts +1 -1
- package/src/lib/components/SyncGroups/utils.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderButtons/AnimationLengthButton/AnimationLengthButton.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderButtons/AutoUpdateButton/AutoUpdateButtonConnect.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenu.d.ts +1 -1
- package/src/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +1 -1
- package/src/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +4 -4
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButton.d.ts +14 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButton.stories.d.ts +24 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSpanButton/TimeSpanButtonConnect.d.ts +5 -0
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBox.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxConnect.d.ts +9 -10
- package/src/lib/components/TimeSlider/TimeSliderCurrentTimeBox/TimeSliderCurrentTimeBoxRenderFunctions.d.ts +2 -2
- package/src/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +4 -3
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawBackground.d.ts +3 -3
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeScale.d.ts +3 -3
- package/src/lib/components/TimeSlider/TimeSliderLegend/drawFunctions/drawTimeSliderLegend.d.ts +2 -2
- package/src/lib/components/TimeSlider/constants.d.ts +3 -0
- package/src/lib/components/TimeSlider/timeSliderUtils.d.ts +14 -48
- package/src/lib/components/TimeSliderLite/timeSliderLiteUtils.d.ts +4 -4
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTree.d.ts +2 -2
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +8 -9
- package/src/lib/components/WMSLoader/WMSLoaderConnect.d.ts +2 -2
- package/src/lib/components/WMSLoader/services.d.ts +2 -2
- package/src/lib/hooks/useSetupDialog/useSetupDialog.d.ts +2 -3
- package/src/lib/index.d.ts +55 -55
- package/src/lib/store/app/reducer.d.ts +7 -4
- package/src/lib/store/coreModuleConfig.d.ts +1 -1
- package/src/lib/store/generic/index.d.ts +11 -11
- package/src/lib/store/generic/selectors.d.ts +3 -3
- package/src/lib/store/generic/synchronizationGroups/index.d.ts +4 -4
- package/src/lib/store/generic/synchronizationGroups/reducer.d.ts +19 -19
- package/src/lib/store/generic/synchronizationGroups/selectors.d.ts +7 -7
- package/src/lib/store/generic/synchronizationGroups/types.d.ts +2 -2
- package/src/lib/store/generic/types.d.ts +2 -1
- package/src/lib/store/layerSelect/index.d.ts +1 -0
- package/src/lib/store/layerSelect/reducer.d.ts +13 -12
- package/src/lib/store/layerSelect/selectors.d.ts +7 -7
- package/src/lib/store/layerSelect/types.d.ts +1 -1
- package/src/lib/store/layerSelect/utils.d.ts +4 -3
- package/src/lib/store/mapStore/index.d.ts +2 -0
- package/src/lib/store/mapStore/layers/index.d.ts +1 -0
- package/src/lib/store/mapStore/layers/reducer.d.ts +41 -41
- package/src/lib/store/mapStore/layers/selectors.d.ts +22 -22
- package/src/lib/store/mapStore/layers/types.d.ts +1 -0
- package/src/lib/store/mapStore/layers/utils.d.ts +2 -2
- package/src/lib/store/mapStore/map/constants.d.ts +4 -0
- package/src/lib/store/mapStore/map/enums.d.ts +37 -0
- package/src/lib/store/mapStore/map/index.d.ts +5 -0
- package/src/lib/store/mapStore/map/reducer.d.ts +60 -60
- package/src/lib/store/mapStore/map/selectors.d.ts +123 -120
- package/src/lib/store/mapStore/map/types.d.ts +9 -22
- package/src/lib/store/mapStore/map/utils.d.ts +35 -6
- package/src/lib/store/mapStore/service/index.d.ts +1 -0
- package/src/lib/store/mapStore/service/reducer.d.ts +5 -5
- package/src/lib/store/mapStore/service/selectors.d.ts +6 -6
- package/src/lib/store/mapStore/utils/helpers.d.ts +1 -1
- package/src/lib/store/mapStore/utils/index.d.ts +1 -0
- package/src/lib/store/router/reducer.d.ts +3 -2
- package/src/lib/store/snackbar/index.d.ts +1 -0
- package/src/lib/store/snackbar/reducer.d.ts +5 -5
- package/src/lib/store/snackbar/selectors.d.ts +1 -1
- package/src/lib/store/ui/index.d.ts +1 -0
- package/src/lib/store/ui/reducer.d.ts +20 -20
- package/src/lib/store/ui/selectors.d.ts +10 -10
- package/src/lib/store/ui/types.d.ts +1 -1
- package/src/lib/storybookUtils/HelperComponents.d.ts +2 -2
- package/src/lib/storybookUtils/defaultStorySettings.d.ts +5 -5
- package/src/lib/storybookUtils/store.d.ts +1 -1
- package/src/lib/types/types.d.ts +4 -5
- package/src/lib/utils/__mocks__/getCapabilities.d.ts +2 -2
- package/src/lib/utils/defaultTestSettings.d.ts +11 -12
- package/src/lib/utils/jsonPresetFilter.d.ts +8 -8
- package/src/lib/utils/publicLayers.d.ts +44 -44
- package/src/lib/utils/testLayers.d.ts +10 -10
- package/src/lib/utils/testUtils.d.ts +9 -9
- package/src/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +0 -2
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.d.ts +0 -12
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.d.ts +0 -5
- /package/src/lib/components/MapDraw/{mapDrawTools.d.ts → mapDrawUtils.d.ts} +0 -0
- /package/src/lib/components/{LayerManager/LayerSelect/LayerList/LayerListUtils.spec.d.ts → MapDraw/mapDrawUtils.spec.d.ts} +0 -0
- /package/src/lib/components/MapDraw/{mapDrawTools.spec.d.ts → useMapDrawTool.spec.d.ts} +0 -0
- /package/src/lib/components/TimeSlider/TimeSliderButtons/{TimeScaleButton/TimeScaleButton.spec.d.ts → TimeSpanButton/TimeSpanButton.spec.d.ts} +0 -0
- /package/src/lib/components/TimeSlider/TimeSliderButtons/{TimeScaleButton/TimeScaleButtonConnect.spec.d.ts → TimeSpanButton/TimeSpanButtonConnect.spec.d.ts} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { uiTypes } from '../../../store';
|
|
3
3
|
interface LayerSelectButtonConnectProps {
|
|
4
4
|
mapId: string;
|
|
5
|
-
source?: Source;
|
|
5
|
+
source?: uiTypes.Source;
|
|
6
6
|
tooltipTitle?: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
8
|
+
isMultiMap?: boolean;
|
|
8
9
|
}
|
|
9
10
|
declare const LayerSelectButtonConnect: React.FC<LayerSelectButtonConnectProps>;
|
|
10
11
|
export default LayerSelectButtonConnect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { layerSelectTypes } from '../../../store';
|
|
3
3
|
export declare const layerSelectColumnsLarge: {
|
|
4
4
|
column1: {
|
|
5
5
|
width: number;
|
|
@@ -74,4 +74,4 @@ export declare const layerSelectColumnsSmall: {
|
|
|
74
74
|
};
|
|
75
75
|
export declare const widthToColumns: (width: number) => Record<string, CSSProperties>;
|
|
76
76
|
export declare const widthToRowHeight: (width: number) => number;
|
|
77
|
-
export declare const sortByService: (serviceObj: ActiveServiceObjectEntities) => ActiveServiceObjectEntities;
|
|
77
|
+
export declare const sortByService: (serviceObj: layerSelectTypes.ActiveServiceObjectEntities) => layerSelectTypes.ActiveServiceObjectEntities;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { layerSelectTypes } from '../../../../store';
|
|
3
3
|
interface ServiceChipProps {
|
|
4
4
|
all?: boolean;
|
|
5
|
-
service?: ActiveServiceObject;
|
|
5
|
+
service?: layerSelectTypes.ActiveServiceObject;
|
|
6
6
|
isSelected?: boolean;
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
toggleChip?: (service: string) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { layerSelectTypes } from '../../../../store';
|
|
3
3
|
export interface ServiceChipConnectProps {
|
|
4
4
|
all?: boolean;
|
|
5
5
|
serviceId?: string;
|
|
6
|
-
service?: ActiveServiceObject;
|
|
6
|
+
service?: layerSelectTypes.ActiveServiceObject;
|
|
7
7
|
isSelected?: boolean;
|
|
8
8
|
isAllSelected?: boolean;
|
|
9
9
|
isDisabled?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { layerSelectTypes } from '../../../../store';
|
|
3
3
|
interface ServiceListProps {
|
|
4
|
-
activeServices: ActiveServiceObjectEntities;
|
|
4
|
+
activeServices: layerSelectTypes.ActiveServiceObjectEntities;
|
|
5
5
|
setHeight: (height: number) => void;
|
|
6
6
|
}
|
|
7
7
|
declare const ServiceList: React.FC<ServiceListProps>;
|
package/src/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { ReduxLayer } from '../../../../store/mapStore/types';
|
|
2
|
+
import { layerTypes, layerSelectTypes } from '../../../../store';
|
|
4
3
|
interface ServiceOptionsDialogProps {
|
|
5
|
-
services: ActiveServiceObjectEntities;
|
|
4
|
+
services: layerSelectTypes.ActiveServiceObjectEntities;
|
|
6
5
|
layerSelectRemoveService?: (serviceId: string, serviceUrl: string, serviceName: string) => void;
|
|
7
6
|
layerSelectReloadService?: (serviceUrl: string) => void;
|
|
8
|
-
selectedLayers: ReduxLayer[];
|
|
7
|
+
selectedLayers: layerTypes.ReduxLayer[];
|
|
9
8
|
setServicePopupInfo?: (popupInfo: ServicePopupInfo) => void;
|
|
10
9
|
isLoading?: boolean;
|
|
11
10
|
}
|
|
@@ -13,7 +12,7 @@ export interface ServicePopupInfo {
|
|
|
13
12
|
isOpen: boolean;
|
|
14
13
|
serviceId?: string;
|
|
15
14
|
serviceUrl?: string;
|
|
16
|
-
variant?: PopupVariant;
|
|
15
|
+
variant?: layerSelectTypes.PopupVariant;
|
|
17
16
|
}
|
|
18
17
|
declare const ServiceOptionsDialog: React.FC<ServiceOptionsDialogProps>;
|
|
19
18
|
export default ServiceOptionsDialog;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { ActiveServiceObjectEntities, PopupVariant } from '../../../../store/layerSelect/types';
|
|
2
|
+
import { serviceTypes, layerSelectTypes } from '../../../../store';
|
|
4
3
|
export interface ServicePopupProps {
|
|
5
|
-
servicePopupVariant: PopupVariant;
|
|
4
|
+
servicePopupVariant: layerSelectTypes.PopupVariant;
|
|
6
5
|
hideBackdrop?: boolean;
|
|
7
6
|
isOpen?: boolean;
|
|
8
7
|
closePopup?: () => void;
|
|
@@ -11,8 +10,8 @@ export interface ServicePopupProps {
|
|
|
11
10
|
serviceUrl?: string;
|
|
12
11
|
serviceName?: string;
|
|
13
12
|
serviceAbstracts?: string;
|
|
14
|
-
services?: ActiveServiceObjectEntities;
|
|
15
|
-
serviceSetLayers: (payload: SetLayersForServicePayload) => void;
|
|
13
|
+
services?: layerSelectTypes.ActiveServiceObjectEntities;
|
|
14
|
+
serviceSetLayers: (payload: serviceTypes.SetLayersForServicePayload) => void;
|
|
16
15
|
showSnackbar?: (message: string) => void;
|
|
17
16
|
}
|
|
18
17
|
export declare const ADD_HEADING = "Add a new service";
|
package/src/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupDialogConnect.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { layerSelectTypes } from '../../../../store';
|
|
3
3
|
interface ServicePopupDialogConnectType {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
serviceId?: string;
|
|
6
|
-
variant: PopupVariant;
|
|
6
|
+
variant: layerSelectTypes.PopupVariant;
|
|
7
7
|
url?: string;
|
|
8
8
|
setServicePopupClosed: () => void;
|
|
9
9
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SetLayersForServicePayload } from '../../../../store/mapStore/types';
|
|
1
|
+
import { serviceTypes, layerSelectTypes } from '../../../../store';
|
|
3
2
|
export declare type ValidationResult = string | boolean;
|
|
4
3
|
export declare const VALIDATIONS_NAME_EXISTING = "This name already exists. Choose another name.";
|
|
5
4
|
export declare const VALIDATIONS_SERVICE_EXISTING = "URL already exists.";
|
|
6
5
|
export declare const VALIDATIONS_SERVICE_VALID_URL = "Not a valid URL.";
|
|
7
6
|
export declare const VALIDATIONS_REQUEST_FAILED = "Download failed. Check the URL.";
|
|
8
7
|
export declare const VALIDATIONS_FIELD_REQUIRED = "This field is required";
|
|
9
|
-
export declare const validateServiceName: (value: string, services: ActiveServiceObjectEntities, ownServiceName?: string) => ValidationResult;
|
|
10
|
-
export declare const validateServiceUrl: (value: string, services: ActiveServiceObjectEntities) => ValidationResult;
|
|
11
|
-
export declare const loadWMSService: (serviceUrl: string, forceReload?: boolean) => Promise<SetLayersForServicePayload>;
|
|
8
|
+
export declare const validateServiceName: (value: string, services: layerSelectTypes.ActiveServiceObjectEntities, ownServiceName?: string) => ValidationResult;
|
|
9
|
+
export declare const validateServiceUrl: (value: string, services: layerSelectTypes.ActiveServiceObjectEntities) => ValidationResult;
|
|
10
|
+
export declare const loadWMSService: (serviceUrl: string, forceReload?: boolean) => Promise<serviceTypes.SetLayersForServicePayload>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { serviceTypes } from '../../store';
|
|
2
2
|
import { NoIdService, UserAddedServices } from '../../utils/types';
|
|
3
3
|
import { Service } from '../WMSLoader/services';
|
|
4
|
-
export declare const getServicesToLoad: (services: NoIdService[]) => InitialService[];
|
|
4
|
+
export declare const getServicesToLoad: (services: NoIdService[]) => serviceTypes.InitialService[];
|
|
5
5
|
export declare const useFetchServices: (dialogType: string, preloadedServices?: Service[] | undefined) => void;
|
|
6
6
|
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { layerTypes } from '../../store';
|
|
3
3
|
interface LegendProps {
|
|
4
|
-
layer: Layer;
|
|
4
|
+
layer: layerTypes.Layer;
|
|
5
5
|
}
|
|
6
6
|
declare const Legend: React.FC<LegendProps>;
|
|
7
7
|
export default Legend;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { uiTypes } from '../../store';
|
|
3
3
|
export declare const IS_LEGEND_OPEN_BY_DEFAULT = false;
|
|
4
4
|
interface LegendConnectProps {
|
|
5
5
|
showMapId?: boolean;
|
|
6
|
-
source?: Source;
|
|
6
|
+
source?: uiTypes.Source;
|
|
7
7
|
mapId?: string;
|
|
8
8
|
multiLegend?: boolean;
|
|
9
9
|
}
|
|
@@ -14,7 +14,7 @@ interface LegendConnectProps {
|
|
|
14
14
|
*
|
|
15
15
|
* Expects the following props:
|
|
16
16
|
* @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
|
|
17
|
-
* @param {Source} source (optional) source: Source - default is 'app', 'module' makes sure it will be shown on top of the module
|
|
17
|
+
* @param {uiTypes.Source} source (optional) source: uiTypes.Source - default is 'app', 'module' makes sure it will be shown on top of the module
|
|
18
18
|
|
|
19
19
|
* ``` <LegendConnect legendDialogId={legendDialogId} />```
|
|
20
20
|
*/
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Source } from '../../store/ui/types';
|
|
2
|
+
import { layerTypes, uiTypes } from '../../store';
|
|
4
3
|
interface LegendDialogProps {
|
|
5
|
-
layers: Layer[];
|
|
4
|
+
layers: layerTypes.Layer[];
|
|
6
5
|
isOpen: boolean;
|
|
7
6
|
onClose: () => void;
|
|
8
7
|
onMouseDown?: () => void;
|
|
9
8
|
mapId: string;
|
|
10
9
|
showMapId?: boolean;
|
|
11
10
|
order?: number;
|
|
12
|
-
source?: Source;
|
|
11
|
+
source?: uiTypes.Source;
|
|
13
12
|
}
|
|
14
13
|
declare const LegendDialog: React.FC<LegendDialogProps>;
|
|
15
14
|
export default LegendDialog;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { mapTypes } from '../../store';
|
|
3
3
|
interface LegendLayoutProps {
|
|
4
4
|
title: string;
|
|
5
5
|
name: string;
|
|
6
|
-
dimensions: Dimension[];
|
|
6
|
+
dimensions: mapTypes.Dimension[];
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
height?: number;
|
|
9
9
|
width?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { uiTypes } from '../../store';
|
|
3
3
|
interface LegendMapButtonProps {
|
|
4
4
|
mapId: string;
|
|
5
|
-
source?: Source;
|
|
5
|
+
source?: uiTypes.Source;
|
|
6
6
|
multiLegend?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const LegendMapButtonConnect: React.FC<LegendMapButtonProps>;
|
|
@@ -45,7 +45,7 @@ export interface MapDrawProps {
|
|
|
45
45
|
geojson: GeoJSON.FeatureCollection;
|
|
46
46
|
drawMode: string;
|
|
47
47
|
deletePolygonCallback?: string;
|
|
48
|
-
exitDrawModeCallback: () => void;
|
|
48
|
+
exitDrawModeCallback: (reason: DrawModeExitCallback) => void;
|
|
49
49
|
isInEditMode: boolean;
|
|
50
50
|
isInDeleteMode: boolean;
|
|
51
51
|
featureNrToEdit: number;
|
|
@@ -58,7 +58,7 @@ export declare enum EDITMODE {
|
|
|
58
58
|
DELETE_FEATURES = "DELETE_FEATURES",
|
|
59
59
|
ADD_FEATURE = "ADD_FEATURE"
|
|
60
60
|
}
|
|
61
|
-
declare enum DRAWMODE {
|
|
61
|
+
export declare enum DRAWMODE {
|
|
62
62
|
POLYGON = "POLYGON",
|
|
63
63
|
BOX = "BOX",
|
|
64
64
|
MULTIPOINT = "MULTIPOINT",
|
|
@@ -75,6 +75,7 @@ declare enum EDGE {
|
|
|
75
75
|
declare enum SNAPPEDFEATURE {
|
|
76
76
|
NONE = "NONE"
|
|
77
77
|
}
|
|
78
|
+
export declare type DrawModeExitCallback = 'escaped' | 'doubleClicked';
|
|
78
79
|
export default class MapDraw extends React.PureComponent<MapDrawProps> {
|
|
79
80
|
myEditMode: EDITMODE;
|
|
80
81
|
myDrawMode: DRAWMODE;
|
|
@@ -131,7 +132,7 @@ export default class MapDraw extends React.PureComponent<MapDrawProps> {
|
|
|
131
132
|
hoverVertex(feature: GeoJsonFeature, mouseX: number, mouseY: number): void;
|
|
132
133
|
mouseMove(event: InputEvent): boolean;
|
|
133
134
|
triggerMouseDownTimer(event: InputEvent): void | boolean;
|
|
134
|
-
mouseDoubleClick():
|
|
135
|
+
mouseDoubleClick(): void;
|
|
135
136
|
insertVertexInEdge(event: InputEvent): boolean;
|
|
136
137
|
createNewFeature(event: InputEvent): void;
|
|
137
138
|
addPointToMultiPointFeature(event: InputEvent): boolean;
|
|
@@ -142,6 +143,7 @@ export default class MapDraw extends React.PureComponent<MapDrawProps> {
|
|
|
142
143
|
deleteFeature(): void;
|
|
143
144
|
mouseUp(event: InputEvent): void | boolean;
|
|
144
145
|
cancelEdit(cancelLastPoint: boolean): void;
|
|
146
|
+
handleExitDrawMode: (reason?: DrawModeExitCallback) => void;
|
|
145
147
|
handleKeyDown(event: KeyboardEvent): void;
|
|
146
148
|
validateFeature(feature: GeoJsonFeature): void;
|
|
147
149
|
validatePolys(fixPolys: boolean): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GeometryObject } from 'geojson';
|
|
3
3
|
import { WMJSMap } from '@opengeoweb/webmap';
|
|
4
|
-
import { FeatureEvent } from './MapDraw';
|
|
4
|
+
import { DrawModeExitCallback, FeatureEvent } from './MapDraw';
|
|
5
5
|
export declare type FeatureLayer = {
|
|
6
6
|
id: string;
|
|
7
7
|
type: string;
|
|
@@ -13,7 +13,7 @@ export declare type FeatureLayer = {
|
|
|
13
13
|
onHoverFeature?: (feature: FeatureEvent) => void;
|
|
14
14
|
onClickFeature?: (feature: FeatureEvent) => void;
|
|
15
15
|
updateGeojson?: (feature: GeometryObject) => void;
|
|
16
|
-
exitDrawModeCallback?: () => void;
|
|
16
|
+
exitDrawModeCallback?: (reason: DrawModeExitCallback) => void;
|
|
17
17
|
featureNrToEdit?: string;
|
|
18
18
|
};
|
|
19
19
|
interface MapDrawContainerProps {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DRAWMODE } from './MapDraw';
|
|
3
|
+
export declare const defaultStyleProperties: {
|
|
4
|
+
stroke: string;
|
|
5
|
+
'stroke-width': number;
|
|
6
|
+
'stroke-opacity': number;
|
|
7
|
+
fill: string;
|
|
8
|
+
'fill-opacity': number;
|
|
9
|
+
};
|
|
10
|
+
export declare const emptyLineString: GeoJSON.Feature;
|
|
11
|
+
export declare const emptyPoint: GeoJSON.Feature;
|
|
12
|
+
export declare const emptyPolygon: GeoJSON.Feature;
|
|
13
|
+
export declare type DrawMode = DRAWMODE | 'DELETE' | '';
|
|
14
|
+
export declare type EditMode = {
|
|
15
|
+
value: DrawMode;
|
|
16
|
+
title: string;
|
|
17
|
+
icon: React.ReactElement;
|
|
18
|
+
shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
interface MapDrawToolProps {
|
|
22
|
+
editModes: EditMode[];
|
|
23
|
+
changeDrawMode: (mode: DrawMode) => void;
|
|
24
|
+
isInEditMode: boolean;
|
|
25
|
+
geojson: GeoJSON.FeatureCollection;
|
|
26
|
+
setGeojson: (geojson: GeoJSON.Feature | GeoJSON.FeatureCollection) => void;
|
|
27
|
+
drawMode: string;
|
|
28
|
+
setEditMode: (shouldEnable: boolean) => void;
|
|
29
|
+
featureLayerIndex: number;
|
|
30
|
+
setFeatureLayerIndex: (newIndex: number) => void;
|
|
31
|
+
activeTool: string;
|
|
32
|
+
changeActiveTool: (newMode: EditMode) => void;
|
|
33
|
+
setActiveTool: (newToolId: string) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface MapDrawToolOptions {
|
|
36
|
+
editModes?: EditMode[];
|
|
37
|
+
}
|
|
38
|
+
export declare const defaultModes: ({
|
|
39
|
+
id: string;
|
|
40
|
+
value: DRAWMODE;
|
|
41
|
+
title: string;
|
|
42
|
+
icon: React.JSX.Element;
|
|
43
|
+
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
44
|
+
} | {
|
|
45
|
+
id: string;
|
|
46
|
+
value: "DELETE";
|
|
47
|
+
title: string;
|
|
48
|
+
icon: React.JSX.Element;
|
|
49
|
+
shape: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
50
|
+
})[];
|
|
51
|
+
export declare const useMapDrawTool: ({ editModes, }: MapDrawToolOptions) => MapDrawToolProps;
|
|
52
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getTimeDimension: (dimensions: Dimension[]) => Dimension;
|
|
2
|
+
import { mapTypes } from '../../store';
|
|
3
|
+
export declare const getTimeDimension: (dimensions: mapTypes.Dimension[]) => mapTypes.Dimension;
|
|
4
4
|
export declare const formatTime: (time: string, timeFormat: string) => string;
|
|
5
5
|
interface MapeTimeProps {
|
|
6
|
-
dimensions: Dimension[];
|
|
6
|
+
dimensions: mapTypes.Dimension[];
|
|
7
7
|
timeFormat?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const defaultTimeFormat = "ddd DD MMM YYYY HH:mm [UTC]";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { layerActions } from '../../store';
|
|
3
|
-
import { Layer } from '../../store/mapStore/types';
|
|
2
|
+
import { layerActions, layerTypes } from '../../store';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
|
|
@@ -9,6 +8,6 @@ export default _default;
|
|
|
9
8
|
export interface LayerChangeOpacityInputProps {
|
|
10
9
|
mapId: string;
|
|
11
10
|
layerChangeOpacity?: typeof layerActions.layerChangeOpacity;
|
|
12
|
-
layers?: Layer[];
|
|
11
|
+
layers?: layerTypes.Layer[];
|
|
13
12
|
}
|
|
14
13
|
export declare const LayerChangeEnableOpacityAction: () => React.ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FeatureEvent } from '../MapDraw';
|
|
2
|
+
import { DrawModeExitCallback, FeatureEvent } from '../MapDraw';
|
|
3
3
|
interface MapViewLayerProps {
|
|
4
4
|
id: string;
|
|
5
5
|
onLayerReady?: (layer: any, webmap?: any) => void;
|
|
@@ -8,7 +8,7 @@ interface MapViewLayerProps {
|
|
|
8
8
|
isInEditMode?: boolean;
|
|
9
9
|
drawMode?: string;
|
|
10
10
|
updateGeojson?: (geoJson: any) => void;
|
|
11
|
-
exitDrawModeCallback?: () => void;
|
|
11
|
+
exitDrawModeCallback?: (reason: DrawModeExitCallback) => void;
|
|
12
12
|
featureNrToEdit?: number;
|
|
13
13
|
onClickFeature?: (event: FeatureEvent) => void;
|
|
14
14
|
onHoverFeature?: (event: FeatureEvent) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { uiTypes } from '../../store';
|
|
3
3
|
interface DimensionSelectMapButtonProps {
|
|
4
4
|
mapId: string;
|
|
5
5
|
dimension: string;
|
|
6
|
-
source?: Source;
|
|
6
|
+
source?: uiTypes.Source;
|
|
7
7
|
}
|
|
8
8
|
declare const DimensionSelectMapButtonConnect: React.FC<DimensionSelectMapButtonProps>;
|
|
9
9
|
export default DimensionSelectMapButtonConnect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { uiTypes } from '../../store';
|
|
3
3
|
interface DimensionSelectDialogConnectProps {
|
|
4
4
|
mapId: string;
|
|
5
5
|
dimensionName: string;
|
|
@@ -8,7 +8,7 @@ interface DimensionSelectDialogConnectProps {
|
|
|
8
8
|
onMouseDown?: () => void;
|
|
9
9
|
onCloseDialog?: () => void;
|
|
10
10
|
index?: number;
|
|
11
|
-
source?: Source;
|
|
11
|
+
source?: uiTypes.Source;
|
|
12
12
|
}
|
|
13
13
|
declare const DimensionSelectDialogConnect: React.FC<DimensionSelectDialogConnectProps>;
|
|
14
14
|
export default DimensionSelectDialogConnect;
|
package/src/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { uiTypes } from '../../store';
|
|
3
3
|
interface MultiDimensionSelectMapButtonsConnectProps {
|
|
4
4
|
mapId: string;
|
|
5
|
-
source?: Source;
|
|
5
|
+
source?: uiTypes.Source;
|
|
6
6
|
}
|
|
7
7
|
declare const MultiDimensionSelectMapButtonsConnect: React.FC<MultiDimensionSelectMapButtonsConnectProps>;
|
|
8
8
|
export default MultiDimensionSelectMapButtonsConnect;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { layerTypes } from '../../../store';
|
|
3
3
|
export interface InitialHarmTempAndPrecipProps {
|
|
4
4
|
layers: {
|
|
5
|
-
topRow: Layer;
|
|
6
|
-
bottomRow: Layer;
|
|
5
|
+
topRow: layerTypes.Layer;
|
|
6
|
+
bottomRow: layerTypes.Layer;
|
|
7
7
|
topRowSyncGroups?: string[];
|
|
8
8
|
bottomRowSyncGroups?: string[];
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { layerTypes } from '../../../store';
|
|
3
3
|
import { MultiMapPreset } from '../MultiMapViewConnect';
|
|
4
4
|
/**
|
|
5
5
|
* Custom hook to find out if the list of syncgroup id's contains a group which is of type SYNCGROUPS_TYPE_SETLAYERACTIONS
|
|
@@ -7,9 +7,9 @@ import { MultiMapPreset } from '../MultiMapViewConnect';
|
|
|
7
7
|
* @returns True if indeed a group is included which is of type SYNCGROUPS_TYPE_SETLAYERACTIONS
|
|
8
8
|
*/
|
|
9
9
|
export declare const useHasSyncGroupWithLayerActions: (syncGroupsIds: string[] | undefined) => boolean;
|
|
10
|
-
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], syncGroupsIds: string[], displayLayerManagerAndLegendButtonInMap: boolean, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
|
|
10
|
+
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: layerTypes.Layer[], syncGroupsIds: string[], displayLayerManagerAndLegendButtonInMap: boolean, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
|
|
11
11
|
export interface ModelRunIntervalProps {
|
|
12
|
-
layers?: Layer[];
|
|
12
|
+
layers?: layerTypes.Layer[];
|
|
13
13
|
syncGroupsIds: string[];
|
|
14
14
|
interval?: number;
|
|
15
15
|
startTimeIncrement?: number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { mapTypes, layerTypes } from '../../store';
|
|
3
3
|
export interface MultiMapPreset {
|
|
4
4
|
id: string;
|
|
5
5
|
title?: string;
|
|
6
|
-
layers: Layer[];
|
|
6
|
+
layers: layerTypes.Layer[];
|
|
7
7
|
autoTimeStepLayerId?: string;
|
|
8
8
|
autoUpdateLayerId?: string;
|
|
9
|
-
bbox?: Bbox;
|
|
9
|
+
bbox?: mapTypes.Bbox;
|
|
10
10
|
srs?: string;
|
|
11
|
-
dimensions?: Dimension[];
|
|
11
|
+
dimensions?: mapTypes.Dimension[];
|
|
12
12
|
displayTimeInMap?: boolean;
|
|
13
13
|
displayLayerManagerAndLegendButtonInMap?: boolean;
|
|
14
14
|
displayDimensionSelectButtonInMap?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { WMLayer, WMJSDimension } from '@opengeoweb/webmap';
|
|
2
|
-
import {
|
|
2
|
+
import { layerTypes } from '../../store';
|
|
3
3
|
export declare const getCurrentDimensionValue: (dimensions: WMJSDimension[] | undefined, name: string) => string;
|
|
4
|
-
export declare const setLayerInfo: (wmLayer: WMLayer, mapId: string, onUpdateLayerInformation?: ((payload: UpdateLayerInfoPayload) => void) | undefined) => void;
|
|
4
|
+
export declare const setLayerInfo: (wmLayer: WMLayer, mapId: string, onUpdateLayerInformation?: ((payload: layerTypes.UpdateLayerInfoPayload) => void) | undefined) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WMJSMap } from '@opengeoweb/webmap';
|
|
3
|
-
import {
|
|
3
|
+
import { layerTypes, mapTypes, serviceTypes } from '../../store';
|
|
4
4
|
export interface ReactMapViewProps {
|
|
5
5
|
listeners?: {
|
|
6
6
|
name?: string;
|
|
@@ -9,7 +9,7 @@ export interface ReactMapViewProps {
|
|
|
9
9
|
callbackfunction: (webMap: WMJSMap, value: string) => void;
|
|
10
10
|
}[];
|
|
11
11
|
srs?: string;
|
|
12
|
-
bbox?: Bbox;
|
|
12
|
+
bbox?: mapTypes.Bbox;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
mapId: string;
|
|
15
15
|
activeLayerId?: string;
|
|
@@ -18,17 +18,17 @@ export interface ReactMapViewProps {
|
|
|
18
18
|
passiveMap?: boolean;
|
|
19
19
|
displayTimeInMap?: boolean;
|
|
20
20
|
animationDelay?: number;
|
|
21
|
-
dimensions?: Dimension[];
|
|
21
|
+
dimensions?: mapTypes.Dimension[];
|
|
22
22
|
onClick?: () => void;
|
|
23
23
|
displayMapPin?: boolean;
|
|
24
|
-
mapPinLocation?: MapLocation;
|
|
24
|
+
mapPinLocation?: mapTypes.MapLocation;
|
|
25
25
|
shouldAutoFetch?: boolean;
|
|
26
26
|
showLayerInfo?: boolean;
|
|
27
27
|
disableMapPin?: boolean;
|
|
28
|
-
services?: Services;
|
|
28
|
+
services?: serviceTypes.Services;
|
|
29
29
|
onWMJSMount?: (mapId: string) => void;
|
|
30
|
-
onMapChangeDimension?: (payload: SetMapDimensionPayload) => void;
|
|
31
|
-
onMapZoomEnd?: (payload: SetBboxPayload) => void;
|
|
32
|
-
onMapPinChangeLocation?: (payload: MapPinLocationPayload) => void;
|
|
33
|
-
onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void;
|
|
30
|
+
onMapChangeDimension?: (payload: mapTypes.SetMapDimensionPayload) => void;
|
|
31
|
+
onMapZoomEnd?: (payload: mapTypes.SetBboxPayload) => void;
|
|
32
|
+
onMapPinChangeLocation?: (payload: mapTypes.MapPinLocationPayload) => void;
|
|
33
|
+
onUpdateLayerInformation?: (payload: layerTypes.UpdateLayerInfoPayload) => void;
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WMLayer } from '@opengeoweb/webmap';
|
|
2
|
-
import {
|
|
2
|
+
import { layerTypes } from '../../store';
|
|
3
3
|
import { FeatureLayer } from '../MapDraw/MapDrawContainer';
|
|
4
4
|
/**
|
|
5
5
|
* Returns filtered list of props with geoJson
|
|
@@ -8,14 +8,14 @@ import { FeatureLayer } from '../MapDraw/MapDrawContainer';
|
|
|
8
8
|
export declare const getFeatureLayers: (children: React.ReactNode) => FeatureLayer[];
|
|
9
9
|
/**
|
|
10
10
|
* Returns true if this is a maplayer and not a baselayer or overlayer
|
|
11
|
-
* @param layer The Layer object, or the props from the ReactWMJSLayer
|
|
11
|
+
* @param layer The layerTypes.Layer object, or the props from the ReactWMJSLayer
|
|
12
12
|
*/
|
|
13
|
-
export declare const isAMapLayer: (layer: Layer) => boolean;
|
|
13
|
+
export declare const isAMapLayer: (layer: layerTypes.Layer) => boolean;
|
|
14
14
|
/**
|
|
15
15
|
* Returns true if this is a geojsonlayer (layer containing geojson field)
|
|
16
|
-
* @param layer The Layer object, or the props from the ReactWMJSLayer
|
|
16
|
+
* @param layer The layerTypes.Layer object, or the props from the ReactWMJSLayer
|
|
17
17
|
*/
|
|
18
|
-
export declare const isAGeoJSONLayer: (layer: Layer) => boolean;
|
|
18
|
+
export declare const isAGeoJSONLayer: (layer: layerTypes.Layer) => boolean;
|
|
19
19
|
export declare const getWMJSLayerFromReactLayer: (mapId: string, wmLayers: WMLayer[], reactWebMapJSLayer: React.ReactElement, wmLayerIndex: number) => {
|
|
20
20
|
layer: WMLayer;
|
|
21
21
|
layerArrayMutated: boolean;
|
|
@@ -11,8 +11,8 @@ export declare const SimpleTimeSliderConnect: import("react-redux").ConnectedCom
|
|
|
11
11
|
id: string;
|
|
12
12
|
timeValue?: string | undefined;
|
|
13
13
|
setTime?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/generic/types").SetTimePayload, string> | undefined;
|
|
14
|
-
syncGroupAddSource?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/generic/synchronizationGroups/types").SyncGroupsAddSourcePayload,
|
|
15
|
-
syncGroupRemoveSource?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/generic/synchronizationGroups/types").SyncGroupRemoveSourcePayload,
|
|
14
|
+
syncGroupAddSource?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/generic/synchronizationGroups/types").SyncGroupsAddSourcePayload, "synchronizationGroupsReducer/syncGroupAddSource"> | undefined;
|
|
15
|
+
syncGroupRemoveSource?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../store/generic/synchronizationGroups/types").SyncGroupRemoveSourcePayload, "synchronizationGroupsReducer/syncGroupRemoveSource"> | undefined;
|
|
16
16
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
17
17
|
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
18
18
|
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SyncGroupViewState } from './types';
|
|
3
|
-
import
|
|
3
|
+
import { syncGroupsTypes } from '../../store';
|
|
4
4
|
interface SyncGroupViewerProps {
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
syncGroupViewState: SyncGroupViewState;
|
|
8
|
-
syncGroupAddTarget: (payload:
|
|
9
|
-
syncGroupRemoveTarget: (payload:
|
|
10
|
-
syncGroupAddGroup: (payload:
|
|
11
|
-
syncGroupRemoveGroup: (payload:
|
|
8
|
+
syncGroupAddTarget: (payload: syncGroupsTypes.SyncGroupAddTargetPayload) => void;
|
|
9
|
+
syncGroupRemoveTarget: (payload: syncGroupsTypes.SyncGroupRemoveTargetPayload) => void;
|
|
10
|
+
syncGroupAddGroup: (payload: syncGroupsTypes.SyncGroupAddGroupPayload) => void;
|
|
11
|
+
syncGroupRemoveGroup: (payload: syncGroupsTypes.SyncGroupRemoveGroupPayload) => void;
|
|
12
12
|
onMouseDown?: () => void;
|
|
13
13
|
order?: number;
|
|
14
14
|
}
|