@opengeoweb/store 6.0.0 → 6.0.2
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.d.ts +1 -0
- package/{index.js → index.esm.js} +281 -1253
- package/package.json +4 -5
- package/src/store/app/reducer.d.ts +1 -1
- package/src/store/coreModuleConfig.d.ts +1 -1
- package/src/store/drawings/config.d.ts +4 -0
- package/src/store/drawings/index.d.ts +4 -0
- package/src/store/drawings/reducer.d.ts +9 -0
- package/src/store/drawings/selectors.d.ts +3 -0
- package/src/store/drawings/testUtils.d.ts +1 -0
- package/src/store/drawings/types.d.ts +12 -0
- package/src/store/generic/selectors.d.ts +3 -13
- package/src/store/generic/synchronizationActions/actions.d.ts +1 -1
- package/src/store/generic/synchronizationActions/types.d.ts +1 -1
- package/src/store/generic/synchronizationGroups/selector.d.ts +2 -8
- package/src/store/generic/synchronizationGroups/selectors.d.ts +5 -40
- package/src/store/generic/synchronizationGroups/types.d.ts +3 -3
- package/src/store/generic/types.d.ts +3 -3
- package/src/store/index.d.ts +1 -1
- package/src/store/layerSelect/reducer.d.ts +1 -1
- package/src/store/layerSelect/selectors.d.ts +6 -48
- package/src/store/layerSelect/types.d.ts +5 -5
- package/src/store/mapStore/index.d.ts +0 -1
- package/src/store/mapStore/layers/index.d.ts +1 -0
- package/src/store/mapStore/layers/reducer.d.ts +1 -1
- package/src/store/mapStore/layers/selectors.d.ts +24 -185
- package/src/store/mapStore/layers/types.d.ts +0 -16
- package/src/store/mapStore/layers/utils.d.ts +7 -1
- package/src/store/mapStore/map/filterLayers.d.ts +1 -1
- package/src/store/mapStore/map/index.d.ts +1 -0
- package/src/store/mapStore/map/selectors.d.ts +49 -392
- package/src/store/mapStore/map/types.d.ts +3 -3
- package/src/store/mapStore/map/utils.d.ts +5 -5
- package/src/store/mapStore/service/reducer.d.ts +1 -1
- package/src/store/mapStore/service/selectors.d.ts +7 -48
- package/src/store/mapStore/service/types.d.ts +2 -2
- package/src/store/mapStore/storeTestSettings.d.ts +2 -6
- package/src/store/mapStore/storeTestUtils.d.ts +2 -2
- package/src/store/router/reducer.d.ts +1 -1
- package/src/store/router/types.d.ts +1 -1
- package/src/store/snackbar/reducer.d.ts +1 -1
- package/src/store/snackbar/selectors.d.ts +1 -3
- package/src/store/snackbar/types.d.ts +1 -1
- package/src/store/types.d.ts +2 -1
- package/src/store/ui/selectors.d.ts +7 -68
- package/src/store/ui/types.d.ts +4 -4
- package/src/store/getCapabilities/getCapabilities.d.ts +0 -18
- package/src/store/getCapabilities/index.d.ts +0 -2
- package/src/store/getCapabilities/mocks/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +0 -1
- package/src/store/getCapabilities/mocks/index.d.ts +0 -89
- package/src/store/getCapabilities/mocks/mockGetCapabilities.d.ts +0 -88
- package/src/store/mapStore/utils/helpers.d.ts +0 -68
- package/src/store/mapStore/utils/index.d.ts +0 -2
- package/src/store/mapStore/utils/tilesettings.d.ts +0 -334
- /package/src/store/{getCapabilities/getCapabilities.spec.d.ts → drawings/reducer.spec.d.ts} +0 -0
- /package/src/store/{mapStore/utils/helpers.spec.d.ts → drawings/selectors.spec.d.ts} +0 -0
|
@@ -46,7 +46,7 @@ export interface WebMap {
|
|
|
46
46
|
legendId?: string;
|
|
47
47
|
dockedLayerManagerSize?: DockedLayerManagerSize;
|
|
48
48
|
}
|
|
49
|
-
export
|
|
49
|
+
export type DockedLayerManagerSize = 'sizeSmall' | 'sizeMedium' | 'sizeLarge' | '';
|
|
50
50
|
export interface WebMapState {
|
|
51
51
|
byId: Record<string, WebMap>;
|
|
52
52
|
allIds: string[];
|
|
@@ -71,7 +71,7 @@ export declare enum AnimationLength {
|
|
|
71
71
|
Hours12 = 720,
|
|
72
72
|
Hours24 = 1440
|
|
73
73
|
}
|
|
74
|
-
export
|
|
74
|
+
export type SpeedFactorType = 0.1 | 0.2 | 0.5 | 1 | 2 | 4 | 8 | 16;
|
|
75
75
|
export interface AnimationPayloadType {
|
|
76
76
|
duration?: number;
|
|
77
77
|
interval?: number;
|
|
@@ -126,7 +126,7 @@ export interface UpdateAllMapDimensionsPayload {
|
|
|
126
126
|
mapId: string;
|
|
127
127
|
dimensions: Dimension[];
|
|
128
128
|
}
|
|
129
|
-
export
|
|
129
|
+
export type TimeListType = {
|
|
130
130
|
name: string;
|
|
131
131
|
value: string;
|
|
132
132
|
};
|
|
@@ -3,6 +3,7 @@ import { Bbox, Dimension } from './types';
|
|
|
3
3
|
import { Scale } from './enums';
|
|
4
4
|
import type { WebMapState, WebMap, SpeedFactorType } from '../types';
|
|
5
5
|
import type { Layer } from '../layers/types';
|
|
6
|
+
export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
6
7
|
export interface CreateMapProps {
|
|
7
8
|
id: string;
|
|
8
9
|
isAnimating?: boolean;
|
|
@@ -57,7 +58,7 @@ export declare const produceDraftStateSetWebMapDimension: (draft: WebMapState, m
|
|
|
57
58
|
* @param draft The WebMapState containing the state of all maps.
|
|
58
59
|
* @param layerId The layer Id to find in the maps
|
|
59
60
|
*/
|
|
60
|
-
export declare const findMapIdFromLayerId: (draft?: WebMapState
|
|
61
|
+
export declare const findMapIdFromLayerId: (draft?: WebMapState, layerId?: string) => string;
|
|
61
62
|
export declare const produceDraftStateSetMapDimensionFromLayerChangeDimension: (draft: WebMapState, layerId: string, dimension: Dimension) => void;
|
|
62
63
|
/**
|
|
63
64
|
* Returns array with new order of swapped elements
|
|
@@ -73,7 +74,7 @@ export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
|
|
|
73
74
|
* Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
|
|
74
75
|
*/
|
|
75
76
|
export declare const getSpeedDelay: (speedFactor: SpeedFactorType) => number;
|
|
76
|
-
export declare const roundWithTimeStep: (unixTime: number, timeStep: number, type?: string
|
|
77
|
+
export declare const roundWithTimeStep: (unixTime: number, timeStep: number, type?: string) => number;
|
|
77
78
|
/**
|
|
78
79
|
* In this Map collection all fundamental scales
|
|
79
80
|
* (Scale.Minutes5 ... Scale.Year) are mapped with their corresponding
|
|
@@ -82,9 +83,8 @@ export declare const roundWithTimeStep: (unixTime: number, timeStep: number, typ
|
|
|
82
83
|
*/
|
|
83
84
|
export declare const secondsPerPxToScale: Map<number, Scale>;
|
|
84
85
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* to make it easier in some parts GeoWeb to fetch a secondsPerpx for
|
|
86
|
+
* Creates a reverse mapping of scales to their corresponding secondsPerPx
|
|
87
|
+
* values to make it easier in some parts GeoWeb to fetch a secondsPerpx for
|
|
88
88
|
* a certain fundamental scale (Scale.Minutes5 ... Scale.year)
|
|
89
89
|
* @returns an Object, where names are fundamental scale values (0 - 7) and
|
|
90
90
|
* values are their corresponding secondsPerPx numbers.
|
|
@@ -8,4 +8,4 @@ export declare const serviceActions: import("@reduxjs/toolkit").CaseReducerActio
|
|
|
8
8
|
mapStoreRemoveService: (draft: Draft<ServiceState>, action: PayloadAction<MapStoreRemoveServicePayload>) => void;
|
|
9
9
|
fetchInitialServices: (draft: Draft<ServiceState>, action: PayloadAction<FetchInitialServicesPayload>) => void;
|
|
10
10
|
}, "serviceReducer">;
|
|
11
|
-
export
|
|
11
|
+
export type ServiceActions = ReturnType<typeof serviceActions.mapStoreRemoveService> | ReturnType<typeof serviceActions.serviceSetLayers> | ReturnType<typeof layerActions.onUpdateLayerInformation>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Style } from '@opengeoweb/webmap';
|
|
2
|
+
import type { CoreAppStore } from '../../types';
|
|
2
3
|
import { ServiceState, ReduxService } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* Retrieves all serviceIds
|
|
@@ -7,14 +8,7 @@ import { ServiceState, ReduxService } from './types';
|
|
|
7
8
|
* @param {object} store store: object - object from which the service state will be extracted
|
|
8
9
|
* @returns {array} returnType: array - an array of all serviceIds
|
|
9
10
|
*/
|
|
10
|
-
export declare const getServiceIds: ((state: {
|
|
11
|
-
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
12
|
-
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
13
|
-
webmap?: import("../types").WebMapState | undefined;
|
|
14
|
-
services?: ServiceState | undefined;
|
|
15
|
-
layers?: import("../types").LayerState | undefined;
|
|
16
|
-
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
17
|
-
}) => string[]) & import("reselect").OutputSelectorFields<(args_0: ServiceState) => string[], {
|
|
11
|
+
export declare const getServiceIds: ((state: CoreAppStore) => string[]) & import("reselect").OutputSelectorFields<(args_0: ServiceState) => string[], {
|
|
18
12
|
clearCache: () => void;
|
|
19
13
|
}> & {
|
|
20
14
|
clearCache: () => void;
|
|
@@ -26,14 +20,7 @@ export declare const getServiceIds: ((state: {
|
|
|
26
20
|
* @param {object} store store: object - Store object
|
|
27
21
|
* @returns {object} returnType: ServiceState
|
|
28
22
|
*/
|
|
29
|
-
export declare const getServices: ((state: {
|
|
30
|
-
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
31
|
-
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
32
|
-
webmap?: import("../types").WebMapState | undefined;
|
|
33
|
-
services?: ServiceState | undefined;
|
|
34
|
-
layers?: import("../types").LayerState | undefined;
|
|
35
|
-
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
36
|
-
}) => import("./types").Services) & import("reselect").OutputSelectorFields<(args_0: ServiceState) => import("./types").Services, {
|
|
23
|
+
export declare const getServices: ((state: CoreAppStore) => import("./types").Services) & import("reselect").OutputSelectorFields<(args_0: ServiceState) => import("./types").Services, {
|
|
37
24
|
clearCache: () => void;
|
|
38
25
|
}> & {
|
|
39
26
|
clearCache: () => void;
|
|
@@ -45,14 +32,7 @@ export declare const getServices: ((state: {
|
|
|
45
32
|
* @param {object} store store: object - Store object
|
|
46
33
|
* @returns {ReduxService} returnType: Service
|
|
47
34
|
*/
|
|
48
|
-
export declare const getServiceByName: ((state: {
|
|
49
|
-
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
50
|
-
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
51
|
-
webmap?: import("../types").WebMapState | undefined;
|
|
52
|
-
services?: ServiceState | undefined;
|
|
53
|
-
layers?: import("../types").LayerState | undefined;
|
|
54
|
-
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
55
|
-
}, params_0: string) => ReduxService) & import("reselect").OutputSelectorFields<(args_0: ServiceState, args_1: string) => ReduxService, {
|
|
35
|
+
export declare const getServiceByName: ((state: CoreAppStore, serviceUrl: string) => ReduxService) & import("reselect").OutputSelectorFields<(args_0: ServiceState, args_1: string) => ReduxService, {
|
|
56
36
|
clearCache: () => void;
|
|
57
37
|
}> & {
|
|
58
38
|
clearCache: () => void;
|
|
@@ -65,14 +45,7 @@ export declare const getServiceByName: ((state: {
|
|
|
65
45
|
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
66
46
|
* @returns {array} returnType: ServiceLayer[] - All layers within the service object.
|
|
67
47
|
*/
|
|
68
|
-
export declare const getLayersFromServiceSelector: ((state: {
|
|
69
|
-
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
70
|
-
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
71
|
-
webmap?: import("../types").WebMapState | undefined;
|
|
72
|
-
services?: ServiceState | undefined;
|
|
73
|
-
layers?: import("../types").LayerState | undefined;
|
|
74
|
-
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
75
|
-
}, params_0: string) => import("@opengeoweb/webmap").LayerProps[]) & import("reselect").OutputSelectorFields<(args_0: ReduxService) => import("@opengeoweb/webmap").LayerProps[], {
|
|
48
|
+
export declare const getLayersFromServiceSelector: ((state: CoreAppStore, serviceUrl: string) => import("@opengeoweb/webmap").LayerProps[]) & import("reselect").OutputSelectorFields<(args_0: ReduxService) => import("@opengeoweb/webmap").LayerProps[], {
|
|
76
49
|
clearCache: () => void;
|
|
77
50
|
}> & {
|
|
78
51
|
clearCache: () => void;
|
|
@@ -86,14 +59,7 @@ export declare const getLayersFromServiceSelector: ((state: {
|
|
|
86
59
|
* @param {string} layerName layerName: string - Name of the layer in the service
|
|
87
60
|
* @returns {ServiceLayer} returnType: ServiceLayer - The layer from the service object.
|
|
88
61
|
*/
|
|
89
|
-
export declare const getLayerFromService: ((state: {
|
|
90
|
-
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
91
|
-
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
92
|
-
webmap?: import("../types").WebMapState | undefined;
|
|
93
|
-
services?: ServiceState | undefined;
|
|
94
|
-
layers?: import("../types").LayerState | undefined;
|
|
95
|
-
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
96
|
-
}, params_0: string, params_1: string) => import("@opengeoweb/webmap").LayerProps) & import("reselect").OutputSelectorFields<(args_0: import("@opengeoweb/webmap").LayerProps[], args_1: string, args_2: string) => import("@opengeoweb/webmap").LayerProps, {
|
|
62
|
+
export declare const getLayerFromService: ((state: CoreAppStore, serviceUrl: string, layerName: string) => import("@opengeoweb/webmap").LayerProps) & import("reselect").OutputSelectorFields<(args_0: import("@opengeoweb/webmap").LayerProps[], args_1: string, args_2: string) => import("@opengeoweb/webmap").LayerProps, {
|
|
97
63
|
clearCache: () => void;
|
|
98
64
|
}> & {
|
|
99
65
|
clearCache: () => void;
|
|
@@ -107,14 +73,7 @@ export declare const getLayerFromService: ((state: {
|
|
|
107
73
|
* @param {string} layerName layerName: string - Name of the layer in the service
|
|
108
74
|
* @returns {array} returnType: Style[] - array containing layer styles
|
|
109
75
|
*/
|
|
110
|
-
export declare const getLayerStyles: ((state: {
|
|
111
|
-
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
112
|
-
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
113
|
-
webmap?: import("../types").WebMapState | undefined;
|
|
114
|
-
services?: ServiceState | undefined;
|
|
115
|
-
layers?: import("../types").LayerState | undefined;
|
|
116
|
-
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
117
|
-
}, params_0: string, params_1: string) => Style[]) & import("reselect").OutputSelectorFields<(args_0: import("@opengeoweb/webmap").LayerProps) => Style[], {
|
|
76
|
+
export declare const getLayerStyles: ((state: CoreAppStore, serviceUrl: string, layerName: string) => Style[]) & import("reselect").OutputSelectorFields<(args_0: import("@opengeoweb/webmap").LayerProps) => Style[], {
|
|
118
77
|
clearCache: () => void;
|
|
119
78
|
}> & {
|
|
120
79
|
clearCache: () => void;
|
|
@@ -9,7 +9,7 @@ export interface InitialService {
|
|
|
9
9
|
export interface Services {
|
|
10
10
|
[key: string]: ReduxService;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type ServiceScope = 'user' | 'system';
|
|
13
13
|
export interface ReduxService {
|
|
14
14
|
name?: string;
|
|
15
15
|
serviceUrl?: string;
|
|
@@ -20,7 +20,7 @@ export interface ReduxService {
|
|
|
20
20
|
/**
|
|
21
21
|
* Used in the services object of webmap to keep a list of available layers in the service
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export type ServiceLayer = LayerProps;
|
|
24
24
|
export interface ServiceState {
|
|
25
25
|
byId: Services;
|
|
26
26
|
allIds: string[];
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Style, WMLayer } from '@opengeoweb/webmap';
|
|
2
2
|
import { serviceTypes } from './service';
|
|
3
|
-
export declare const WmMultiDimensionLayer: WMLayer;
|
|
4
|
-
export declare const layerWithoutTimeDimension: LayerOptions;
|
|
5
|
-
export declare const WmLayerWithoutTimeDimension: WMLayer;
|
|
3
|
+
export declare const WmLayerWithoutTimeDimension: WMLayer, WmMultiDimensionLayer: WMLayer, layerWithoutTimeDimension: import("@opengeoweb/webmap").LayerOptions;
|
|
6
4
|
export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
|
|
7
5
|
export declare const defaultReduxServices: serviceTypes.Services;
|
|
8
6
|
export declare const WmMultiDimensionLayer2: WMLayer;
|
|
9
|
-
export declare const styleListForRADNL25PCPCMLayer: Style[];
|
|
10
|
-
export declare const crsListForRADNL25PCPCMLayer: CoordinateReferenceSystem[];
|
|
@@ -4,7 +4,7 @@ import { mapTypes } from './map';
|
|
|
4
4
|
export declare const createLayersState: (layerId: string, props?: {}) => layerTypes.LayerState;
|
|
5
5
|
export declare const createMultipleLayersState: (layers: layerTypes.Layer[], mapId: string) => layerTypes.LayerState;
|
|
6
6
|
export declare const createWebmapState: (...mapIds: string[]) => mapTypes.WebMapState;
|
|
7
|
-
export declare const createMapDimensionsState: (dimensions?: mapTypes.Dimension[]
|
|
8
|
-
export declare const webmapStateWithAddedLayer: (layerType: layerTypes.LayerType, layerId: string, mapId: string, dimensions?: mapTypes.Dimension[]
|
|
7
|
+
export declare const createMapDimensionsState: (dimensions?: mapTypes.Dimension[], ...mapIds: string[]) => mapTypes.WebMapState;
|
|
8
|
+
export declare const webmapStateWithAddedLayer: (layerType: layerTypes.LayerType, layerId: string, mapId: string, dimensions?: mapTypes.Dimension[]) => mapTypes.WebMapState;
|
|
9
9
|
export declare const mockStateMapWithLayer: (layer: layerTypes.Layer, mapId: string) => CoreAppStore;
|
|
10
10
|
export declare const mockStateMapWithMultipleLayers: (layers: layerTypes.Layer[], mapId: string) => CoreAppStore;
|
|
@@ -6,4 +6,4 @@ export declare const reducer: import("redux").Reducer<{}, import("redux").AnyAct
|
|
|
6
6
|
export declare const routerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
7
7
|
navigateToUrl: (draft: Draft<unknown>, action: PayloadAction<NavigateToUrlPayload>) => void;
|
|
8
8
|
}, "router">;
|
|
9
|
-
export
|
|
9
|
+
export type RouterActions = ReturnType<typeof routerActions.navigateToUrl>;
|
|
@@ -8,4 +8,4 @@ export declare const snackbarActions: import("@reduxjs/toolkit").CaseReducerActi
|
|
|
8
8
|
triggerOpenSnackbarBySaga: (draft: Draft<SnackbarState>, action: PayloadAction<TriggerOpenSnackbarBySagaPayload>) => void;
|
|
9
9
|
closeSnackbar: (draft: Draft<SnackbarState>) => void;
|
|
10
10
|
}, "snackbar">;
|
|
11
|
-
export
|
|
11
|
+
export type SnackbarActions = ReturnType<typeof snackbarActions.openSnackbar> | ReturnType<typeof snackbarActions.triggerOpenSnackbarBySaga> | ReturnType<typeof snackbarActions.closeSnackbar>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { SnackbarModuleStore, SnackbarState } from './types';
|
|
2
2
|
export declare const getSnackbarStore: (store: SnackbarModuleStore) => SnackbarState;
|
|
3
3
|
export declare const getCurrentSnackbarMessages: (state: SnackbarModuleStore) => import("./types").SnackbarItem[];
|
|
4
|
-
export declare const getFirstSnackbarMessage: ((state: {
|
|
5
|
-
snackbar?: SnackbarState | undefined;
|
|
6
|
-
}) => import("./types").SnackbarItem | undefined) & import("reselect").OutputSelectorFields<(args_0: import("./types").SnackbarItem[]) => import("./types").SnackbarItem | undefined, {
|
|
4
|
+
export declare const getFirstSnackbarMessage: ((state: SnackbarModuleStore) => import("./types").SnackbarItem | undefined) & import("reselect").OutputSelectorFields<(args_0: import("./types").SnackbarItem[]) => import("./types").SnackbarItem | undefined, {
|
|
7
5
|
clearCache: () => void;
|
|
8
6
|
}> & {
|
|
9
7
|
clearCache: () => void;
|
package/src/store/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { WebMapStateModuleState } from './mapStore/types';
|
|
2
2
|
import type { SynchronizationGroupModuleState } from './generic/synchronizationGroups/types';
|
|
3
3
|
import type { uiTypes, layerSelectTypes } from '.';
|
|
4
|
-
|
|
4
|
+
import { DrawModuleStore } from './drawings/types';
|
|
5
|
+
export interface CoreAppStore extends SynchronizationGroupModuleState, uiTypes.UIModuleState, WebMapStateModuleState, layerSelectTypes.LayerSelectModuleState, DrawModuleStore {
|
|
5
6
|
}
|
|
@@ -17,14 +17,7 @@ export declare const getDialogDetailsByType: (store: CoreAppStore, dialogType: s
|
|
|
17
17
|
* @param {string} dialogType type of the dialog
|
|
18
18
|
* @returns {boolean} returnType: boolean
|
|
19
19
|
*/
|
|
20
|
-
export declare const getisDialogOpen: ((state: {
|
|
21
|
-
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
22
|
-
ui?: UIStoreType | undefined;
|
|
23
|
-
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
24
|
-
services?: import("../mapStore/types").ServiceState | undefined;
|
|
25
|
-
layers?: import("../mapStore/types").LayerState | undefined;
|
|
26
|
-
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
27
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
20
|
+
export declare const getisDialogOpen: ((state: CoreAppStore, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
28
21
|
clearCache: () => void;
|
|
29
22
|
}> & {
|
|
30
23
|
clearCache: () => void;
|
|
@@ -36,14 +29,7 @@ export declare const getisDialogOpen: ((state: {
|
|
|
36
29
|
* @param {string} dialogType type of the dialog
|
|
37
30
|
* @returns {string} returnType: string - the active map id
|
|
38
31
|
*/
|
|
39
|
-
export declare const getDialogMapId: ((state: {
|
|
40
|
-
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
41
|
-
ui?: UIStoreType | undefined;
|
|
42
|
-
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
43
|
-
services?: import("../mapStore/types").ServiceState | undefined;
|
|
44
|
-
layers?: import("../mapStore/types").LayerState | undefined;
|
|
45
|
-
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
46
|
-
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
32
|
+
export declare const getDialogMapId: ((state: CoreAppStore, dialogType: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
47
33
|
clearCache: () => void;
|
|
48
34
|
}> & {
|
|
49
35
|
clearCache: () => void;
|
|
@@ -55,14 +41,7 @@ export declare const getDialogMapId: ((state: {
|
|
|
55
41
|
* @param {DialogType} dialogType type of the dialog
|
|
56
42
|
* @returns {number} the higher the order number the higher the zIndex
|
|
57
43
|
*/
|
|
58
|
-
export declare const getDialogOrder: ((state: {
|
|
59
|
-
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
60
|
-
ui?: UIStoreType | undefined;
|
|
61
|
-
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
62
|
-
services?: import("../mapStore/types").ServiceState | undefined;
|
|
63
|
-
layers?: import("../mapStore/types").LayerState | undefined;
|
|
64
|
-
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
65
|
-
}, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number, {
|
|
44
|
+
export declare const getDialogOrder: ((state: CoreAppStore, dialogType: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number, {
|
|
66
45
|
clearCache: () => void;
|
|
67
46
|
}> & {
|
|
68
47
|
clearCache: () => void;
|
|
@@ -74,26 +53,12 @@ export declare const getDialogOrder: ((state: {
|
|
|
74
53
|
* @param {DialogType} dialogType type of the dialog
|
|
75
54
|
* @returns {boolean}
|
|
76
55
|
*/
|
|
77
|
-
export declare const getDialogIsOrderedOnTop: ((state: {
|
|
78
|
-
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
79
|
-
ui?: UIStoreType | undefined;
|
|
80
|
-
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
81
|
-
services?: import("../mapStore/types").ServiceState | undefined;
|
|
82
|
-
layers?: import("../mapStore/types").LayerState | undefined;
|
|
83
|
-
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
84
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean, {
|
|
56
|
+
export declare const getDialogIsOrderedOnTop: ((state: CoreAppStore, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean, {
|
|
85
57
|
clearCache: () => void;
|
|
86
58
|
}> & {
|
|
87
59
|
clearCache: () => void;
|
|
88
60
|
};
|
|
89
|
-
export declare const getDialogSource: ((state: {
|
|
90
|
-
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
91
|
-
ui?: UIStoreType | undefined;
|
|
92
|
-
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
93
|
-
services?: import("../mapStore/types").ServiceState | undefined;
|
|
94
|
-
layers?: import("../mapStore/types").LayerState | undefined;
|
|
95
|
-
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
96
|
-
}, params_0: string) => import("./types").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("./types").Source, {
|
|
61
|
+
export declare const getDialogSource: ((state: CoreAppStore, dialogType: string) => import("./types").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("./types").Source, {
|
|
97
62
|
clearCache: () => void;
|
|
98
63
|
}> & {
|
|
99
64
|
clearCache: () => void;
|
|
@@ -106,38 +71,12 @@ export declare const getDialogSource: ((state: {
|
|
|
106
71
|
* @returns {string} active window id
|
|
107
72
|
*/
|
|
108
73
|
export declare const getActiveWindowId: (store: CoreAppStore) => string;
|
|
109
|
-
export declare const getDialogIsLoading: ((state: {
|
|
110
|
-
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
111
|
-
ui?: UIStoreType | undefined;
|
|
112
|
-
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
113
|
-
services?: import("../mapStore/types").ServiceState | undefined;
|
|
114
|
-
layers?: import("../mapStore/types").LayerState | undefined;
|
|
115
|
-
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
116
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
74
|
+
export declare const getDialogIsLoading: ((state: CoreAppStore, dialogType: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
117
75
|
clearCache: () => void;
|
|
118
76
|
}> & {
|
|
119
77
|
clearCache: () => void;
|
|
120
78
|
};
|
|
121
|
-
export declare const getDialogError: ((state: {
|
|
122
|
-
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
123
|
-
ui?: UIStoreType | undefined;
|
|
124
|
-
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
125
|
-
services?: import("../mapStore/types").ServiceState | undefined;
|
|
126
|
-
layers?: import("../mapStore/types").LayerState | undefined;
|
|
127
|
-
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
128
|
-
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
129
|
-
clearCache: () => void;
|
|
130
|
-
}> & {
|
|
131
|
-
clearCache: () => void;
|
|
132
|
-
};
|
|
133
|
-
export declare const getDialogFocused: ((state: {
|
|
134
|
-
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
135
|
-
ui?: UIStoreType | undefined;
|
|
136
|
-
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
137
|
-
services?: import("../mapStore/types").ServiceState | undefined;
|
|
138
|
-
layers?: import("../mapStore/types").LayerState | undefined;
|
|
139
|
-
layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
|
|
140
|
-
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean, {
|
|
79
|
+
export declare const getDialogError: ((state: CoreAppStore, dialogType: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string, {
|
|
141
80
|
clearCache: () => void;
|
|
142
81
|
}> & {
|
|
143
82
|
clearCache: () => void;
|
package/src/store/ui/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MapActionOrigin } from '../mapStore/map/enums';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type LegendDialogType = string;
|
|
3
|
+
type GetFeatureInfoDialogType = string;
|
|
4
4
|
export declare enum DialogTypes {
|
|
5
5
|
LayerInfo = "layerInfo",
|
|
6
6
|
SyncGroups = "syncGroups",
|
|
@@ -16,8 +16,8 @@ export declare enum DialogTypes {
|
|
|
16
16
|
DockedDrawingTool = "dockedDrawingTool",
|
|
17
17
|
AreaManager = "areaManager"
|
|
18
18
|
}
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type DialogType = DialogTypes | LegendDialogType | GetFeatureInfoDialogType;
|
|
20
|
+
export type Source = 'app' | 'module';
|
|
21
21
|
export interface UIType {
|
|
22
22
|
type: DialogType;
|
|
23
23
|
activeMapId: string;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LayerTree } from '@opengeoweb/webmap';
|
|
2
|
-
/**
|
|
3
|
-
* Converts webmapjs node structure to LayerTree
|
|
4
|
-
* @param nodesToRecur THe WebMapJS node structure from service.getNodes();
|
|
5
|
-
*/
|
|
6
|
-
export declare const recurseNodes: (nodesToRecur: LayerTree) => LayerTree;
|
|
7
|
-
/**
|
|
8
|
-
* Returns a promise with a hierarchical tree of layers from the WMS GetCapabilities document.
|
|
9
|
-
* @param serviceUrl The URL of the WMS service
|
|
10
|
-
* @param {boolean} forceReload **optional** forceReload: boolean, true will force the layers to be reloaded from the service, defaults to false
|
|
11
|
-
*/
|
|
12
|
-
export declare const getLayersFromService: (serviceUrl: string, forceReload?: boolean) => Promise<LayerTree>;
|
|
13
|
-
/**
|
|
14
|
-
* Returns a promise with an array of flattened layerobjects from the WMS GetCapabilities document.
|
|
15
|
-
* @param serviceUrl The URL of the WMS service
|
|
16
|
-
* @param {boolean} forceReload **optional** forceReload: boolean, true will force the layers to be reloaded from the service, defaults to false
|
|
17
|
-
*/
|
|
18
|
-
export declare const getLayersFlattenedFromService: (serviceUrl: string, forceReload?: boolean) => Promise<[]>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const WMS111GetCapabilitiesGeoServicesRADAR = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE WMT_MS_Capabilities SYSTEM \"http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd\" [\n <!ELEMENT VendorSpecificCapabilities EMPTY>\n]>\n<!-- end of DOCTYPE declaration -->\n<WMT_MS_Capabilities version=\"1.1.1\">\n <Service>\n <Name>OGC:WMS</Name>\n <Title>RADAR</Title>\n <Abstract>This service demonstrates how the ADAGUC server can be used to create OGC services.</Abstract>\n <ServerInfo>ADAGUCServer version 2.5.8, of Apr 13 2021 07:55:43</ServerInfo>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n <ContactInformation />\n </Service>\n <Capability>\n <Request>\n <GetCapabilities>\n <Format>application/vnd.ogc.wms_xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetCapabilities>\n <GetMap>\n <Format>image/png</Format>\n <Format>image/gif</Format>\n <Format>image/png32</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetMap>\n <GetFeatureInfo>\n <Format>text/plain</Format>\n <Format>text/html</Format>\n <Format>text/xml</Format>\n <Format>application/vnd.ogc.gml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetFeatureInfo>\n <DescribeLayer>\n <Format>text/xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </DescribeLayer>\n <GetLegendGraphic>\n <Format>image/png</Format>\n <Format>image/gif</Format>\n <Format>image/png32</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetLegendGraphic>\n <GetStyles>\n <Format>text/xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetStyles>\n </Request>\n <Exception>\n <Format>application/vnd.ogc.se_xml</Format>\n <Format>application/vnd.ogc.se_inimage</Format>\n <Format>application/vnd.ogc.se_blank</Format>\n </Exception>\n <VendorSpecificCapabilities />\n <UserDefinedSymbolization SupportSLD=\"1\" UserLayer=\"0\" UserStyle=\"1\" RemoteWFS=\"0\" />\n <Layer>\n <Title>WMS of RADAR</Title>\n <SRS>EPSG:3411</SRS>\n <SRS>EPSG:3412</SRS>\n <SRS>EPSG:3575</SRS>\n <SRS>EPSG:3857</SRS>\n <SRS>EPSG:4258</SRS>\n <SRS>EPSG:4326</SRS>\n <SRS>CRS:84</SRS>\n <SRS>EPSG:25831</SRS>\n <SRS>EPSG:25832</SRS>\n <SRS>EPSG:28992</SRS>\n <SRS>EPSG:7399</SRS>\n <SRS>EPSG:50001</SRS>\n <SRS>EPSG:54030</SRS>\n <SRS>EPSG:32661</SRS>\n <SRS>EPSG:40000</SRS>\n <SRS>EPSG:900913</SRS>\n <SRS>PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0</SRS>\n <Layer queryable=\"1\" opaque=\"1\" cascaded=\"0\">\n <Name>RAD_NL25_PCP_CM</Name>\n <Title>Precipitation Radar NL</Title>\n <Abstract>Radar NL</Abstract>\n <KeywordList>\n <Keyword>Radar</Keyword>\n </KeywordList>\n <SRS>EPSG:3411</SRS>\n <BoundingBox SRS=\"EPSG:3411\" minx=\"2682754.743620\" miny=\"-3245034.014141\" maxx=\"3759536.917562\" maxy=\"-2168251.989038\" />\n <SRS>EPSG:3412</SRS>\n <BoundingBox SRS=\"EPSG:3412\" minx=\"0.000000\" miny=\"32318824.826266\" maxx=\"7413041.166015\" maxy=\"40075258.815074\" />\n <SRS>EPSG:3575</SRS>\n <BoundingBox SRS=\"EPSG:3575\" minx=\"-770622.801471\" miny=\"-4485814.811314\" maxx=\"56845.766135\" maxy=\"-3684039.443620\" />\n <SRS>EPSG:3857</SRS>\n <BoundingBox SRS=\"EPSG:3857\" minx=\"0.000000\" miny=\"6257115.219364\" maxx=\"1208534.698398\" maxy=\"7553161.958695\" />\n <SRS>EPSG:4258</SRS>\n <BoundingBox SRS=\"EPSG:4258\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>EPSG:4326</SRS>\n <BoundingBox SRS=\"EPSG:4326\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>CRS:84</SRS>\n <BoundingBox SRS=\"CRS:84\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>EPSG:25831</SRS>\n <BoundingBox SRS=\"EPSG:25831\" minx=\"282182.345905\" miny=\"5433247.394267\" maxx=\"997135.658653\" maxy=\"6207204.592736\" />\n <SRS>EPSG:25832</SRS>\n <BoundingBox SRS=\"EPSG:25832\" minx=\"-153083.019482\" miny=\"5415817.312927\" maxx=\"617595.626092\" maxy=\"6239769.309937\" />\n <SRS>EPSG:28992</SRS>\n <BoundingBox SRS=\"EPSG:28992\" minx=\"-236275.338083\" miny=\"106727.731651\" maxx=\"501527.918656\" maxy=\"900797.079725\" />\n <SRS>EPSG:7399</SRS>\n <BoundingBox SRS=\"EPSG:7399\" minx=\"0.000000\" miny=\"5757301.056717\" maxx=\"763611.971696\" maxy=\"6483919.801602\" />\n <SRS>EPSG:50001</SRS>\n <BoundingBox SRS=\"EPSG:50001\" minx=\"-2000000.000000\" miny=\"-2000000.000000\" maxx=\"10000000.000000\" maxy=\"8500000.000000\" />\n <SRS>EPSG:54030</SRS>\n <BoundingBox SRS=\"EPSG:54030\" minx=\"0.000000\" miny=\"5211855.054125\" maxx=\"853649.695106\" maxy=\"5936394.291427\" />\n <SRS>EPSG:32661</SRS>\n <BoundingBox SRS=\"EPSG:32661\" minx=\"2000000.000000\" miny=\"-2703305.597319\" maxx=\"2745713.040381\" maxy=\"-1888346.216710\" />\n <SRS>EPSG:40000</SRS>\n <BoundingBox SRS=\"EPSG:40000\" minx=\"0.000000\" miny=\"-4731695.771951\" maxx=\"750214.326339\" maxy=\"-3911817.119426\" />\n <SRS>EPSG:900913</SRS>\n <BoundingBox SRS=\"EPSG:900913\" minx=\"0.000000\" miny=\"6257115.219364\" maxx=\"1208534.698398\" maxy=\"7553161.958695\" />\n <SRS>PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0</SRS>\n <BoundingBox SRS=\"PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0\" minx=\"0.000000\" miny=\"-3649.999338\" maxx=\"700.002420\" maxy=\"-4415.002986\" />\n <LatLonBoundingBox minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <Dimension name=\"time\" units=\"ISO8601\" />\n <Extent name=\"time\" default=\"2021-05-17T00:00:00Z\" multipleValues=\"1\" nearestValue=\"0\">2021-03-31T09:25:00Z/2021-05-18T07:45:00Z/PT5M</Extent>\n <Style>\n <Name>radar/nearest</Name>\n <Title>radar/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=radar/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-rainbow/nearest</Name>\n <Title>precip-rainbow/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-rainbow/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-gray/nearest</Name>\n <Title>precip-gray/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-gray/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-blue/nearest</Name>\n <Title>precip-blue/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-blue/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-blue-transparent/nearest</Name>\n <Title>precip-blue-transparent/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-blue-transparent/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-with-range/nearest</Name>\n <Title>precip-with-range/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&SERVICE=WMS&&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=RAD_NL25_PCP_CM&format=image/png&STYLE=precip-with-range/nearest\" />\n </LegendURL>\n </Style>\n <ScaleHint min=\"0\" max=\"10000\" />\n </Layer>\n </Layer>\n </Capability>\n</WMT_MS_Capabilities>";
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
export declare const mockGetCapabilities: {
|
|
2
|
-
WMS111GetCapabilitiesGeoServicesRADAR: string;
|
|
3
|
-
MOCK_URL_WITH_CHILDREN: "https://mockUrlWithChildren.nl";
|
|
4
|
-
MOCK_URL_NO_CHILDREN: "https://mockUrlNoChildren.nl";
|
|
5
|
-
MOCK_URL_WITH_NO_TITLE: "https://mockUrlWithNoTitle.nl";
|
|
6
|
-
MOCK_URL_WITH_NO_TITLE_OR_NAME: "https://mockUrlWithNoTitleOrName.nl/wms?";
|
|
7
|
-
MOCK_URL_WITH_SUBCATEGORY: "https://mockUrlWithSubcategory.nl";
|
|
8
|
-
MOCK_URL_INVALID: "https://notawmsservice.nl";
|
|
9
|
-
MOCK_URL_SLOW: "https://slowresolve.nl";
|
|
10
|
-
MOCK_URL_SLOW_FAILS: "https://slowreject.nl";
|
|
11
|
-
MOCK_URL_DEFAULT: "https://defaultservice.nl";
|
|
12
|
-
MOCK_URL_DEFAULT2: "https://defaultservice2.nl";
|
|
13
|
-
MOCK_URL_HTTP: "http://wmsservice.nl";
|
|
14
|
-
mockLayersNoChildren: {
|
|
15
|
-
leaf: boolean;
|
|
16
|
-
name: null;
|
|
17
|
-
title: string;
|
|
18
|
-
path: never[];
|
|
19
|
-
children: never[];
|
|
20
|
-
};
|
|
21
|
-
mockLayersWithChildren: {
|
|
22
|
-
leaf: boolean;
|
|
23
|
-
name: null;
|
|
24
|
-
title: string;
|
|
25
|
-
path: never[];
|
|
26
|
-
children: {
|
|
27
|
-
leaf: boolean;
|
|
28
|
-
name: string;
|
|
29
|
-
title: string;
|
|
30
|
-
path: never[];
|
|
31
|
-
children: never[];
|
|
32
|
-
}[];
|
|
33
|
-
};
|
|
34
|
-
mockLayersWithNoTitle: import("dist/libs/webmap/src").LayerTree;
|
|
35
|
-
mockLayersWithNoTitleOrName: import("dist/libs/webmap/src").LayerTree;
|
|
36
|
-
mockLayersWithSubcategory: {
|
|
37
|
-
leaf: boolean;
|
|
38
|
-
name: null;
|
|
39
|
-
title: string;
|
|
40
|
-
path: never[];
|
|
41
|
-
children: ({
|
|
42
|
-
leaf: boolean;
|
|
43
|
-
name: string;
|
|
44
|
-
title: string;
|
|
45
|
-
path: never[];
|
|
46
|
-
children: never[];
|
|
47
|
-
} | {
|
|
48
|
-
leaf: boolean;
|
|
49
|
-
name: null;
|
|
50
|
-
title: string;
|
|
51
|
-
path: never[];
|
|
52
|
-
children: ({
|
|
53
|
-
leaf: boolean;
|
|
54
|
-
name: string;
|
|
55
|
-
title: string;
|
|
56
|
-
path: string[];
|
|
57
|
-
children: never[];
|
|
58
|
-
} | {
|
|
59
|
-
leaf: boolean;
|
|
60
|
-
name: null;
|
|
61
|
-
title: string;
|
|
62
|
-
path: string[];
|
|
63
|
-
children: {
|
|
64
|
-
leaf: boolean;
|
|
65
|
-
name: string;
|
|
66
|
-
title: string;
|
|
67
|
-
path: string[];
|
|
68
|
-
children: never[];
|
|
69
|
-
}[];
|
|
70
|
-
})[];
|
|
71
|
-
})[];
|
|
72
|
-
};
|
|
73
|
-
mockLayersDefault: {
|
|
74
|
-
leaf: boolean;
|
|
75
|
-
name: null;
|
|
76
|
-
title: string;
|
|
77
|
-
path: never[];
|
|
78
|
-
children: never[];
|
|
79
|
-
};
|
|
80
|
-
mockLayersDefault2: {
|
|
81
|
-
leaf: boolean;
|
|
82
|
-
name: null;
|
|
83
|
-
title: string;
|
|
84
|
-
path: never[];
|
|
85
|
-
children: never[];
|
|
86
|
-
};
|
|
87
|
-
mockGetLayersFromService: (url: string) => Promise<import("dist/libs/webmap/src").LayerTree>;
|
|
88
|
-
mockGetLayersFlattenedFromService: (url: string) => Promise<import("dist/libs/webmap/src").LayerProps[]>;
|
|
89
|
-
};
|