@opengeoweb/core 2.4.0 → 2.6.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 +815 -663
- package/index.umd.js +828 -675
- package/lib/components/LayerManager/LayerManager.d.ts +2 -1
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +18 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +2 -1
- package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +4 -0
- package/lib/components/{TimeSlider/TimeSliderButtons/LoopButton/LoopButton.spec.d.ts → LayerManager/LayerSelect/LayerSelectUtils.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -2
- package/lib/components/MapView/MapViewLayer.d.ts +3 -0
- package/lib/components/MapWarning/MapWarningProperties.d.ts +6 -0
- package/lib/components/{TimeSlider/TimeSliderButtons/LoopButton/LoopButtonConnect.spec.d.ts → MapWarning/MapWarningProperties.spec.d.ts} +0 -0
- package/lib/components/ReactMapView/AdagucMapDraw.d.ts +12 -7
- package/lib/components/ReactMapView/AdagucMapDraw.stories.d.ts +4 -0
- package/lib/components/ReactMapView/AdagucMapDrawContainer.d.ts +2 -1
- package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +9 -0
- package/lib/components/{TooltipSelect/TooltipSelect.spec.d.ts → ReactMapView/AdagucMapDrawTools.spec.d.ts} +0 -0
- package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.d.ts +0 -1
- package/lib/index.d.ts +2 -2
- package/lib/store/layerSelect/sagas.d.ts +3 -1
- package/lib/store/mapStore/map/actions.d.ts +1 -8
- package/lib/store/mapStore/map/selectors.d.ts +0 -21
- package/lib/store/mapStore/service/reducer.d.ts +2 -8
- package/lib/store/mapStore/service/selectors.d.ts +6 -8
- package/lib/store/mapStore/service/types.d.ts +7 -9
- package/lib/store/mapStore/utils/helpers.d.ts +2 -0
- package/lib/store/ui/types.d.ts +1 -1
- package/lib/utils/defaultConfigurations.d.ts +2 -2
- package/lib/utils/defaultTestSettings.d.ts +10 -199
- package/lib/utils/jsonPresetFilter.d.ts +2 -1
- package/lib/utils/localStorage.d.ts +3 -0
- package/lib/utils/localStorage.spec.d.ts +1 -0
- package/lib/utils/types.d.ts +4 -5
- package/package.json +10 -9
- package/lib/components/LayerManager/tooltipContainerStyles.d.ts +0 -2
- package/lib/components/TimeSlider/TimeSliderButtons/LoopButton/LoopButton.d.ts +0 -8
- package/lib/components/TimeSlider/TimeSliderButtons/LoopButton/LoopButtonConnect.d.ts +0 -10
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +0 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Layer } from '../../store/mapStore/types';
|
|
3
|
-
import { Service } from '../WMSLoader/services';
|
|
4
3
|
import { Source } from '../../store/ui/types';
|
|
4
|
+
import { Service } from '../WMSLoader/services';
|
|
5
5
|
interface LayerManagerProps {
|
|
6
6
|
mapId: string;
|
|
7
7
|
preloadedAvailableBaseLayers?: Layer[];
|
|
@@ -16,6 +16,7 @@ interface LayerManagerProps {
|
|
|
16
16
|
source?: Source;
|
|
17
17
|
layerSelect?: boolean;
|
|
18
18
|
showAddLayersTooltip?: boolean;
|
|
19
|
+
leftComponent?: React.ReactNode;
|
|
19
20
|
}
|
|
20
21
|
declare const LayerManager: React.FC<LayerManagerProps>;
|
|
21
22
|
export default LayerManager;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ReduxLayer, ServiceLayer } from '../../../../store/mapStore/types';
|
|
3
|
+
interface LayerListRowProps {
|
|
4
|
+
layer: ServiceLayer;
|
|
5
|
+
layerIndex: number;
|
|
6
|
+
serviceId: string;
|
|
7
|
+
addLayer: ({ serviceURL, layerName }: {
|
|
8
|
+
serviceURL: any;
|
|
9
|
+
layerName: any;
|
|
10
|
+
}) => void;
|
|
11
|
+
deleteLayer: ({ layerId, layerIndex }: {
|
|
12
|
+
layerId: any;
|
|
13
|
+
layerIndex: any;
|
|
14
|
+
}) => void;
|
|
15
|
+
mapLayers: ReduxLayer[];
|
|
16
|
+
}
|
|
17
|
+
declare const LayerListRow: React.FC<LayerListRowProps>;
|
|
18
|
+
export default LayerListRow;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { ServiceLayer, Services } from '../../../../store/mapStore/service/types';
|
|
1
|
+
import { ReduxService, ServiceLayer, Services } from '../../../../store/mapStore/service/types';
|
|
2
|
+
export declare const getMapStoreServiceFromLayerSelectServiceId: (services: Services, serviceId: string) => ReduxService;
|
|
2
3
|
export declare const filterLayersFromService: (serviceId: string, services: Services, keywordIds: string[], allKeywordsActive: boolean, searchString: string) => ServiceLayer[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UserAddedServices } from '../../../utils/types';
|
|
2
|
+
import { Service } from '../../WMSLoader/services';
|
|
3
|
+
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => Service[];
|
|
4
|
+
export declare const isService: (param: unknown) => param is Service;
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ReduxService } from '../../../../store/mapStore/types';
|
|
3
3
|
interface ServiceChipProps {
|
|
4
4
|
all?: boolean;
|
|
5
|
-
service?:
|
|
5
|
+
service?: ReduxService;
|
|
6
6
|
isEnabled?: boolean;
|
|
7
7
|
toggleChip?: (service: string) => void;
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ReduxService } from '../../../../store/mapStore/types';
|
|
3
3
|
interface ServiceChipConnectProps {
|
|
4
4
|
all?: boolean;
|
|
5
|
-
service?:
|
|
5
|
+
service?: ReduxService;
|
|
6
6
|
isEnabled?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const ServiceChipConnect: React.FC<ServiceChipConnectProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Services } from '../../../../store/mapStore/types';
|
|
3
3
|
import { ActiveServiceObject } from '../../../../store/layerSelect/types';
|
|
4
4
|
interface ServiceListProps {
|
|
5
5
|
layerSelectWidth?: number;
|
|
6
|
-
services:
|
|
6
|
+
services: Services;
|
|
7
7
|
activeServices: ActiveServiceObject;
|
|
8
8
|
}
|
|
9
9
|
declare const ServiceList: React.FC<ServiceListProps>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { FeatureEvent } from '../ReactMapView/AdagucMapDraw';
|
|
2
3
|
interface MapViewLayerProps {
|
|
3
4
|
id: string;
|
|
4
5
|
onLayerReady?: (layer: any, webmap?: any) => void;
|
|
@@ -9,6 +10,8 @@ interface MapViewLayerProps {
|
|
|
9
10
|
updateGeojson?: (geoJson: any) => void;
|
|
10
11
|
exitDrawModeCallback?: () => void;
|
|
11
12
|
featureNrToEdit?: number;
|
|
13
|
+
onClickFeature?: (event: FeatureEvent) => void;
|
|
14
|
+
onHoverFeature?: (event: FeatureEvent) => void;
|
|
12
15
|
}
|
|
13
16
|
declare const MapViewLayer: React.FC<MapViewLayerProps>;
|
|
14
17
|
export default MapViewLayer;
|
|
File without changes
|
|
@@ -7,8 +7,8 @@ export declare const featureMultiPoint: GeoJSON.Feature<GeoJSON.MultiPoint>;
|
|
|
7
7
|
export declare const featurePolygon: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
8
8
|
export declare const featureBox: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
9
9
|
export declare const lineString: GeoJSON.FeatureCollection;
|
|
10
|
-
declare type GeoJsonFeatureType = GeoJSON.Polygon | GeoJSON.MultiPoint | GeoJSON.Point | GeoJSON.LineString;
|
|
11
|
-
declare type GeoJsonFeature = GeoJSON.Feature<GeoJsonFeatureType>;
|
|
10
|
+
export declare type GeoJsonFeatureType = GeoJSON.Polygon | GeoJSON.MultiPoint | GeoJSON.Point | GeoJSON.LineString | GeoJSON.MultiPolygon;
|
|
11
|
+
export declare type GeoJsonFeature = GeoJSON.Feature<GeoJsonFeatureType>;
|
|
12
12
|
declare type GeoFeatureStyle = {
|
|
13
13
|
stroke?: string;
|
|
14
14
|
fill?: string;
|
|
@@ -16,7 +16,7 @@ declare type GeoFeatureStyle = {
|
|
|
16
16
|
'stroke-opacity'?: number;
|
|
17
17
|
'fill-opacity'?: number;
|
|
18
18
|
};
|
|
19
|
-
declare type Coordinate = {
|
|
19
|
+
export declare type Coordinate = {
|
|
20
20
|
x: number;
|
|
21
21
|
y: number;
|
|
22
22
|
};
|
|
@@ -32,12 +32,14 @@ declare type AdagucInputEvent = {
|
|
|
32
32
|
mouseY: number;
|
|
33
33
|
rightButton: boolean;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
36
|
-
|
|
35
|
+
export interface FeatureEvent {
|
|
36
|
+
coordinateIndexInFeature: number;
|
|
37
37
|
featureIndex: number;
|
|
38
38
|
mouseX: number;
|
|
39
39
|
mouseY: number;
|
|
40
|
-
|
|
40
|
+
isInEditMode: boolean;
|
|
41
|
+
feature: GeoJsonFeature;
|
|
42
|
+
}
|
|
41
43
|
export interface AdagucMapDrawProps {
|
|
42
44
|
webmapjs: WMJSMap;
|
|
43
45
|
geojson: GeoJSON.FeatureCollection;
|
|
@@ -47,7 +49,8 @@ export interface AdagucMapDrawProps {
|
|
|
47
49
|
isInEditMode: boolean;
|
|
48
50
|
isInDeleteMode: boolean;
|
|
49
51
|
featureNrToEdit: number;
|
|
50
|
-
|
|
52
|
+
onHoverFeature?: (event: FeatureEvent) => void;
|
|
53
|
+
onClickFeature?: (event: FeatureEvent) => void;
|
|
51
54
|
updateGeojson: (geoJson: GeometryObject, text: string) => void;
|
|
52
55
|
}
|
|
53
56
|
export declare enum EDITMODE {
|
|
@@ -100,10 +103,12 @@ export default class AdagucMapDraw extends React.PureComponent<AdagucMapDrawProp
|
|
|
100
103
|
mouseX?: number;
|
|
101
104
|
mouseY?: number;
|
|
102
105
|
};
|
|
106
|
+
mouseStoppedTimer: number;
|
|
103
107
|
snappedPolygonIndex: SNAPPEDFEATURE | number;
|
|
104
108
|
mouseX: number;
|
|
105
109
|
mouseY: number;
|
|
106
110
|
mouseOverPolygonFeatureIndex: number;
|
|
111
|
+
mouseOverPolygonIndex: number;
|
|
107
112
|
drawMode: string;
|
|
108
113
|
disabled: boolean;
|
|
109
114
|
static defaultProps: {
|
|
@@ -10,7 +10,8 @@ export declare type FeatureLayer = {
|
|
|
10
10
|
isInDeleteMode?: boolean;
|
|
11
11
|
geojson?: GeoJSON.FeatureCollection;
|
|
12
12
|
drawMode?: string;
|
|
13
|
-
|
|
13
|
+
onHoverFeature?: (feature: FeatureEvent) => void;
|
|
14
|
+
onClickFeature?: (feature: FeatureEvent) => void;
|
|
14
15
|
updateGeojson?: (feature: GeometryObject) => void;
|
|
15
16
|
exitDrawModeCallback?: () => void;
|
|
16
17
|
featureNrToEdit?: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Position } from 'geojson';
|
|
2
|
+
import type { Coordinate, GeoJsonFeature } from './AdagucMapDraw';
|
|
3
|
+
export declare type CheckHoverFeaturesResult = {
|
|
4
|
+
coordinateIndexInFeature: number;
|
|
5
|
+
featureIndex: number;
|
|
6
|
+
feature: GeoJsonFeature;
|
|
7
|
+
} | null;
|
|
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;
|
|
File without changes
|
package/lib/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import * as uiTypes from './store/ui/types';
|
|
|
9
9
|
import * as syncGroupActions from './store/generic/actions';
|
|
10
10
|
import * as layerReducer from './store/mapStore/layers/reducer';
|
|
11
11
|
import synchronizationGroupConfig from './store/generic/config';
|
|
12
|
-
import TooltipSelect from './components/TooltipSelect/TooltipSelect';
|
|
13
12
|
import * as SyncGroups from './store/generic/synchronizationGroups';
|
|
14
13
|
import coreModuleConfig from './store/coreModuleConfig';
|
|
15
14
|
import { LayerManagerConnect, LayerManagerMapButtonConnect } from './components/LayerManager';
|
|
@@ -28,7 +27,6 @@ export * from './components/ComponentsLookUp';
|
|
|
28
27
|
export * from './components/ConfigurableMapWithSlider';
|
|
29
28
|
export { ConfigurableConnectedMap } from './components/ConfigurableConnectedMap';
|
|
30
29
|
export * from './store/mapStore/utils/helpers';
|
|
31
|
-
export { TooltipSelect };
|
|
32
30
|
export { SyncGroupViewerConnect } from './components/SyncGroups/SyncGroupViewerConnect';
|
|
33
31
|
export { SyncGroups };
|
|
34
32
|
export { store } from './store';
|
|
@@ -45,3 +43,5 @@ export * as defaultConfigurations from './utils/defaultConfigurations';
|
|
|
45
43
|
export * from './components/Providers/Providers';
|
|
46
44
|
export { default as uiModuleConfig } from './store/ui/config';
|
|
47
45
|
export { default as mapModuleConfig } from './store/mapStore/config';
|
|
46
|
+
export { default as synchronizationGroupsConfig } from './store/generic/config';
|
|
47
|
+
export * from './components/MapWarning/MapWarningProperties';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import { ServiceActions } from '../mapStore/types';
|
|
2
|
+
import { ServiceActions, SetLayersForService, MapStoreRemoveService } from '../mapStore/types';
|
|
3
3
|
export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
4
4
|
export declare function layerSelectServiceRemovedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
5
|
+
export declare function addServiceToLocalStorageSaga({ payload, }: SetLayersForService): void;
|
|
6
|
+
export declare function removeServiceFromLocalStorageSaga({ payload, }: MapStoreRemoveService): void;
|
|
5
7
|
export declare function rootSaga(): SagaIterator;
|
|
6
8
|
export default rootSaga;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MapActions, SetBboxPayload, MoveLayerPayload, SetMapDimensionPayload, UpdateAllMapDimensionsPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetActiveLayerIdPayload, MoveLayer, SetActiveLayerId, ToggleAutoUpdatePayload, ToggleAutoUpdate,
|
|
1
|
+
import { MapActions, SetBboxPayload, MoveLayerPayload, SetMapDimensionPayload, UpdateAllMapDimensionsPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetActiveLayerIdPayload, MoveLayer, SetActiveLayerId, ToggleAutoUpdatePayload, ToggleAutoUpdate, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationDelayPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, ToggleTimestepAutoPayload, ToggleTimestepAuto, ToggleTimeSliderHoverPayload, ToggleTimeSliderHover, SetTimeSliderCenterTimePayload, SetTimeSliderSecondsPerPxPayload, SetTimeSliderDataScaleToSecondsPerPxPayload, MapPinLocationPayload, DisableMapPinPayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Registers the map in the store and creates the map state
|
|
4
4
|
*
|
|
@@ -70,13 +70,6 @@ export declare const setActiveLayerId: (payload: SetActiveLayerIdPayload) => Set
|
|
|
70
70
|
* @param {object} payload object with mapId: string, shouldAutoUpdate: boolean
|
|
71
71
|
*/
|
|
72
72
|
export declare const toggleAutoUpdate: (payload: ToggleAutoUpdatePayload) => ToggleAutoUpdate;
|
|
73
|
-
/**
|
|
74
|
-
* Toggles loop state for map
|
|
75
|
-
*
|
|
76
|
-
* Example: toggleLoop({ mapId: 'mapId1', shouldLoop: true })
|
|
77
|
-
* @param {object} payload object with mapId: string, shouldLoop: boolean
|
|
78
|
-
*/
|
|
79
|
-
export declare const toggleLoop: (payload: ToggleLoopPayload) => ToggleLoop;
|
|
80
73
|
/**
|
|
81
74
|
*Sets the scale of a time slider with id for a map
|
|
82
75
|
*
|
|
@@ -401,27 +401,6 @@ export declare const isAutoUpdating: ((state: {
|
|
|
401
401
|
}> & {
|
|
402
402
|
clearCache: () => void;
|
|
403
403
|
};
|
|
404
|
-
/**
|
|
405
|
-
* Tells whether the "loop" behavior of animation is on/off
|
|
406
|
-
*
|
|
407
|
-
* Example: isLooping = isLooping(store, 'mapid_1')
|
|
408
|
-
* @param {object} store store: object - store object
|
|
409
|
-
* @param {string} mapId mapId: string - Id of the map
|
|
410
|
-
* @returns {boolean} returnType: boolean
|
|
411
|
-
*/
|
|
412
|
-
export declare const isLooping: ((state: {
|
|
413
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
414
|
-
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
415
|
-
ui?: import("../../ui/types").UIStoreType;
|
|
416
|
-
webmap?: WebMapState;
|
|
417
|
-
services?: import("../types").ServiceState;
|
|
418
|
-
layers?: import("../types").LayerState;
|
|
419
|
-
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
420
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
|
|
421
|
-
clearCache: () => void;
|
|
422
|
-
}> & {
|
|
423
|
-
clearCache: () => void;
|
|
424
|
-
};
|
|
425
404
|
/**
|
|
426
405
|
* Gets activeLayerId for map
|
|
427
406
|
*
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { ServiceActions } from '../types';
|
|
2
2
|
import { ServiceState } from './types';
|
|
3
|
-
export declare const initialState:
|
|
4
|
-
byId: {};
|
|
5
|
-
allIds: any[];
|
|
6
|
-
};
|
|
3
|
+
export declare const initialState: ServiceState;
|
|
7
4
|
export declare const WEBMAPJS_REDUCERNAME = "react-webmapjs";
|
|
8
|
-
export declare const reducer: (state:
|
|
9
|
-
byId: {};
|
|
10
|
-
allIds: any[];
|
|
11
|
-
}, action: ServiceActions) => ServiceState;
|
|
5
|
+
export declare const reducer: (state: ServiceState, action: ServiceActions) => ServiceState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Style } from '@opengeoweb/webmap';
|
|
2
|
-
import { ServiceState, ServiceLayer,
|
|
2
|
+
import { ServiceState, ServiceLayer, ReduxService } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves all serviceIds
|
|
5
5
|
*
|
|
@@ -45,7 +45,7 @@ export declare const getServices: ((state: {
|
|
|
45
45
|
*
|
|
46
46
|
* Example: service = getServiceByName(store, 'serviceName')
|
|
47
47
|
* @param {object} store store: object - Store object
|
|
48
|
-
* @returns {
|
|
48
|
+
* @returns {ReduxService} returnType: Service
|
|
49
49
|
*/
|
|
50
50
|
export declare const getServiceByName: ((state: {
|
|
51
51
|
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
@@ -55,7 +55,7 @@ export declare const getServiceByName: ((state: {
|
|
|
55
55
|
services?: ServiceState;
|
|
56
56
|
layers?: import("../types").LayerState;
|
|
57
57
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
58
|
-
}, params_0: string) =>
|
|
58
|
+
}, params_0: string) => ReduxService) & import("reselect").OutputSelectorFields<(args_0: ServiceState, args_1: string) => ReduxService & {
|
|
59
59
|
clearCache: () => void;
|
|
60
60
|
}> & {
|
|
61
61
|
clearCache: () => void;
|
|
@@ -76,7 +76,7 @@ export declare const getLayersFromService: ((state: {
|
|
|
76
76
|
services?: ServiceState;
|
|
77
77
|
layers?: import("../types").LayerState;
|
|
78
78
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
79
|
-
}, params_0: string) => ServiceLayer[]) & import("reselect").OutputSelectorFields<((args_0:
|
|
79
|
+
}, params_0: string) => ServiceLayer[]) & import("reselect").OutputSelectorFields<((args_0: ReduxService) => ServiceLayer[]) & {
|
|
80
80
|
clearCache: () => void;
|
|
81
81
|
}> & {
|
|
82
82
|
clearCache: () => void;
|
|
@@ -141,13 +141,11 @@ export declare const getServicesInArray: ((state: {
|
|
|
141
141
|
layers?: import("../types").LayerState;
|
|
142
142
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
143
143
|
}) => {
|
|
144
|
-
id: string;
|
|
145
144
|
name: string;
|
|
146
|
-
|
|
145
|
+
serviceUrl: string;
|
|
147
146
|
}[]) & import("reselect").OutputSelectorFields<((args_0: ServiceState) => {
|
|
148
|
-
id: string;
|
|
149
147
|
name: string;
|
|
150
|
-
|
|
148
|
+
serviceUrl: string;
|
|
151
149
|
}[]) & {
|
|
152
150
|
clearCache: () => void;
|
|
153
151
|
}> & {
|
|
@@ -3,12 +3,11 @@ import { Action } from 'redux';
|
|
|
3
3
|
import type { UpdateLayerInfo } from '../types';
|
|
4
4
|
import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_REMOVE_SERVICE } from './constants';
|
|
5
5
|
export interface Services {
|
|
6
|
-
[key: string]:
|
|
6
|
+
[key: string]: ReduxService;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
9
|
-
id?: string;
|
|
8
|
+
export interface ReduxService {
|
|
10
9
|
name?: string;
|
|
11
|
-
|
|
10
|
+
serviceUrl?: string;
|
|
12
11
|
active?: boolean;
|
|
13
12
|
layers?: ServiceLayer[];
|
|
14
13
|
}
|
|
@@ -29,21 +28,20 @@ export interface ServiceState {
|
|
|
29
28
|
allIds: string[];
|
|
30
29
|
}
|
|
31
30
|
export interface SetLayersForServicePayload {
|
|
32
|
-
id: string;
|
|
33
31
|
name: string;
|
|
34
|
-
|
|
32
|
+
serviceUrl: string;
|
|
35
33
|
layers: ServiceLayer[];
|
|
34
|
+
isUserAddedService: boolean;
|
|
36
35
|
}
|
|
37
|
-
interface SetLayersForService extends Action {
|
|
36
|
+
export interface SetLayersForService extends Action {
|
|
38
37
|
type: typeof MAP_SERVICES_SET_LAYERS;
|
|
39
38
|
payload: SetLayersForServicePayload;
|
|
40
39
|
}
|
|
41
40
|
export interface MapStoreRemoveServicePayload {
|
|
42
41
|
serviceUrl: string;
|
|
43
42
|
}
|
|
44
|
-
interface MapStoreRemoveService extends Action {
|
|
43
|
+
export interface MapStoreRemoveService extends Action {
|
|
45
44
|
type: typeof MAP_SERVICES_REMOVE_SERVICE;
|
|
46
45
|
payload: MapStoreRemoveServicePayload;
|
|
47
46
|
}
|
|
48
47
|
export declare type ServiceActions = SetLayersForService | UpdateLayerInfo | MapStoreRemoveService;
|
|
49
|
-
export {};
|
|
@@ -4,6 +4,8 @@ export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
|
4
4
|
export declare const generateLayerId: () => string;
|
|
5
5
|
export declare const generateMapId: () => string;
|
|
6
6
|
export declare const generateTimesliderId: () => string;
|
|
7
|
+
export declare const generateServiceId: () => string;
|
|
8
|
+
export declare const generateTimeSeriesId: () => string;
|
|
7
9
|
/**
|
|
8
10
|
* Registers a WMJSLayer in a lookuptable with a layerId
|
|
9
11
|
* @param {WMLayer} wmLayer
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
2
|
import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG } from './constants';
|
|
3
|
-
export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'syncGroups';
|
|
3
|
+
export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups';
|
|
4
4
|
export declare type Source = 'app' | 'module';
|
|
5
5
|
export interface UIType {
|
|
6
6
|
type: DialogType;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const availableDefaultBaseLayers: import("../store/mapStore/types").Layer[];
|
|
2
|
-
export declare const preloadedDefaultBaseServices: import("
|
|
3
|
-
export declare const preloadedDefaultMapServices: import("
|
|
2
|
+
export declare const preloadedDefaultBaseServices: import("../components/WMSLoader/services").Service[];
|
|
3
|
+
export declare const preloadedDefaultMapServices: import("../components/WMSLoader/services").Service[];
|