@opengeoweb/webmap 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/package.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
- "module": "./index.js",
11
- "main": "./index.js",
10
+ "module": "./index.esm.js",
12
11
  "type": "module",
13
- "types": "./src/index.d.ts",
12
+ "main": "./index.esm.js",
14
13
  "dependencies": {},
15
14
  "peerDependencies": {
16
- "@opengeoweb/shared": "6.0.0",
17
- "date-fns": "2.29.3",
15
+ "@opengeoweb/shared": "6.0.2",
16
+ "date-fns": "2.30.0",
18
17
  "lodash": "4.17.21",
19
18
  "moment": "2.29.4",
20
19
  "proj4": "2.9.0",
package/src/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './lib/components';
1
+ export * from './lib';
@@ -1,4 +1,4 @@
1
- export declare type Bbox = {
1
+ export type Bbox = {
2
2
  left: number;
3
3
  right: number;
4
4
  top: number;
@@ -3,7 +3,7 @@ import WMImageStore from './WMImageStore';
3
3
  import WMBBOX from './WMBBOX';
4
4
  import WMListener from './WMListener';
5
5
  import { LinkedInfo, LinkedInfoContent, WMPosition } from './types';
6
- declare type InternalCallback = {
6
+ type InternalCallback = {
7
7
  beforecanvasstartdraw?: (context: CanvasRenderingContext2D) => void;
8
8
  beforecanvasdisplay?: (context: CanvasRenderingContext2D) => void;
9
9
  canvasonerror?: (e: LinkedInfo[]) => void;
@@ -14,7 +14,7 @@ declare class MapPin {
14
14
  redrawMap: () => void;
15
15
  drawMarker(ctx: CanvasRenderingContext2D): void;
16
16
  repositionMapPin: (_bbox: WMBBOX) => void;
17
- setMapPin: (_x: number, _y: number, _bbox?: WMBBOX | undefined) => void;
17
+ setMapPin: (_x: number, _y: number, _bbox?: WMBBOX) => void;
18
18
  positionMapPinByLatLon: (coord: {
19
19
  x: number;
20
20
  y: number;
@@ -1,4 +1,4 @@
1
- declare type DateInterval = {
1
+ type DateInterval = {
2
2
  year: number;
3
3
  month: number;
4
4
  day: number;
@@ -1,4 +1,4 @@
1
- declare type WMJSONDocument = any;
1
+ type WMJSONDocument = any;
2
2
  export declare const WMXMLStringToXMLDocument: (xmlString: string) => XMLDocument;
3
3
  export declare const WMXMLtoJSON: (xmlDocument: XMLDocument) => WMJSONDocument;
4
4
  export declare const WMXMLStringToJson: (xmlString: string) => WMJSONDocument;
@@ -12,18 +12,18 @@ export interface AnimationList {
12
12
  }[];
13
13
  imagesInPrefetch?: WMImage[];
14
14
  }
15
- export declare type WMPosition = {
15
+ export type WMPosition = {
16
16
  x: number;
17
17
  y: number;
18
18
  };
19
- export declare type LinkedInfoContent = {
19
+ export type LinkedInfoContent = {
20
20
  layer: WMLayer;
21
21
  message?: string;
22
22
  };
23
- export declare type LinkedInfo = {
23
+ export type LinkedInfo = {
24
24
  linkedInfo: LinkedInfoContent;
25
25
  };
26
- export declare type TimeInterval = {
26
+ export type TimeInterval = {
27
27
  year: number;
28
28
  month: number;
29
29
  day: number;
@@ -32,7 +32,7 @@ export declare type TimeInterval = {
32
32
  second: number;
33
33
  isRegularInterval: boolean;
34
34
  };
35
- export declare type Dimension = {
35
+ export type Dimension = {
36
36
  name?: string;
37
37
  units?: string;
38
38
  currentValue: string;
@@ -55,7 +55,7 @@ export interface GeographicBoundingBox {
55
55
  north: string;
56
56
  south: string;
57
57
  }
58
- export declare type WMLayerType = {
58
+ export type WMLayerType = {
59
59
  setDimension: (name: string, value: string, updateMapDimensions: boolean) => void;
60
60
  getDimension: (name: string) => WMJSDimension;
61
61
  dimensions?: WMJSDimension[];
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './utils';
@@ -0,0 +1,18 @@
1
+ import { LayerTree } from '../../components';
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<[]>;
@@ -0,0 +1,2 @@
1
+ export * from './mocks';
2
+ export * as getCapabilities from './getCapabilities';
@@ -0,0 +1 @@
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&amp;SERVICE=WMS&amp;\" />\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&amp;SERVICE=WMS&amp;\" />\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&amp;SERVICE=WMS&amp;\" />\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&amp;SERVICE=WMS&amp;\" />\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&amp;SERVICE=WMS&amp;\" />\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&amp;SERVICE=WMS&amp;\" />\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&amp;SERVICE=WMS&amp;\" />\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&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;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&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;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&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;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&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;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&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;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&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;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>";
@@ -0,0 +1,89 @@
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("../../..").LayerTree;
35
+ mockLayersWithNoTitleOrName: import("../../..").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("../../..").LayerTree>;
88
+ mockGetLayersFlattenedFromService: (url: string) => Promise<import("../../..").LayerProps[]>;
89
+ };
@@ -0,0 +1,87 @@
1
+ import { LayerProps, LayerTree } from '../../../components';
2
+ export declare const MOCK_URL_WITH_CHILDREN = "https://mockUrlWithChildren.nl";
3
+ export declare const MOCK_URL_NO_CHILDREN = "https://mockUrlNoChildren.nl";
4
+ export declare const MOCK_URL_WITH_NO_TITLE = "https://mockUrlWithNoTitle.nl";
5
+ export declare const MOCK_URL_WITH_NO_TITLE_OR_NAME = "https://mockUrlWithNoTitleOrName.nl/wms?";
6
+ export declare const MOCK_URL_WITH_SUBCATEGORY = "https://mockUrlWithSubcategory.nl";
7
+ export declare const MOCK_URL_INVALID = "https://notawmsservice.nl";
8
+ export declare const MOCK_URL_SLOW = "https://slowresolve.nl";
9
+ export declare const MOCK_URL_SLOW_FAILS = "https://slowreject.nl";
10
+ export declare const MOCK_URL_DEFAULT = "https://defaultservice.nl";
11
+ export declare const MOCK_URL_DEFAULT2 = "https://defaultservice2.nl";
12
+ export declare const MOCK_URL_HTTP = "http://wmsservice.nl";
13
+ export declare const mockLayersNoChildren: {
14
+ leaf: boolean;
15
+ name: null;
16
+ title: string;
17
+ path: never[];
18
+ children: never[];
19
+ };
20
+ export declare const mockLayersWithChildren: {
21
+ leaf: boolean;
22
+ name: null;
23
+ title: string;
24
+ path: never[];
25
+ children: {
26
+ leaf: boolean;
27
+ name: string;
28
+ title: string;
29
+ path: never[];
30
+ children: never[];
31
+ }[];
32
+ };
33
+ export declare const mockLayersWithNoTitle: LayerTree;
34
+ export declare const mockLayersWithNoTitleOrName: LayerTree;
35
+ export declare const mockLayersWithSubcategory: {
36
+ leaf: boolean;
37
+ name: null;
38
+ title: string;
39
+ path: never[];
40
+ children: ({
41
+ leaf: boolean;
42
+ name: string;
43
+ title: string;
44
+ path: never[];
45
+ children: never[];
46
+ } | {
47
+ leaf: boolean;
48
+ name: null;
49
+ title: string;
50
+ path: never[];
51
+ children: ({
52
+ leaf: boolean;
53
+ name: string;
54
+ title: string;
55
+ path: string[];
56
+ children: never[];
57
+ } | {
58
+ leaf: boolean;
59
+ name: null;
60
+ title: string;
61
+ path: string[];
62
+ children: {
63
+ leaf: boolean;
64
+ name: string;
65
+ title: string;
66
+ path: string[];
67
+ children: never[];
68
+ }[];
69
+ })[];
70
+ })[];
71
+ };
72
+ export declare const mockLayersDefault: {
73
+ leaf: boolean;
74
+ name: null;
75
+ title: string;
76
+ path: never[];
77
+ children: never[];
78
+ };
79
+ export declare const mockLayersDefault2: {
80
+ leaf: boolean;
81
+ name: null;
82
+ title: string;
83
+ path: never[];
84
+ children: never[];
85
+ };
86
+ export declare const mockGetLayersFromService: (url: string) => Promise<LayerTree>;
87
+ export declare const mockGetLayersFlattenedFromService: (url: string) => Promise<LayerProps[]>;
@@ -0,0 +1,4 @@
1
+ export * as webmapTestSettings from './testSettings';
2
+ export * from './tilesettings';
3
+ export * as webmapUtils from './utils';
4
+ export * from './getCapabilities';
@@ -0,0 +1,6 @@
1
+ import { CoordinateReferenceSystem, LayerOptions, Style, WMLayer } from '../components';
2
+ export declare const WmMultiDimensionLayer: WMLayer;
3
+ export declare const layerWithoutTimeDimension: LayerOptions;
4
+ export declare const WmLayerWithoutTimeDimension: WMLayer;
5
+ export declare const crsListForRADNL25PCPCMLayer: CoordinateReferenceSystem[];
6
+ export declare const styleListForRADNL25PCPCMLayer: Style[];
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ export declare const tilesettings: {
2
2
  WorldMap_Light_Grey_Canvas: {
3
3
  'EPSG:3857': {
4
4
  home: string;
@@ -332,4 +332,3 @@ declare const _default: {
332
332
  };
333
333
  };
334
334
  };
335
- export default _default;
@@ -0,0 +1,41 @@
1
+ import { WMJSDimension, WMJSMap, WMLayer } from '../components';
2
+ export declare const generateLayerId: () => string;
3
+ export declare const generateMapId: () => string;
4
+ export declare const generateTimesliderId: () => string;
5
+ /**
6
+ * Registers a WMJSLayer in a lookuptable with a layerId
7
+ * @param {WMLayer} wmLayer
8
+ * @param {string} layerId
9
+ */
10
+ export declare const registerWMLayer: (wmLayer: WMLayer, layerId: string) => void;
11
+ /**
12
+ * Get the WMLayer from the lookuptable with layerId
13
+ * @param {string} layerId
14
+ */
15
+ export declare const getWMLayerById: (layerId: string) => WMLayer;
16
+ export declare const unRegisterWMJSLayer: (layerId: string) => void;
17
+ export declare const unRegisterAllWMJSLayersAndMaps: () => void;
18
+ /**
19
+ * Registers a WMJSMap in a lookuptable with a wmjsMapId
20
+ * @param {WMJSMap} wmjsMap
21
+ * @param {string} wmjsMapId
22
+ */
23
+ export declare const registerWMJSMap: (wmjsMap: WMJSMap, wmjsMapId: string) => void;
24
+ export declare const unRegisterWMJSMap: (wmjsMapId: string) => void;
25
+ /**
26
+ * Get the wmjsMap from the lookuptable with wmjsMapId
27
+ * @param {string} wmjsMapId
28
+ */
29
+ export declare const getWMJSMapById: (wmjsMapId: string) => WMJSMap;
30
+ /**
31
+ * Returns the WMJSDimension object for given layerId and dimension name
32
+ * @param layerId The layerId
33
+ * @param dimensionName The dimension to lookup
34
+ */
35
+ export declare const getWMJSDimensionForLayerAndDimension: (layerId: string, dimensionName: string | undefined) => WMJSDimension | undefined;
36
+ /**
37
+ * Gets the WMJSTimeDimension for given activeLayerId and dimensions list
38
+ * @param layerId: The layer id to search the WMJSDimension for
39
+ * @return: The WMJSDimension if found, otherwise null
40
+ */
41
+ export declare const getWMJSTimeDimensionForLayerId: (layerId: string) => WMJSDimension;
@@ -0,0 +1 @@
1
+ export {};