@opengeoweb/core 2.5.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 +424 -545
- package/index.umd.js +470 -594
- 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/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/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 +2 -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 +5 -8
- package/lib/store/mapStore/utils/helpers.d.ts +2 -0
- 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 -3
- package/lib/{components/TooltipSelect/TooltipSelect.spec.d.ts → utils/localStorage.spec.d.ts} +0 -0
- package/lib/utils/types.d.ts +4 -5
- package/package.json +8 -8
- 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>;
|
|
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,7 +1,8 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import { ServiceActions, SetLayersForService } 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
5
|
export declare function addServiceToLocalStorageSaga({ payload, }: SetLayersForService): void;
|
|
6
|
+
export declare function removeServiceFromLocalStorageSaga({ payload, }: MapStoreRemoveService): void;
|
|
6
7
|
export declare function rootSaga(): SagaIterator;
|
|
7
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,9 +28,8 @@ 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[];
|
|
36
34
|
isUserAddedService: boolean;
|
|
37
35
|
}
|
|
@@ -42,9 +40,8 @@ export interface SetLayersForService extends Action {
|
|
|
42
40
|
export interface MapStoreRemoveServicePayload {
|
|
43
41
|
serviceUrl: string;
|
|
44
42
|
}
|
|
45
|
-
interface MapStoreRemoveService extends Action {
|
|
43
|
+
export interface MapStoreRemoveService extends Action {
|
|
46
44
|
type: typeof MAP_SERVICES_REMOVE_SERVICE;
|
|
47
45
|
payload: MapStoreRemoveServicePayload;
|
|
48
46
|
}
|
|
49
47
|
export declare type ServiceActions = SetLayersForService | UpdateLayerInfo | MapStoreRemoveService;
|
|
50
|
-
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
|
|
@@ -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[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Style, WMLayer } from '@opengeoweb/webmap';
|
|
1
|
+
import { LayerOptions, Style, WMLayer } from '@opengeoweb/webmap';
|
|
2
2
|
import { Service } from '../components/WMSLoader/services';
|
|
3
|
-
import { LayerType } from '../store/mapStore/types';
|
|
3
|
+
import { Layer, LayerType, Services } from '../store/mapStore/types';
|
|
4
4
|
export declare const defaultReduxLayerRadarColor: {
|
|
5
5
|
service: string;
|
|
6
6
|
name: string;
|
|
@@ -18,209 +18,20 @@ export declare const defaultReduxLayerRadarColor: {
|
|
|
18
18
|
}[];
|
|
19
19
|
id: string;
|
|
20
20
|
};
|
|
21
|
-
export declare const defaultReduxLayerRadarKNMI:
|
|
22
|
-
service: string;
|
|
23
|
-
name: string;
|
|
24
|
-
title: string;
|
|
25
|
-
format: string;
|
|
26
|
-
style: string;
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
layerType: LayerType;
|
|
29
|
-
dimensions: {
|
|
30
|
-
name: string;
|
|
31
|
-
units: string;
|
|
32
|
-
currentValue: string;
|
|
33
|
-
}[];
|
|
34
|
-
styles: {
|
|
35
|
-
title: string;
|
|
36
|
-
name: string;
|
|
37
|
-
legendURL: string;
|
|
38
|
-
abstract: string;
|
|
39
|
-
}[];
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
21
|
+
export declare const defaultReduxLayerRadarKNMI: Layer;
|
|
42
22
|
export declare const WmdefaultReduxLayerRadarKNMI: WMLayer;
|
|
43
23
|
export declare const makeGeoservicesRadarLayer: () => WMLayer;
|
|
44
24
|
export declare const styleListForRADNL25PCPCMLayer: Style[];
|
|
45
25
|
export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
|
|
46
|
-
export declare const defaultReduxServices:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
name: string;
|
|
50
|
-
service: string;
|
|
51
|
-
layers: ({
|
|
52
|
-
name: string;
|
|
53
|
-
text: string;
|
|
54
|
-
leaf: boolean;
|
|
55
|
-
path: any[];
|
|
56
|
-
keywords: string[];
|
|
57
|
-
abstract: string;
|
|
58
|
-
styles?: undefined;
|
|
59
|
-
} | {
|
|
60
|
-
name: string;
|
|
61
|
-
text: string;
|
|
62
|
-
leaf: boolean;
|
|
63
|
-
path: any[];
|
|
64
|
-
keywords: string[];
|
|
65
|
-
abstract: string;
|
|
66
|
-
styles: Style[];
|
|
67
|
-
} | {
|
|
68
|
-
name: string;
|
|
69
|
-
text: string;
|
|
70
|
-
leaf: boolean;
|
|
71
|
-
path: any[];
|
|
72
|
-
keywords: any[];
|
|
73
|
-
abstract?: undefined;
|
|
74
|
-
styles?: undefined;
|
|
75
|
-
})[];
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
export declare const multiDimensionLayer: {
|
|
79
|
-
service: string;
|
|
80
|
-
id: string;
|
|
81
|
-
name: string;
|
|
82
|
-
title: string;
|
|
83
|
-
layerType: LayerType;
|
|
84
|
-
enabled: boolean;
|
|
85
|
-
dimensions: ({
|
|
86
|
-
name: string;
|
|
87
|
-
units: string;
|
|
88
|
-
currentValue: string;
|
|
89
|
-
values: string;
|
|
90
|
-
} | {
|
|
91
|
-
name: string;
|
|
92
|
-
units: string;
|
|
93
|
-
currentValue: string;
|
|
94
|
-
values?: undefined;
|
|
95
|
-
})[];
|
|
96
|
-
styles: {
|
|
97
|
-
title: string;
|
|
98
|
-
name: string;
|
|
99
|
-
legendURL: string;
|
|
100
|
-
abstract: string;
|
|
101
|
-
}[];
|
|
102
|
-
};
|
|
103
|
-
export declare const flDimensionLayer: {
|
|
104
|
-
service: string;
|
|
105
|
-
id: string;
|
|
106
|
-
name: string;
|
|
107
|
-
title: string;
|
|
108
|
-
layerType: LayerType;
|
|
109
|
-
enabled: boolean;
|
|
110
|
-
dimensions: ({
|
|
111
|
-
name: string;
|
|
112
|
-
units: string;
|
|
113
|
-
currentValue: string;
|
|
114
|
-
values: string;
|
|
115
|
-
} | {
|
|
116
|
-
name: string;
|
|
117
|
-
units: string;
|
|
118
|
-
currentValue: string;
|
|
119
|
-
values?: undefined;
|
|
120
|
-
})[];
|
|
121
|
-
};
|
|
26
|
+
export declare const defaultReduxServices: Services;
|
|
27
|
+
export declare const multiDimensionLayer: Layer;
|
|
28
|
+
export declare const flDimensionLayer: Layer;
|
|
122
29
|
export declare const WmMultiDimensionLayer: WMLayer;
|
|
123
|
-
export declare const multiDimensionLayer2:
|
|
124
|
-
|
|
125
|
-
id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
layerType: LayerType;
|
|
128
|
-
dimensions: ({
|
|
129
|
-
name: string;
|
|
130
|
-
units: string;
|
|
131
|
-
currentValue: string;
|
|
132
|
-
values: string;
|
|
133
|
-
} | {
|
|
134
|
-
name: string;
|
|
135
|
-
units: string;
|
|
136
|
-
currentValue: string;
|
|
137
|
-
values?: undefined;
|
|
138
|
-
})[];
|
|
139
|
-
styles: {
|
|
140
|
-
title: string;
|
|
141
|
-
name: string;
|
|
142
|
-
legendURL: string;
|
|
143
|
-
abstract: string;
|
|
144
|
-
}[];
|
|
145
|
-
};
|
|
146
|
-
export declare const multiDimensionLayer3: {
|
|
147
|
-
service: string;
|
|
148
|
-
id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
layerType: LayerType;
|
|
151
|
-
dimensions: ({
|
|
152
|
-
name: string;
|
|
153
|
-
units: string;
|
|
154
|
-
currentValue: string;
|
|
155
|
-
values: string;
|
|
156
|
-
timeInterval?: undefined;
|
|
157
|
-
} | {
|
|
158
|
-
name: string;
|
|
159
|
-
units: string;
|
|
160
|
-
currentValue: string;
|
|
161
|
-
timeInterval: {
|
|
162
|
-
year: number;
|
|
163
|
-
month: number;
|
|
164
|
-
day: number;
|
|
165
|
-
hour: number;
|
|
166
|
-
minute: number;
|
|
167
|
-
second: number;
|
|
168
|
-
isRegularInterval: boolean;
|
|
169
|
-
getTime: any;
|
|
170
|
-
toISO8601: any;
|
|
171
|
-
};
|
|
172
|
-
values?: undefined;
|
|
173
|
-
})[];
|
|
174
|
-
styles: {
|
|
175
|
-
title: string;
|
|
176
|
-
name: string;
|
|
177
|
-
legendURL: string;
|
|
178
|
-
abstract: string;
|
|
179
|
-
}[];
|
|
180
|
-
};
|
|
30
|
+
export declare const multiDimensionLayer2: Layer;
|
|
31
|
+
export declare const multiDimensionLayer3: Layer;
|
|
181
32
|
export declare const WmMultiDimensionLayer2: WMLayer;
|
|
182
33
|
export declare const WmMultiDimensionLayer3: WMLayer;
|
|
183
|
-
export declare const WmMultiDimensionServices:
|
|
184
|
-
|
|
185
|
-
id: string;
|
|
186
|
-
name: string;
|
|
187
|
-
service: string;
|
|
188
|
-
layers: {
|
|
189
|
-
name: string;
|
|
190
|
-
text: string;
|
|
191
|
-
leaf: boolean;
|
|
192
|
-
path: any[];
|
|
193
|
-
}[];
|
|
194
|
-
};
|
|
195
|
-
'https://testservice': {
|
|
196
|
-
id: string;
|
|
197
|
-
name: string;
|
|
198
|
-
service: string;
|
|
199
|
-
layers: {
|
|
200
|
-
name: string;
|
|
201
|
-
text: string;
|
|
202
|
-
leaf: boolean;
|
|
203
|
-
path: any[];
|
|
204
|
-
}[];
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
export declare const layerWithoutTimeDimension: {
|
|
208
|
-
service: string;
|
|
209
|
-
id: string;
|
|
210
|
-
name: string;
|
|
211
|
-
layerType: LayerType;
|
|
212
|
-
dimensions: {
|
|
213
|
-
name: string;
|
|
214
|
-
units: string;
|
|
215
|
-
currentValue: string;
|
|
216
|
-
values: string;
|
|
217
|
-
}[];
|
|
218
|
-
styles: {
|
|
219
|
-
title: string;
|
|
220
|
-
name: string;
|
|
221
|
-
legendURL: string;
|
|
222
|
-
abstract: string;
|
|
223
|
-
}[];
|
|
224
|
-
};
|
|
34
|
+
export declare const WmMultiDimensionServices: Services;
|
|
35
|
+
export declare const layerWithoutTimeDimension: LayerOptions;
|
|
225
36
|
export declare const WmLayerWithoutTimeDimension: WMLayer;
|
|
226
37
|
export declare const defaultTestServices: Service[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Service } from '../components/WMSLoader/services';
|
|
1
2
|
import { Bbox, Layer } from '../store/mapStore/types';
|
|
2
|
-
import { FilteredMapPresets,
|
|
3
|
+
import { FilteredMapPresets, MapPresets, LayerDimension } from './types';
|
|
3
4
|
export declare const filterBaseLayers: (presetArray: unknown[]) => Layer[];
|
|
4
5
|
export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
|
|
5
6
|
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getUserAddedServices: () =>
|
|
3
|
-
export declare const setUserAddedServices: (services:
|
|
1
|
+
import { UserAddedServices } from './types';
|
|
2
|
+
export declare const getUserAddedServices: () => UserAddedServices;
|
|
3
|
+
export declare const setUserAddedServices: (services: UserAddedServices) => void;
|
package/lib/{components/TooltipSelect/TooltipSelect.spec.d.ts → utils/localStorage.spec.d.ts}
RENAMED
|
File without changes
|
package/lib/utils/types.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
+
import { Service } from '../components/WMSLoader/services';
|
|
1
2
|
import { Bbox, Dimension, Layer } from '../store/mapStore/types';
|
|
2
|
-
export interface Service {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
url: string;
|
|
6
|
-
}
|
|
7
3
|
export interface PresetLayer {
|
|
8
4
|
id?: string;
|
|
9
5
|
mapId?: string;
|
|
@@ -41,3 +37,6 @@ export interface FilteredMapPresets extends MapPreset {
|
|
|
41
37
|
mapLayers?: Layer[];
|
|
42
38
|
layerDimensions?: LayerDimension[];
|
|
43
39
|
}
|
|
40
|
+
export interface UserAddedServices {
|
|
41
|
+
[id: string]: Service;
|
|
42
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,26 +13,26 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@opengeoweb/theme": "2.
|
|
16
|
+
"@opengeoweb/theme": "2.6.0",
|
|
17
17
|
"@mui/material": "^5.2.8",
|
|
18
18
|
"@mui/styles": "^5.2.3",
|
|
19
19
|
"@mui/icons-material": "^5.2.5",
|
|
20
20
|
"react-redux": "7.2.2",
|
|
21
21
|
"moment": "^2.29.0",
|
|
22
22
|
"react-intl": "^5.17.5",
|
|
23
|
-
"@opengeoweb/
|
|
24
|
-
"throttle-debounce": "^3.0.1",
|
|
25
|
-
"proj4": "^2.6.2",
|
|
26
|
-
"react-sortablejs": "^6.0.0",
|
|
27
|
-
"@opengeoweb/shared": "2.5.0",
|
|
23
|
+
"@opengeoweb/shared": "2.6.0",
|
|
28
24
|
"react-draggable": "^4.4.3",
|
|
29
25
|
"re-resizable": "^6.9.0",
|
|
30
26
|
"lodash": "^4.17.20",
|
|
31
|
-
"@opengeoweb/form-fields": "2.
|
|
27
|
+
"@opengeoweb/form-fields": "2.6.0",
|
|
32
28
|
"react-hook-form": "^6.12.1",
|
|
33
29
|
"moment-timezone": "^0.5.31",
|
|
34
30
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
35
31
|
"axios": "^0.25.0",
|
|
32
|
+
"@opengeoweb/webmap": "2.6.0",
|
|
33
|
+
"throttle-debounce": "^3.0.1",
|
|
34
|
+
"proj4": "^2.6.2",
|
|
35
|
+
"react-sortablejs": "^6.0.0",
|
|
36
36
|
"redux-dynamic-modules": "^5.2.0",
|
|
37
37
|
"redux": "^4.0.4",
|
|
38
38
|
"immer": "^9.0.6",
|