@opengeoweb/core 1.2.3 → 2.1.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/README.md +11 -12
- package/core.esm.js +12582 -10424
- package/core.umd.js +10347 -7869
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +47 -0
- package/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +7 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteButton.spec.d.ts → ComponentsLookUp/componentsLookup.spec.d.ts} +0 -0
- package/lib/components/ComponentsLookUp/index.d.ts +1 -0
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +35 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteLayerConnect.spec.d.ts → ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts} +0 -0
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +6 -0
- package/lib/components/ConfigurableConnectedMap/index.d.ts +1 -0
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +17 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateButton.spec.d.ts → ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts} +0 -0
- package/lib/components/ConfigurableMapWithSlider/index.d.ts +1 -0
- package/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +1 -0
- package/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +12 -0
- package/lib/components/LayerManager/LayerContainerRow/{LayerRow/Menubutton/DuplicateLayer/DuplicateLayerConnect.spec.d.ts → LayerManagerButton.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +9 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/LayerManagerMenuButton.spec.d.ts → ActivateLayer/ActivateLayer.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.d.ts +16 -0
- package/lib/components/LayerManager/LayerContainerRow/{SortableRowContainer/SortableRowContainer.spec.d.ts → LayerRow/ActivateLayer/ActivateLayerConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer/DeleteButton.d.ts → DeleteLayer/DeleteLayer.d.ts} +2 -1
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectConnect.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayer.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer → DeleteLayer}/DeleteLayerConnect.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectDialog.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +7 -3
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayer.d.ts +1 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +4 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +11 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/{LayerManagerMenuButton.d.ts → MenuButton.d.ts} +1 -7
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts +7 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuItemButton.d.ts +8 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/styles.d.ts +4 -0
- package/lib/components/LayerManager/LayerManager.d.ts +7 -1
- package/lib/components/LayerManager/LayerManager.stories.d.ts +7 -7
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +2 -1
- package/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +5 -0
- package/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerManagerStories.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +14 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +16 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +13 -0
- package/lib/components/LayerManager/{tooltipSelectContainerStyles.d.ts → tooltipContainerStyles.d.ts} +0 -0
- package/lib/components/Legend/LegendConnect.d.ts +1 -2
- package/lib/components/Legend/LegendDialog.d.ts +2 -0
- package/lib/components/MapView/MapView.Error.stories.d.ts +4 -0
- package/lib/components/Mapcontrols/MapControlButton.d.ts +11 -0
- package/lib/components/Mapcontrols/MapControlButton.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/MapControls.d.ts +7 -0
- package/lib/components/Mapcontrols/MapControls.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/ZoomControls.d.ts +0 -8
- package/lib/components/Mapcontrols/ZoomControlsConnect.d.ts +6 -0
- package/lib/components/Mapcontrols/ZoomControlsConnect.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/index.d.ts +4 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +7 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +12 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.stories.d.ts +25 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.d.ts → MultiMapDimensionSelect/DimensionSelectSlider.d.ts} +5 -4
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSlider.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.d.ts +11 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.spec.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/EnsembleDimensionExample.stories.d.ts +0 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelect.stories.d.ts +2 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +11 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelectConnect.stories.d.ts +0 -1
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +6 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelect.stories.d.ts +2 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.d.ts +9 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/index.d.ts +2 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +9 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +11 -0
- package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +0 -2
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +5 -2
- package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +23 -11
- package/lib/components/Providers/Providers.d.ts +2 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +9 -9
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +3 -2
- package/lib/components/ReactMapView/types.d.ts +3 -4
- package/lib/components/SyncGroups/SyncGroupList.d.ts +11 -0
- package/lib/components/SyncGroups/SyncGroupListItem.d.ts +10 -0
- package/lib/components/SyncGroups/SyncGroupViewer.d.ts +11 -7
- package/lib/components/SyncGroups/SyncGroupViewer.spec.d.ts +1 -0
- package/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +7 -1
- package/lib/components/SyncGroups/selector.d.ts +10 -0
- package/lib/components/SyncGroups/types.d.ts +17 -0
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +0 -2
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonComponents.stories.d.ts +5 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +0 -4
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -2
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +18 -13
- package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +9 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.spec.d.ts +1 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.stories.d.ts +13 -0
- package/lib/components/ToggleIconButton/index.d.ts +1 -0
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +7 -0
- package/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +1 -0
- package/lib/components/WMSLoader/services.d.ts +0 -1
- package/lib/index.d.ts +18 -5
- package/lib/store/generic/sagas.d.ts +7 -0
- package/lib/store/generic/synchronizationActions/actions.d.ts +5 -4
- package/lib/store/generic/synchronizationActions/constants.d.ts +1 -0
- package/lib/store/generic/synchronizationActions/types.d.ts +25 -11
- package/lib/store/generic/synchronizationGroups/actions.d.ts +4 -0
- package/lib/store/generic/synchronizationGroups/constants.d.ts +2 -0
- package/lib/store/generic/synchronizationGroups/index.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/selectors.spec.d.ts +1 -0
- package/lib/store/generic/synchronizationGroups/types.d.ts +7 -3
- package/lib/store/generic/synchronizationGroups/utils.d.ts +81 -0
- package/lib/store/generic/synchronizationGroups/utils.spec.d.ts +1 -0
- package/lib/store/generic/types.d.ts +7 -4
- package/lib/store/mapStore/layers/actions.d.ts +0 -3
- package/lib/store/mapStore/layers/selectors.d.ts +21 -1
- package/lib/store/mapStore/layers/types.d.ts +7 -0
- package/lib/store/mapStore/layers/utils.d.ts +4 -2
- package/lib/store/mapStore/layers/utils.spec.d.ts +1 -0
- package/lib/store/mapStore/map/actions.d.ts +2 -2
- package/lib/store/mapStore/map/reducer.d.ts +7 -0
- package/lib/store/mapStore/map/selectors.d.ts +86 -4
- package/lib/store/mapStore/map/types.d.ts +2 -0
- package/lib/store/mapStore/service/actions.d.ts +1 -10
- package/lib/store/mapStore/service/constants.d.ts +0 -1
- package/lib/store/mapStore/service/reducer.d.ts +4 -2
- package/lib/store/mapStore/service/selectors.d.ts +9 -39
- package/lib/store/mapStore/service/types.d.ts +4 -15
- package/lib/store/mapStore/types.d.ts +1 -1
- package/lib/store/mapStore/utils/helpers.d.ts +2 -0
- package/lib/store/ui/actions.d.ts +12 -5
- package/lib/store/ui/constants.d.ts +1 -0
- package/lib/store/ui/reducer.d.ts +12 -4
- package/lib/store/ui/sagas.d.ts +5 -0
- package/lib/store/ui/sagas.test.d.ts +1 -0
- package/lib/store/ui/selectors.d.ts +21 -4
- package/lib/store/ui/types.d.ts +17 -4
- package/lib/storybookUtils/defaultStorySettings.d.ts +1 -0
- package/lib/utils/__mocks__/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
- package/lib/utils/defaultConfigurations.d.ts +21 -0
- package/lib/utils/defaultTestSettings.d.ts +0 -44
- package/lib/utils/dimensionUtils.d.ts +13 -0
- package/lib/utils/dimensionUtils.spec.d.ts +1 -0
- package/lib/utils/getCapabilities.d.ts +8 -0
- package/lib/utils/{exampleLayers.d.ts → publicLayers.d.ts} +148 -70
- package/lib/utils/publicServices.d.ts +100 -0
- package/lib/utils/testLayers.d.ts +17 -0
- package/lib/utils/testUtils.d.ts +1 -0
- package/package.json +12 -12
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateButton.d.ts +0 -7
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateLayerConnect.d.ts +0 -7
- package/lib/components/LayerManager/LayerContainerRow/SortableRowContainer/SortableRowContainer.d.ts +0 -6
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConfig.d.ts +0 -3
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConnect.d.ts +0 -10
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialog.d.ts +0 -12
- package/lib/components/MultiDimensionSelect/index.d.ts +0 -2
- package/lib/components/MultiDimensionSelect/types.d.ts +0 -18
- package/lib/components/MultiMapView/MultiMapViewHarmonie.stories.d.ts +0 -2
- package/lib/components/MultiMapView/storyUtils/HarmonieTempAndPrecipPreset.d.ts +0 -6
- package/lib/components/SyncGroups/ConfigurableConnectedMap.d.ts +0 -15
- package/lib/components/SyncGroups/SyncGroupComponent.d.ts +0 -13
- package/lib/components/SyncGroups/SyncGroupDialog.d.ts +0 -7
- package/lib/utils/DimensionUtils.d.ts +0 -3
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
|
+
import { AnimationPayloadType } from '../ConfigurableConnectedMap';
|
|
4
|
+
import { InitialHarmRefTimeProps, InitialHarmTempAndPrecipProps } from '../MultiMapView/HarmoniePresets';
|
|
5
|
+
export interface MapPreset {
|
|
6
|
+
layers?: Layer[];
|
|
7
|
+
activeLayerId?: string;
|
|
8
|
+
baseLayer?: Layer;
|
|
9
|
+
proj?: {
|
|
10
|
+
bbox: Bbox;
|
|
11
|
+
srs: string;
|
|
12
|
+
};
|
|
13
|
+
shouldAutoUpdate?: boolean;
|
|
14
|
+
shouldAnimate?: boolean;
|
|
15
|
+
animationPayload?: AnimationPayloadType;
|
|
16
|
+
}
|
|
17
|
+
interface InitialMultiMapProps {
|
|
18
|
+
mapPreset: MapPreset[];
|
|
19
|
+
syncGroupsIds: string[];
|
|
20
|
+
shouldShowZoomControls?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface InitialMapProps {
|
|
23
|
+
mapPreset: MapPreset;
|
|
24
|
+
syncGroupsIds: string[];
|
|
25
|
+
shouldShowZoomControls?: boolean;
|
|
26
|
+
}
|
|
27
|
+
interface InitialSliderProps {
|
|
28
|
+
sliderPreset: {
|
|
29
|
+
mapId: string;
|
|
30
|
+
};
|
|
31
|
+
syncGroupsIds: string[];
|
|
32
|
+
}
|
|
33
|
+
export declare type InitialProps = InitialMultiMapProps | InitialMapProps | InitialSliderProps | InitialHarmTempAndPrecipProps | InitialHarmRefTimeProps;
|
|
34
|
+
/**
|
|
35
|
+
* The lookup table is for registering your own components with the screenmanager.
|
|
36
|
+
* @param payload
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export declare type SupportedComponentTypes = 'ConfigurableMap' | 'ConfigurableMapWithSlider' | 'HarmRefTimePreset' | 'HarmonieTempAndPrecipPreset' | 'ConfigurableMultiMapWithSlider' | 'TimeSlider';
|
|
40
|
+
export interface ComponentsLookUpPayload {
|
|
41
|
+
componentType: SupportedComponentTypes;
|
|
42
|
+
id: string;
|
|
43
|
+
title?: string;
|
|
44
|
+
initialProps: InitialProps;
|
|
45
|
+
}
|
|
46
|
+
export declare const componentsLookUp: ({ componentType, initialProps, id, }: ComponentsLookUpPayload) => React.ReactElement;
|
|
47
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './componentsLookUp';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
|
+
import { SpeedFactorType } from '../TimeSlider/TimeSliderUtils';
|
|
4
|
+
export declare const defaultBbox: {
|
|
5
|
+
srs: string;
|
|
6
|
+
bbox: {
|
|
7
|
+
left: number;
|
|
8
|
+
bottom: number;
|
|
9
|
+
right: number;
|
|
10
|
+
top: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export interface AnimationPayloadType {
|
|
14
|
+
duration?: number;
|
|
15
|
+
interval?: number;
|
|
16
|
+
speed?: SpeedFactorType;
|
|
17
|
+
}
|
|
18
|
+
export interface ConfigurableConnectedMapProps {
|
|
19
|
+
title?: string;
|
|
20
|
+
id?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
layers: Layer[];
|
|
23
|
+
activeLayerId?: string;
|
|
24
|
+
baseLayer?: Layer;
|
|
25
|
+
bbox?: Bbox;
|
|
26
|
+
srs?: string;
|
|
27
|
+
displayTimeInMap?: boolean;
|
|
28
|
+
displayLayerManagerButtonInMap?: boolean;
|
|
29
|
+
displayDimensionSelectButtonInMap?: boolean;
|
|
30
|
+
shouldAutoUpdate?: boolean;
|
|
31
|
+
shouldAnimate?: boolean;
|
|
32
|
+
animationPayload?: AnimationPayloadType;
|
|
33
|
+
shouldShowZoomControls?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const ConfigurableConnectedMap: React.FC<ConfigurableConnectedMapProps>;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfigurableConnectedMap';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
|
+
import { AnimationPayloadType } from '../ConfigurableConnectedMap';
|
|
4
|
+
export interface ConfigurableMapWithSliderConnectProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
activeLayerId?: string;
|
|
7
|
+
shouldAutoUpdate?: boolean;
|
|
8
|
+
shouldAnimate?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
layers: Layer[];
|
|
11
|
+
baseLayer?: Layer;
|
|
12
|
+
bbox?: Bbox;
|
|
13
|
+
srs?: string;
|
|
14
|
+
shouldShowZoomControls?: boolean;
|
|
15
|
+
animationPayload?: AnimationPayloadType;
|
|
16
|
+
}
|
|
17
|
+
export declare const ConfigurableMapWithSliderConnect: React.FC<ConfigurableMapWithSliderConnectProps>;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfigurableMapWithSliderConnect';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IconButtonProps } from '@material-ui/core';
|
|
3
|
+
interface LayerManagerButtonProps extends IconButtonProps {
|
|
4
|
+
tooltipTitle: string;
|
|
5
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
isEnabled?: boolean;
|
|
8
|
+
icon: React.ReactNode;
|
|
9
|
+
testId: string;
|
|
10
|
+
}
|
|
11
|
+
declare const LayerManagerButton: React.FC<LayerManagerButtonProps>;
|
|
12
|
+
export default LayerManagerButton;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ActivateLayerProps {
|
|
3
|
+
layerId: string;
|
|
4
|
+
mapId: string;
|
|
5
|
+
}
|
|
6
|
+
declare const ActivateLayerConnect: React.FC<ActivateLayerProps>;
|
|
7
|
+
/**
|
|
8
|
+
* Activates a maplayer from the store
|
|
9
|
+
*
|
|
10
|
+
* Expects the following props:
|
|
11
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
12
|
+
* @param {string} layerId layerId: string - Id of the layer that is activated
|
|
13
|
+
* @example
|
|
14
|
+
* ``` <ActivateLayerConnect mapId={mapId} layerId={layerId} />```
|
|
15
|
+
*/
|
|
16
|
+
export default ActivateLayerConnect;
|
|
File without changes
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface DeleteButtonProps {
|
|
3
|
-
tooltipTitle: string
|
|
3
|
+
tooltipTitle: string;
|
|
4
4
|
onClickDelete: () => void;
|
|
5
|
+
isEnabled?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const DeleteButton: React.FC<DeleteButtonProps>;
|
|
7
8
|
export default DeleteButton;
|
|
File without changes
|
|
File without changes
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface DimensionSelectProps {
|
|
|
5
5
|
mapId: string;
|
|
6
6
|
availableLayerDimensions?: Dimension[];
|
|
7
7
|
onLayerChangeDimension: (mapId: string, layerId: string, dimensionName: string, dimensionValue: string) => void;
|
|
8
|
-
|
|
8
|
+
isEnabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const DimensionSelect: React.FC<DimensionSelectProps>;
|
|
11
11
|
export default DimensionSelect;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
interface DragHandleProps {
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
index?: number;
|
|
5
|
+
hideTooltip?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const TOOLTIP_TITLE = "Drag a layer up or down";
|
|
8
|
+
declare const DragHandle: React.FC<DragHandleProps>;
|
|
5
9
|
export default DragHandle;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface EnableLayerProps {
|
|
3
|
-
|
|
3
|
+
isEnabled?: boolean;
|
|
4
4
|
title: string;
|
|
5
5
|
onChangeEnableLayer: (enable: boolean) => void;
|
|
6
|
-
isActive?: boolean;
|
|
7
6
|
}
|
|
8
7
|
declare const EnableLayer: React.FC<EnableLayerProps>;
|
|
9
8
|
export default EnableLayer;
|
|
@@ -41,10 +41,12 @@ interface LayerRowProps {
|
|
|
41
41
|
layerOpacityLayout?: React.ReactChild;
|
|
42
42
|
layerDimensionLayout?: React.ReactChild;
|
|
43
43
|
layerDeleteLayout?: React.ReactChild;
|
|
44
|
-
|
|
44
|
+
layerMenuLayout?: React.ReactChild;
|
|
45
|
+
layerActiveLayout?: React.ReactChild;
|
|
45
46
|
services?: Services;
|
|
46
47
|
layerManagerWidth: LayerManagerWidth;
|
|
47
|
-
|
|
48
|
+
isEnabled?: boolean;
|
|
49
|
+
dragHandle?: React.ReactElement;
|
|
48
50
|
}
|
|
49
51
|
declare const LayerRow: React.FC<LayerRowProps>;
|
|
50
52
|
export default LayerRow;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LayerManagerWidth } from '../../LayerManagerUtils';
|
|
3
|
+
interface LayerRowConnectProps {
|
|
4
|
+
layerId: string;
|
|
5
|
+
mapId: string;
|
|
6
|
+
layerManagerWidth: LayerManagerWidth;
|
|
7
|
+
dragHandle: React.ReactElement;
|
|
8
|
+
layerIndex: number;
|
|
9
|
+
}
|
|
10
|
+
declare const LayerRowConnect: React.FC<LayerRowConnectProps>;
|
|
11
|
+
export default LayerRowConnect;
|
|
@@ -7,13 +7,7 @@ interface LayerManagerButtonProps {
|
|
|
7
7
|
mapId: string;
|
|
8
8
|
layerId: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
|
|
11
|
-
mapId: string;
|
|
12
|
-
layerId: string;
|
|
13
|
-
}) => void;
|
|
14
|
-
layerDeleteLayout?: React.ReactChild;
|
|
15
|
-
layerDuplicateLayout?: React.ReactChild;
|
|
16
|
-
isActive?: boolean;
|
|
10
|
+
isEnabled?: boolean;
|
|
17
11
|
}
|
|
18
12
|
declare const LayerManagerMenuButton: React.FC<LayerManagerButtonProps>;
|
|
19
13
|
export default LayerManagerMenuButton;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ interface OpacitySelectProps {
|
|
|
3
3
|
currentOpacity: number;
|
|
4
4
|
tooltipTitle: string;
|
|
5
5
|
onLayerChangeOpacity: (opacity: number) => void;
|
|
6
|
-
|
|
6
|
+
isEnabled?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const OpacitySelect: React.FC<OpacitySelectProps>;
|
|
9
9
|
export default OpacitySelect;
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface RenderStylesProps {
|
|
|
5
5
|
services: Service;
|
|
6
6
|
mapId: string;
|
|
7
7
|
onChangeLayerStyle: (mapId: string, layerId: string, style: string) => void;
|
|
8
|
-
|
|
8
|
+
isEnabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const RenderStyles: React.FC<RenderStylesProps>;
|
|
11
11
|
export default RenderStyles;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Layer } from '../../store/mapStore/types';
|
|
3
3
|
import { Service } from '../WMSLoader/services';
|
|
4
|
+
import { Source } from '../../store/ui/types';
|
|
4
5
|
interface LayerManagerProps {
|
|
5
6
|
mapId: string;
|
|
6
7
|
preloadedAvailableBaseLayers?: Layer[];
|
|
7
8
|
preloadedMapServices?: Service[];
|
|
8
9
|
preloadedBaseServices?: Service[];
|
|
9
|
-
bounds?:
|
|
10
|
+
bounds?: string;
|
|
10
11
|
showTitle?: boolean;
|
|
11
12
|
onClose: () => void;
|
|
13
|
+
onMouseDown?: () => void;
|
|
12
14
|
isOpen: boolean;
|
|
15
|
+
order?: number;
|
|
16
|
+
source?: Source;
|
|
17
|
+
layerSelect?: boolean;
|
|
18
|
+
showAddLayersTooltip?: boolean;
|
|
13
19
|
}
|
|
14
20
|
declare const LayerManager: React.FC<LayerManagerProps>;
|
|
15
21
|
export default LayerManager;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
|
|
2
|
+
export declare const LayerManagerLightTheme: {
|
|
3
|
+
(): React.ReactElement;
|
|
4
|
+
storyName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const LayerManagerDarkTheme: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
4
9
|
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const LayerManagerDemo: React.FC;
|
|
7
|
-
export declare const LayerManagerDemoLightTheme: React.FC;
|
|
8
|
-
export declare const LayerManagerDemoDarkTheme: React.FC;
|
|
9
|
-
export declare const LayerManagerStoryWithMultiMaps: () => React.ReactElement;
|
|
@@ -5,8 +5,9 @@ interface LayerManagerConnectProps {
|
|
|
5
5
|
preloadedAvailableBaseLayers?: Layer[];
|
|
6
6
|
preloadedMapServices?: Service[];
|
|
7
7
|
preloadedBaseServices?: Service[];
|
|
8
|
-
bounds?:
|
|
8
|
+
bounds?: string;
|
|
9
9
|
showTitle?: boolean;
|
|
10
|
+
layerSelect?: boolean;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Layer Managerconnected to the store displaying the layers forthe active map Id
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const LayerManagerConnectLightTheme: React.FC;
|
|
3
|
+
export declare const LayerManagerConnectDarkTheme: React.FC;
|
|
4
|
+
export declare const LayerManagerConnectWithMultiMaps: () => React.ReactElement;
|
|
5
|
+
export declare const LayerManagerConnectWithTiledMap: () => React.ReactElement;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Source } from '../../store/ui/types';
|
|
2
3
|
interface LayerManagerMapButtonConnectProps {
|
|
3
4
|
mapId: string;
|
|
5
|
+
source?: Source;
|
|
4
6
|
}
|
|
5
7
|
declare const LayerManagerMapButtonConnect: React.FC<LayerManagerMapButtonConnectProps>;
|
|
6
8
|
export default LayerManagerMapButtonConnect;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Source } from '../../../store/ui/types';
|
|
3
|
+
interface LayerSelectProps {
|
|
4
|
+
mapId: string;
|
|
5
|
+
bounds?: string;
|
|
6
|
+
showTitle?: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
onMouseDown?: () => void;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
order?: number;
|
|
11
|
+
source?: Source;
|
|
12
|
+
}
|
|
13
|
+
declare const LayerSelect: React.FC<LayerSelectProps>;
|
|
14
|
+
export default LayerSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const MapWithLayerSelectDemoLightTheme: React.FC;
|
|
7
|
+
export declare const MapWithLayerSelectDemoDarkTheme: React.FC;
|
|
8
|
+
export declare const LayerSelectDemoLightTheme: React.FC;
|
|
9
|
+
export declare const LayerSelectDemoDarkTheme: React.FC;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Source } from '../../../store/ui/types';
|
|
3
|
+
interface LayerSelectButtonConnectProps {
|
|
4
|
+
mapId: string;
|
|
5
|
+
source?: Source;
|
|
6
|
+
}
|
|
7
|
+
declare const LayerSelectButtonConnect: React.FC<LayerSelectButtonConnectProps>;
|
|
8
|
+
export default LayerSelectButtonConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Service } from '../../WMSLoader/services';
|
|
3
|
+
interface LayerSelectConnectProps {
|
|
4
|
+
bounds?: string;
|
|
5
|
+
showTitle?: boolean;
|
|
6
|
+
preloadedServices?: Service[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* LayerSelectConnect is a component that is opened from LayerManager
|
|
10
|
+
* It's used to add Services and Layers to the application
|
|
11
|
+
* It doesn't expect any props, its subcomponents only read and write to redux store
|
|
12
|
+
*
|
|
13
|
+
* ``` <LayerSelectConnect />```
|
|
14
|
+
*/
|
|
15
|
+
declare const LayerSelectConnect: React.FC<LayerSelectConnectProps>;
|
|
16
|
+
export default LayerSelectConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ServicePopupProps {
|
|
3
|
+
servicePopupVariant: 'edit' | 'add' | 'save';
|
|
4
|
+
shouldDisableTransition?: boolean;
|
|
5
|
+
hideBackdrop?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ADD_HEADING = "Add a new service";
|
|
8
|
+
export declare const EDIT_HEADING = "Edit service";
|
|
9
|
+
export declare const SAVE_HEADING = "Save service";
|
|
10
|
+
declare const ServicePopup: React.FC<ServicePopupProps>;
|
|
11
|
+
export default ServicePopup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ServicePopupLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ServicePopupDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
File without changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface LegendConnectProps {
|
|
3
|
-
initialActiveMapId?: string;
|
|
4
3
|
showMapId?: boolean;
|
|
5
4
|
}
|
|
6
5
|
/**
|
|
@@ -9,8 +8,8 @@ interface LegendConnectProps {
|
|
|
9
8
|
* a dialog should have the <LegendMapButtonConnect/> which is used to focus the correct map and open the dialog
|
|
10
9
|
*
|
|
11
10
|
* Expects the following props:
|
|
12
|
-
* @param {string} initialActiveMapId (optional) initialActiveMapId: string - Id of map that is initially active, if set dialog will be opend immediately
|
|
13
11
|
* @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
|
|
12
|
+
|
|
14
13
|
* ``` <LegendConnect legendDialogId={legendDialogId} />```
|
|
15
14
|
*/
|
|
16
15
|
declare const LegendConnect: React.FC<LegendConnectProps>;
|
|
@@ -4,8 +4,10 @@ interface LegendDialogProps {
|
|
|
4
4
|
layers: Layer[];
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
onClose: () => void;
|
|
7
|
+
onMouseDown?: () => void;
|
|
7
8
|
mapId: string;
|
|
8
9
|
showMapId?: boolean;
|
|
10
|
+
order?: number;
|
|
9
11
|
}
|
|
10
12
|
declare const LegendDialog: React.FC<LegendDialogProps>;
|
|
11
13
|
export default LegendDialog;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TooltipProps } from '@material-ui/core';
|
|
3
|
+
import { ToggleIconButtonProps } from '../ToggleIconButton/ToggleIconButton';
|
|
4
|
+
interface MapControlButtonProps extends ToggleIconButtonProps {
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
placement?: TooltipProps['placement'];
|
|
8
|
+
children: React.ReactElement;
|
|
9
|
+
}
|
|
10
|
+
declare const MapControlButton: React.FC<MapControlButtonProps>;
|
|
11
|
+
export default MapControlButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|