@opengeoweb/webmap 6.1.0 → 6.1.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.esm.js CHANGED
@@ -2,337 +2,342 @@ import { debounce, throttle } from 'throttle-debounce';
2
2
  import { dateUtils } from '@opengeoweb/shared';
3
3
  import proj4 from 'proj4';
4
4
 
5
- function _iterableToArrayLimit(arr, i) {
6
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
7
- if (null != _i) {
8
- var _s,
9
- _e,
10
- _x,
11
- _r,
12
- _arr = [],
13
- _n = !0,
14
- _d = !1;
5
+ function _iterableToArrayLimit(r, l) {
6
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
7
+ if (null != t) {
8
+ var e,
9
+ n,
10
+ i,
11
+ u,
12
+ a = [],
13
+ f = !0,
14
+ o = !1;
15
15
  try {
16
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
17
- if (Object(_i) !== _i) return;
18
- _n = !1;
19
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
20
- } catch (err) {
21
- _d = !0, _e = err;
16
+ if (i = (t = t.call(r)).next, 0 === l) {
17
+ if (Object(t) !== t) return;
18
+ f = !1;
19
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
20
+ } catch (r) {
21
+ o = !0, n = r;
22
22
  } finally {
23
23
  try {
24
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
24
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
25
25
  } finally {
26
- if (_d) throw _e;
26
+ if (o) throw n;
27
27
  }
28
28
  }
29
- return _arr;
29
+ return a;
30
30
  }
31
31
  }
32
32
  function _regeneratorRuntime() {
33
33
  _regeneratorRuntime = function () {
34
- return exports;
34
+ return e;
35
35
  };
36
- var exports = {},
37
- Op = Object.prototype,
38
- hasOwn = Op.hasOwnProperty,
39
- defineProperty = Object.defineProperty || function (obj, key, desc) {
40
- obj[key] = desc.value;
36
+ var t,
37
+ e = {},
38
+ r = Object.prototype,
39
+ n = r.hasOwnProperty,
40
+ o = Object.defineProperty || function (t, e, r) {
41
+ t[e] = r.value;
41
42
  },
42
- $Symbol = "function" == typeof Symbol ? Symbol : {},
43
- iteratorSymbol = $Symbol.iterator || "@@iterator",
44
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
45
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
46
- function define(obj, key, value) {
47
- return Object.defineProperty(obj, key, {
48
- value: value,
43
+ i = "function" == typeof Symbol ? Symbol : {},
44
+ a = i.iterator || "@@iterator",
45
+ c = i.asyncIterator || "@@asyncIterator",
46
+ u = i.toStringTag || "@@toStringTag";
47
+ function define(t, e, r) {
48
+ return Object.defineProperty(t, e, {
49
+ value: r,
49
50
  enumerable: !0,
50
51
  configurable: !0,
51
52
  writable: !0
52
- }), obj[key];
53
+ }), t[e];
53
54
  }
54
55
  try {
55
56
  define({}, "");
56
- } catch (err) {
57
- define = function (obj, key, value) {
58
- return obj[key] = value;
57
+ } catch (t) {
58
+ define = function (t, e, r) {
59
+ return t[e] = r;
59
60
  };
60
61
  }
61
- function wrap(innerFn, outerFn, self, tryLocsList) {
62
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
63
- generator = Object.create(protoGenerator.prototype),
64
- context = new Context(tryLocsList || []);
65
- return defineProperty(generator, "_invoke", {
66
- value: makeInvokeMethod(innerFn, self, context)
67
- }), generator;
62
+ function wrap(t, e, r, n) {
63
+ var i = e && e.prototype instanceof Generator ? e : Generator,
64
+ a = Object.create(i.prototype),
65
+ c = new Context(n || []);
66
+ return o(a, "_invoke", {
67
+ value: makeInvokeMethod(t, r, c)
68
+ }), a;
68
69
  }
69
- function tryCatch(fn, obj, arg) {
70
+ function tryCatch(t, e, r) {
70
71
  try {
71
72
  return {
72
73
  type: "normal",
73
- arg: fn.call(obj, arg)
74
+ arg: t.call(e, r)
74
75
  };
75
- } catch (err) {
76
+ } catch (t) {
76
77
  return {
77
78
  type: "throw",
78
- arg: err
79
+ arg: t
79
80
  };
80
81
  }
81
82
  }
82
- exports.wrap = wrap;
83
- var ContinueSentinel = {};
83
+ e.wrap = wrap;
84
+ var h = "suspendedStart",
85
+ l = "suspendedYield",
86
+ f = "executing",
87
+ s = "completed",
88
+ y = {};
84
89
  function Generator() {}
85
90
  function GeneratorFunction() {}
86
91
  function GeneratorFunctionPrototype() {}
87
- var IteratorPrototype = {};
88
- define(IteratorPrototype, iteratorSymbol, function () {
92
+ var p = {};
93
+ define(p, a, function () {
89
94
  return this;
90
95
  });
91
- var getProto = Object.getPrototypeOf,
92
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
93
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
94
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
95
- function defineIteratorMethods(prototype) {
96
- ["next", "throw", "return"].forEach(function (method) {
97
- define(prototype, method, function (arg) {
98
- return this._invoke(method, arg);
96
+ var d = Object.getPrototypeOf,
97
+ v = d && d(d(values([])));
98
+ v && v !== r && n.call(v, a) && (p = v);
99
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
100
+ function defineIteratorMethods(t) {
101
+ ["next", "throw", "return"].forEach(function (e) {
102
+ define(t, e, function (t) {
103
+ return this._invoke(e, t);
99
104
  });
100
105
  });
101
106
  }
102
- function AsyncIterator(generator, PromiseImpl) {
103
- function invoke(method, arg, resolve, reject) {
104
- var record = tryCatch(generator[method], generator, arg);
105
- if ("throw" !== record.type) {
106
- var result = record.arg,
107
- value = result.value;
108
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
109
- invoke("next", value, resolve, reject);
110
- }, function (err) {
111
- invoke("throw", err, resolve, reject);
112
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
113
- result.value = unwrapped, resolve(result);
114
- }, function (error) {
115
- return invoke("throw", error, resolve, reject);
107
+ function AsyncIterator(t, e) {
108
+ function invoke(r, o, i, a) {
109
+ var c = tryCatch(t[r], t, o);
110
+ if ("throw" !== c.type) {
111
+ var u = c.arg,
112
+ h = u.value;
113
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
114
+ invoke("next", t, i, a);
115
+ }, function (t) {
116
+ invoke("throw", t, i, a);
117
+ }) : e.resolve(h).then(function (t) {
118
+ u.value = t, i(u);
119
+ }, function (t) {
120
+ return invoke("throw", t, i, a);
116
121
  });
117
122
  }
118
- reject(record.arg);
123
+ a(c.arg);
119
124
  }
120
- var previousPromise;
121
- defineProperty(this, "_invoke", {
122
- value: function (method, arg) {
125
+ var r;
126
+ o(this, "_invoke", {
127
+ value: function (t, n) {
123
128
  function callInvokeWithMethodAndArg() {
124
- return new PromiseImpl(function (resolve, reject) {
125
- invoke(method, arg, resolve, reject);
129
+ return new e(function (e, r) {
130
+ invoke(t, n, e, r);
126
131
  });
127
132
  }
128
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
133
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
129
134
  }
130
135
  });
131
136
  }
132
- function makeInvokeMethod(innerFn, self, context) {
133
- var state = "suspendedStart";
134
- return function (method, arg) {
135
- if ("executing" === state) throw new Error("Generator is already running");
136
- if ("completed" === state) {
137
- if ("throw" === method) throw arg;
137
+ function makeInvokeMethod(e, r, n) {
138
+ var o = h;
139
+ return function (i, a) {
140
+ if (o === f) throw new Error("Generator is already running");
141
+ if (o === s) {
142
+ if ("throw" === i) throw a;
138
143
  return {
139
- value: void 0,
144
+ value: t,
140
145
  done: !0
141
146
  };
142
147
  }
143
- for (context.method = method, context.arg = arg;;) {
144
- var delegate = context.delegate;
145
- if (delegate) {
146
- var delegateResult = maybeInvokeDelegate(delegate, context);
147
- if (delegateResult) {
148
- if (delegateResult === ContinueSentinel) continue;
149
- return delegateResult;
148
+ for (n.method = i, n.arg = a;;) {
149
+ var c = n.delegate;
150
+ if (c) {
151
+ var u = maybeInvokeDelegate(c, n);
152
+ if (u) {
153
+ if (u === y) continue;
154
+ return u;
150
155
  }
151
156
  }
152
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
153
- if ("suspendedStart" === state) throw state = "completed", context.arg;
154
- context.dispatchException(context.arg);
155
- } else "return" === context.method && context.abrupt("return", context.arg);
156
- state = "executing";
157
- var record = tryCatch(innerFn, self, context);
158
- if ("normal" === record.type) {
159
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
157
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
158
+ if (o === h) throw o = s, n.arg;
159
+ n.dispatchException(n.arg);
160
+ } else "return" === n.method && n.abrupt("return", n.arg);
161
+ o = f;
162
+ var p = tryCatch(e, r, n);
163
+ if ("normal" === p.type) {
164
+ if (o = n.done ? s : l, p.arg === y) continue;
160
165
  return {
161
- value: record.arg,
162
- done: context.done
166
+ value: p.arg,
167
+ done: n.done
163
168
  };
164
169
  }
165
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
170
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
166
171
  }
167
172
  };
168
173
  }
169
- function maybeInvokeDelegate(delegate, context) {
170
- var methodName = context.method,
171
- method = delegate.iterator[methodName];
172
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
173
- var record = tryCatch(method, delegate.iterator, context.arg);
174
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
175
- var info = record.arg;
176
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
174
+ function maybeInvokeDelegate(e, r) {
175
+ var n = r.method,
176
+ o = e.iterator[n];
177
+ 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;
178
+ var i = tryCatch(o, e.iterator, r.arg);
179
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
180
+ var a = i.arg;
181
+ 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);
177
182
  }
178
- function pushTryEntry(locs) {
179
- var entry = {
180
- tryLoc: locs[0]
183
+ function pushTryEntry(t) {
184
+ var e = {
185
+ tryLoc: t[0]
181
186
  };
182
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
187
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
183
188
  }
184
- function resetTryEntry(entry) {
185
- var record = entry.completion || {};
186
- record.type = "normal", delete record.arg, entry.completion = record;
189
+ function resetTryEntry(t) {
190
+ var e = t.completion || {};
191
+ e.type = "normal", delete e.arg, t.completion = e;
187
192
  }
188
- function Context(tryLocsList) {
193
+ function Context(t) {
189
194
  this.tryEntries = [{
190
195
  tryLoc: "root"
191
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
196
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
192
197
  }
193
- function values(iterable) {
194
- if (iterable || "" === iterable) {
195
- var iteratorMethod = iterable[iteratorSymbol];
196
- if (iteratorMethod) return iteratorMethod.call(iterable);
197
- if ("function" == typeof iterable.next) return iterable;
198
- if (!isNaN(iterable.length)) {
199
- var i = -1,
200
- next = function next() {
201
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
202
- return next.value = undefined, next.done = !0, next;
198
+ function values(e) {
199
+ if (e || "" === e) {
200
+ var r = e[a];
201
+ if (r) return r.call(e);
202
+ if ("function" == typeof e.next) return e;
203
+ if (!isNaN(e.length)) {
204
+ var o = -1,
205
+ i = function next() {
206
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
207
+ return next.value = t, next.done = !0, next;
203
208
  };
204
- return next.next = next;
209
+ return i.next = i;
205
210
  }
206
211
  }
207
- throw new TypeError(typeof iterable + " is not iterable");
212
+ throw new TypeError(typeof e + " is not iterable");
208
213
  }
209
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
214
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
210
215
  value: GeneratorFunctionPrototype,
211
216
  configurable: !0
212
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
217
+ }), o(GeneratorFunctionPrototype, "constructor", {
213
218
  value: GeneratorFunction,
214
219
  configurable: !0
215
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
216
- var ctor = "function" == typeof genFun && genFun.constructor;
217
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
218
- }, exports.mark = function (genFun) {
219
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
220
- }, exports.awrap = function (arg) {
220
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
221
+ var e = "function" == typeof t && t.constructor;
222
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
223
+ }, e.mark = function (t) {
224
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
225
+ }, e.awrap = function (t) {
221
226
  return {
222
- __await: arg
227
+ __await: t
223
228
  };
224
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
229
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
225
230
  return this;
226
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
227
- void 0 === PromiseImpl && (PromiseImpl = Promise);
228
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
229
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
230
- return result.done ? result.value : iter.next();
231
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
232
+ void 0 === i && (i = Promise);
233
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
234
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
235
+ return t.done ? t.value : a.next();
231
236
  });
232
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
237
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
233
238
  return this;
234
- }), define(Gp, "toString", function () {
239
+ }), define(g, "toString", function () {
235
240
  return "[object Generator]";
236
- }), exports.keys = function (val) {
237
- var object = Object(val),
238
- keys = [];
239
- for (var key in object) keys.push(key);
240
- return keys.reverse(), function next() {
241
- for (; keys.length;) {
242
- var key = keys.pop();
243
- if (key in object) return next.value = key, next.done = !1, next;
241
+ }), e.keys = function (t) {
242
+ var e = Object(t),
243
+ r = [];
244
+ for (var n in e) r.push(n);
245
+ return r.reverse(), function next() {
246
+ for (; r.length;) {
247
+ var t = r.pop();
248
+ if (t in e) return next.value = t, next.done = !1, next;
244
249
  }
245
250
  return next.done = !0, next;
246
251
  };
247
- }, exports.values = values, Context.prototype = {
252
+ }, e.values = values, Context.prototype = {
248
253
  constructor: Context,
249
- reset: function (skipTempReset) {
250
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
254
+ reset: function (e) {
255
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, 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);
251
256
  },
252
257
  stop: function () {
253
258
  this.done = !0;
254
- var rootRecord = this.tryEntries[0].completion;
255
- if ("throw" === rootRecord.type) throw rootRecord.arg;
259
+ var t = this.tryEntries[0].completion;
260
+ if ("throw" === t.type) throw t.arg;
256
261
  return this.rval;
257
262
  },
258
- dispatchException: function (exception) {
259
- if (this.done) throw exception;
260
- var context = this;
261
- function handle(loc, caught) {
262
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
263
- }
264
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
265
- var entry = this.tryEntries[i],
266
- record = entry.completion;
267
- if ("root" === entry.tryLoc) return handle("end");
268
- if (entry.tryLoc <= this.prev) {
269
- var hasCatch = hasOwn.call(entry, "catchLoc"),
270
- hasFinally = hasOwn.call(entry, "finallyLoc");
271
- if (hasCatch && hasFinally) {
272
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
273
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
274
- } else if (hasCatch) {
275
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
263
+ dispatchException: function (e) {
264
+ if (this.done) throw e;
265
+ var r = this;
266
+ function handle(n, o) {
267
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
268
+ }
269
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
270
+ var i = this.tryEntries[o],
271
+ a = i.completion;
272
+ if ("root" === i.tryLoc) return handle("end");
273
+ if (i.tryLoc <= this.prev) {
274
+ var c = n.call(i, "catchLoc"),
275
+ u = n.call(i, "finallyLoc");
276
+ if (c && u) {
277
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
278
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
279
+ } else if (c) {
280
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
276
281
  } else {
277
- if (!hasFinally) throw new Error("try statement without catch or finally");
278
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
282
+ if (!u) throw new Error("try statement without catch or finally");
283
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
279
284
  }
280
285
  }
281
286
  }
282
287
  },
283
- abrupt: function (type, arg) {
284
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
285
- var entry = this.tryEntries[i];
286
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
287
- var finallyEntry = entry;
288
+ abrupt: function (t, e) {
289
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
290
+ var o = this.tryEntries[r];
291
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
292
+ var i = o;
288
293
  break;
289
294
  }
290
295
  }
291
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
292
- var record = finallyEntry ? finallyEntry.completion : {};
293
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
296
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
297
+ var a = i ? i.completion : {};
298
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
294
299
  },
295
- complete: function (record, afterLoc) {
296
- if ("throw" === record.type) throw record.arg;
297
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
300
+ complete: function (t, e) {
301
+ if ("throw" === t.type) throw t.arg;
302
+ 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;
298
303
  },
299
- finish: function (finallyLoc) {
300
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
301
- var entry = this.tryEntries[i];
302
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
304
+ finish: function (t) {
305
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
306
+ var r = this.tryEntries[e];
307
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
303
308
  }
304
309
  },
305
- catch: function (tryLoc) {
306
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
307
- var entry = this.tryEntries[i];
308
- if (entry.tryLoc === tryLoc) {
309
- var record = entry.completion;
310
- if ("throw" === record.type) {
311
- var thrown = record.arg;
312
- resetTryEntry(entry);
310
+ catch: function (t) {
311
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
312
+ var r = this.tryEntries[e];
313
+ if (r.tryLoc === t) {
314
+ var n = r.completion;
315
+ if ("throw" === n.type) {
316
+ var o = n.arg;
317
+ resetTryEntry(r);
313
318
  }
314
- return thrown;
319
+ return o;
315
320
  }
316
321
  }
317
322
  throw new Error("illegal catch attempt");
318
323
  },
319
- delegateYield: function (iterable, resultName, nextLoc) {
324
+ delegateYield: function (e, r, n) {
320
325
  return this.delegate = {
321
- iterator: values(iterable),
322
- resultName: resultName,
323
- nextLoc: nextLoc
324
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
326
+ iterator: values(e),
327
+ resultName: r,
328
+ nextLoc: n
329
+ }, "next" === this.method && (this.arg = t), y;
325
330
  }
326
- }, exports;
331
+ }, e;
327
332
  }
328
- function _typeof$1(obj) {
333
+ function _typeof$1(o) {
329
334
  "@babel/helpers - typeof";
330
335
 
331
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
332
- return typeof obj;
333
- } : function (obj) {
334
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
335
- }, _typeof$1(obj);
336
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
337
+ return typeof o;
338
+ } : function (o) {
339
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
340
+ }, _typeof$1(o);
336
341
  }
337
342
  function _classCallCheck(instance, Constructor) {
338
343
  if (!(instance instanceof Constructor)) {
@@ -25571,14 +25576,14 @@ var moment$1 = {exports: {}};
25571
25576
 
25572
25577
  var moment = moment$1.exports;
25573
25578
 
25574
- function _typeof(obj) {
25579
+ function _typeof(o) {
25575
25580
  "@babel/helpers - typeof";
25576
25581
 
25577
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
25578
- return typeof obj;
25579
- } : function (obj) {
25580
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
25581
- }, _typeof(obj);
25582
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
25583
+ return typeof o;
25584
+ } : function (o) {
25585
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
25586
+ }, _typeof(o);
25582
25587
  }
25583
25588
 
25584
25589
  function requiredArgs(required, args) {
@@ -31874,6 +31879,23 @@ var utils = /*#__PURE__*/Object.freeze({
31874
31879
  * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
31875
31880
  * Copyright 2023 - Finnish Meteorological Institute (FMI)
31876
31881
  * */
31882
+ var defaultReduxLayerRadarColor = {
31883
+ service: 'https://testservice',
31884
+ name: 'RAD_NL25_PCP_CM',
31885
+ title: 'RAD_NL25_PCP_CM',
31886
+ format: 'image/png',
31887
+ style: 'rainbow/nearest',
31888
+ enabled: true,
31889
+ layerType: LayerType.mapLayer,
31890
+ dimensions: [],
31891
+ styles: [{
31892
+ title: 'rainbow/nearest',
31893
+ name: 'rainbow/nearest',
31894
+ legendURL: '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',
31895
+ "abstract": 'No abstract available'
31896
+ }],
31897
+ id: 'layerid_1'
31898
+ };
31877
31899
  var multiDimensionLayer = {
31878
31900
  service: 'https://testservice',
31879
31901
  id: 'multiDimensionLayerMock',
@@ -32193,6 +32215,7 @@ var styleListForRADNL25PCPCMLayer = [{
32193
32215
 
32194
32216
  var testSettings = /*#__PURE__*/Object.freeze({
32195
32217
  __proto__: null,
32218
+ defaultReduxLayerRadarColor: defaultReduxLayerRadarColor,
32196
32219
  multiDimensionLayer: multiDimensionLayer,
32197
32220
  WmdefaultReduxLayerRadarKNMI: WmdefaultReduxLayerRadarKNMI,
32198
32221
  defaultReduxLayerRadarKNMI: defaultReduxLayerRadarKNMI,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,7 +12,7 @@
12
12
  "main": "./index.esm.js",
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
- "@opengeoweb/shared": "6.1.0",
15
+ "@opengeoweb/shared": "6.1.1",
16
16
  "date-fns": "2.30.0",
17
17
  "lodash": "4.17.21",
18
18
  "moment": "2.29.4",
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ import { FeatureCollection } from 'geojson';
2
3
  import type WMJSMap from './WMJSMap';
3
4
  import WMJSDimension from './WMJSDimension';
4
5
  import WMProjection from './WMProjection';
@@ -11,6 +12,7 @@ export declare enum LayerType {
11
12
  featureLayer = "featureLayer"
12
13
  }
13
14
  export interface LayerFoundation {
15
+ acceptanceTimeInMinutes?: number;
14
16
  dimensions?: Dimension[];
15
17
  enabled?: boolean;
16
18
  format?: string;
@@ -22,6 +24,7 @@ export interface LayerFoundation {
22
24
  style?: string;
23
25
  title?: string;
24
26
  type?: string;
27
+ geojson?: FeatureCollection;
25
28
  }
26
29
  export interface LayerOptions extends LayerFoundation {
27
30
  id: string;
@@ -4,7 +4,6 @@ import WMTimer from './WMTimer';
4
4
  import WMGetServiceFromStore from './WMGetServiceFromStore';
5
5
  import { WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle } from './WMConstants';
6
6
  import { parseISO8601DateToDate, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration } from './WMTime';
7
- import WMBBOX from './WMBBOX';
8
7
  import I18n from '../utils/I18n/lang.en';
9
8
  import WMImage from './WMImage';
10
9
  import { getLegendGraphicURLForLayer, legendImageStore } from './WMLegend';
@@ -13,6 +12,8 @@ import { WMJSService } from './WMJSService';
13
12
  import WMJSDimension from './WMJSDimension';
14
13
  export { default as WMLayer, LayerType } from './WMLayer';
15
14
  export type { LayerOptions, LayerFoundation } from './WMLayer';
16
- export { WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMTimer, WMGetServiceFromStore, WMJScheckURL, URLEncode, URLDecode, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle, parseISO8601DateToDate, I18n, WMBBOX, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debug, DebugType, WMImageEventType, WMJSService, getMapImageStore, WMJSDimension, clearImageCache, };
15
+ export { default as WMBBOX } from './WMBBOX';
16
+ export type { Bbox } from './WMBBOX';
17
+ export { WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMTimer, WMGetServiceFromStore, WMJScheckURL, URLEncode, URLDecode, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle, parseISO8601DateToDate, I18n, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debug, DebugType, WMImageEventType, WMJSService, getMapImageStore, WMJSDimension, clearImageCache, };
17
18
  export * from './types';
18
19
  export * from './WMTimeTypes';
@@ -41,6 +41,7 @@ export type Dimension = {
41
41
  synced?: boolean;
42
42
  values?: string;
43
43
  unitSymbol?: string;
44
+ validSyncSelection?: boolean;
44
45
  };
45
46
  export interface Style {
46
47
  title: string;
@@ -1,4 +1,21 @@
1
- import { CoordinateReferenceSystem, Dimension, LayerFoundation, LayerOptions, Style, WMLayer } from '../components';
1
+ import { CoordinateReferenceSystem, Dimension, LayerFoundation, LayerOptions, LayerType, Style, WMLayer } from '../components';
2
+ export declare const defaultReduxLayerRadarColor: {
3
+ service: string;
4
+ name: string;
5
+ title: string;
6
+ format: string;
7
+ style: string;
8
+ enabled: boolean;
9
+ layerType: LayerType;
10
+ dimensions: never[];
11
+ styles: {
12
+ title: string;
13
+ name: string;
14
+ legendURL: string;
15
+ abstract: string;
16
+ }[];
17
+ id: string;
18
+ };
2
19
  export declare const multiDimensionLayer: LayerFoundation;
3
20
  export declare const WmdefaultReduxLayerRadarKNMI: WMLayer;
4
21
  export declare const defaultReduxLayerRadarKNMI: LayerFoundation & {