@opengeoweb/core 2.6.0 → 2.9.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.esm.js +6741 -7105
- package/index.umd.js +21864 -22115
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +7 -21
- package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts → ConfigurableMap/ConfigurableMapConnect.d.ts} +11 -17
- package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts → ConfigurableMap/ConfigurableMapConnect.spec.d.ts} +0 -0
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.stories.d.ts +7 -0
- package/lib/components/ConfigurableMap/index.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +3 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +3 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +4 -3
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +5 -3
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -3
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +3 -2
- package/lib/components/Legend/LegendConnect.d.ts +2 -0
- package/lib/components/Legend/LegendMapButtonConnect.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +0 -1
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +12 -0
- package/lib/components/{ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts → MultiMapView/ModelRunInterval/ModelRunInterval.spec.d.ts} +0 -0
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.stories.d.ts +4 -0
- package/lib/components/MultiMapView/ModelRunInterval/index.d.ts +1 -0
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -3
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +3 -3
- package/lib/components/ReactMapView/AdagucMapDraw.d.ts +1 -1
- package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +1 -1
- package/lib/components/SyncGroups/selector.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSlider.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +1 -2
- package/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +1 -1
- package/lib/index.d.ts +5 -4
- package/lib/store/generic/actions.d.ts +3 -4
- package/lib/store/generic/index.d.ts +2 -0
- package/lib/store/generic/sagas.d.ts +7 -6
- package/lib/store/generic/selectors.d.ts +0 -1
- package/lib/store/generic/synchronizationActions/actions.d.ts +6 -5
- package/lib/store/generic/synchronizationActions/types.d.ts +10 -23
- package/lib/store/generic/synchronizationGroups/constants.d.ts +0 -8
- package/lib/store/generic/synchronizationGroups/index.d.ts +1 -2
- package/lib/store/generic/synchronizationGroups/reducer.d.ts +25 -3
- package/lib/store/generic/synchronizationGroups/sagas.d.ts +3 -3
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +0 -2
- package/lib/store/generic/synchronizationGroups/types.d.ts +1 -38
- package/lib/store/generic/types.d.ts +0 -11
- package/lib/store/layerSelect/selectors.d.ts +0 -6
- package/lib/store/layerSelect/types.d.ts +7 -4
- package/lib/store/mapStore/actions.d.ts +1 -1
- package/lib/store/mapStore/constants.d.ts +0 -1
- package/lib/store/mapStore/layers/actions.d.ts +8 -1
- package/lib/store/mapStore/layers/constants.d.ts +1 -0
- package/lib/store/mapStore/layers/reducer.d.ts +2 -2
- package/lib/store/mapStore/layers/selectors.d.ts +0 -17
- package/lib/store/mapStore/layers/types.d.ts +11 -3
- package/lib/store/mapStore/map/reducer.d.ts +12 -4
- package/lib/store/mapStore/map/sagas.d.ts +7 -5
- package/lib/store/mapStore/map/selectors.d.ts +40 -35
- package/lib/store/mapStore/map/types.d.ts +39 -96
- package/lib/store/mapStore/map/utils.d.ts +2 -1
- package/lib/store/mapStore/service/selectors.d.ts +0 -7
- package/lib/store/mapStore/service/types.d.ts +2 -0
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/actions.d.ts +8 -1
- package/lib/store/ui/constants.d.ts +1 -0
- package/lib/store/ui/reducer.d.ts +2 -8
- package/lib/store/ui/selectors.d.ts +11 -8
- package/lib/store/ui/types.d.ts +13 -3
- package/lib/types/types.d.ts +1 -2
- package/lib/utils/jsonPresetFilter.d.ts +26 -7
- package/lib/utils/types.d.ts +0 -38
- package/package.json +8 -7
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +0 -6
- package/lib/components/ConfigurableConnectedMap/index.d.ts +0 -1
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +0 -22
- package/lib/components/ConfigurableMapWithSlider/index.d.ts +0 -1
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +0 -9
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/actions.d.ts +0 -15
- package/lib/store/advancedLayerStore/config.d.ts +0 -4
- package/lib/store/advancedLayerStore/constants.d.ts +0 -2
- package/lib/store/advancedLayerStore/reducer.d.ts +0 -14
- package/lib/store/advancedLayerStore/reducer.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/selectors.d.ts +0 -21
- package/lib/store/advancedLayerStore/selectors.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/types.d.ts +0 -30
- package/lib/store/generic/constants.d.ts +0 -2
- package/lib/store/generic/synchronizationActions/constants.d.ts +0 -3
- package/lib/store/generic/synchronizationGroups/actions.d.ts +0 -80
- package/lib/store/mapStore/map/actions.d.ts +0 -156
- package/lib/store/mapStore/map/constants.d.ts +0 -23
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
interface TSMapPreset {
|
|
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
|
-
displayMapPin?: boolean;
|
|
17
|
-
}
|
|
2
|
+
import { MapPreset, MapPresetInitialProps } from '../../store/mapStore/types';
|
|
3
|
+
import { InitialHarmTempAndPrecipProps } from '../MultiMapView/HarmoniePresets';
|
|
4
|
+
import { ModelRunIntervalProps } from '../MultiMapView/ModelRunInterval';
|
|
18
5
|
interface InitialMultiMapProps {
|
|
19
|
-
mapPreset:
|
|
6
|
+
mapPreset: MapPreset[];
|
|
20
7
|
syncGroupsIds: string[];
|
|
21
8
|
shouldShowZoomControls?: boolean;
|
|
22
9
|
}
|
|
23
10
|
interface InitialMapProps {
|
|
24
|
-
mapPreset:
|
|
11
|
+
mapPreset: MapPreset;
|
|
25
12
|
syncGroupsIds: string[];
|
|
26
|
-
shouldShowZoomControls?: boolean;
|
|
27
13
|
}
|
|
28
14
|
interface InitialSliderProps {
|
|
29
15
|
sliderPreset: {
|
|
@@ -31,13 +17,13 @@ interface InitialSliderProps {
|
|
|
31
17
|
};
|
|
32
18
|
syncGroupsIds: string[];
|
|
33
19
|
}
|
|
34
|
-
export declare type InitialProps =
|
|
20
|
+
export declare type InitialProps = InitialMapProps | InitialMultiMapProps | InitialSliderProps | InitialHarmTempAndPrecipProps | ModelRunIntervalProps | MapPresetInitialProps;
|
|
35
21
|
/**
|
|
36
22
|
* The lookup table is for registering your own components with the screenmanager.
|
|
37
23
|
* @param payload
|
|
38
24
|
* @returns
|
|
39
25
|
*/
|
|
40
|
-
export declare type SupportedComponentTypes = '
|
|
26
|
+
export declare type SupportedComponentTypes = 'Map' | 'MultiMap' | 'ModelRunInterval' | 'HarmonieTempAndPrecipPreset' | 'TimeSlider';
|
|
41
27
|
export interface ComponentsLookUpPayload {
|
|
42
28
|
componentType: SupportedComponentTypes;
|
|
43
29
|
id: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
|
-
import { SpeedFactorType } from '../TimeSlider/TimeSliderUtils';
|
|
2
|
+
import { AnimationPayloadType, Bbox, Layer } from '../../store/mapStore/types';
|
|
4
3
|
export declare const defaultBbox: {
|
|
5
4
|
srs: string;
|
|
6
5
|
bbox: {
|
|
@@ -10,30 +9,25 @@ export declare const defaultBbox: {
|
|
|
10
9
|
top: number;
|
|
11
10
|
};
|
|
12
11
|
};
|
|
13
|
-
export interface
|
|
14
|
-
duration?: number;
|
|
15
|
-
interval?: number;
|
|
16
|
-
speed?: SpeedFactorType;
|
|
17
|
-
}
|
|
18
|
-
export interface ConfigurableConnectedMapProps {
|
|
19
|
-
title?: string;
|
|
12
|
+
export interface ConfigurableMapConnectProps {
|
|
20
13
|
id?: string;
|
|
21
|
-
|
|
14
|
+
shouldAutoUpdate?: boolean;
|
|
15
|
+
shouldAnimate?: boolean;
|
|
16
|
+
title?: string;
|
|
22
17
|
layers: Layer[];
|
|
23
18
|
activeLayerId?: string;
|
|
24
|
-
baseLayer?: Layer;
|
|
25
19
|
overLayers?: Layer[];
|
|
26
20
|
bbox?: Bbox;
|
|
27
21
|
srs?: string;
|
|
28
|
-
displayTimeInMap?: boolean;
|
|
29
|
-
displayLayerManagerButtonInMap?: boolean;
|
|
30
|
-
displayDimensionSelectButtonInMap?: boolean;
|
|
31
|
-
shouldAutoUpdate?: boolean;
|
|
32
|
-
shouldAnimate?: boolean;
|
|
33
22
|
animationPayload?: AnimationPayloadType;
|
|
34
23
|
shouldShowZoomControls?: boolean;
|
|
35
24
|
displayMapPin?: boolean;
|
|
25
|
+
showTimeSlider?: boolean;
|
|
36
26
|
toggleTimestepAuto?: boolean;
|
|
37
27
|
setTimestep?: number;
|
|
28
|
+
displayTimeInMap?: boolean;
|
|
29
|
+
displayLayerManagerAndLegendButtonInMap?: boolean;
|
|
30
|
+
displayDimensionSelectButtonInMap?: boolean;
|
|
31
|
+
multiLegend?: boolean;
|
|
38
32
|
}
|
|
39
|
-
export declare const
|
|
33
|
+
export declare const ConfigurableMapConnect: React.FC<ConfigurableMapConnectProps>;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfigurableMapConnect';
|
|
@@ -3,9 +3,9 @@ import { ReduxLayer } from '../../../../store/mapStore/layers/types';
|
|
|
3
3
|
interface LayerAddRemoveButtonProps {
|
|
4
4
|
layer: ReduxLayer;
|
|
5
5
|
layerIndex: number;
|
|
6
|
-
|
|
7
|
-
addLayer: ({
|
|
8
|
-
|
|
6
|
+
serviceUrl: string;
|
|
7
|
+
addLayer: ({ serviceUrl, layerName }: {
|
|
8
|
+
serviceUrl: any;
|
|
9
9
|
layerName: any;
|
|
10
10
|
}) => void;
|
|
11
11
|
deleteLayer: ({ layerId, layerIndex }: {
|
|
@@ -5,8 +5,8 @@ interface LayerListProps {
|
|
|
5
5
|
services: Services;
|
|
6
6
|
serviceIds: string[];
|
|
7
7
|
layerSelectHeight: number;
|
|
8
|
-
addLayer: ({
|
|
9
|
-
|
|
8
|
+
addLayer: ({ serviceUrl, layerName }: {
|
|
9
|
+
serviceUrl: any;
|
|
10
10
|
layerName: any;
|
|
11
11
|
}) => void;
|
|
12
12
|
deleteLayer: ({ layerId, layerIndex }: {
|
|
@@ -3,9 +3,9 @@ import { ReduxLayer, ServiceLayer } from '../../../../store/mapStore/types';
|
|
|
3
3
|
interface LayerListRowProps {
|
|
4
4
|
layer: ServiceLayer;
|
|
5
5
|
layerIndex: number;
|
|
6
|
-
|
|
7
|
-
addLayer: ({
|
|
8
|
-
|
|
6
|
+
serviceUrl: string;
|
|
7
|
+
addLayer: ({ serviceUrl, layerName }: {
|
|
8
|
+
serviceUrl: any;
|
|
9
9
|
layerName: any;
|
|
10
10
|
}) => void;
|
|
11
11
|
deleteLayer: ({ layerId, layerIndex }: {
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getMapStoreServiceFromLayerSelectServiceId: (services: Services, serviceId: string) => ReduxService;
|
|
1
|
+
import { ServiceLayer, Services } from '../../../../store/mapStore/service/types';
|
|
3
2
|
export declare const filterLayersFromService: (serviceId: string, services: Services, keywordIds: string[], allKeywordsActive: boolean, searchString: string) => ServiceLayer[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
3
3
|
interface ServiceChipProps {
|
|
4
4
|
all?: boolean;
|
|
5
|
-
service?:
|
|
6
|
-
|
|
5
|
+
service?: ActiveServiceObject;
|
|
6
|
+
isSelected?: boolean;
|
|
7
|
+
isDisabled?: boolean;
|
|
7
8
|
toggleChip?: (service: string) => void;
|
|
8
9
|
}
|
|
9
10
|
declare const ServiceChip: React.FC<ServiceChipProps>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
3
3
|
interface ServiceChipConnectProps {
|
|
4
4
|
all?: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
serviceId?: string;
|
|
6
|
+
service?: ActiveServiceObject;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
isDisabled?: boolean;
|
|
7
9
|
}
|
|
8
10
|
declare const ServiceChipConnect: React.FC<ServiceChipConnectProps>;
|
|
9
11
|
export default ServiceChipConnect;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Services } from '../../../../store/mapStore/types';
|
|
3
2
|
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
4
3
|
interface ServiceListProps {
|
|
5
4
|
layerSelectWidth?: number;
|
|
6
|
-
|
|
7
|
-
activeServices: ActiveServiceObject;
|
|
5
|
+
activeServices: Record<string, ActiveServiceObject>;
|
|
8
6
|
}
|
|
9
7
|
declare const ServiceList: React.FC<ServiceListProps>;
|
|
10
8
|
export default ServiceList;
|
package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReduxLayer } from '../../../../store/mapStore/layers/types';
|
|
3
|
+
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
3
4
|
interface ServiceOptionsDialogProps {
|
|
4
|
-
services: Record<string,
|
|
5
|
-
mapStoreRemoveService?: (
|
|
5
|
+
services: Record<string, ActiveServiceObject>;
|
|
6
|
+
mapStoreRemoveService?: (serviceId: string, serviceUrl: string) => void;
|
|
6
7
|
layers?: ReduxLayer[];
|
|
7
8
|
}
|
|
8
9
|
declare const ServiceOptionsDialog: React.FC<ServiceOptionsDialogProps>;
|
|
@@ -3,6 +3,8 @@ import { Source } from '../../store/ui/types';
|
|
|
3
3
|
interface LegendConnectProps {
|
|
4
4
|
showMapId?: boolean;
|
|
5
5
|
source?: Source;
|
|
6
|
+
mapId?: string;
|
|
7
|
+
multiLegend?: boolean;
|
|
6
8
|
}
|
|
7
9
|
/**
|
|
8
10
|
* Legend component connected to the store displaying a legend for every layer shown on the active map Id
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Layer } from '../../../store/mapStore/types';
|
|
3
|
+
import { MultiMapPreset } from '../MultiMapViewConnect';
|
|
4
|
+
export declare const makeMapPreset: (timeIncrement: number, uniqueId: string, referenceTime: string, layers: Layer[], syncGroupsIds: string[], displayLayerManagerAndLegendButtonInMap: boolean, displayDimensionSelectButtonInMap: boolean) => MultiMapPreset;
|
|
5
|
+
export interface ModelRunIntervalProps {
|
|
6
|
+
layers?: Layer[];
|
|
7
|
+
syncGroupsIds: string[];
|
|
8
|
+
interval?: number;
|
|
9
|
+
startTimeIncrement?: number;
|
|
10
|
+
multiLegend?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const ModelRunInterval: React.FC<ModelRunIntervalProps>;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ModelRunInterval';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { MultiMapViewStory2x2 } from './MultiMapView2x2.stories';
|
|
2
2
|
import { MultiMapViewStory4x3 } from './MultiMapView4x3.stories';
|
|
3
3
|
import { MultiMapViewStory10x10 } from './MultiMapView10x10.stories';
|
|
4
|
-
|
|
5
|
-
export { MultiMapViewStory4x3 };
|
|
6
|
-
export { MultiMapViewStory10x10 };
|
|
4
|
+
import { ModelRunIntervalCustomStart, ModelRunIntervalDefault, ModelRunIntervalHourly } from './ModelRunInterval/ModelRunInterval.stories';
|
|
5
|
+
export { MultiMapViewStory2x2, MultiMapViewStory4x3, MultiMapViewStory10x10, ModelRunIntervalDefault, ModelRunIntervalHourly, ModelRunIntervalCustomStart, };
|
|
7
6
|
declare const _default: {
|
|
8
7
|
title: string;
|
|
9
8
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
3
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"box"
|
|
3
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"box">;
|
|
4
4
|
export interface MultiMapPreset {
|
|
5
5
|
id: string;
|
|
6
6
|
title?: string;
|
|
7
7
|
layers: Layer[];
|
|
8
8
|
activeLayerId?: string;
|
|
9
|
-
baseLayer?: Layer;
|
|
10
9
|
bbox?: Bbox;
|
|
11
10
|
srs?: string;
|
|
12
11
|
displayTimeInMap?: boolean;
|
|
13
|
-
|
|
12
|
+
displayLayerManagerAndLegendButtonInMap?: boolean;
|
|
14
13
|
displayDimensionSelectButtonInMap?: boolean;
|
|
15
14
|
syncGroupsIds?: string[];
|
|
16
15
|
}
|
|
@@ -22,5 +21,6 @@ export interface MultiMapViewProps {
|
|
|
22
21
|
syncTime?: boolean;
|
|
23
22
|
showTimeSlider?: boolean;
|
|
24
23
|
showZoomControls?: boolean;
|
|
24
|
+
multiLegend?: boolean;
|
|
25
25
|
}
|
|
26
26
|
export declare const MultiMapViewConnect: React.FC<MultiMapViewProps>;
|
|
@@ -9,7 +9,7 @@ export declare const featureBox: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
|
9
9
|
export declare const lineString: GeoJSON.FeatureCollection;
|
|
10
10
|
export declare type GeoJsonFeatureType = GeoJSON.Polygon | GeoJSON.MultiPoint | GeoJSON.Point | GeoJSON.LineString | GeoJSON.MultiPolygon;
|
|
11
11
|
export declare type GeoJsonFeature = GeoJSON.Feature<GeoJsonFeatureType>;
|
|
12
|
-
declare type GeoFeatureStyle = {
|
|
12
|
+
export declare type GeoFeatureStyle = {
|
|
13
13
|
stroke?: string;
|
|
14
14
|
fill?: string;
|
|
15
15
|
'stroke-width'?: number;
|
|
@@ -6,4 +6,4 @@ export declare type CheckHoverFeaturesResult = {
|
|
|
6
6
|
feature: GeoJsonFeature;
|
|
7
7
|
} | null;
|
|
8
8
|
export declare const distance: (a: Coordinate, b: Coordinate) => number;
|
|
9
|
-
export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[]) => CheckHoverFeaturesResult;
|
|
9
|
+
export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[], ignoreCoordinateIndexInFeature?: boolean) => CheckHoverFeaturesResult;
|
|
@@ -7,7 +7,6 @@ export declare const groupTypes: {
|
|
|
7
7
|
}[];
|
|
8
8
|
export declare const createSyncGroupViewState: (groups: SynchronizationGroups, sources: SynchronizationSources) => SyncGroupViewState;
|
|
9
9
|
export declare const createSyncGroupViewStateSelector: ((state: {
|
|
10
|
-
advancedLayerStore?: import("../../store/advancedLayerStore/types").AdvancedLayerStoreState;
|
|
11
10
|
syncronizationGroupStore?: import("../../store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
12
11
|
ui?: import("../../store/ui/types").UIStoreType;
|
|
13
12
|
webmap?: import("../../store/mapStore/types").WebMapState;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
interface TimeSliderProps {
|
|
2
|
+
export interface TimeSliderProps {
|
|
3
3
|
buttons?: React.ReactChild;
|
|
4
4
|
rail?: React.ReactChild;
|
|
5
5
|
scaleSlider?: React.ReactChild;
|
|
6
6
|
legend?: React.ReactChild;
|
|
7
|
+
mapIsActive?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const TimeSlider: React.FC<TimeSliderProps>;
|
|
9
10
|
export default TimeSlider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Scale } from '../../../store/mapStore/types';
|
|
3
|
-
interface TimeSliderLegendProps {
|
|
3
|
+
export interface TimeSliderLegendProps {
|
|
4
4
|
centerTime: number;
|
|
5
5
|
secondsPerPx: number;
|
|
6
6
|
dataScaleToSecondsPerPx?: number;
|
|
@@ -13,6 +13,7 @@ interface TimeSliderLegendProps {
|
|
|
13
13
|
animationEndTime?: string;
|
|
14
14
|
isTimeSliderHoverOn?: boolean;
|
|
15
15
|
timeStep?: number;
|
|
16
|
+
mapIsActive?: boolean;
|
|
16
17
|
onSetNewDate?: (newDate: string) => void;
|
|
17
18
|
onSetCenterTime?: (newTime: number) => void;
|
|
18
19
|
onZoom?: (newSecondsPerPx: number, newCenterTime: number) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
import { Scale } from '../../../store/mapStore/types';
|
|
4
|
-
interface TimeSliderRailProps {
|
|
4
|
+
export interface TimeSliderRailProps {
|
|
5
5
|
centerTime: number;
|
|
6
6
|
secondsPerPx: number;
|
|
7
7
|
selectedTime?: moment.Moment;
|
|
@@ -13,6 +13,7 @@ interface TimeSliderRailProps {
|
|
|
13
13
|
dataEndTime?: number;
|
|
14
14
|
isTimeSliderHoverOn?: boolean;
|
|
15
15
|
scale?: Scale;
|
|
16
|
+
mapIsActive: boolean;
|
|
16
17
|
onSetAnimationStartTime?: (time: string) => void;
|
|
17
18
|
onSetAnimationEndTime?: (time: string) => void;
|
|
18
19
|
onSetNewDate?: (newDate: string) => void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { DateInterval } from '@opengeoweb/webmap';
|
|
4
|
-
import { Dimension, Layer, Scale } from '../../store/mapStore/types';
|
|
4
|
+
import { Dimension, Layer, Scale, SpeedFactorType } from '../../store/mapStore/types';
|
|
5
5
|
import CanvasComponent from '../CanvasComponent/CanvasComponent';
|
|
6
6
|
export declare const defaultAnimationDelayAtStart = 250;
|
|
7
7
|
export declare const defaultDelay = 1000;
|
|
8
8
|
export declare const speedFactors: SpeedFactorType[];
|
|
9
|
-
export declare type SpeedFactorType = 0.1 | 0.2 | 0.5 | 1 | 2 | 4 | 8 | 16;
|
|
10
9
|
export interface TimeBounds {
|
|
11
10
|
selectedTime: number;
|
|
12
11
|
startTime: number;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Service } from '../services';
|
|
3
3
|
interface WMSServerListProps {
|
|
4
4
|
availableServices: Service[];
|
|
5
|
-
handleChangeService: (
|
|
5
|
+
handleChangeService: (service: Service) => void;
|
|
6
6
|
service: Service;
|
|
7
7
|
}
|
|
8
8
|
declare const WMSServerList: React.FC<WMSServerListProps>;
|
package/lib/index.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ import * as mapUtils from './store/mapStore/map/utils';
|
|
|
6
6
|
import * as uiActions from './store/ui/actions';
|
|
7
7
|
import * as uiSelectors from './store/ui/selectors';
|
|
8
8
|
import * as uiTypes from './store/ui/types';
|
|
9
|
-
import * as syncGroupActions from './store/generic
|
|
9
|
+
import * as syncGroupActions from './store/generic';
|
|
10
10
|
import * as layerReducer from './store/mapStore/layers/reducer';
|
|
11
|
+
import * as layerActions from './store/mapStore/layers/actions';
|
|
11
12
|
import synchronizationGroupConfig from './store/generic/config';
|
|
12
13
|
import * as SyncGroups from './store/generic/synchronizationGroups';
|
|
13
14
|
import coreModuleConfig from './store/coreModuleConfig';
|
|
@@ -21,11 +22,10 @@ export { LegendConnect, Legend, LegendMapButtonConnect, } from './components/Leg
|
|
|
21
22
|
export { ZoomControls, ZoomControlConnect } from './components/MapControls';
|
|
22
23
|
export { TimeSliderConnect } from './components/TimeSlider';
|
|
23
24
|
export { MapControls } from './components/MapControls';
|
|
24
|
-
export { mapActions, mapSelectors, mapTypes, mapConstants, mapUtils, layerReducer, uiActions, uiSelectors, uiTypes, syncGroupActions, };
|
|
25
|
+
export { mapActions, mapSelectors, mapTypes, mapConstants, mapUtils, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, syncGroupActions, };
|
|
25
26
|
export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
|
|
26
27
|
export * from './components/ComponentsLookUp';
|
|
27
|
-
export * from './components/
|
|
28
|
-
export { ConfigurableConnectedMap } from './components/ConfigurableConnectedMap';
|
|
28
|
+
export * from './components/ConfigurableMap';
|
|
29
29
|
export * from './store/mapStore/utils/helpers';
|
|
30
30
|
export { SyncGroupViewerConnect } from './components/SyncGroups/SyncGroupViewerConnect';
|
|
31
31
|
export { SyncGroups };
|
|
@@ -45,3 +45,4 @@ export { default as uiModuleConfig } from './store/ui/config';
|
|
|
45
45
|
export { default as mapModuleConfig } from './store/mapStore/config';
|
|
46
46
|
export { default as synchronizationGroupsConfig } from './store/generic/config';
|
|
47
47
|
export * from './components/MapWarning/MapWarningProperties';
|
|
48
|
+
export type { FeatureEvent, GeoFeatureStyle, } from './components/ReactMapView/AdagucMapDraw';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetTimePayload, SetBboxPayload
|
|
1
|
+
import { SetTimePayload, SetBboxPayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Generic action to set the time.
|
|
4
4
|
*
|
|
@@ -8,7 +8,7 @@ import { SetTimePayload, SetBboxPayload, SetTime, SetBbox } from './types';
|
|
|
8
8
|
* value: string; // ISO 8601 string time value like "2010-10-01T00:00:00Z"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export declare const setTime: (
|
|
11
|
+
export declare const setTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetTimePayload, string>;
|
|
12
12
|
/**
|
|
13
13
|
* Generic action to set the bounding box.
|
|
14
14
|
*
|
|
@@ -25,5 +25,4 @@ export declare const setTime: (payload: SetTimePayload) => SetTime;
|
|
|
25
25
|
* srs: string; // Projection string according to EPSG, e.g. (EPSG:3857 == Mercator)
|
|
26
26
|
* }
|
|
27
27
|
*/
|
|
28
|
-
export declare const setBbox: (
|
|
29
|
-
export * from './synchronizationGroups/actions';
|
|
28
|
+
export declare const setBbox: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SetBboxPayload, string>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const syncGroupAddGroup: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupAddGroupPayload, string>, syncGroupAddSource: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupsAddSourcePayload, string>, syncGroupAddTarget: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupAddTargetPayload, string>, syncGroupClear: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, syncGroupLinkTarget: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupLinkTargetPayload, string>, syncGroupRemoveGroup: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupRemoveGroupPayload, string>, syncGroupRemoveSource: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupRemoveSourcePayload, string>, syncGroupRemoveTarget: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupRemoveTargetPayload, string>, syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./synchronizationGroups/types").SyncGroupSetViewStatePayload, string>;
|
|
2
|
+
export { setTime, setBbox } from './actions';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
2
|
+
import { AddLayer, DeleteLayer, LayerActions, SetBaseLayers } from '../mapStore/types';
|
|
3
|
+
import { layerMoveLayer, setActiveLayerId } from '../mapStore/actions';
|
|
4
|
+
import { setBbox, setTime } from './actions';
|
|
5
|
+
export declare function setTimeSaga({ payload, }: ReturnType<typeof setTime>): SagaIterator;
|
|
6
|
+
export declare function setBBoxSaga({ payload, }: ReturnType<typeof setBbox>): SagaIterator;
|
|
6
7
|
export declare function layerActionsSaga({ payload, type, }: LayerActions): SagaIterator;
|
|
7
8
|
export declare function addLayerActionsSaga({ payload, type, }: AddLayer): SagaIterator;
|
|
8
9
|
export declare function deleteLayerActionsSaga({ payload, type, }: DeleteLayer): SagaIterator;
|
|
9
|
-
export declare function moveLayerActionsSaga({ payload, type, }:
|
|
10
|
-
export declare function setActiveLayerIdActionsSaga({ payload, type, }:
|
|
10
|
+
export declare function moveLayerActionsSaga({ payload, type, }: ReturnType<typeof layerMoveLayer>): SagaIterator;
|
|
11
|
+
export declare function setActiveLayerIdActionsSaga({ payload, type, }: ReturnType<typeof setActiveLayerId>): SagaIterator;
|
|
11
12
|
export declare function mapBaseLayerActionsSaga({ payload, type, }: SetBaseLayers): SagaIterator;
|
|
12
13
|
export declare function rootSaga(): SagaIterator;
|
|
13
14
|
export default rootSaga;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SynchronizationGroupState, SynchronizationSource } from './synchronizationGroups/types';
|
|
2
2
|
export declare const getSynchronizationGroupStore: ((state: {
|
|
3
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
4
3
|
syncronizationGroupStore?: SynchronizationGroupState;
|
|
5
4
|
ui?: import("../ui/types").UIStoreType;
|
|
6
5
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SetBboxPayload, SetTimePayload, SyncLayerPayloads } from '../types';
|
|
2
|
+
import type { SetBboxSyncActionPayload, SetBboxSyncPayload, SetLayerActionsSyncPayload, SetTimeSyncActionPayload, SetTimeSyncPayload } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* These actions are fired by the generic/saga.ts, based on generic actions and the synchronizationGroup state.
|
|
5
5
|
*
|
|
6
6
|
* These actions should not be used by components directly. Components should only use the generic actions.
|
|
7
7
|
*/
|
|
8
|
-
export declare const setTimeSync: (payload: SetTimePayload, targets: SetTimeSyncPayload[], groups: string[]
|
|
9
|
-
export declare const setBboxSync: (payload: SetBboxPayload, targets: SetBboxSyncPayload[], groups: string[]
|
|
10
|
-
export declare const setLayerActionSync: (payload: SyncLayerPayloads, targets: SyncLayerPayloads[], type: string
|
|
8
|
+
export declare const setTimeSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SetTimePayload, targets: SetTimeSyncPayload[], groups: string[]], SetTimeSyncActionPayload, "GENERIC_SYNC_SETTIME", never, never>;
|
|
9
|
+
export declare const setBboxSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SetBboxPayload, targets: SetBboxSyncPayload[], groups: string[]], SetBboxSyncActionPayload, "GENERIC_SYNC_SETBBOX", never, never>;
|
|
10
|
+
export declare const setLayerActionSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SyncLayerPayloads, targets: SyncLayerPayloads[], type: string], SetLayerActionsSyncPayload, "GENERIC_SYNC_SETLAYERACTIONS", never, never>;
|
|
11
|
+
export declare type GenericSyncActions = ReturnType<typeof setTimeSync> | ReturnType<typeof setBboxSync> | ReturnType<typeof setLayerActionSync>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { SetBbox, SetTime, SyncLayerPayloads } from '../types';
|
|
1
|
+
import { setBbox, setTime } from '../actions';
|
|
2
|
+
import { SyncLayerPayloads } from '../types';
|
|
4
3
|
export interface SetTimeSyncPayload {
|
|
5
4
|
targetId: string;
|
|
6
5
|
value: string;
|
|
@@ -22,26 +21,14 @@ export interface SetLayerActionsSyncPayload {
|
|
|
22
21
|
};
|
|
23
22
|
targets: SyncLayerPayloads[];
|
|
24
23
|
}
|
|
25
|
-
export interface
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
groups: string[];
|
|
30
|
-
targets: SetTimeSyncPayload[];
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export interface SetBboxSync extends Action {
|
|
34
|
-
type: typeof GENERIC_SYNC_SETBBOX;
|
|
35
|
-
payload: {
|
|
36
|
-
source: SetBbox;
|
|
37
|
-
groups: string[];
|
|
38
|
-
targets: SetBboxSyncPayload[];
|
|
39
|
-
};
|
|
24
|
+
export interface SetTimeSyncActionPayload {
|
|
25
|
+
source: ReturnType<typeof setTime>;
|
|
26
|
+
groups: string[];
|
|
27
|
+
targets: SetTimeSyncPayload[];
|
|
40
28
|
}
|
|
41
|
-
export interface
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
export interface SetBboxSyncActionPayload {
|
|
30
|
+
source: ReturnType<typeof setBbox>;
|
|
31
|
+
groups: string[];
|
|
32
|
+
targets: SetBboxSyncPayload[];
|
|
44
33
|
}
|
|
45
34
|
export declare type GenericSyncActionPayload = SetBboxSyncPayload | SetTimeSyncPayload | SetLayerActionsSyncPayload;
|
|
46
|
-
export declare type GenericSyncActionPayloads = SetBboxSyncPayload[] | SetTimeSyncPayload[];
|
|
47
|
-
export declare type GenericSyncActions = SetTimeSync | SetBboxSync | SetLayerActionsSync;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export declare const SYNCGROUPS_ADD_SOURCE = "SYNCGROUPS_ADD_SOURCE";
|
|
2
|
-
export declare const SYNCGROUPS_REMOVE_SOURCE = "SYNCGROUPS_REMOVE_SOURCE";
|
|
3
|
-
export declare const SYNCGROUPS_TOGGLE_LINK_TARGET = "SYNCGROUPS_TOGGLE_LINK_TARGET";
|
|
4
|
-
export declare const SYNCGROUPS_ADD_TARGET = "SYNCGROUPS_ADD_TARGET";
|
|
5
|
-
export declare const SYNCGROUPS_REMOVE_TARGET = "SYNCGROUPS_REMOVE_TARGET";
|
|
6
|
-
export declare const SYNCGROUPS_ADD_GROUP = "SYNCGROUPS_ADD_GROUP";
|
|
7
|
-
export declare const SYNCGROUPS_REMOVE_GROUP = "SYNCGROUPS_REMOVE_GROUP";
|
|
8
|
-
export declare const SYNCGROUPS_CLEAR = "SYNCGROUPS_CLEAR";
|
|
9
1
|
export declare const SYNCGROUPS_TYPE_SETTIME = "SYNCGROUPS_TYPE_SETTIME";
|
|
10
2
|
export declare const SYNCGROUPS_TYPE_SETBBOX = "SYNCGROUPS_TYPE_SETBBOX";
|
|
11
3
|
export declare const SYNCGROUPS_TYPE_SETLAYERACTIONS = "SYNCGROUPS_TYPE_SETLAYERACTIONS";
|