ol 10.5.1-dev.1749385233907 → 10.5.1-dev.1749412916039

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.
@@ -1 +1 @@
1
- {"version":3,"file":"WMSCapabilities.d.ts","sourceRoot":"","sources":["WMSCapabilities.js"],"names":[],"mappings":";;;;;aAwEc,MAAM;;;;SACN,OAAO;;AAHrB;;;;GAIG;AAEH;;;;;GAKG;AACH;IAII;;OAEG;IACH,SAFU,MAAM,GAAC,SAAS,CAEF;CAoB3B;gBAlGe,UAAU"}
1
+ {"version":3,"file":"WMSCapabilities.d.ts","sourceRoot":"","sources":["WMSCapabilities.js"],"names":[],"mappings":";;;;;aA8Dc,MAAM;;;;SACN,OAAO;;AAHrB;;;;GAIG;AAEH;;;;;GAKG;AACH;IAII;;OAEG;IACH,SAFU,MAAM,GAAC,SAAS,CAEF;CAoB3B;gBAxFe,UAAU"}
@@ -24,7 +24,11 @@ import {
24
24
  * @const
25
25
  * @type {Array<null|string>}
26
26
  */
27
- const NAMESPACE_URIS = [null, 'http://www.opengis.net/wms'];
27
+ const NAMESPACE_URIS = [
28
+ null,
29
+ 'http://www.opengis.net/wms',
30
+ 'http://www.opengis.net/sld',
31
+ ];
28
32
 
29
33
  function isV13(objectStack) {
30
34
  return compareVersions(objectStack[0].version, '1.3') >= 0;
@@ -40,34 +44,20 @@ const PARSERS = makeStructureNS(NAMESPACE_URIS, {
40
44
  'Capability': makeObjectPropertySetter(readCapability),
41
45
  });
42
46
 
43
- const COMMON_CAPABILITY_PARSERS = {
44
- 'Request': makeObjectPropertySetter(readRequest),
45
- 'Exception': makeObjectPropertySetter(readException),
46
- 'Layer': makeObjectPropertySetter(readCapabilityLayer),
47
- };
48
-
49
47
  /**
50
48
  * @const
51
49
  * @type {Object<string, Object<string, import("../xml.js").Parser>>}
52
50
  */
53
51
  // @ts-ignore
54
52
  const CAPABILITY_PARSERS = makeStructureNS(NAMESPACE_URIS, {
55
- ...COMMON_CAPABILITY_PARSERS,
53
+ 'Request': makeObjectPropertySetter(readRequest),
54
+ 'Exception': makeObjectPropertySetter(readException),
55
+ 'Layer': makeObjectPropertySetter(readCapabilityLayer),
56
56
  'UserDefinedSymbolization': makeObjectPropertySetter(
57
57
  readUserDefinedSymbolization,
58
58
  ),
59
59
  });
60
60
 
61
- /**
62
- * @const
63
- * @type {Object<string, Object<string, import("../xml.js").Parser>>}
64
- */
65
- // @ts-ignore
66
- const CAPABILITY_PARSERS_V13 = makeStructureNS(
67
- NAMESPACE_URIS,
68
- COMMON_CAPABILITY_PARSERS,
69
- );
70
-
71
61
  /**
72
62
  * @typedef {Object} RootObject
73
63
  * @property {string} version Version
@@ -267,6 +257,8 @@ const REQUEST_PARSERS = makeStructureNS(NAMESPACE_URIS, {
267
257
  'GetCapabilities': makeObjectPropertySetter(readOperationType),
268
258
  'GetMap': makeObjectPropertySetter(readOperationType),
269
259
  'GetFeatureInfo': makeObjectPropertySetter(readOperationType),
260
+ 'DescribeLayer': makeObjectPropertySetter(readOperationType),
261
+ 'GetLegendGraphic': makeObjectPropertySetter(readOperationType),
270
262
  });
271
263
 
272
264
  /**
@@ -342,12 +334,14 @@ function readAttribution(node, objectStack) {
342
334
 
343
335
  function readUserDefinedSymbolization(node, objectStack) {
344
336
  return {
345
- 'SupportSLD': !!readBooleanString(
346
- node.getAttribute('UserDefinedSymbolization'),
347
- ),
337
+ 'SupportSLD': !!readBooleanString(node.getAttribute('SupportSLD')),
348
338
  'UserLayer': !!readBooleanString(node.getAttribute('UserLayer')),
349
339
  'UserStyle': !!readBooleanString(node.getAttribute('UserStyle')),
350
340
  'RemoteWFS': !!readBooleanString(node.getAttribute('RemoteWFS')),
341
+ 'InlineFeatureData': !!readBooleanString(
342
+ node.getAttribute('InlineFeatureData'),
343
+ ),
344
+ 'RemoteWCS': !!readBooleanString(node.getAttribute('RemoteWCS')),
351
345
  };
352
346
  }
353
347
 
@@ -436,13 +430,9 @@ function readEXGeographicBoundingBox(node, objectStack) {
436
430
  * @param {Array<*>} objectStack Object stack.
437
431
  * @return {Object|undefined} Capability object.
438
432
  */
433
+ //ts-ignore
439
434
  function readCapability(node, objectStack) {
440
- return pushParseAndPop(
441
- {},
442
- isV13(objectStack) ? CAPABILITY_PARSERS_V13 : CAPABILITY_PARSERS,
443
- node,
444
- objectStack,
445
- );
435
+ return pushParseAndPop({}, CAPABILITY_PARSERS, node, objectStack);
446
436
  }
447
437
 
448
438
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "10.5.1-dev.1749385233907",
3
+ "version": "10.5.1-dev.1749412916039",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '10.5.1-dev.1749385233907';
36
+ export const VERSION = '10.5.1-dev.1749412916039';