@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(
|
|
6
|
-
var
|
|
7
|
-
if (null !=
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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 (
|
|
17
|
-
if (Object(
|
|
18
|
-
|
|
19
|
-
} else for (; !(
|
|
20
|
-
} catch (
|
|
21
|
-
|
|
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 (!
|
|
24
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
25
25
|
} finally {
|
|
26
|
-
if (
|
|
26
|
+
if (o) throw n;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return a;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
function _regeneratorRuntime() {
|
|
33
33
|
_regeneratorRuntime = function () {
|
|
34
|
-
return
|
|
34
|
+
return e;
|
|
35
35
|
};
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
function define(
|
|
47
|
-
return Object.defineProperty(
|
|
48
|
-
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
|
-
}),
|
|
53
|
+
}), t[e];
|
|
53
54
|
}
|
|
54
55
|
try {
|
|
55
56
|
define({}, "");
|
|
56
|
-
} catch (
|
|
57
|
-
define = function (
|
|
58
|
-
return
|
|
57
|
+
} catch (t) {
|
|
58
|
+
define = function (t, e, r) {
|
|
59
|
+
return t[e] = r;
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
function wrap(
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return
|
|
66
|
-
value: makeInvokeMethod(
|
|
67
|
-
}),
|
|
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(
|
|
70
|
+
function tryCatch(t, e, r) {
|
|
70
71
|
try {
|
|
71
72
|
return {
|
|
72
73
|
type: "normal",
|
|
73
|
-
arg:
|
|
74
|
+
arg: t.call(e, r)
|
|
74
75
|
};
|
|
75
|
-
} catch (
|
|
76
|
+
} catch (t) {
|
|
76
77
|
return {
|
|
77
78
|
type: "throw",
|
|
78
|
-
arg:
|
|
79
|
+
arg: t
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
|
-
|
|
83
|
-
var
|
|
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
|
|
88
|
-
define(
|
|
92
|
+
var p = {};
|
|
93
|
+
define(p, a, function () {
|
|
89
94
|
return this;
|
|
90
95
|
});
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
var
|
|
95
|
-
function defineIteratorMethods(
|
|
96
|
-
["next", "throw", "return"].forEach(function (
|
|
97
|
-
define(
|
|
98
|
-
return this._invoke(
|
|
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(
|
|
103
|
-
function invoke(
|
|
104
|
-
var
|
|
105
|
-
if ("throw" !==
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
return
|
|
109
|
-
invoke("next",
|
|
110
|
-
}, function (
|
|
111
|
-
invoke("throw",
|
|
112
|
-
}) :
|
|
113
|
-
|
|
114
|
-
}, function (
|
|
115
|
-
return invoke("throw",
|
|
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
|
-
|
|
123
|
+
a(c.arg);
|
|
119
124
|
}
|
|
120
|
-
var
|
|
121
|
-
|
|
122
|
-
value: function (
|
|
125
|
+
var r;
|
|
126
|
+
o(this, "_invoke", {
|
|
127
|
+
value: function (t, n) {
|
|
123
128
|
function callInvokeWithMethodAndArg() {
|
|
124
|
-
return new
|
|
125
|
-
invoke(
|
|
129
|
+
return new e(function (e, r) {
|
|
130
|
+
invoke(t, n, e, r);
|
|
126
131
|
});
|
|
127
132
|
}
|
|
128
|
-
return
|
|
133
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
129
134
|
}
|
|
130
135
|
});
|
|
131
136
|
}
|
|
132
|
-
function makeInvokeMethod(
|
|
133
|
-
var
|
|
134
|
-
return function (
|
|
135
|
-
if (
|
|
136
|
-
if (
|
|
137
|
-
if ("throw" ===
|
|
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:
|
|
144
|
+
value: t,
|
|
140
145
|
done: !0
|
|
141
146
|
};
|
|
142
147
|
}
|
|
143
|
-
for (
|
|
144
|
-
var
|
|
145
|
-
if (
|
|
146
|
-
var
|
|
147
|
-
if (
|
|
148
|
-
if (
|
|
149
|
-
return
|
|
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" ===
|
|
153
|
-
if (
|
|
154
|
-
|
|
155
|
-
} else "return" ===
|
|
156
|
-
|
|
157
|
-
var
|
|
158
|
-
if ("normal" ===
|
|
159
|
-
if (
|
|
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:
|
|
162
|
-
done:
|
|
166
|
+
value: p.arg,
|
|
167
|
+
done: n.done
|
|
163
168
|
};
|
|
164
169
|
}
|
|
165
|
-
"throw" ===
|
|
170
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
166
171
|
}
|
|
167
172
|
};
|
|
168
173
|
}
|
|
169
|
-
function maybeInvokeDelegate(
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
if (
|
|
173
|
-
var
|
|
174
|
-
if ("throw" ===
|
|
175
|
-
var
|
|
176
|
-
return
|
|
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(
|
|
179
|
-
var
|
|
180
|
-
tryLoc:
|
|
183
|
+
function pushTryEntry(t) {
|
|
184
|
+
var e = {
|
|
185
|
+
tryLoc: t[0]
|
|
181
186
|
};
|
|
182
|
-
1 in
|
|
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(
|
|
185
|
-
var
|
|
186
|
-
|
|
189
|
+
function resetTryEntry(t) {
|
|
190
|
+
var e = t.completion || {};
|
|
191
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
187
192
|
}
|
|
188
|
-
function Context(
|
|
193
|
+
function Context(t) {
|
|
189
194
|
this.tryEntries = [{
|
|
190
195
|
tryLoc: "root"
|
|
191
|
-
}],
|
|
196
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
192
197
|
}
|
|
193
|
-
function values(
|
|
194
|
-
if (
|
|
195
|
-
var
|
|
196
|
-
if (
|
|
197
|
-
if ("function" == typeof
|
|
198
|
-
if (!isNaN(
|
|
199
|
-
var
|
|
200
|
-
|
|
201
|
-
for (; ++
|
|
202
|
-
return next.value =
|
|
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
|
|
209
|
+
return i.next = i;
|
|
205
210
|
}
|
|
206
211
|
}
|
|
207
|
-
throw new TypeError(typeof
|
|
212
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
208
213
|
}
|
|
209
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
214
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
210
215
|
value: GeneratorFunctionPrototype,
|
|
211
216
|
configurable: !0
|
|
212
|
-
}),
|
|
217
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
213
218
|
value: GeneratorFunction,
|
|
214
219
|
configurable: !0
|
|
215
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
216
|
-
var
|
|
217
|
-
return !!
|
|
218
|
-
},
|
|
219
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
220
|
-
},
|
|
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:
|
|
227
|
+
__await: t
|
|
223
228
|
};
|
|
224
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
229
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
225
230
|
return this;
|
|
226
|
-
}),
|
|
227
|
-
void 0 ===
|
|
228
|
-
var
|
|
229
|
-
return
|
|
230
|
-
return
|
|
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(
|
|
237
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
233
238
|
return this;
|
|
234
|
-
}), define(
|
|
239
|
+
}), define(g, "toString", function () {
|
|
235
240
|
return "[object Generator]";
|
|
236
|
-
}),
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
for (var
|
|
240
|
-
return
|
|
241
|
-
for (;
|
|
242
|
-
var
|
|
243
|
-
if (
|
|
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
|
-
},
|
|
252
|
+
}, e.values = values, Context.prototype = {
|
|
248
253
|
constructor: Context,
|
|
249
|
-
reset: function (
|
|
250
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
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
|
|
255
|
-
if ("throw" ===
|
|
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 (
|
|
259
|
-
if (this.done) throw
|
|
260
|
-
var
|
|
261
|
-
function handle(
|
|
262
|
-
return
|
|
263
|
-
}
|
|
264
|
-
for (var
|
|
265
|
-
var
|
|
266
|
-
|
|
267
|
-
if ("root" ===
|
|
268
|
-
if (
|
|
269
|
-
var
|
|
270
|
-
|
|
271
|
-
if (
|
|
272
|
-
if (this.prev <
|
|
273
|
-
if (this.prev <
|
|
274
|
-
} else if (
|
|
275
|
-
if (this.prev <
|
|
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 (!
|
|
278
|
-
if (this.prev <
|
|
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 (
|
|
284
|
-
for (var
|
|
285
|
-
var
|
|
286
|
-
if (
|
|
287
|
-
var
|
|
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
|
-
|
|
292
|
-
var
|
|
293
|
-
return
|
|
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 (
|
|
296
|
-
if ("throw" ===
|
|
297
|
-
return "break" ===
|
|
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 (
|
|
300
|
-
for (var
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
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 (
|
|
306
|
-
for (var
|
|
307
|
-
var
|
|
308
|
-
if (
|
|
309
|
-
var
|
|
310
|
-
if ("throw" ===
|
|
311
|
-
var
|
|
312
|
-
resetTryEntry(
|
|
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
|
|
319
|
+
return o;
|
|
315
320
|
}
|
|
316
321
|
}
|
|
317
322
|
throw new Error("illegal catch attempt");
|
|
318
323
|
},
|
|
319
|
-
delegateYield: function (
|
|
324
|
+
delegateYield: function (e, r, n) {
|
|
320
325
|
return this.delegate = {
|
|
321
|
-
iterator: values(
|
|
322
|
-
resultName:
|
|
323
|
-
nextLoc:
|
|
324
|
-
}, "next" === this.method && (this.arg =
|
|
326
|
+
iterator: values(e),
|
|
327
|
+
resultName: r,
|
|
328
|
+
nextLoc: n
|
|
329
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
325
330
|
}
|
|
326
|
-
},
|
|
331
|
+
}, e;
|
|
327
332
|
}
|
|
328
|
-
function _typeof$1(
|
|
333
|
+
function _typeof$1(o) {
|
|
329
334
|
"@babel/helpers - typeof";
|
|
330
335
|
|
|
331
|
-
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
332
|
-
return typeof
|
|
333
|
-
} : function (
|
|
334
|
-
return
|
|
335
|
-
}, _typeof$1(
|
|
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(
|
|
25579
|
+
function _typeof(o) {
|
|
25575
25580
|
"@babel/helpers - typeof";
|
|
25576
25581
|
|
|
25577
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
25578
|
-
return typeof
|
|
25579
|
-
} : function (
|
|
25580
|
-
return
|
|
25581
|
-
}, _typeof(
|
|
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.
|
|
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.
|
|
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 {
|
|
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';
|
|
@@ -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 & {
|