@opengeoweb/webmap 12.10.0 → 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 +259 -307
- package/package.json +2 -3
- package/src/lib/components/WMLayer.d.ts +1 -2
- package/src/lib/components/WMLayerTypes.d.ts +2 -1
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
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
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
|
-
|
|
123
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
210
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
154
211
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
var
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|
-
|
|
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");
|
|
@@ -1110,7 +1055,7 @@ var WMImage = /*#__PURE__*/function () {
|
|
|
1110
1055
|
_proto.loadAwait =
|
|
1111
1056
|
/*#__PURE__*/
|
|
1112
1057
|
function () {
|
|
1113
|
-
var _loadAwait = _asyncToGenerator(
|
|
1058
|
+
var _loadAwait = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1114
1059
|
var _this2 = this;
|
|
1115
1060
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1116
1061
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -2441,6 +2386,7 @@ var LayerType;
|
|
|
2441
2386
|
LayerType["baseLayer"] = "baseLayer";
|
|
2442
2387
|
LayerType["overLayer"] = "overLayer";
|
|
2443
2388
|
LayerType["featureLayer"] = "featureLayer";
|
|
2389
|
+
LayerType["edrLayer"] = "edrLayer";
|
|
2444
2390
|
})(LayerType || (LayerType = {}));
|
|
2445
2391
|
|
|
2446
2392
|
/* *
|
|
@@ -3369,7 +3315,7 @@ var privateGetOGCCapabilitiesUrl = function privateGetOGCCapabilitiesUrl(url, se
|
|
|
3369
3315
|
}, additionalParams));
|
|
3370
3316
|
};
|
|
3371
3317
|
var privateWmsGetCapabilities = /*#__PURE__*/function () {
|
|
3372
|
-
var _ref2 = _asyncToGenerator(
|
|
3318
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(serviceUrl, headers, forceReload) {
|
|
3373
3319
|
var addParams, url;
|
|
3374
3320
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3375
3321
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -3420,7 +3366,7 @@ var privateWmsGetCapabilities = /*#__PURE__*/function () {
|
|
|
3420
3366
|
};
|
|
3421
3367
|
}();
|
|
3422
3368
|
var privateWmtsGetCapabilities = /*#__PURE__*/function () {
|
|
3423
|
-
var _ref3 = _asyncToGenerator(
|
|
3369
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(serviceUrl, headers, forceReload) {
|
|
3424
3370
|
var addParams, url, fetchHeaders, _iterator, _step, header;
|
|
3425
3371
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
3426
3372
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -3834,7 +3780,7 @@ var wmsQueryClient = new QueryClient({
|
|
|
3834
3780
|
* @returns {Promise<void>}
|
|
3835
3781
|
*/
|
|
3836
3782
|
var invalidateWMSGetCapabilities = /*#__PURE__*/function () {
|
|
3837
|
-
var _ref = _asyncToGenerator(
|
|
3783
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(serviceUrl) {
|
|
3838
3784
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3839
3785
|
while (1) switch (_context.prev = _context.next) {
|
|
3840
3786
|
case 0:
|
|
@@ -3862,7 +3808,7 @@ var invalidateWMSGetCapabilities = /*#__PURE__*/function () {
|
|
|
3862
3808
|
* @returns {Promise<GetCapabilitiesJson>}
|
|
3863
3809
|
*/
|
|
3864
3810
|
var queryWMSGetCapabilities = /*#__PURE__*/function () {
|
|
3865
|
-
var _ref2 = _asyncToGenerator(
|
|
3811
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(serviceUrl) {
|
|
3866
3812
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
3867
3813
|
while (1) switch (_context2.prev = _context2.next) {
|
|
3868
3814
|
case 0:
|
|
@@ -3890,7 +3836,7 @@ var queryWMSGetCapabilities = /*#__PURE__*/function () {
|
|
|
3890
3836
|
* @returns {Promise<LayerTree>}
|
|
3891
3837
|
*/
|
|
3892
3838
|
var queryWMSLayersTree = /*#__PURE__*/function () {
|
|
3893
|
-
var _ref3 = _asyncToGenerator(
|
|
3839
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(serviceUrl) {
|
|
3894
3840
|
var data;
|
|
3895
3841
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
3896
3842
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -3923,7 +3869,7 @@ var queryWMSLayersTree = /*#__PURE__*/function () {
|
|
|
3923
3869
|
* @returns {Promise<WMSServiceInfo>}
|
|
3924
3870
|
*/
|
|
3925
3871
|
var queryWMSServiceInfo = /*#__PURE__*/function () {
|
|
3926
|
-
var _ref4 = _asyncToGenerator(
|
|
3872
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(serviceUrl) {
|
|
3927
3873
|
var data;
|
|
3928
3874
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
3929
3875
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -3957,7 +3903,7 @@ var queryWMSServiceInfo = /*#__PURE__*/function () {
|
|
|
3957
3903
|
* @returns {Promise<LayerProps[]>}
|
|
3958
3904
|
*/
|
|
3959
3905
|
var queryWMSLayers = /*#__PURE__*/function () {
|
|
3960
|
-
var _ref5 = _asyncToGenerator(
|
|
3906
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(serviceUrl, forceReload) {
|
|
3961
3907
|
var data;
|
|
3962
3908
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
3963
3909
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -4001,7 +3947,7 @@ var queryWMSLayers = /*#__PURE__*/function () {
|
|
|
4001
3947
|
* @returns {Promise<LayerProps>}
|
|
4002
3948
|
*/
|
|
4003
3949
|
var queryWMSLayer = /*#__PURE__*/function () {
|
|
4004
|
-
var _ref6 = _asyncToGenerator(
|
|
3950
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(serviceUrl, name) {
|
|
4005
3951
|
var data;
|
|
4006
3952
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
4007
3953
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -4275,7 +4221,7 @@ var WMLayer = /*#__PURE__*/function () {
|
|
|
4275
4221
|
_proto.parseLayer =
|
|
4276
4222
|
/*#__PURE__*/
|
|
4277
4223
|
function () {
|
|
4278
|
-
var _parseLayer = _asyncToGenerator(
|
|
4224
|
+
var _parseLayer = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(forceReload) {
|
|
4279
4225
|
var getCapabilities, message;
|
|
4280
4226
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4281
4227
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -4283,27 +4229,33 @@ var WMLayer = /*#__PURE__*/function () {
|
|
|
4283
4229
|
if (forceReload === void 0) {
|
|
4284
4230
|
forceReload = false;
|
|
4285
4231
|
}
|
|
4232
|
+
if (!(this.layerType === LayerType.edrLayer)) {
|
|
4233
|
+
_context.next = 3;
|
|
4234
|
+
break;
|
|
4235
|
+
}
|
|
4236
|
+
return _context.abrupt("return", this);
|
|
4237
|
+
case 3:
|
|
4286
4238
|
this.hasError = false;
|
|
4287
4239
|
this.lastError = '';
|
|
4288
|
-
_context.prev =
|
|
4240
|
+
_context.prev = 5;
|
|
4289
4241
|
if (!forceReload) {
|
|
4290
|
-
_context.next =
|
|
4242
|
+
_context.next = 10;
|
|
4291
4243
|
break;
|
|
4292
4244
|
}
|
|
4293
4245
|
// eslint-disable-next-line no-console
|
|
4294
4246
|
console.log('invalidateWMSGetCapabilities');
|
|
4295
|
-
_context.next = 8;
|
|
4296
|
-
return invalidateWMSGetCapabilities(this.service);
|
|
4297
|
-
case 8:
|
|
4298
4247
|
_context.next = 10;
|
|
4299
|
-
return
|
|
4248
|
+
return invalidateWMSGetCapabilities(this.service);
|
|
4300
4249
|
case 10:
|
|
4250
|
+
_context.next = 12;
|
|
4251
|
+
return queryWMSGetCapabilities(this.service);
|
|
4252
|
+
case 12:
|
|
4301
4253
|
getCapabilities = _context.sent;
|
|
4302
4254
|
this._setWMSGetCapabilities(getCapabilities);
|
|
4303
4255
|
return _context.abrupt("return", this);
|
|
4304
|
-
case
|
|
4305
|
-
_context.prev =
|
|
4306
|
-
_context.t0 = _context["catch"](
|
|
4256
|
+
case 17:
|
|
4257
|
+
_context.prev = 17;
|
|
4258
|
+
_context.t0 = _context["catch"](5);
|
|
4307
4259
|
this.hasError = true;
|
|
4308
4260
|
message = !this.lastError.length ? consoleErrorMessages.noCapabilityElementFound + "[in " + this.service + "] with message [" + _context.t0.message + "]" : this.lastError;
|
|
4309
4261
|
this.title = consoleErrorMessages.serviceHasError;
|
|
@@ -4311,11 +4263,11 @@ var WMLayer = /*#__PURE__*/function () {
|
|
|
4311
4263
|
this._options.failure(this, message);
|
|
4312
4264
|
}
|
|
4313
4265
|
throw new Error(message);
|
|
4314
|
-
case
|
|
4266
|
+
case 24:
|
|
4315
4267
|
case "end":
|
|
4316
4268
|
return _context.stop();
|
|
4317
4269
|
}
|
|
4318
|
-
}, _callee, this, [[
|
|
4270
|
+
}, _callee, this, [[5, 17]]);
|
|
4319
4271
|
}));
|
|
4320
4272
|
function parseLayer(_x) {
|
|
4321
4273
|
return _parseLayer.apply(this, arguments);
|
|
@@ -5740,7 +5692,7 @@ var mockGetLayersFromService = function mockGetLayersFromService(url) {
|
|
|
5740
5692
|
}
|
|
5741
5693
|
};
|
|
5742
5694
|
var mockGetLayersFlattenedFromService = /*#__PURE__*/function () {
|
|
5743
|
-
var _ref = _asyncToGenerator(
|
|
5695
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(url) {
|
|
5744
5696
|
var layers, serviceLayers, _iterator, _step, object;
|
|
5745
5697
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5746
5698
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -5947,7 +5899,7 @@ var mockGetCap = {
|
|
|
5947
5899
|
}
|
|
5948
5900
|
};
|
|
5949
5901
|
var mockGetCapabilitiesFetcher = /*#__PURE__*/function () {
|
|
5950
|
-
var _ref2 = _asyncToGenerator(
|
|
5902
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(serviceUrl) {
|
|
5951
5903
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
5952
5904
|
while (1) switch (_context2.prev = _context2.next) {
|
|
5953
5905
|
case 0:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap",
|
|
3
|
-
"version": "12.
|
|
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,13 +8,12 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "12.
|
|
11
|
+
"@opengeoweb/shared": "12.11.0",
|
|
12
12
|
"@tanstack/query-core": "^5.69.2",
|
|
13
13
|
"lodash": "^4.17.21",
|
|
14
14
|
"i18next": "^25.0.1",
|
|
15
15
|
"@types/geojson": "^7946.0.14"
|
|
16
16
|
},
|
|
17
|
-
"peerDependencies": {},
|
|
18
17
|
"module": "./index.esm.js",
|
|
19
18
|
"type": "module",
|
|
20
19
|
"main": "./index.esm.js",
|
|
@@ -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
|
|
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;
|