@opengeoweb/webmap 10.1.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js
CHANGED
|
@@ -7404,7 +7404,8 @@ var consoleErrorMessages = {
|
|
|
7404
7404
|
serviceHasError: '--- service has an error ---',
|
|
7405
7405
|
serviceUrlEmpty: 'Service URL is empty',
|
|
7406
7406
|
unableToConnectServer: 'Unable to connect to the service.',
|
|
7407
|
-
wmsServiceExceptionCode: 'WMS Service exception with code'
|
|
7407
|
+
wmsServiceExceptionCode: 'WMS Service exception with code',
|
|
7408
|
+
layerNotFoundInService: 'WMS Layer was not found in service'
|
|
7408
7409
|
};
|
|
7409
7410
|
|
|
7410
7411
|
/* *
|
|
@@ -8428,6 +8429,9 @@ var WMLayer = /*#__PURE__*/function () {
|
|
|
8428
8429
|
});
|
|
8429
8430
|
}
|
|
8430
8431
|
this.isConfigured = true;
|
|
8432
|
+
} else {
|
|
8433
|
+
this.hasError = true;
|
|
8434
|
+
this.lastError = consoleErrorMessages.layerNotFoundInService + " - " + this.name;
|
|
8431
8435
|
}
|
|
8432
8436
|
}
|
|
8433
8437
|
/** A Promise to parse the layer, it will fetch the WMS GetCapabilities document, configure the layer and resolve to a WMLayer object
|
|
@@ -9742,6 +9746,7 @@ var MOCK_URL_SLOW_FAILS = 'https://slowreject.nl';
|
|
|
9742
9746
|
var MOCK_URL_DEFAULT = 'https://defaultservice.nl';
|
|
9743
9747
|
var MOCK_URL_DEFAULT2 = 'https://defaultservice2.nl';
|
|
9744
9748
|
var MOCK_URL_HTTP = 'http://wmsservice.nl';
|
|
9749
|
+
var MOCK_URL_HARMONIE = 'WMS130GetCapabilitiesHarmN25';
|
|
9745
9750
|
var mockLayersNoChildren = {
|
|
9746
9751
|
leaf: false,
|
|
9747
9752
|
name: null,
|
|
@@ -10100,7 +10105,7 @@ var mockGetCapabilitiesFetcher = /*#__PURE__*/function () {
|
|
|
10100
10105
|
while (1) switch (_context2.prev = _context2.next) {
|
|
10101
10106
|
case 0:
|
|
10102
10107
|
_context2.t0 = serviceUrl;
|
|
10103
|
-
_context2.next = _context2.t0 === MOCK_URL_NO_CHILDREN ? 3 : _context2.t0 === MOCK_URL_WITH_CHILDREN ? 4 : _context2.t0 === MOCK_URL_WITH_SUBCATEGORY ? 5 : _context2.t0 === MOCK_URL_DEFAULT ? 6 : _context2.t0 === MOCK_URL_DEFAULT2 ? 7 : _context2.t0 === MOCK_URL_WITH_NO_TITLE ? 8 : _context2.t0 === MOCK_URL_WITH_NO_TITLE_OR_NAME ? 9 : _context2.t0 === 'https://testservice' ? 10 : _context2.t0 === 'testservice' ? 11 : _context2.t0 === 'WMS130GetCapabilitiesRadarTestWithoutInheritLayerprops' ? 12 : _context2.t0 === 'WMS130GetCapabilitiesRadarTestWithInheritLayerprops' ? 13 : _context2.t0 === 'WMS130GetCapabilitiesRadarTestWithInheritAndReplaceLayerprops' ? 14 : _context2.t0 === 'WMS111GetCapabilitiesGeoServicesRADAR' ? 15 : _context2.t0 === 'WMSSmartMet' ? 16 : _context2.t0 ===
|
|
10108
|
+
_context2.next = _context2.t0 === MOCK_URL_NO_CHILDREN ? 3 : _context2.t0 === MOCK_URL_WITH_CHILDREN ? 4 : _context2.t0 === 'https://geoservices.knmi.nl/wms?dataset=RADAR&' ? 4 : _context2.t0 === MOCK_URL_WITH_SUBCATEGORY ? 5 : _context2.t0 === MOCK_URL_DEFAULT ? 6 : _context2.t0 === MOCK_URL_DEFAULT2 ? 7 : _context2.t0 === MOCK_URL_WITH_NO_TITLE ? 8 : _context2.t0 === MOCK_URL_WITH_NO_TITLE_OR_NAME ? 9 : _context2.t0 === 'https://testservice' ? 10 : _context2.t0 === 'testservice' ? 11 : _context2.t0 === 'WMS130GetCapabilitiesRadarTestWithoutInheritLayerprops' ? 12 : _context2.t0 === 'WMS130GetCapabilitiesRadarTestWithInheritLayerprops' ? 13 : _context2.t0 === 'WMS130GetCapabilitiesRadarTestWithInheritAndReplaceLayerprops' ? 14 : _context2.t0 === 'WMS111GetCapabilitiesGeoServicesRADAR' ? 15 : _context2.t0 === 'WMSSmartMet' ? 16 : _context2.t0 === MOCK_URL_HARMONIE ? 17 : _context2.t0 === MOCK_URL_INVALID ? 18 : 19;
|
|
10104
10109
|
break;
|
|
10105
10110
|
case 3:
|
|
10106
10111
|
return _context2.abrupt("return", mockGetCapNoChilds);
|
|
@@ -10151,6 +10156,7 @@ var getCapabilities = /*#__PURE__*/Object.freeze({
|
|
|
10151
10156
|
__proto__: null,
|
|
10152
10157
|
MOCK_URL_DEFAULT: MOCK_URL_DEFAULT,
|
|
10153
10158
|
MOCK_URL_DEFAULT2: MOCK_URL_DEFAULT2,
|
|
10159
|
+
MOCK_URL_HARMONIE: MOCK_URL_HARMONIE,
|
|
10154
10160
|
MOCK_URL_HTTP: MOCK_URL_HTTP,
|
|
10155
10161
|
MOCK_URL_INVALID: MOCK_URL_INVALID,
|
|
10156
10162
|
MOCK_URL_NO_CHILDREN: MOCK_URL_NO_CHILDREN,
|
package/package.json
CHANGED
package/src/lib/specs/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const mockGetCapabilities: {
|
|
|
12
12
|
MOCK_URL_DEFAULT: "https://defaultservice.nl";
|
|
13
13
|
MOCK_URL_DEFAULT2: "https://defaultservice2.nl";
|
|
14
14
|
MOCK_URL_HTTP: "http://wmsservice.nl";
|
|
15
|
+
MOCK_URL_HARMONIE: "WMS130GetCapabilitiesHarmN25";
|
|
15
16
|
mockLayersNoChildren: {
|
|
16
17
|
leaf: boolean;
|
|
17
18
|
name: null;
|
|
@@ -10,6 +10,7 @@ export declare const MOCK_URL_SLOW_FAILS = "https://slowreject.nl";
|
|
|
10
10
|
export declare const MOCK_URL_DEFAULT = "https://defaultservice.nl";
|
|
11
11
|
export declare const MOCK_URL_DEFAULT2 = "https://defaultservice2.nl";
|
|
12
12
|
export declare const MOCK_URL_HTTP = "http://wmsservice.nl";
|
|
13
|
+
export declare const MOCK_URL_HARMONIE = "WMS130GetCapabilitiesHarmN25";
|
|
13
14
|
export declare const mockLayersNoChildren: {
|
|
14
15
|
leaf: boolean;
|
|
15
16
|
name: null;
|