@opengeoweb/store 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +65 -1174
- package/package.json +2 -2
- package/src/store/index.d.ts +0 -1
- package/src/store/mapStore/index.d.ts +0 -1
- package/src/store/mapStore/layers/index.d.ts +1 -0
- 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/index.d.ts +1 -0
- package/src/store/mapStore/map/utils.d.ts +3 -3
- package/src/store/mapStore/storeTestSettings.d.ts +2 -6
- package/src/store/getCapabilities/getCapabilities.d.ts +0 -18
- package/src/store/getCapabilities/getCapabilities.spec.d.ts +0 -1
- 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/helpers.spec.d.ts +0 -1
- package/src/store/mapStore/utils/index.d.ts +0 -2
- package/src/store/mapStore/utils/tilesettings.d.ts +0 -334
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"types": "./src/index.d.ts",
|
|
14
14
|
"dependencies": {},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@opengeoweb/webmap": "6.0.
|
|
16
|
+
"@opengeoweb/webmap": "6.0.1",
|
|
17
17
|
"@redux-eggs/core": "2.2.0",
|
|
18
18
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
19
19
|
"@redux-eggs/saga-extension": "2.2.0",
|
package/src/store/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export * from './router';
|
|
|
7
7
|
export * from './app';
|
|
8
8
|
export * from './types';
|
|
9
9
|
export * as storeTestUtils from './mapStore/storeTestUtils';
|
|
10
|
-
export * from './getCapabilities';
|
|
11
10
|
export * from './coreModuleConfig';
|
|
12
11
|
export * as storeUtils from './utils';
|
|
13
12
|
export { uiModuleConfig } from './ui/config';
|
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
import { Action } from '@reduxjs/toolkit';
|
|
2
2
|
import { FeatureCollection } from 'geojson';
|
|
3
|
-
import { CustomDate } from '@opengeoweb/webmap';
|
|
4
3
|
import type { Dimension, UpdateAllMapDimensionsPayload } from '../map/types';
|
|
5
4
|
import type { SyncGroupActionOrigin } from '../../generic/synchronizationGroups/types';
|
|
6
|
-
export interface WMJSDimension {
|
|
7
|
-
getFirstValue(): string;
|
|
8
|
-
getLastValue(): string;
|
|
9
|
-
getClosestValue(currentValue?: string, evenWhenOutsideRange?: boolean): string;
|
|
10
|
-
setValue: (currentValue: string) => void;
|
|
11
|
-
name: string;
|
|
12
|
-
currentValue: string;
|
|
13
|
-
getIndexForValue: (currentValue: string, outSideOfRangeFlag?: boolean) => number;
|
|
14
|
-
getValueForIndex: (index: number) => string | CustomDate;
|
|
15
|
-
size: () => number;
|
|
16
|
-
linked: boolean;
|
|
17
|
-
values?: string;
|
|
18
|
-
units?: string;
|
|
19
|
-
unitSymbol: string;
|
|
20
|
-
}
|
|
21
5
|
export declare enum LayerType {
|
|
22
6
|
mapLayer = "mapLayer",
|
|
23
7
|
baseLayer = "baseLayer",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Draft } from '@reduxjs/toolkit';
|
|
2
|
+
import { WMJSDimension } from '@opengeoweb/webmap';
|
|
2
3
|
import type { Dimension } from '../types';
|
|
3
|
-
import type { LayerState
|
|
4
|
+
import type { LayerState } from './types';
|
|
4
5
|
export declare const isActionLayerSynced: (state: LayerState, layerIdFromAction: string, dimension: Dimension) => boolean;
|
|
5
6
|
export declare const produceDimensionActionForMapLayer: (layerDim: Dimension, wmjsDimension: WMJSDimension, newDimension: Dimension) => Dimension;
|
|
6
7
|
/**
|
|
@@ -10,3 +11,8 @@ export declare const produceDimensionActionForMapLayer: (layerDim: Dimension, wm
|
|
|
10
11
|
* @param mapId
|
|
11
12
|
*/
|
|
12
13
|
export declare const produceDraftStateForAllLayersForDimensionWithinMap: (draft: Draft<LayerState>, dimension: Dimension, mapId: string, layerIdFromAction: string) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the list of dimensions without the time dimension
|
|
16
|
+
* @param dimensions Dimension[]
|
|
17
|
+
*/
|
|
18
|
+
export declare const filterNonTimeDimensions: (dimensions: Dimension[]) => Dimension[];
|
|
@@ -3,6 +3,7 @@ import * as utils from './utils';
|
|
|
3
3
|
export declare const mapUtils: {
|
|
4
4
|
replaceLayerIdsToEnsureUniqueLayerIdsInStore: (layerIds: import("./replaceLayerIdsToEnsureUniqueLayerIdsInStore").LayersAndAutoLayerIds) => import("./replaceLayerIdsToEnsureUniqueLayerIdsInStore").LayersAndAutoLayerIds;
|
|
5
5
|
moveArrayElements(array: string[], oldIndex: number, newIndex: number): string[];
|
|
6
|
+
dateFormat: "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
6
7
|
createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isEndTimeOverriding, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderSpan, timeStep, animationDelay, timeSliderWidth, timeSliderCenterTime, timeSliderSecondsPerPx, isTimestepAuto, isTimeSpanAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: utils.CreateMapProps) => mapTypes.WebMap;
|
|
7
8
|
checkValidLayersPayload: (layers: import("../types").Layer[], mapId: string) => boolean;
|
|
8
9
|
getDraftMapById: (mapId: string, draft: mapTypes.WebMapState) => mapTypes.WebMap;
|
|
@@ -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;
|
|
@@ -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.
|
|
@@ -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[];
|
|
@@ -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 {};
|
|
@@ -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
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { LayerTree } from '@opengeoweb/webmap';
|
|
2
|
-
import type { serviceTypes } from '../../mapStore';
|
|
3
|
-
export declare const MOCK_URL_WITH_CHILDREN = "https://mockUrlWithChildren.nl";
|
|
4
|
-
export declare const MOCK_URL_NO_CHILDREN = "https://mockUrlNoChildren.nl";
|
|
5
|
-
export declare const MOCK_URL_WITH_NO_TITLE = "https://mockUrlWithNoTitle.nl";
|
|
6
|
-
export declare const MOCK_URL_WITH_NO_TITLE_OR_NAME = "https://mockUrlWithNoTitleOrName.nl/wms?";
|
|
7
|
-
export declare const MOCK_URL_WITH_SUBCATEGORY = "https://mockUrlWithSubcategory.nl";
|
|
8
|
-
export declare const MOCK_URL_INVALID = "https://notawmsservice.nl";
|
|
9
|
-
export declare const MOCK_URL_SLOW = "https://slowresolve.nl";
|
|
10
|
-
export declare const MOCK_URL_SLOW_FAILS = "https://slowreject.nl";
|
|
11
|
-
export declare const MOCK_URL_DEFAULT = "https://defaultservice.nl";
|
|
12
|
-
export declare const MOCK_URL_DEFAULT2 = "https://defaultservice2.nl";
|
|
13
|
-
export declare const MOCK_URL_HTTP = "http://wmsservice.nl";
|
|
14
|
-
export declare const mockLayersNoChildren: {
|
|
15
|
-
leaf: boolean;
|
|
16
|
-
name: null;
|
|
17
|
-
title: string;
|
|
18
|
-
path: never[];
|
|
19
|
-
children: never[];
|
|
20
|
-
};
|
|
21
|
-
export declare const 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
|
-
export declare const mockLayersWithNoTitle: LayerTree;
|
|
35
|
-
export declare const mockLayersWithNoTitleOrName: LayerTree;
|
|
36
|
-
export declare const 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
|
-
export declare const mockLayersDefault: {
|
|
74
|
-
leaf: boolean;
|
|
75
|
-
name: null;
|
|
76
|
-
title: string;
|
|
77
|
-
path: never[];
|
|
78
|
-
children: never[];
|
|
79
|
-
};
|
|
80
|
-
export declare const mockLayersDefault2: {
|
|
81
|
-
leaf: boolean;
|
|
82
|
-
name: null;
|
|
83
|
-
title: string;
|
|
84
|
-
path: never[];
|
|
85
|
-
children: never[];
|
|
86
|
-
};
|
|
87
|
-
export declare const mockGetLayersFromService: (url: string) => Promise<LayerTree>;
|
|
88
|
-
export declare const mockGetLayersFlattenedFromService: (url: string) => Promise<serviceTypes.ServiceLayer[]>;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { WMJSMap, WMLayer } from '@opengeoweb/webmap';
|
|
2
|
-
import type { Dimension, WMJSDimension } from '../types';
|
|
3
|
-
export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
4
|
-
export declare const generateLayerId: () => string;
|
|
5
|
-
export declare const generateMapId: () => string;
|
|
6
|
-
export declare const generateTimesliderId: () => string;
|
|
7
|
-
/**
|
|
8
|
-
* Registers a WMJSLayer in a lookuptable with a layerId
|
|
9
|
-
* @param {WMLayer} wmLayer
|
|
10
|
-
* @param {string} layerId
|
|
11
|
-
*/
|
|
12
|
-
export declare const registerWMLayer: (wmLayer: WMLayer, layerId: string) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Get the WMLayer from the lookuptable with layerId
|
|
15
|
-
* @param {string} layerId
|
|
16
|
-
*/
|
|
17
|
-
export declare const getWMLayerById: (layerId: string) => WMLayer;
|
|
18
|
-
export declare const unRegisterWMJSLayer: (layerId: string) => void;
|
|
19
|
-
export declare const unRegisterAllWMJSLayersAndMaps: () => void;
|
|
20
|
-
/**
|
|
21
|
-
* Registers a WMJSMap in a lookuptable with a wmjsMapId
|
|
22
|
-
* @param {WMJSMap} wmjsMap
|
|
23
|
-
* @param {string} wmjsMapId
|
|
24
|
-
*/
|
|
25
|
-
export declare const registerWMJSMap: (wmjsMap: WMJSMap, wmjsMapId: string) => void;
|
|
26
|
-
export declare const unRegisterWMJSMap: (wmjsMapId: string) => void;
|
|
27
|
-
/**
|
|
28
|
-
* Get the wmjsMap from the lookuptable with wmjsMapId
|
|
29
|
-
* @param {string} wmjsMapId
|
|
30
|
-
*/
|
|
31
|
-
export declare const getWMJSMapById: (wmjsMapId: string) => WMJSMap;
|
|
32
|
-
/**
|
|
33
|
-
* Returns the WMJSDimension object for given layerId and dimension name
|
|
34
|
-
* @param layerId The layerId
|
|
35
|
-
* @param dimensionName The dimension to lookup
|
|
36
|
-
*/
|
|
37
|
-
export declare const getWMJSDimensionForLayerAndDimension: (layerId: string, dimensionName: string | undefined) => WMJSDimension | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Returns the list of dimensions without the time dimension
|
|
40
|
-
* @param dimensions Dimension[]
|
|
41
|
-
*/
|
|
42
|
-
export declare const filterNonTimeDimensions: (dimensions: Dimension[]) => Dimension[];
|
|
43
|
-
/**
|
|
44
|
-
* Gets the WMJSTimeDimension for given activeLayerId and dimensions list
|
|
45
|
-
* @param layerId: The layer id to search the WMJSDimension for
|
|
46
|
-
* @return: The WMJSDimension if found, otherwise null
|
|
47
|
-
*/
|
|
48
|
-
export declare const getWMJSTimeDimensionForLayerId: (layerId: string) => WMJSDimension;
|
|
49
|
-
/**
|
|
50
|
-
* Get the previous step for this layerid
|
|
51
|
-
* @param layerId The layerId to get the previous timestep for
|
|
52
|
-
*/
|
|
53
|
-
export declare const getPreviousTimeStepForLayerId: (layerId: string) => string;
|
|
54
|
-
/**
|
|
55
|
-
* Get the next step for this layerid
|
|
56
|
-
* @param layerId The layerId to get the next timestep for
|
|
57
|
-
*/
|
|
58
|
-
export declare const getNextTimeStepForLayerId: (layerId: string) => string;
|
|
59
|
-
/**
|
|
60
|
-
* Get the first time step for this layerid
|
|
61
|
-
* @param layerId The layerId to get the first timestep for
|
|
62
|
-
*/
|
|
63
|
-
export declare const getFirstTimeStepForLayerId: (layerId: string) => string;
|
|
64
|
-
/**
|
|
65
|
-
* Get the last time step for this layerid
|
|
66
|
-
* @param layerId The layerId to get the last timestep for
|
|
67
|
-
*/
|
|
68
|
-
export declare const getLastTimeStepForLayerId: (layerId: string) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|