@opengeoweb/core 2.1.3 → 2.2.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/{core.esm.js → index.esm.js} +2892 -1531
- package/{core.umd.js → index.umd.js} +3191 -1781
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +3 -3
- package/lib/components/CustomSwitch/CustomSwitch.d.ts +1 -1
- package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +4 -0
- package/lib/components/CustomToggleButton/CustomToggleButton.d.ts +9 -0
- package/lib/components/{Mapcontrols/MapControlButton.spec.d.ts → CustomToggleButton/CustomToggleButton.spec.d.ts} +0 -0
- package/lib/components/CustomToggleButton/CustomToggleButton.stories.d.ts +13 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +1 -1
- package/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +4 -5
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +6 -0
- package/lib/components/{Mapcontrols/MapControls.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +3 -0
- package/lib/components/{Mapcontrols/ZoomControls.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.spec.d.ts} +0 -0
- package/lib/components/{Mapcontrols/ZoomControlsConnect.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/keywordFilterResultsConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +2 -0
- package/lib/components/{ToggleIconButton/ToggleIconButton.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerListUtils.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +4 -1
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +10 -0
- package/lib/components/LayerManager/tooltipContainerStyles.d.ts +1 -1
- package/lib/components/{Mapcontrols → MapControls}/MapControlButton.d.ts +3 -3
- package/lib/components/MapControls/MapControlButton.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/MapControls.d.ts +0 -0
- package/lib/components/MapControls/MapControls.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/ZoomControls.d.ts +0 -0
- package/lib/components/MapControls/ZoomControls.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/ZoomControlsConnect.d.ts +0 -0
- package/lib/components/MapControls/ZoomControlsConnect.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/index.d.ts +0 -0
- package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +7 -0
- package/lib/components/MapView/MapViewConnect.SelectorTest.stories.d.ts +2 -0
- package/lib/components/MapView/MapViewConnect.d.ts +2 -0
- package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +1 -1
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +2 -2
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +4 -4
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +3 -2
- package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +81 -0
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +3 -7
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
- package/lib/components/ReactMapView/types.d.ts +2 -7
- package/lib/components/SyncGroups/selector.d.ts +13 -2
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendRenderFunctions.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRailRenderFunctions.d.ts +1 -1
- package/lib/components/ToolButton/ToolButton.d.ts +12 -0
- package/lib/components/ToolButton/ToolButton.spec.d.ts +1 -0
- package/lib/components/{ToggleIconButton/ToggleIconButton.stories.d.ts → ToolButton/ToolButton.stories.d.ts} +2 -2
- package/lib/components/ToolButton/index.d.ts +1 -0
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +2 -2
- package/lib/index.d.ts +4 -2
- package/lib/store/advancedLayerStore/selectors.d.ts +13 -2
- package/lib/store/generic/selectors.d.ts +21 -3
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +13 -1
- package/lib/store/generic/synchronizationGroups/types.d.ts +1 -0
- package/lib/store/layerSelect/actions.d.ts +16 -5
- package/lib/store/layerSelect/constants.d.ts +6 -1
- package/lib/store/layerSelect/sagas.d.ts +1 -0
- package/lib/store/layerSelect/selectors.d.ts +130 -3
- package/lib/store/layerSelect/types.d.ts +73 -17
- package/lib/store/mapStore/layers/actions.d.ts +2 -8
- package/lib/store/mapStore/layers/constants.d.ts +1 -1
- package/lib/store/mapStore/layers/selectors.d.ts +222 -27
- package/lib/store/mapStore/layers/types.d.ts +34 -21
- package/lib/store/mapStore/map/sagas.d.ts +2 -2
- package/lib/store/mapStore/map/selectors.d.ts +459 -53
- package/lib/store/mapStore/service/actions.d.ts +8 -1
- package/lib/store/mapStore/service/constants.d.ts +1 -0
- package/lib/store/mapStore/service/selectors.d.ts +137 -8
- package/lib/store/mapStore/service/types.d.ts +14 -3
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/selectors.d.ts +67 -7
- package/lib/store/utils.d.ts +6 -0
- package/lib/storybookUtils/HelperComponents.d.ts +1 -1
- package/lib/storybookUtils/storyComponents/MapDrawGeoJSON.d.ts +5 -5
- package/lib/storybookUtils/storyComponents/MapDrawGeoJSONStyles.d.ts +2 -1
- package/lib/utils/defaultConfigurations.d.ts +3 -21
- package/lib/utils/defaultTestSettings.d.ts +18 -6
- package/lib/utils/getCapabilities.d.ts +3 -2
- package/lib/utils/jsonPresetFilter.d.ts +10 -0
- package/lib/utils/jsonPresetFilter.spec.d.ts +1 -0
- package/lib/utils/types.d.ts +52 -0
- package/package.json +14 -15
- package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +0 -9
- package/lib/components/ToggleIconButton/index.d.ts +0 -1
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
3
|
import { AnimationPayloadType } from '../ConfigurableConnectedMap';
|
|
4
4
|
import { InitialHarmRefTimeProps, InitialHarmTempAndPrecipProps } from '../MultiMapView/HarmoniePresets';
|
|
5
|
-
export interface
|
|
5
|
+
export interface TSMapPreset {
|
|
6
6
|
layers?: Layer[];
|
|
7
7
|
activeLayerId?: string;
|
|
8
8
|
baseLayer?: Layer;
|
|
@@ -16,12 +16,12 @@ export interface MapPreset {
|
|
|
16
16
|
displayMapPin?: boolean;
|
|
17
17
|
}
|
|
18
18
|
interface InitialMultiMapProps {
|
|
19
|
-
mapPreset:
|
|
19
|
+
mapPreset: TSMapPreset[];
|
|
20
20
|
syncGroupsIds: string[];
|
|
21
21
|
shouldShowZoomControls?: boolean;
|
|
22
22
|
}
|
|
23
23
|
interface InitialMapProps {
|
|
24
|
-
mapPreset:
|
|
24
|
+
mapPreset: TSMapPreset;
|
|
25
25
|
syncGroupsIds: string[];
|
|
26
26
|
shouldShowZoomControls?: boolean;
|
|
27
27
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const CustomSwitch: import("react").
|
|
2
|
+
export declare const CustomSwitch: import("react").JSXElementConstructor<Omit<import("@mui/material").SwitchProps, "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"switchBase" | "checked" | "track"> & object>;
|
|
3
3
|
export default CustomSwitch;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ToggleButtonProps } from '@mui/material';
|
|
3
|
+
import { ButtonVariant } from '@opengeoweb/theme';
|
|
4
|
+
export interface CustomToggleButtonProps extends Omit<ToggleButtonProps, 'value'> {
|
|
5
|
+
variant?: ButtonVariant;
|
|
6
|
+
value?: unknown;
|
|
7
|
+
}
|
|
8
|
+
declare const CustomToggleButton: React.FC<CustomToggleButtonProps>;
|
|
9
|
+
export default CustomToggleButton;
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const CustomToggleButtonLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const CustomToggleButtonDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { IconButtonProps } from '@material
|
|
2
|
+
import { IconButtonProps } from '@mui/material';
|
|
3
3
|
interface LayerManagerButtonProps extends IconButtonProps {
|
|
4
4
|
tooltipTitle: string;
|
|
5
5
|
onClick?: (event: React.MouseEvent) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const LayerManagerColumnsLarge: (props?: any) => import("@
|
|
2
|
-
export declare const LayerManagerColumnsSmall: (props?: any) => import("@
|
|
1
|
+
export declare const LayerManagerColumnsLarge: (props?: any) => import("@mui/styles").ClassNameMap<"column1" | "column2" | "column3" | "column4" | "column5" | "column6">;
|
|
2
|
+
export declare const LayerManagerColumnsSmall: (props?: any) => import("@mui/styles").ClassNameMap<"column1" | "column2" | "column3" | "column4" | "column5" | "column6">;
|
|
3
3
|
export declare enum LayerManagerWidth {
|
|
4
4
|
sm = 0,
|
|
5
5
|
lg = 1
|
package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { KeywordObject } from '../../../../store/layerSelect/types';
|
|
3
2
|
import { Source } from '../../../../store/ui/types';
|
|
4
3
|
interface KeywordFilterResultsProps {
|
|
5
|
-
|
|
4
|
+
allKeywordIds: string[];
|
|
6
5
|
mapId: string;
|
|
7
6
|
bounds?: string;
|
|
8
7
|
showTitle?: boolean;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { KeywordObject } from '../../../../store/layerSelect/types';
|
|
2
3
|
interface FilterListItemProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
toggleCheckbox: (index: number) => void;
|
|
7
|
-
selectOnlyOne: (index: number) => void;
|
|
4
|
+
keyword: KeywordObject;
|
|
5
|
+
toggleKeywords: (keywords: string[]) => void;
|
|
6
|
+
enableOnlyOneKeyword: (keyword: string) => void;
|
|
8
7
|
}
|
|
9
8
|
declare const FilterListItem: React.FC<FilterListItemProps>;
|
|
10
9
|
export default FilterListItem;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,6 +4,9 @@ interface LayerListProps {
|
|
|
4
4
|
services: Services;
|
|
5
5
|
serviceIds: string[];
|
|
6
6
|
layerSelectHeight: number;
|
|
7
|
+
searchString: string;
|
|
8
|
+
keywordIds: string[];
|
|
9
|
+
allKeywordsActive: boolean;
|
|
7
10
|
}
|
|
8
11
|
declare const LayerList: React.FC<LayerListProps>;
|
|
9
12
|
export default LayerList;
|
|
File without changes
|
|
@@ -3,6 +3,8 @@ import { Service } from '../../../../store/mapStore/types';
|
|
|
3
3
|
interface ServiceChipProps {
|
|
4
4
|
all?: boolean;
|
|
5
5
|
service?: Service;
|
|
6
|
+
isEnabled?: boolean;
|
|
7
|
+
toggleChip?: (service: string) => void;
|
|
6
8
|
}
|
|
7
9
|
declare const ServiceChip: React.FC<ServiceChipProps>;
|
|
8
10
|
export default ServiceChip;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Service } from '../../../../store/mapStore/types';
|
|
3
|
+
interface ServiceChipConnectProps {
|
|
4
|
+
all?: boolean;
|
|
5
|
+
service?: Service;
|
|
6
|
+
isEnabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const ServiceChipConnect: React.FC<ServiceChipConnectProps>;
|
|
9
|
+
export default ServiceChipConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Service } from '../../../../store/mapStore/types';
|
|
3
|
+
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
3
4
|
interface ServiceListProps {
|
|
4
5
|
layerSelectWidth?: number;
|
|
5
6
|
services: Service[];
|
|
7
|
+
activeServices: ActiveServiceObject;
|
|
6
8
|
}
|
|
7
9
|
declare const ServiceList: React.FC<ServiceListProps>;
|
|
8
10
|
export default ServiceList;
|
package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ReduxLayer } from '../../../../store/mapStore/layers/types';
|
|
2
3
|
interface ServiceOptionsDialogProps {
|
|
3
|
-
services: string[];
|
|
4
|
+
services: Record<string, string>[];
|
|
5
|
+
mapStoreRemoveService?: (service: string) => void;
|
|
6
|
+
layers?: ReduxLayer[];
|
|
4
7
|
}
|
|
5
8
|
declare const ServiceOptionsDialog: React.FC<ServiceOptionsDialogProps>;
|
|
6
9
|
export default ServiceOptionsDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { SetLayersForServicePayload } from '../../../../store/mapStore/types';
|
|
2
3
|
interface ServicePopupProps {
|
|
3
4
|
servicePopupVariant: 'edit' | 'add' | 'save';
|
|
4
5
|
hideBackdrop?: boolean;
|
|
5
6
|
isOpen?: boolean;
|
|
6
7
|
closePopup?: () => void;
|
|
7
8
|
url?: string;
|
|
9
|
+
services?: any;
|
|
10
|
+
serviceSetLayers: (payload: SetLayersForServicePayload) => void;
|
|
8
11
|
}
|
|
9
12
|
export declare const ADD_HEADING = "Add a new service";
|
|
10
13
|
export declare const EDIT_HEADING = "Edit service";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ServicePopupConnectProps {
|
|
3
|
+
servicePopupVariant: 'edit' | 'add' | 'save';
|
|
4
|
+
hideBackdrop?: boolean;
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
closePopup?: () => void;
|
|
7
|
+
url?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ServicePopupConnect: React.FC<ServicePopupConnectProps>;
|
|
10
|
+
export default ServicePopupConnect;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useTooltipContainerStyles: (props?: any) => import("@
|
|
1
|
+
declare const useTooltipContainerStyles: (props?: any) => import("@mui/styles").ClassNameMap<"textContainer">;
|
|
2
2
|
export default useTooltipContainerStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TooltipProps } from '@material
|
|
3
|
-
import {
|
|
4
|
-
interface MapControlButtonProps extends
|
|
2
|
+
import { TooltipProps } from '@mui/material';
|
|
3
|
+
import { ToolButtonProps } from '../ToolButton/ToolButton';
|
|
4
|
+
interface MapControlButtonProps extends ToolButtonProps {
|
|
5
5
|
onClick: () => void;
|
|
6
6
|
isActive?: boolean;
|
|
7
7
|
placement?: TooltipProps['placement'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import * as mapActions from '../../store/mapStore/actions';
|
|
3
|
+
import { Layer } from '../../store/mapStore/types';
|
|
4
|
+
export interface LayerChangeOpacityInputProps {
|
|
5
|
+
mapId: string;
|
|
6
|
+
layerChangeOpacity: typeof mapActions.layerChangeOpacity;
|
|
7
|
+
layers: Layer[];
|
|
8
|
+
}
|
|
2
9
|
export declare const LayerChangeEnableOpacityAction: () => React.ReactElement;
|
|
@@ -10,6 +10,8 @@ export interface MapViewConnectProps {
|
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
showLayerInfo?: boolean;
|
|
12
12
|
}
|
|
13
|
+
export declare const ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION";
|
|
14
|
+
export declare const ORIGIN_REACTMAPVIEWCONNECT_ONUPDATELAYERINFO = "ORIGIN_REACTMAPVIEWCONNECT_ONUPDATELAYERINFO";
|
|
13
15
|
/**
|
|
14
16
|
* Connected component used to display the map and selected layers.
|
|
15
17
|
* Includes options to disable the map controls and legend.
|
|
@@ -9,6 +9,7 @@ export * from './MapViewConnect.SetBaseLayers.stories';
|
|
|
9
9
|
export * from './MapViewConnect.ToggleControls.stories';
|
|
10
10
|
export * from './MapViewConnect.FeatureLayers.stories';
|
|
11
11
|
export * from './MapViewConnect.MapPin.stories';
|
|
12
|
+
export * from './MapViewConnect.SelectorTest.stories';
|
|
12
13
|
declare const _default: {
|
|
13
14
|
title: string;
|
|
14
15
|
component: import("react").FC<import("./MapViewConnect").MapViewConnectProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Layer } from '../../../store/mapStore/types';
|
|
3
3
|
import { MultiMapPreset } from '../MultiMapViewConnect';
|
|
4
|
-
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[],
|
|
4
|
+
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], syncGroupsIds: string[], displayLayerManagerButtonInMap: boolean, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
|
|
5
5
|
export interface InitialHarmRefTimeProps {
|
|
6
6
|
layers?: Layer[];
|
|
7
|
-
|
|
7
|
+
syncGroupsIds: string[];
|
|
8
8
|
}
|
|
9
9
|
export declare const HarmRefTimePreset: React.FC<InitialHarmRefTimeProps>;
|
|
@@ -2,10 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
import { Layer } from '../../../store/mapStore/types';
|
|
3
3
|
export interface InitialHarmTempAndPrecipProps {
|
|
4
4
|
layers: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
topRow: Layer;
|
|
6
|
+
bottomRow: Layer;
|
|
7
|
+
topRowSyncGroups?: string[];
|
|
8
|
+
bottomRowSyncGroups?: string[];
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export declare const HarmonieTempAndPrecipPreset: React.FC<InitialHarmTempAndPrecipProps>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
|
-
export declare const useStyles: (props?: any) => import("@
|
|
3
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"box" | "zoomControls">;
|
|
4
4
|
export interface MultiMapPreset {
|
|
5
|
+
id: string;
|
|
5
6
|
title?: string;
|
|
6
7
|
layers: Layer[];
|
|
7
8
|
activeLayerId?: string;
|
|
@@ -9,9 +10,9 @@ export interface MultiMapPreset {
|
|
|
9
10
|
bbox?: Bbox;
|
|
10
11
|
srs?: string;
|
|
11
12
|
displayTimeInMap?: boolean;
|
|
12
|
-
layerSyncGroupId?: string;
|
|
13
13
|
displayLayerManagerButtonInMap?: boolean;
|
|
14
14
|
displayDimensionSelectButtonInMap?: boolean;
|
|
15
|
+
syncGroupsIds?: string[];
|
|
15
16
|
}
|
|
16
17
|
export interface MultiMapViewProps {
|
|
17
18
|
rows: number;
|
|
@@ -8,6 +8,15 @@ export declare const mapPresetRadar: {
|
|
|
8
8
|
id: string;
|
|
9
9
|
layerType: import("../../../store/mapStore/types").LayerType;
|
|
10
10
|
}[];
|
|
11
|
+
proj: {
|
|
12
|
+
bbox: {
|
|
13
|
+
left: number;
|
|
14
|
+
bottom: number;
|
|
15
|
+
right: number;
|
|
16
|
+
top: number;
|
|
17
|
+
};
|
|
18
|
+
srs: string;
|
|
19
|
+
};
|
|
11
20
|
};
|
|
12
21
|
export declare const mapPresetObsTA: {
|
|
13
22
|
layers: {
|
|
@@ -16,6 +25,15 @@ export declare const mapPresetObsTA: {
|
|
|
16
25
|
id: string;
|
|
17
26
|
layerType: import("../../../store/mapStore/types").LayerType;
|
|
18
27
|
}[];
|
|
28
|
+
proj: {
|
|
29
|
+
bbox: {
|
|
30
|
+
left: number;
|
|
31
|
+
bottom: number;
|
|
32
|
+
right: number;
|
|
33
|
+
top: number;
|
|
34
|
+
};
|
|
35
|
+
srs: string;
|
|
36
|
+
};
|
|
19
37
|
};
|
|
20
38
|
export declare const mapPresetObsWind: {
|
|
21
39
|
layers: {
|
|
@@ -24,6 +42,15 @@ export declare const mapPresetObsWind: {
|
|
|
24
42
|
id: string;
|
|
25
43
|
layerType: import("../../../store/mapStore/types").LayerType;
|
|
26
44
|
}[];
|
|
45
|
+
proj: {
|
|
46
|
+
bbox: {
|
|
47
|
+
left: number;
|
|
48
|
+
bottom: number;
|
|
49
|
+
right: number;
|
|
50
|
+
top: number;
|
|
51
|
+
};
|
|
52
|
+
srs: string;
|
|
53
|
+
};
|
|
27
54
|
};
|
|
28
55
|
export declare const mapPresetObsPP: {
|
|
29
56
|
layers: {
|
|
@@ -32,6 +59,15 @@ export declare const mapPresetObsPP: {
|
|
|
32
59
|
id: string;
|
|
33
60
|
layerType: import("../../../store/mapStore/types").LayerType;
|
|
34
61
|
}[];
|
|
62
|
+
proj: {
|
|
63
|
+
bbox: {
|
|
64
|
+
left: number;
|
|
65
|
+
bottom: number;
|
|
66
|
+
right: number;
|
|
67
|
+
top: number;
|
|
68
|
+
};
|
|
69
|
+
srs: string;
|
|
70
|
+
};
|
|
35
71
|
};
|
|
36
72
|
export declare const mapPresetObsRH: {
|
|
37
73
|
layers: {
|
|
@@ -40,6 +76,15 @@ export declare const mapPresetObsRH: {
|
|
|
40
76
|
id: string;
|
|
41
77
|
layerType: import("../../../store/mapStore/types").LayerType;
|
|
42
78
|
}[];
|
|
79
|
+
proj: {
|
|
80
|
+
bbox: {
|
|
81
|
+
left: number;
|
|
82
|
+
bottom: number;
|
|
83
|
+
right: number;
|
|
84
|
+
top: number;
|
|
85
|
+
};
|
|
86
|
+
srs: string;
|
|
87
|
+
};
|
|
43
88
|
};
|
|
44
89
|
export declare const mapPresetObsQG: {
|
|
45
90
|
layers: {
|
|
@@ -48,6 +93,15 @@ export declare const mapPresetObsQG: {
|
|
|
48
93
|
id: string;
|
|
49
94
|
layerType: import("../../../store/mapStore/types").LayerType;
|
|
50
95
|
}[];
|
|
96
|
+
proj: {
|
|
97
|
+
bbox: {
|
|
98
|
+
left: number;
|
|
99
|
+
bottom: number;
|
|
100
|
+
right: number;
|
|
101
|
+
top: number;
|
|
102
|
+
};
|
|
103
|
+
srs: string;
|
|
104
|
+
};
|
|
51
105
|
};
|
|
52
106
|
export declare const mapPresetEumetsat: {
|
|
53
107
|
layers: {
|
|
@@ -75,6 +129,15 @@ export declare const mapPresetHarmoniePrecipitationFlux: {
|
|
|
75
129
|
layerType: import("../../../store/mapStore/types").LayerType;
|
|
76
130
|
enabled: boolean;
|
|
77
131
|
}[];
|
|
132
|
+
proj: {
|
|
133
|
+
bbox: {
|
|
134
|
+
left: number;
|
|
135
|
+
bottom: number;
|
|
136
|
+
right: number;
|
|
137
|
+
top: number;
|
|
138
|
+
};
|
|
139
|
+
srs: string;
|
|
140
|
+
};
|
|
78
141
|
};
|
|
79
142
|
export declare const mapPresetHarmonieTemperature2m: {
|
|
80
143
|
layers: {
|
|
@@ -84,6 +147,15 @@ export declare const mapPresetHarmonieTemperature2m: {
|
|
|
84
147
|
layerType: import("../../../store/mapStore/types").LayerType;
|
|
85
148
|
enabled: boolean;
|
|
86
149
|
}[];
|
|
150
|
+
proj: {
|
|
151
|
+
bbox: {
|
|
152
|
+
left: number;
|
|
153
|
+
bottom: number;
|
|
154
|
+
right: number;
|
|
155
|
+
top: number;
|
|
156
|
+
};
|
|
157
|
+
srs: string;
|
|
158
|
+
};
|
|
87
159
|
};
|
|
88
160
|
export declare const mapPresetHarmoniePressureMSL: {
|
|
89
161
|
layers: {
|
|
@@ -93,4 +165,13 @@ export declare const mapPresetHarmoniePressureMSL: {
|
|
|
93
165
|
layerType: import("../../../store/mapStore/types").LayerType;
|
|
94
166
|
enabled: boolean;
|
|
95
167
|
}[];
|
|
168
|
+
proj: {
|
|
169
|
+
bbox: {
|
|
170
|
+
left: number;
|
|
171
|
+
bottom: number;
|
|
172
|
+
right: number;
|
|
173
|
+
top: number;
|
|
174
|
+
};
|
|
175
|
+
srs: string;
|
|
176
|
+
};
|
|
96
177
|
};
|
|
@@ -19,6 +19,7 @@ export declare const isAMapLayer: (layer: Layer) => boolean;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const isAGeoJSONLayer: (layer: Layer) => boolean;
|
|
21
21
|
export declare const ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION";
|
|
22
|
+
export declare const ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO = "ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO";
|
|
22
23
|
interface ReactMapViewState {
|
|
23
24
|
adagucInitialised: boolean;
|
|
24
25
|
}
|
|
@@ -54,12 +55,7 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
|
|
|
54
55
|
onMount: () => void;
|
|
55
56
|
onUnMount: () => void;
|
|
56
57
|
onMapChangeDimension: () => void;
|
|
57
|
-
|
|
58
|
-
onLayerChangeStyle: () => void;
|
|
59
|
-
onLayerChangeDimension: () => void;
|
|
60
|
-
onLayerSetDimensions: () => void;
|
|
61
|
-
onServiceSetLayers: () => void;
|
|
62
|
-
onLayerSetStyles: () => void;
|
|
58
|
+
onUpdateLayerInformation: () => void;
|
|
63
59
|
onMapZoomEnd: () => void;
|
|
64
60
|
};
|
|
65
61
|
constructor(props: ReactMapViewProps);
|
|
@@ -75,7 +71,7 @@ declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapVi
|
|
|
75
71
|
layerArrayMutated: boolean;
|
|
76
72
|
};
|
|
77
73
|
clearRefetchTimer: () => void;
|
|
78
|
-
parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean,
|
|
74
|
+
parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean, child?: React.ReactElement) => void;
|
|
79
75
|
checkNewProps(prevProps: ReactMapViewProps, props: ReactMapViewProps): void;
|
|
80
76
|
drawDebounced(): void;
|
|
81
77
|
handleWindowResize(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WMLayer, WMJSMap } from '@opengeoweb/webmap';
|
|
2
|
-
import {
|
|
2
|
+
import { UpdateLayerInfoPayload } from '../../store/mapStore/types';
|
|
3
3
|
import { MapViewProps } from '../MapView/types';
|
|
4
4
|
export declare const ORIGIN_REACTMAPVIEWPARSELAYER = "ReactMapViewParseLayer";
|
|
5
|
-
export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps,
|
|
5
|
+
export declare const setServiceMetadata: (wmLayer: WMLayer, mapId: string, webMapJSInstance: WMJSMap, mapProperties: MapViewProps, onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WMJSMap } from '@opengeoweb/webmap';
|
|
3
|
-
import { SetMapDimensionPayload,
|
|
3
|
+
import { SetMapDimensionPayload, Dimension, SetBboxPayload, Bbox, MapPinLocationPayload, MapLocation, UpdateLayerInfoPayload } from '../../store/mapStore/types';
|
|
4
4
|
export interface ReactMapViewProps {
|
|
5
5
|
listeners?: {
|
|
6
6
|
name?: string;
|
|
@@ -27,13 +27,8 @@ export interface ReactMapViewProps {
|
|
|
27
27
|
onMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
|
|
28
28
|
onUnMount?: (mapId: string, WMJSMapInstance: WMJSMap) => void;
|
|
29
29
|
onMapChangeDimension?: (payload: SetMapDimensionPayload) => void;
|
|
30
|
-
onMapUpdateAllDimensions?: (payload: UpdateAllMapDimensionsPayload) => void;
|
|
31
|
-
onLayerChangeStyle?: (payload: SetLayerStylePayload) => void;
|
|
32
|
-
onLayerChangeDimension?: (payload: SetLayerDimensionPayload) => void;
|
|
33
|
-
onServiceSetLayers?: (payload: SetLayersForServicePayload) => void;
|
|
34
|
-
onLayerSetStyles?: (payload: SetLayerStylesPayload) => void;
|
|
35
30
|
onMapZoomEnd?: (payload: SetBboxPayload) => void;
|
|
36
31
|
onRegisterAdaguc?: (WMJSMapInstance: WMJSMap) => void;
|
|
37
|
-
onLayerSetDimensions?: (payload: SetLayerDimensionsPayload) => void;
|
|
38
32
|
onMapPinChangeLocation?: (payload: MapPinLocationPayload) => void;
|
|
33
|
+
onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void;
|
|
39
34
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AppStore } from '../../types/types';
|
|
2
1
|
import { SynchronizationGroupState, SyncType } from '../../store/generic/synchronizationGroups/types';
|
|
3
2
|
import { SyncGroupViewState } from './types';
|
|
4
3
|
export declare const groupTypes: {
|
|
@@ -7,4 +6,16 @@ export declare const groupTypes: {
|
|
|
7
6
|
groupType: string;
|
|
8
7
|
}[];
|
|
9
8
|
export declare const createSyncGroupViewState: (syncState: SynchronizationGroupState) => SyncGroupViewState;
|
|
10
|
-
export declare const createSyncGroupViewStateSelector:
|
|
9
|
+
export declare const createSyncGroupViewStateSelector: ((state: {
|
|
10
|
+
advancedLayerStore?: import("../../store/advancedLayerStore/types").AdvancedLayerStoreState;
|
|
11
|
+
syncronizationGroupStore?: SynchronizationGroupState;
|
|
12
|
+
ui?: import("../../store/ui/types").UIStoreType;
|
|
13
|
+
webmap?: import("../../store/mapStore/types").WebMapState;
|
|
14
|
+
services?: import("../../store/mapStore/types").ServiceState;
|
|
15
|
+
layers?: import("../../store/mapStore/types").LayerState;
|
|
16
|
+
layerSelect?: import("../../store/layerSelect/types").LayerSelectStoreType;
|
|
17
|
+
}) => SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SyncGroupViewState & {
|
|
18
|
+
clearCache: () => void;
|
|
19
|
+
}> & {
|
|
20
|
+
clearCache: () => void;
|
|
21
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Theme } from '@material
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
2
|
import { Scale } from '../../../store/mapStore/types';
|
|
3
3
|
export declare const getRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, scale: Scale) => [number, number];
|
|
4
4
|
export declare const getCustomRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, unit: string) => [number, number];
|