@opengeoweb/webmap 12.9.1 → 12.11.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
@@ -3,6 +3,9 @@ import { PROJECTION, dateUtils } from '@opengeoweb/shared';
3
3
  import { QueryClient } from '@tanstack/query-core';
4
4
  import 'i18next';
5
5
 
6
+ function _OverloadYield(e, d) {
7
+ this.v = e, this.k = d;
8
+ }
6
9
  function _arrayLikeToArray(r, a) {
7
10
  (null == a || a > r.length) && (a = r.length);
8
11
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
@@ -59,306 +62,180 @@ function _objectWithoutPropertiesLoose(r, e) {
59
62
  }
60
63
  return t;
61
64
  }
62
- function _regeneratorRuntime() {
63
- _regeneratorRuntime = function () {
64
- return e;
65
- };
66
- var t,
67
- e = {},
68
- r = Object.prototype,
69
- n = r.hasOwnProperty,
70
- o = Object.defineProperty || function (t, e, r) {
71
- t[e] = r.value;
72
- },
73
- i = "function" == typeof Symbol ? Symbol : {},
74
- a = i.iterator || "@@iterator",
75
- c = i.asyncIterator || "@@asyncIterator",
76
- u = i.toStringTag || "@@toStringTag";
77
- function define(t, e, r) {
78
- return Object.defineProperty(t, e, {
79
- value: r,
80
- enumerable: true,
81
- configurable: true,
82
- writable: true
83
- }), t[e];
84
- }
85
- try {
86
- define({}, "");
87
- } catch (t) {
88
- define = function (t, e, r) {
89
- return t[e] = r;
90
- };
91
- }
92
- function wrap(t, e, r, n) {
93
- var i = e && e.prototype instanceof Generator ? e : Generator,
94
- a = Object.create(i.prototype),
95
- c = new Context(n || []);
96
- return o(a, "_invoke", {
97
- value: makeInvokeMethod(t, r, c)
98
- }), a;
99
- }
100
- function tryCatch(t, e, r) {
101
- try {
102
- return {
103
- type: "normal",
104
- arg: t.call(e, r)
105
- };
106
- } catch (t) {
107
- return {
108
- type: "throw",
109
- arg: t
65
+ function _regenerator() {
66
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
67
+ var e,
68
+ t,
69
+ r = "function" == typeof Symbol ? Symbol : {},
70
+ n = r.iterator || "@@iterator",
71
+ o = r.toStringTag || "@@toStringTag";
72
+ function i(r, n, o, i) {
73
+ var c = n && n.prototype instanceof Generator ? n : Generator,
74
+ u = Object.create(c.prototype);
75
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
76
+ var i,
77
+ c,
78
+ u,
79
+ f = 0,
80
+ p = o || [],
81
+ y = false,
82
+ G = {
83
+ p: 0,
84
+ n: 0,
85
+ v: e,
86
+ a: d,
87
+ f: d.bind(e, 4),
88
+ d: function (t, r) {
89
+ return i = t, c = 0, u = e, G.n = r, a;
90
+ }
91
+ };
92
+ function d(r, n) {
93
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
94
+ var o,
95
+ i = p[t],
96
+ d = G.p,
97
+ l = i[2];
98
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
99
+ }
100
+ if (o || r > 1) return a;
101
+ throw y = true, n;
102
+ }
103
+ return function (o, p, l) {
104
+ if (f > 1) throw TypeError("Generator is already running");
105
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
106
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
107
+ try {
108
+ if (f = 2, i) {
109
+ if (c || (o = "next"), t = i[o]) {
110
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
111
+ if (!t.done) return t;
112
+ u = t.value, c < 2 && (c = 0);
113
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
114
+ i = e;
115
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
116
+ } catch (t) {
117
+ i = e, c = 1, u = t;
118
+ } finally {
119
+ f = 1;
120
+ }
121
+ }
122
+ return {
123
+ value: t,
124
+ done: y
125
+ };
110
126
  };
111
- }
127
+ }(r, o, i), true), u;
112
128
  }
113
- e.wrap = wrap;
114
- var h = "suspendedStart",
115
- l = "suspendedYield",
116
- f = "executing",
117
- s = "completed",
118
- y = {};
129
+ var a = {};
119
130
  function Generator() {}
120
131
  function GeneratorFunction() {}
121
132
  function GeneratorFunctionPrototype() {}
122
- var p = {};
123
- define(p, a, function () {
133
+ t = Object.getPrototypeOf;
134
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
135
+ return this;
136
+ }), t),
137
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
138
+ function f(e) {
139
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
140
+ }
141
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
124
142
  return this;
143
+ }), _regeneratorDefine(u, "toString", function () {
144
+ return "[object Generator]";
145
+ }), (_regenerator = function () {
146
+ return {
147
+ w: i,
148
+ m: f
149
+ };
150
+ })();
151
+ }
152
+ function _regeneratorAsync(n, e, r, t, o) {
153
+ var a = _regeneratorAsyncGen(n, e, r, t, o);
154
+ return a.next().then(function (n) {
155
+ return n.done ? n.value : a.next();
125
156
  });
126
- var d = Object.getPrototypeOf,
127
- v = d && d(d(values([])));
128
- v && v !== r && n.call(v, a) && (p = v);
129
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
130
- function defineIteratorMethods(t) {
131
- ["next", "throw", "return"].forEach(function (e) {
132
- define(t, e, function (t) {
133
- return this._invoke(e, t);
157
+ }
158
+ function _regeneratorAsyncGen(r, e, t, o, n) {
159
+ return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise);
160
+ }
161
+ function _regeneratorAsyncIterator(t, e) {
162
+ function n(r, o, i, f) {
163
+ try {
164
+ var c = t[r](o),
165
+ u = c.value;
166
+ return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) {
167
+ n("next", t, i, f);
168
+ }, function (t) {
169
+ n("throw", t, i, f);
170
+ }) : e.resolve(u).then(function (t) {
171
+ c.value = t, i(c);
172
+ }, function (t) {
173
+ return n("throw", t, i, f);
134
174
  });
135
- });
175
+ } catch (t) {
176
+ f(t);
177
+ }
136
178
  }
137
- function AsyncIterator(t, e) {
138
- function invoke(r, o, i, a) {
139
- var c = tryCatch(t[r], t, o);
140
- if ("throw" !== c.type) {
141
- var u = c.arg,
142
- h = u.value;
143
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
144
- invoke("next", t, i, a);
145
- }, function (t) {
146
- invoke("throw", t, i, a);
147
- }) : e.resolve(h).then(function (t) {
148
- u.value = t, i(u);
149
- }, function (t) {
150
- return invoke("throw", t, i, a);
179
+ var r;
180
+ this.next || (_regeneratorDefine(_regeneratorAsyncIterator.prototype), _regeneratorDefine(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
181
+ return this;
182
+ })), _regeneratorDefine(this, "_invoke", function (t, o, i) {
183
+ function f() {
184
+ return new e(function (e, r) {
185
+ n(t, i, e, r);
186
+ });
187
+ }
188
+ return r = r ? r.then(f, f) : f();
189
+ }, true);
190
+ }
191
+ function _regeneratorDefine(e, r, n, t) {
192
+ var i = Object.defineProperty;
193
+ try {
194
+ i({}, "", {});
195
+ } catch (e) {
196
+ i = 0;
197
+ }
198
+ _regeneratorDefine = function (e, r, n, t) {
199
+ if (r) i ? i(e, r, {
200
+ value: n,
201
+ enumerable: !t,
202
+ configurable: !t,
203
+ writable: !t
204
+ }) : e[r] = n;else {
205
+ function o(r, n) {
206
+ _regeneratorDefine(e, r, function (e) {
207
+ return this._invoke(r, n, e);
151
208
  });
152
209
  }
153
- a(c.arg);
210
+ o("next", 0), o("throw", 1), o("return", 2);
154
211
  }
155
- var r;
156
- o(this, "_invoke", {
157
- value: function (t, n) {
158
- function callInvokeWithMethodAndArg() {
159
- return new e(function (e, r) {
160
- invoke(t, n, e, r);
161
- });
162
- }
163
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
164
- }
165
- });
166
- }
167
- function makeInvokeMethod(e, r, n) {
168
- var o = h;
169
- return function (i, a) {
170
- if (o === f) throw Error("Generator is already running");
171
- if (o === s) {
172
- if ("throw" === i) throw a;
173
- return {
174
- value: t,
175
- done: true
212
+ }, _regeneratorDefine(e, r, n, t);
213
+ }
214
+ function _regeneratorKeys(e) {
215
+ var n = Object(e),
216
+ r = [];
217
+ for (var t in n) r.unshift(t);
218
+ return function e() {
219
+ for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = false, e;
220
+ return e.done = true, e;
221
+ };
222
+ }
223
+ function _regeneratorValues(e) {
224
+ if (null != e) {
225
+ var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
226
+ r = 0;
227
+ if (t) return t.call(e);
228
+ if ("function" == typeof e.next) return e;
229
+ if (!isNaN(e.length)) return {
230
+ next: function () {
231
+ return e && r >= e.length && (e = void 0), {
232
+ value: e && e[r++],
233
+ done: !e
176
234
  };
177
235
  }
178
- for (n.method = i, n.arg = a;;) {
179
- var c = n.delegate;
180
- if (c) {
181
- var u = maybeInvokeDelegate(c, n);
182
- if (u) {
183
- if (u === y) continue;
184
- return u;
185
- }
186
- }
187
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
188
- if (o === h) throw o = s, n.arg;
189
- n.dispatchException(n.arg);
190
- } else "return" === n.method && n.abrupt("return", n.arg);
191
- o = f;
192
- var p = tryCatch(e, r, n);
193
- if ("normal" === p.type) {
194
- if (o = n.done ? s : l, p.arg === y) continue;
195
- return {
196
- value: p.arg,
197
- done: n.done
198
- };
199
- }
200
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
201
- }
202
236
  };
203
237
  }
204
- function maybeInvokeDelegate(e, r) {
205
- var n = r.method,
206
- o = e.iterator[n];
207
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
208
- var i = tryCatch(o, e.iterator, r.arg);
209
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
210
- var a = i.arg;
211
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
212
- }
213
- function pushTryEntry(t) {
214
- var e = {
215
- tryLoc: t[0]
216
- };
217
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
218
- }
219
- function resetTryEntry(t) {
220
- var e = t.completion || {};
221
- e.type = "normal", delete e.arg, t.completion = e;
222
- }
223
- function Context(t) {
224
- this.tryEntries = [{
225
- tryLoc: "root"
226
- }], t.forEach(pushTryEntry, this), this.reset(true);
227
- }
228
- function values(e) {
229
- if (e || "" === e) {
230
- var r = e[a];
231
- if (r) return r.call(e);
232
- if ("function" == typeof e.next) return e;
233
- if (!isNaN(e.length)) {
234
- var o = -1,
235
- i = function next() {
236
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next;
237
- return next.value = t, next.done = true, next;
238
- };
239
- return i.next = i;
240
- }
241
- }
242
- throw new TypeError(typeof e + " is not iterable");
243
- }
244
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
245
- value: GeneratorFunctionPrototype,
246
- configurable: true
247
- }), o(GeneratorFunctionPrototype, "constructor", {
248
- value: GeneratorFunction,
249
- configurable: true
250
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
251
- var e = "function" == typeof t && t.constructor;
252
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
253
- }, e.mark = function (t) {
254
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
255
- }, e.awrap = function (t) {
256
- return {
257
- __await: t
258
- };
259
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
260
- return this;
261
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
262
- void 0 === i && (i = Promise);
263
- var a = new AsyncIterator(wrap(t, r, n, o), i);
264
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
265
- return t.done ? t.value : a.next();
266
- });
267
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
268
- return this;
269
- }), define(g, "toString", function () {
270
- return "[object Generator]";
271
- }), e.keys = function (t) {
272
- var e = Object(t),
273
- r = [];
274
- for (var n in e) r.push(n);
275
- return r.reverse(), function next() {
276
- for (; r.length;) {
277
- var t = r.pop();
278
- if (t in e) return next.value = t, next.done = false, next;
279
- }
280
- return next.done = true, next;
281
- };
282
- }, e.values = values, Context.prototype = {
283
- constructor: Context,
284
- reset: function (e) {
285
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
286
- },
287
- stop: function () {
288
- this.done = true;
289
- var t = this.tryEntries[0].completion;
290
- if ("throw" === t.type) throw t.arg;
291
- return this.rval;
292
- },
293
- dispatchException: function (e) {
294
- if (this.done) throw e;
295
- var r = this;
296
- function handle(n, o) {
297
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
298
- }
299
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
300
- var i = this.tryEntries[o],
301
- a = i.completion;
302
- if ("root" === i.tryLoc) return handle("end");
303
- if (i.tryLoc <= this.prev) {
304
- var c = n.call(i, "catchLoc"),
305
- u = n.call(i, "finallyLoc");
306
- if (c && u) {
307
- if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
308
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
309
- } else if (c) {
310
- if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
311
- } else {
312
- if (!u) throw Error("try statement without catch or finally");
313
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
314
- }
315
- }
316
- }
317
- },
318
- abrupt: function (t, e) {
319
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
320
- var o = this.tryEntries[r];
321
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
322
- var i = o;
323
- break;
324
- }
325
- }
326
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
327
- var a = i ? i.completion : {};
328
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
329
- },
330
- complete: function (t, e) {
331
- if ("throw" === t.type) throw t.arg;
332
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
333
- },
334
- finish: function (t) {
335
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
336
- var r = this.tryEntries[e];
337
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
338
- }
339
- },
340
- catch: function (t) {
341
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
342
- var r = this.tryEntries[e];
343
- if (r.tryLoc === t) {
344
- var n = r.completion;
345
- if ("throw" === n.type) {
346
- var o = n.arg;
347
- resetTryEntry(r);
348
- }
349
- return o;
350
- }
351
- }
352
- throw Error("illegal catch attempt");
353
- },
354
- delegateYield: function (e, r, n) {
355
- return this.delegate = {
356
- iterator: values(e),
357
- resultName: r,
358
- nextLoc: n
359
- }, "next" === this.method && (this.arg = t), y;
360
- }
361
- }, e;
238
+ throw new TypeError(typeof e + " is not iterable");
362
239
  }
363
240
  function _toPrimitive(t, r) {
364
241
  if ("object" != typeof t || !t) return t;
@@ -381,6 +258,74 @@ function _unsupportedIterableToArray(r, a) {
381
258
  return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
382
259
  }
383
260
  }
261
+ function _regeneratorRuntime() {
262
+
263
+ var r = _regenerator(),
264
+ e = r.m(_regeneratorRuntime),
265
+ t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
266
+ function n(r) {
267
+ var e = "function" == typeof r && r.constructor;
268
+ return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
269
+ }
270
+ var o = {
271
+ throw: 1,
272
+ return: 2,
273
+ break: 3,
274
+ continue: 3
275
+ };
276
+ function a(r) {
277
+ var e, t;
278
+ return function (n) {
279
+ e || (e = {
280
+ stop: function () {
281
+ return t(n.a, 2);
282
+ },
283
+ catch: function () {
284
+ return n.v;
285
+ },
286
+ abrupt: function (r, e) {
287
+ return t(n.a, o[r], e);
288
+ },
289
+ delegateYield: function (r, o, a) {
290
+ return e.resultName = o, t(n.d, _regeneratorValues(r), a);
291
+ },
292
+ finish: function (r) {
293
+ return t(n.f, r);
294
+ }
295
+ }, t = function (r, t, o) {
296
+ n.p = e.prev, n.n = e.next;
297
+ try {
298
+ return r(t, o);
299
+ } finally {
300
+ e.next = n.n;
301
+ }
302
+ }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
303
+ try {
304
+ return r.call(this, e);
305
+ } finally {
306
+ n.p = e.prev, n.n = e.next;
307
+ }
308
+ };
309
+ }
310
+ return (_regeneratorRuntime = function () {
311
+ return {
312
+ wrap: function (e, t, n, o) {
313
+ return r.w(a(e), t, n, o && o.reverse());
314
+ },
315
+ isGeneratorFunction: n,
316
+ mark: r.m,
317
+ awrap: function (r, e) {
318
+ return new _OverloadYield(r, e);
319
+ },
320
+ AsyncIterator: _regeneratorAsyncIterator,
321
+ async: function (r, e, t, o, u) {
322
+ return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u);
323
+ },
324
+ keys: _regeneratorKeys,
325
+ values: _regeneratorValues
326
+ };
327
+ })();
328
+ }
384
329
 
385
330
  /* *
386
331
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -471,8 +416,6 @@ var WMDateTooEarlyString = 'date too early';
471
416
  var WMDateTooLateString = 'date too late';
472
417
  var WMDateUnit = 'ISO8601';
473
418
  var WMInvalidDateValues = new Set([WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString]);
474
- var WMSJSMAP_MINIMUM_MAP_WIDTH = 4;
475
- var WMSJSMAP_MINIMUM_MAP_HEIGHT = 4;
476
419
  var WMSVersion = {
477
420
  version100: '1.0.0',
478
421
  version111: '1.1.1',
@@ -664,75 +607,12 @@ var toArray = function toArray(array) {
664
607
  newArray[0] = array;
665
608
  return newArray;
666
609
  };
667
- /**
668
- * Function which checks wether URL contains a ? token. If not, it is assumed that this token was not provided by the user,
669
- * manually add the token later.
670
- * @param url The URL to check
671
- * @return the fixed URL
672
- */
673
- var WMJScheckURL = function WMJScheckURL(url) {
674
- if (!isDefined(url)) {
675
- return '?';
676
- }
677
- var trimmedUrl = url.trim();
678
- if (trimmedUrl.indexOf('?') === -1) {
679
- return trimmedUrl + "?";
680
- }
681
- return trimmedUrl;
682
- };
683
- var URLDecode = function URLDecode(encodedURL) {
684
- if (!isDefined(encodedURL)) {
685
- return '';
686
- }
687
- return encodedURL.replace('+', ' ').replace('%2B', '+').replace('%20', ' ').replace('%5E', '^').replace('%26', '&').replace('%3F', '?').replace('%3E', '>').replace('%3C', '<').replace('%5C', '\\').replace('%2F', '/').replace('%25', '%').replace('%3A', ':').replace('%27', "'").replace('%24', '$');
688
- };
689
- // Encodes plain text to URL encoding
690
- var URLEncode = function URLEncode(plaintext) {
691
- if (!plaintext) {
692
- return plaintext;
693
- }
694
- if (plaintext === undefined) {
695
- return plaintext;
696
- }
697
- if (plaintext === '') {
698
- return plaintext;
699
- }
700
- var SAFECHARS = '0123456789' +
701
- // Numeric
702
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' +
703
- // Alphabetic
704
- 'abcdefghijklmnopqrstuvwxyz' + "%-_.!~*'()"; // RFC2396 Mark characters
705
- var HEX = '0123456789ABCDEF';
706
- var replacedText = plaintext.replace(/%/g, '%25').replace(/\+/g, '%2B').replace(/ /g, '%20').replace(/\^/g, '%5E').replace(/&/g, '%26').replace(/\?/g, '%3F').replace(/>/g, '%3E').replace(/</g, '%3C').replace(/\\/g, '%5C');
707
- var encoded = '';
708
- for (var i = 0; i < replacedText.length; i += 1) {
709
- var ch = replacedText.charAt(i);
710
- if (ch === ' ') {
711
- encoded += '%20'; // x-www-urlencoded, rather than %20
712
- } else if (SAFECHARS.indexOf(ch) !== -1) {
713
- encoded += ch;
714
- } else {
715
- var charCode = ch.charCodeAt(0);
716
- if (charCode > 255) {
717
- debugLogger(DebugType.Warning);
718
- encoded += '+';
719
- } else {
720
- encoded += '%';
721
- // eslint-disable-next-line no-bitwise
722
- encoded += HEX.charAt(charCode >> 4 & 0xf);
723
- // eslint-disable-next-line no-bitwise
724
- encoded += HEX.charAt(charCode & 0xf);
725
- }
726
- }
727
- }
728
- return encoded;
729
- };
730
610
  /* Returns all dimensions with its current values as URL */
731
611
  var getMapDimURL = function getMapDimURL(layer, dimensionOverride) {
732
612
  var request = new URLSearchParams();
733
613
  layer.dimensions.forEach(function (layerDimension) {
734
- var overrideDim = dimensionOverride && dimensionOverride.find(function (d) {
735
- return d.name === layerDimension.name;
614
+ var overrideDim = dimensionOverride && dimensionOverride.find(function (dim) {
615
+ return dim.name === layerDimension.name;
736
616
  });
737
617
  var dimension = layerDimension;
738
618
  var currentValue = overrideDim && dimension.getClosestValue(overrideDim.currentValue, true) || dimension.currentValue;
@@ -889,11 +769,11 @@ var addBoundingBoxForLayer = function addBoundingBoxForLayer(layerObjectFromWMS)
889
769
  */
890
770
  function sortArrayOfObjectsByKey(array, key) {
891
771
  var spreadArray = [].concat(array);
892
- return spreadArray.sort(function (a, b) {
772
+ return spreadArray.sort(function (arrayA, arrayB) {
893
773
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
894
- var x = a[key];
774
+ var x = arrayA[key];
895
775
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
896
- var y = b[key];
776
+ var y = arrayB[key];
897
777
  if (x < y) {
898
778
  return -1;
899
779
  }
@@ -922,22 +802,22 @@ var makeNodeLayerFromWMSGetCapabilityLayer = function makeNodeLayerFromWMSGetCap
922
802
  if (nestedLayerPath === void 0) {
923
803
  nestedLayerPath = [];
924
804
  }
925
- var geographicBoundingBox = nestedLayerPath.reverse().reduce(function (p, c) {
926
- return p || c.geographicBoundingBox;
805
+ var geographicBoundingBox = nestedLayerPath.reverse().reduce(function (npath, lprops) {
806
+ return npath || lprops.geographicBoundingBox;
927
807
  }, addBoundingBoxForLayer(layer));
928
808
  var dimensions = nestedLayerPath.reverse().reduce(function (dims, props) {
929
809
  var parentDims = (props.dimensions || []).filter(function (dim) {
930
- return !dims.some(function (d) {
931
- return d.name === dim.name;
810
+ return !dims.some(function (dimit) {
811
+ return dimit.name === dim.name;
932
812
  });
933
813
  });
934
814
  return [].concat(parentDims, dims);
935
815
  }, addDimensionsForLayer(layer));
936
- var styles = nestedLayerPath.reverse().reduce(function (p, c) {
937
- if (c.styles && Array.isArray(c.styles) && c.styles.length) {
938
- return c.styles.concat(p);
816
+ var styles = nestedLayerPath.reverse().reduce(function (npath, lprops) {
817
+ if (lprops.styles && Array.isArray(lprops.styles) && lprops.styles.length) {
818
+ return lprops.styles.concat(npath);
939
819
  }
940
- return p;
820
+ return npath;
941
821
  }, addStylesForLayer(layer));
942
822
  var queryable = layer != null && layer.attr ? parseInt(layer.attr.queryable, 10) === 1 : false;
943
823
  var crs = layer != null && layer.BoundingBox && Array.isArray(layer.BoundingBox) && layer.BoundingBox.length ? compact(layer.BoundingBox.map(function (wmsBBOX) {
@@ -1175,7 +1055,7 @@ var WMImage = /*#__PURE__*/function () {
1175
1055
  _proto.loadAwait =
1176
1056
  /*#__PURE__*/
1177
1057
  function () {
1178
- var _loadAwait = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1058
+ var _loadAwait = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1179
1059
  var _this2 = this;
1180
1060
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1181
1061
  while (1) switch (_context.prev = _context.next) {
@@ -2158,7 +2038,7 @@ var getLegendGraphicURLForLayer = function getLegendGraphicURLForLayer(layer, wi
2158
2038
  legendURL += "&" + mapDimURL;
2159
2039
  }
2160
2040
  if (layer.sldURL) {
2161
- legendURL += "&SLD=" + URLEncode(layer.sldURL);
2041
+ legendURL += "&SLD=" + encodeURI(layer.sldURL);
2162
2042
  }
2163
2043
  legendURL += '&transparent=true';
2164
2044
  // append width and height parameters when not present
@@ -2506,6 +2386,7 @@ var LayerType;
2506
2386
  LayerType["baseLayer"] = "baseLayer";
2507
2387
  LayerType["overLayer"] = "overLayer";
2508
2388
  LayerType["featureLayer"] = "featureLayer";
2389
+ LayerType["edrLayer"] = "edrLayer";
2509
2390
  })(LayerType || (LayerType = {}));
2510
2391
 
2511
2392
  /* *
@@ -2772,8 +2653,8 @@ var WMJSDimension = /*#__PURE__*/function () {
2772
2653
  if (this._type === 'timestartstopres') {
2773
2654
  // Compose a new dateString interval and re-initialize the time dimension if the
2774
2655
  // calculated start and end values are valid for the time dimension interval
2775
- var _this$values$split$ma = this.values.split('/').map(function (s) {
2776
- return s.trim();
2656
+ var _this$values$split$ma = this.values.split('/').map(function (val) {
2657
+ return val.trim();
2777
2658
  }),
2778
2659
  start = _this$values$split$ma[0],
2779
2660
  interval = _this$values$split$ma[2];
@@ -2792,11 +2673,11 @@ var WMJSDimension = /*#__PURE__*/function () {
2792
2673
  return x >= _newValue;
2793
2674
  });
2794
2675
  var newValues = '';
2795
- for (var j = 0; j < newArray.length; j += 1) {
2796
- if (j > 0) {
2676
+ for (var jIndex = 0; jIndex < newArray.length; jIndex += 1) {
2677
+ if (jIndex > 0) {
2797
2678
  newValues += ',';
2798
2679
  }
2799
- newValues += newArray[j].toISO8601();
2680
+ newValues += newArray[jIndex].toISO8601();
2800
2681
  }
2801
2682
  this.reInitializeValues(newValues, true);
2802
2683
  this.setClosestValue();
@@ -3283,9 +3164,9 @@ var WMJSDimension = /*#__PURE__*/function () {
3283
3164
  }
3284
3165
  }
3285
3166
  if (this._type === 'anyvalue') {
3286
- for (var j = 0; j < this._allValues.length; j += 1) {
3287
- if (this._allValues[j] === value) {
3288
- return j;
3167
+ for (var jIndex = 0; jIndex < this._allValues.length; jIndex += 1) {
3168
+ if (this._allValues[jIndex] === value) {
3169
+ return jIndex;
3289
3170
  }
3290
3171
  }
3291
3172
  }
@@ -3434,7 +3315,7 @@ var privateGetOGCCapabilitiesUrl = function privateGetOGCCapabilitiesUrl(url, se
3434
3315
  }, additionalParams));
3435
3316
  };
3436
3317
  var privateWmsGetCapabilities = /*#__PURE__*/function () {
3437
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(serviceUrl, headers, forceReload) {
3318
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(serviceUrl, headers, forceReload) {
3438
3319
  var addParams, url;
3439
3320
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3440
3321
  while (1) switch (_context.prev = _context.next) {
@@ -3485,7 +3366,7 @@ var privateWmsGetCapabilities = /*#__PURE__*/function () {
3485
3366
  };
3486
3367
  }();
3487
3368
  var privateWmtsGetCapabilities = /*#__PURE__*/function () {
3488
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(serviceUrl, headers, forceReload) {
3369
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(serviceUrl, headers, forceReload) {
3489
3370
  var addParams, url, fetchHeaders, _iterator, _step, header;
3490
3371
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3491
3372
  while (1) switch (_context2.prev = _context2.next) {
@@ -3899,7 +3780,7 @@ var wmsQueryClient = new QueryClient({
3899
3780
  * @returns {Promise<void>}
3900
3781
  */
3901
3782
  var invalidateWMSGetCapabilities = /*#__PURE__*/function () {
3902
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(serviceUrl) {
3783
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(serviceUrl) {
3903
3784
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3904
3785
  while (1) switch (_context.prev = _context.next) {
3905
3786
  case 0:
@@ -3927,7 +3808,7 @@ var invalidateWMSGetCapabilities = /*#__PURE__*/function () {
3927
3808
  * @returns {Promise<GetCapabilitiesJson>}
3928
3809
  */
3929
3810
  var queryWMSGetCapabilities = /*#__PURE__*/function () {
3930
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(serviceUrl) {
3811
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(serviceUrl) {
3931
3812
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3932
3813
  while (1) switch (_context2.prev = _context2.next) {
3933
3814
  case 0:
@@ -3955,7 +3836,7 @@ var queryWMSGetCapabilities = /*#__PURE__*/function () {
3955
3836
  * @returns {Promise<LayerTree>}
3956
3837
  */
3957
3838
  var queryWMSLayersTree = /*#__PURE__*/function () {
3958
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(serviceUrl) {
3839
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(serviceUrl) {
3959
3840
  var data;
3960
3841
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3961
3842
  while (1) switch (_context3.prev = _context3.next) {
@@ -3988,7 +3869,7 @@ var queryWMSLayersTree = /*#__PURE__*/function () {
3988
3869
  * @returns {Promise<WMSServiceInfo>}
3989
3870
  */
3990
3871
  var queryWMSServiceInfo = /*#__PURE__*/function () {
3991
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(serviceUrl) {
3872
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(serviceUrl) {
3992
3873
  var data;
3993
3874
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3994
3875
  while (1) switch (_context4.prev = _context4.next) {
@@ -4022,7 +3903,7 @@ var queryWMSServiceInfo = /*#__PURE__*/function () {
4022
3903
  * @returns {Promise<LayerProps[]>}
4023
3904
  */
4024
3905
  var queryWMSLayers = /*#__PURE__*/function () {
4025
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(serviceUrl, forceReload) {
3906
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(serviceUrl, forceReload) {
4026
3907
  var data;
4027
3908
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
4028
3909
  while (1) switch (_context5.prev = _context5.next) {
@@ -4066,7 +3947,7 @@ var queryWMSLayers = /*#__PURE__*/function () {
4066
3947
  * @returns {Promise<LayerProps>}
4067
3948
  */
4068
3949
  var queryWMSLayer = /*#__PURE__*/function () {
4069
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(serviceUrl, name) {
3950
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(serviceUrl, name) {
4070
3951
  var data;
4071
3952
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
4072
3953
  while (1) switch (_context6.prev = _context6.next) {
@@ -4340,7 +4221,7 @@ var WMLayer = /*#__PURE__*/function () {
4340
4221
  _proto.parseLayer =
4341
4222
  /*#__PURE__*/
4342
4223
  function () {
4343
- var _parseLayer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(forceReload) {
4224
+ var _parseLayer = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(forceReload) {
4344
4225
  var getCapabilities, message;
4345
4226
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4346
4227
  while (1) switch (_context.prev = _context.next) {
@@ -4348,27 +4229,33 @@ var WMLayer = /*#__PURE__*/function () {
4348
4229
  if (forceReload === void 0) {
4349
4230
  forceReload = false;
4350
4231
  }
4232
+ if (!(this.layerType === LayerType.edrLayer)) {
4233
+ _context.next = 3;
4234
+ break;
4235
+ }
4236
+ return _context.abrupt("return", this);
4237
+ case 3:
4351
4238
  this.hasError = false;
4352
4239
  this.lastError = '';
4353
- _context.prev = 3;
4240
+ _context.prev = 5;
4354
4241
  if (!forceReload) {
4355
- _context.next = 8;
4242
+ _context.next = 10;
4356
4243
  break;
4357
4244
  }
4358
4245
  // eslint-disable-next-line no-console
4359
4246
  console.log('invalidateWMSGetCapabilities');
4360
- _context.next = 8;
4361
- return invalidateWMSGetCapabilities(this.service);
4362
- case 8:
4363
4247
  _context.next = 10;
4364
- return queryWMSGetCapabilities(this.service);
4248
+ return invalidateWMSGetCapabilities(this.service);
4365
4249
  case 10:
4250
+ _context.next = 12;
4251
+ return queryWMSGetCapabilities(this.service);
4252
+ case 12:
4366
4253
  getCapabilities = _context.sent;
4367
4254
  this._setWMSGetCapabilities(getCapabilities);
4368
4255
  return _context.abrupt("return", this);
4369
- case 15:
4370
- _context.prev = 15;
4371
- _context.t0 = _context["catch"](3);
4256
+ case 17:
4257
+ _context.prev = 17;
4258
+ _context.t0 = _context["catch"](5);
4372
4259
  this.hasError = true;
4373
4260
  message = !this.lastError.length ? consoleErrorMessages.noCapabilityElementFound + "[in " + this.service + "] with message [" + _context.t0.message + "]" : this.lastError;
4374
4261
  this.title = consoleErrorMessages.serviceHasError;
@@ -4376,11 +4263,11 @@ var WMLayer = /*#__PURE__*/function () {
4376
4263
  this._options.failure(this, message);
4377
4264
  }
4378
4265
  throw new Error(message);
4379
- case 22:
4266
+ case 24:
4380
4267
  case "end":
4381
4268
  return _context.stop();
4382
4269
  }
4383
- }, _callee, this, [[3, 15]]);
4270
+ }, _callee, this, [[5, 17]]);
4384
4271
  }));
4385
4272
  function parseLayer(_x) {
4386
4273
  return _parseLayer.apply(this, arguments);
@@ -5805,7 +5692,7 @@ var mockGetLayersFromService = function mockGetLayersFromService(url) {
5805
5692
  }
5806
5693
  };
5807
5694
  var mockGetLayersFlattenedFromService = /*#__PURE__*/function () {
5808
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url) {
5695
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(url) {
5809
5696
  var layers, serviceLayers, _iterator, _step, object;
5810
5697
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5811
5698
  while (1) switch (_context.prev = _context.next) {
@@ -6012,7 +5899,7 @@ var mockGetCap = {
6012
5899
  }
6013
5900
  };
6014
5901
  var mockGetCapabilitiesFetcher = /*#__PURE__*/function () {
6015
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(serviceUrl) {
5902
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(serviceUrl) {
6016
5903
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
6017
5904
  while (1) switch (_context2.prev = _context2.next) {
6018
5905
  case 0:
@@ -6925,4 +6812,4 @@ var privateWebMapUtils = {
6925
6812
  QUERYWMS_GETCAPABILITIES: QUERYWMS_GETCAPABILITIES
6926
6813
  };
6927
6814
 
6928
- export { DateInterval, DebugType, EVENT_GETCAPABILITIES_READY, EVENT_GETCAPABILITIES_START, LayerType, ParseISOTimeRangeDuration, URLDecode, URLEncode, WEBMAP_NAMESPACE, WMBBOX, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMDateUnit, WMEmptyLayerName, WMEmptyLayerTitle, WMImage, WMImageEventType, WMImageStore, WMInvalidDateValues, WMJSDimension, WMJSMAP_LONLAT_EPSGCODE, WMJScheckURL, WMLayer, WMListener, WMProj4Defs, WMProjection, WMSJSMAP_MINIMUM_MAP_HEIGHT, WMSJSMAP_MINIMUM_MAP_WIDTH, WMSVersion, WMXMLStringToJson, bgImageStoreLength, debugLogger, generateLayerId, generateMapId, generateTimesliderId, getCorrectWMSDimName, getLegendGraphicURLForLayer, getMapDimURL, getUriWithParam, getWMJSDimensionForLayerAndDimension, getWMJSTimeDimensionForLayerId, getWMLayerById, getWMSServiceId, handleDateUtilsISOString, invalidateWMSGetCapabilities, isDefined, isProjectionSupported, legendImageStore, legendImageStoreLength, mapImageStoreLength, mockGetCapabilities, parseISO8601DateToDate, parseISO8601IntervalToDateInterval, privateWebMapUtils, queryWMSGetCapabilities, queryWMSLayer, queryWMSLayers, queryWMSLayersTree, queryWMSServiceInfo, registerWMLayer, roundWithTimeStep, setWMSGetCapabilitiesFetcher, tilesettings, toArray, unRegisterAllWMJSLayersAndMaps, unRegisterWMJSLayer, index as webmapTestSettings, webmapTranslations, utils as webmapUtils, wmServiceListener, wmsQueryClient };
6815
+ export { DateInterval, DebugType, EVENT_GETCAPABILITIES_READY, EVENT_GETCAPABILITIES_START, LayerType, ParseISOTimeRangeDuration, WEBMAP_NAMESPACE, WMBBOX, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMDateUnit, WMEmptyLayerName, WMEmptyLayerTitle, WMImage, WMImageEventType, WMImageStore, WMInvalidDateValues, WMJSDimension, WMJSMAP_LONLAT_EPSGCODE, WMLayer, WMListener, WMProj4Defs, WMProjection, WMSVersion, WMXMLStringToJson, bgImageStoreLength, debugLogger, generateLayerId, generateMapId, generateTimesliderId, getCorrectWMSDimName, getLegendGraphicURLForLayer, getMapDimURL, getUriWithParam, getWMJSDimensionForLayerAndDimension, getWMJSTimeDimensionForLayerId, getWMLayerById, getWMSServiceId, handleDateUtilsISOString, invalidateWMSGetCapabilities, isDefined, isProjectionSupported, legendImageStore, legendImageStoreLength, mapImageStoreLength, mockGetCapabilities, parseISO8601DateToDate, parseISO8601IntervalToDateInterval, privateWebMapUtils, queryWMSGetCapabilities, queryWMSLayer, queryWMSLayers, queryWMSLayersTree, queryWMSServiceInfo, registerWMLayer, roundWithTimeStep, setWMSGetCapabilitiesFetcher, tilesettings, toArray, unRegisterAllWMJSLayersAndMaps, unRegisterWMJSLayer, index as webmapTestSettings, webmapTranslations, utils as webmapUtils, wmServiceListener, wmsQueryClient };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "12.9.1",
3
+ "version": "12.11.0",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,14 +8,12 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/shared": "12.9.1",
11
+ "@opengeoweb/shared": "12.11.0",
12
12
  "@tanstack/query-core": "^5.69.2",
13
- "proj4": "^2.9.2",
14
13
  "lodash": "^4.17.21",
15
14
  "i18next": "^25.0.1",
16
15
  "@types/geojson": "^7946.0.14"
17
16
  },
18
- "peerDependencies": {},
19
17
  "module": "./index.esm.js",
20
18
  "type": "module",
21
19
  "main": "./index.esm.js",
@@ -5,8 +5,6 @@ export declare const WMDateTooEarlyString = "date too early";
5
5
  export declare const WMDateTooLateString = "date too late";
6
6
  export declare const WMDateUnit = "ISO8601";
7
7
  export declare const WMInvalidDateValues: Set<string>;
8
- export declare const WMSJSMAP_MINIMUM_MAP_WIDTH = 4;
9
- export declare const WMSJSMAP_MINIMUM_MAP_HEIGHT = 4;
10
8
  export declare const WMSVersion: {
11
9
  version100: string;
12
10
  version111: string;
@@ -13,30 +13,12 @@ export declare const debugLogger: (type: DebugType, message: string, ...optional
13
13
  * @returns true if variable is indeed defined, otherwise false.
14
14
  */
15
15
  export declare const isDefined: <T>(variable?: T) => variable is T;
16
- /**
17
- * Checks if a variable is null or not
18
- * @param variable The variable to check
19
- * @returns true if variable is indeed null, otherwise false.
20
- */
21
- export declare const isNull: (variable: any) => boolean;
22
16
  /**
23
17
  * Converts a variable to an array. If the variable is not an array it will be pushed as the first entry in a new array. If the variable is already an array, nothing will be done.
24
18
  * @param array The variable to convert
25
19
  * @returns Always an array
26
20
  */
27
21
  export declare const toArray: (array: unknown | unknown[]) => any[];
28
- /**
29
- * Function which checks wether URL contains a ? token. If not, it is assumed that this token was not provided by the user,
30
- * manually add the token later.
31
- * @param url The URL to check
32
- * @return the fixed URL
33
- */
34
- export declare const WMJScheckURL: (url: string) => string;
35
- export declare const preventdefaultEvent: (event: Event) => void;
36
- export declare const getMouseXCoordinate: (event: MouseEvent) => number;
37
- export declare const getMouseYCoordinate: (event: MouseEvent) => number;
38
- export declare const URLDecode: (encodedURL: string) => string;
39
- export declare const URLEncode: (plaintext: string) => string;
40
22
  export declare const getMapDimURL: (layer: WMLayer, dimensionOverride?: Dimension[]) => URLSearchParams;
41
23
  /**
42
24
  * Parses url and then it it allows for setting / changing key value pairs in that URL (From https://stackoverflow.com/questions/5999118/how-can-i-add-or-update-a-query-string-parameter)
@@ -52,12 +34,6 @@ export declare const getUriWithParam: (baseUrl: string, params?: Record<string,
52
34
  * @returns
53
35
  */
54
36
  export declare const getUriAddParam: (baseUrl: string, params: Record<string, any>) => string;
55
- /**
56
- * Converts a JS date to a ISO8601 string
57
- * @param date
58
- * @returns ISO8601 string
59
- */
60
- export declare const dateToISO8601: (date: Date) => string;
61
37
  /**
62
38
  * Helper function to figure out the styles from the WMS layer object from the WMS GetCapabilities document
63
39
  * @param layerObjectFromWMS The layer object from the WMS GetCapabilities JSON document
@@ -1,8 +1,7 @@
1
- /// <reference types="node" />
2
1
  import WMJSDimension from './WMJSDimension';
3
2
  import WMProjection from './WMProjection';
4
3
  import { Style, GeographicBoundingBox, GetCapabilitiesJson } from './types';
5
- import type { LayerType, LayerOptions } from './WMLayerTypes';
4
+ import { LayerOptions, LayerType } from './WMLayerTypes';
6
5
  export default class WMLayer {
7
6
  id: string;
8
7
  name?: string;
@@ -6,7 +6,8 @@ export declare enum LayerType {
6
6
  mapLayer = "mapLayer",
7
7
  baseLayer = "baseLayer",
8
8
  overLayer = "overLayer",
9
- featureLayer = "featureLayer"
9
+ featureLayer = "featureLayer",
10
+ edrLayer = "edrLayer"
10
11
  }
11
12
  export interface TiledLayerFoundation {
12
13
  tileServer?: TileServerSettings;
@@ -1,4 +1,4 @@
1
- import { isDefined, WMJScheckURL, URLDecode, URLEncode, toArray, debugLogger, DebugType, getUriWithParam, getMapDimURL } from './WMJSTools';
1
+ import { isDefined, toArray, debugLogger, DebugType, getUriWithParam, getMapDimURL } from './WMJSTools';
2
2
  import { parseISO8601DateToDate, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration } from './WMTime';
3
3
  import WMImage from './WMImage';
4
4
  import { getLegendGraphicURLForLayer, legendImageStore } from './WMLegend';
@@ -15,7 +15,7 @@ export { default as WMBBOX } from './WMBBOX';
15
15
  export type { Bbox } from './WMBBOX';
16
16
  export type { WMProjectionWH } from './WMProjection';
17
17
  export { WMProjection };
18
- export { DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMJScheckURL, URLEncode, URLDecode, parseISO8601DateToDate, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debugLogger, DebugType, WMImageEventType, getUriWithParam, getMapDimURL, WMListener, WMXMLStringToJson, };
18
+ export { DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, parseISO8601DateToDate, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debugLogger, DebugType, WMImageEventType, getUriWithParam, getMapDimURL, WMListener, WMXMLStringToJson, };
19
19
  export * from './types';
20
20
  export * from './WMTimeTypes';
21
21
  export * from './WMConstants';
@@ -1,2 +0,0 @@
1
- import proj4 from 'proj4';
2
- export { proj4 };
@@ -1,5 +0,0 @@
1
- export declare class WMMemo {
2
- constructor();
3
- obj: object;
4
- checkIfChanged(obj: object): boolean;
5
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Set the length of the timer, in milli seconds, after time has elapsed function is called
3
- * @param secstime Time in milli seconds
4
- * @param functionhandler Function to call after time is elapsed
5
- */
6
- declare class WMTimer {
7
- private timer;
8
- init(delayInMiliseconds: number, callback: () => void): void;
9
- stop(): void;
10
- }
11
- export default WMTimer;
@@ -1 +0,0 @@
1
- export {};