@3clear/basegis 0.1.4 → 0.1.6
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/README.md +1700 -642
- package/dist/WindDataGrid-B1KZflZc.js +438 -0
- package/dist/assets.js +6 -2
- package/dist/basegis.js +6421 -3070
- package/dist/basemap.config-Bs1PwVYt.js +176 -0
- package/dist/html2canvas.esm-dgT_1dIT.js +4871 -0
- package/dist/layers.js +78 -69
- package/dist/methods.js +1988 -1503
- package/dist/{pointLarge-Ct8TsOPW.js → pointLarge-CNhpMZoP.js} +54 -58
- package/dist/style.css +1 -1
- package/dist/typhoon-path-BAiUgsJf.js +4 -0
- package/package.json +3 -2
- package/dist/WindDataGrid-AGJaASUG.js +0 -96
|
@@ -15,11 +15,11 @@ function b(h, t = []) {
|
|
|
15
15
|
return h.properties[l];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function U(h) {
|
|
19
19
|
var t;
|
|
20
20
|
return Array.isArray(h) ? h : Array.isArray(h == null ? void 0 : h.coordinates) ? h.coordinates : Array.isArray(h == null ? void 0 : h.position) ? h.position : Array.isArray((t = h == null ? void 0 : h.geometry) == null ? void 0 : t.coordinates) ? h.geometry.coordinates : null;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function W(h) {
|
|
23
23
|
return Array.isArray(h) ? h : Array.isArray(h == null ? void 0 : h.features) ? h.features : [];
|
|
24
24
|
}
|
|
25
25
|
function v(h, t) {
|
|
@@ -58,9 +58,9 @@ function q(h = {}) {
|
|
|
58
58
|
op: r,
|
|
59
59
|
value: s,
|
|
60
60
|
compareValue: l,
|
|
61
|
-
values:
|
|
61
|
+
values: n,
|
|
62
62
|
min: a,
|
|
63
|
-
max:
|
|
63
|
+
max: o,
|
|
64
64
|
gt: d,
|
|
65
65
|
gte: c,
|
|
66
66
|
lt: g,
|
|
@@ -80,7 +80,7 @@ class G {
|
|
|
80
80
|
}, this._boundClick = (s) => this.handleClick(s), this.options = this.normalizeOptions(e), this._readyPromise = $().then(() => {
|
|
81
81
|
this._ready = !0, !this.destroyed && (this.bindEvents(), this._needsBuild && (this._needsBuild = !1, this.rebuildSprites()));
|
|
82
82
|
}).catch((s) => {
|
|
83
|
-
console.warn("[PointLargeLayer] Leaflet.PixiOverlay 加载失败。", s);
|
|
83
|
+
this._needsBuild = !1, this._isBuilding = !1, console.warn("[PointLargeLayer] Leaflet.PixiOverlay 加载失败。", s);
|
|
84
84
|
});
|
|
85
85
|
const i = z(e, ["points", "data", "items"]), r = e.points || e.data || e.items;
|
|
86
86
|
i ? this.setData(r) : this.bindEvents();
|
|
@@ -154,7 +154,7 @@ class G {
|
|
|
154
154
|
"highlightColor",
|
|
155
155
|
"highlightOutlineColor",
|
|
156
156
|
"highlightOutlineWidth"
|
|
157
|
-
].some((
|
|
157
|
+
].some((n) => Object.prototype.hasOwnProperty.call(e, n)) && (this.defaultImage = null, this.defaultHighlightImage = null), this.options = this.normalizeOptions(i), "visible" in e && this.setVisible(e.visible);
|
|
158
158
|
const s = z(e, ["points", "data", "items"]), l = e.points || e.data || e.items;
|
|
159
159
|
s ? this.setData(l) : this.shouldRenormalizeByOptions(e) ? (this.records = this.normalizePoints(this.points), this.rebuildSprites()) : this.shouldRebuildByOptions(e) ? this.rebuildSprites() : this.shouldRestyleByOptions(e) && this.restyleSprites(), Object.prototype.hasOwnProperty.call(e, "highlightId") && this.setHighlight(e.highlightId), this.bindEvents(), Object.prototype.hasOwnProperty.call(e, "showTooltip") && !e.showTooltip && this.hideTooltip(), this.redraw();
|
|
160
160
|
}
|
|
@@ -201,14 +201,14 @@ class G {
|
|
|
201
201
|
].some((e) => Object.prototype.hasOwnProperty.call(t, e));
|
|
202
202
|
}
|
|
203
203
|
setData(t = []) {
|
|
204
|
-
this.points =
|
|
204
|
+
this.points = W(t), this.records = this.normalizePoints(this.points), this.rebuildSprites();
|
|
205
205
|
}
|
|
206
206
|
normalizePoints(t = []) {
|
|
207
207
|
var i;
|
|
208
208
|
const e = [];
|
|
209
209
|
for (let r = 0; r < t.length; r += 1) {
|
|
210
|
-
const s = t[r], l =
|
|
211
|
-
if (!Number.isFinite(
|
|
210
|
+
const s = t[r], l = U(s), n = Number(l ? l[0] : b(s, this.options.longitudeKeys)), a = Number(l ? l[1] : b(s, this.options.latitudeKeys)), o = u(l ? l[2] : b(s, this.options.heightKeys), 0);
|
|
211
|
+
if (!Number.isFinite(n) || !Number.isFinite(a))
|
|
212
212
|
continue;
|
|
213
213
|
const d = (s == null ? void 0 : s[this.options.idKey]) ?? ((i = s == null ? void 0 : s.properties) == null ? void 0 : i[this.options.idKey]) ?? r, c = v(d, r);
|
|
214
214
|
e.push({
|
|
@@ -216,9 +216,9 @@ class G {
|
|
|
216
216
|
id: d,
|
|
217
217
|
key: c,
|
|
218
218
|
index: r,
|
|
219
|
-
longitude:
|
|
219
|
+
longitude: n,
|
|
220
220
|
latitude: a,
|
|
221
|
-
height:
|
|
221
|
+
height: o,
|
|
222
222
|
sprite: null,
|
|
223
223
|
pickRadius: this.options.pickRadius
|
|
224
224
|
});
|
|
@@ -237,15 +237,15 @@ class G {
|
|
|
237
237
|
this._buildVersion = t, this._isBuilding = !0, this._pixiContainer = this.createPixiContainer(this.records.length), this._pixiContainer.visible = this.visible;
|
|
238
238
|
let e = !1, i = 0;
|
|
239
239
|
this._pixiOverlay = k.pixiOverlay((r, s = {}) => {
|
|
240
|
-
const l = r.getContainer(),
|
|
241
|
-
this._latestInvScale =
|
|
240
|
+
const l = r.getContainer(), n = r.getRenderer(), a = s == null ? void 0 : s.zoom, o = this.options.keepSize ? 1 / r.getScale(a) : 1, d = Math.abs(o - this._latestInvScale) > 1e-6;
|
|
241
|
+
this._latestInvScale = o, !e && s.type === "add" && (e = !0, this.scheduleBuildChunks({
|
|
242
242
|
version: t,
|
|
243
243
|
project: r.latLngToLayerPoint,
|
|
244
244
|
getBuildIndex: () => i,
|
|
245
245
|
setBuildIndex: (c) => {
|
|
246
246
|
i = c;
|
|
247
247
|
}
|
|
248
|
-
})), d && this.updateSpriteScales(),
|
|
248
|
+
})), d && this.updateSpriteScales(), n.render(l);
|
|
249
249
|
}, this._pixiContainer, {
|
|
250
250
|
destroyInteractionManager: !0,
|
|
251
251
|
...this.options.pixiOptions
|
|
@@ -269,13 +269,13 @@ class G {
|
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
271
|
const l = performance.now();
|
|
272
|
-
let
|
|
273
|
-
const
|
|
274
|
-
for (;
|
|
275
|
-
const c = this.records[
|
|
276
|
-
this._pixiContainer.addChild(g), this.sprites.push(g), this._spriteById.set(c.key, g), this._recordById.set(c.key, c),
|
|
272
|
+
let n = i(), a = 0;
|
|
273
|
+
const o = this.options.chunkSize, d = this.options.chunkFrameBudget;
|
|
274
|
+
for (; n < this.records.length && (o <= 0 || a < o) && performance.now() - l < d; ) {
|
|
275
|
+
const c = this.records[n], g = this.createSprite(c, e);
|
|
276
|
+
this._pixiContainer.addChild(g), this.sprites.push(g), this._spriteById.set(c.key, g), this._recordById.set(c.key, c), n += 1, a += 1;
|
|
277
277
|
}
|
|
278
|
-
if (r(
|
|
278
|
+
if (r(n), this.renderedCount = n, this.redraw({ type: "chunk" }), n < this.records.length) {
|
|
279
279
|
this._buildTimer = S(s);
|
|
280
280
|
return;
|
|
281
281
|
}
|
|
@@ -289,14 +289,14 @@ class G {
|
|
|
289
289
|
}
|
|
290
290
|
resolveSpriteStyle(t, e = !1) {
|
|
291
291
|
var y, w, I, _, O, B, P, T, K, M, H, N, R;
|
|
292
|
-
const i = ((y = t.raw) == null ? void 0 : y.properties) || {}, r = this.resolveRuleStyle(t, e), s = this.options.styleCallback ? this.options.styleCallback(t.raw, t.index, { highlighted: e }) || {} : {}, l = e && this.options.highlightStyleCallback ? this.options.highlightStyleCallback(t.raw, t.index) || {} : {},
|
|
292
|
+
const i = ((y = t.raw) == null ? void 0 : y.properties) || {}, r = this.resolveRuleStyle(t, e), s = this.options.styleCallback ? this.options.styleCallback(t.raw, t.index, { highlighted: e }) || {} : {}, l = e && this.options.highlightStyleCallback ? this.options.highlightStyleCallback(t.raw, t.index) || {} : {}, n = f((w = t.raw) == null ? void 0 : w.style) ? t.raw.style : f(i.style) ? i.style : {}, a = f((I = t.raw) == null ? void 0 : I.highlightStyle) ? t.raw.highlightStyle : f(i.highlightStyle) ? i.highlightStyle : {}, o = e ? { ...r, ...n, ...a, ...s, ...l } : { ...r, ...n, ...s }, d = o.image || o.icon || o.iconUrl || o.imageUrl || ((O = (_ = this.options).imageCallback) == null ? void 0 : O.call(_, t.raw, t.index)) || ((B = t.raw) == null ? void 0 : B.image) || ((P = t.raw) == null ? void 0 : P.icon) || ((T = t.raw) == null ? void 0 : T.iconUrl) || ((K = t.raw) == null ? void 0 : K.imageUrl) || i.image || i.icon || i.iconUrl || i.imageUrl || this.options.image || this.getDefaultImage(!1), c = e ? o.highlightImage || o.highlightIcon || o.highlightIconUrl || o.highlightImageUrl || ((M = t.raw) == null ? void 0 : M.highlightImage) || ((H = t.raw) == null ? void 0 : H.highlightIcon) || ((N = t.raw) == null ? void 0 : N.highlightIconUrl) || ((R = t.raw) == null ? void 0 : R.highlightImageUrl) || i.highlightImage || i.highlightIcon || i.highlightIconUrl || i.highlightImageUrl || this.options.highlightImage || (d !== this.defaultImage ? d : this.getDefaultImage(!0)) : d, g = e ? u(o.width, this.options.highlightWidth) : u(o.width, this.options.width), p = e ? u(o.height, this.options.highlightHeight) : u(o.height, this.options.height), m = e ? u(o.scale, this.options.highlightScale) : u(o.scale, this.options.scale);
|
|
293
293
|
return {
|
|
294
294
|
image: c,
|
|
295
295
|
width: Math.max(g, 1),
|
|
296
296
|
height: Math.max(p, 1),
|
|
297
297
|
scale: Math.max(m, 0.01),
|
|
298
|
-
tint: this.toTint(
|
|
299
|
-
alpha: Math.min(Math.max(u(
|
|
298
|
+
tint: this.toTint(o.tintColor || o.color || o.billboardColor || "#ffffff"),
|
|
299
|
+
alpha: Math.min(Math.max(u(o.alpha, 1), 0), 1)
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
resolveRuleStyle(t, e = !1) {
|
|
@@ -331,45 +331,40 @@ class G {
|
|
|
331
331
|
const l = t.operator || t.op;
|
|
332
332
|
if (!l)
|
|
333
333
|
return t.value !== void 0 || t.compareValue !== void 0 ? r === (t.value ?? t.compareValue) : !0;
|
|
334
|
-
const
|
|
334
|
+
const n = t.value ?? t.compareValue;
|
|
335
335
|
switch (l) {
|
|
336
336
|
case ">":
|
|
337
|
-
return s > Number(
|
|
337
|
+
return s > Number(n);
|
|
338
338
|
case ">=":
|
|
339
|
-
return s >= Number(
|
|
339
|
+
return s >= Number(n);
|
|
340
340
|
case "<":
|
|
341
|
-
return s < Number(
|
|
341
|
+
return s < Number(n);
|
|
342
342
|
case "<=":
|
|
343
|
-
return s <= Number(
|
|
343
|
+
return s <= Number(n);
|
|
344
344
|
case "!=":
|
|
345
345
|
case "!==":
|
|
346
|
-
return r !==
|
|
346
|
+
return r !== n;
|
|
347
347
|
case "in":
|
|
348
|
-
return Array.isArray(
|
|
348
|
+
return Array.isArray(n) && n.includes(r);
|
|
349
349
|
case "==":
|
|
350
350
|
case "===":
|
|
351
351
|
default:
|
|
352
|
-
return r ===
|
|
352
|
+
return r === n;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
applySpriteStyle(t, e = null) {
|
|
356
|
-
var o, a;
|
|
357
356
|
const i = t == null ? void 0 : t.sprite;
|
|
358
357
|
if (!i)
|
|
359
358
|
return;
|
|
360
359
|
const r = t.key === this._highlightedKey || t.key === this._hoveredKey, s = e || this.resolveSpriteStyle(t, r), l = this.getTexture(s.image);
|
|
361
|
-
|
|
360
|
+
i.texture = l, i.tint = s.tint, i.alpha = s.alpha, t._activeStyle = s, this.updateSpriteScale(t);
|
|
362
361
|
}
|
|
363
362
|
updateSpriteScale(t) {
|
|
364
|
-
var a, n;
|
|
365
363
|
const e = t == null ? void 0 : t.sprite, i = t == null ? void 0 : t._activeStyle;
|
|
366
364
|
if (!e || !i)
|
|
367
365
|
return;
|
|
368
|
-
const r =
|
|
369
|
-
e.scale.
|
|
370
|
-
i.width / s * i.scale * o,
|
|
371
|
-
i.height / l * i.scale * o
|
|
372
|
-
), t.pickRadius = Math.max(
|
|
366
|
+
const r = this.options.keepSize ? this._latestInvScale : 1;
|
|
367
|
+
e.width = i.width * i.scale * r, e.height = i.height * i.scale * r, t.pickRadius = Math.max(
|
|
373
368
|
this.options.pickRadius,
|
|
374
369
|
Math.max(i.width, i.height) * i.scale / 2
|
|
375
370
|
);
|
|
@@ -402,8 +397,8 @@ class G {
|
|
|
402
397
|
const l = s.getContext("2d");
|
|
403
398
|
if (!l)
|
|
404
399
|
return "";
|
|
405
|
-
const
|
|
406
|
-
l.fillStyle = t ? this.options.highlightColor : this.options.color, l.strokeStyle = t ? this.options.highlightOutlineColor : this.options.outlineColor, l.lineWidth = r, l.beginPath(), l.arc(
|
|
400
|
+
const n = s.width / 2, a = s.height / 2, o = Math.max(Math.min(s.width, s.height) / 2 - r, 1);
|
|
401
|
+
l.fillStyle = t ? this.options.highlightColor : this.options.color, l.strokeStyle = t ? this.options.highlightOutlineColor : this.options.outlineColor, l.lineWidth = r, l.beginPath(), l.arc(n, a, o, 0, Math.PI * 2), l.fill(), r > 0 && l.stroke();
|
|
407
402
|
const d = s.toDataURL("image/png");
|
|
408
403
|
return t ? this.defaultHighlightImage = d : this.defaultImage = d, d;
|
|
409
404
|
}
|
|
@@ -460,9 +455,9 @@ class G {
|
|
|
460
455
|
return v(t, "");
|
|
461
456
|
}
|
|
462
457
|
removeRecord(t) {
|
|
463
|
-
var s, l,
|
|
458
|
+
var s, l, n;
|
|
464
459
|
const e = t.key, i = t.sprite;
|
|
465
|
-
this._hoveredKey === e && (this._hoveredKey = "", (l = (s = this.options).onHoverOut) == null || l.call(s, this.createPointEvent(t)), this.hideTooltip(), this.restoreCursor()), i && ((
|
|
460
|
+
this._hoveredKey === e && (this._hoveredKey = "", (l = (s = this.options).onHoverOut) == null || l.call(s, this.createPointEvent(t)), this.hideTooltip(), this.restoreCursor()), i && ((n = this._pixiContainer) == null || n.removeChild(i), i.destroy({
|
|
466
461
|
children: !1,
|
|
467
462
|
texture: !1,
|
|
468
463
|
baseTexture: !1
|
|
@@ -502,7 +497,7 @@ class G {
|
|
|
502
497
|
})));
|
|
503
498
|
}
|
|
504
499
|
handleHover(t) {
|
|
505
|
-
var l,
|
|
500
|
+
var l, n, a, o;
|
|
506
501
|
const e = this.pickPoint(t == null ? void 0 : t.containerPoint);
|
|
507
502
|
if (!e) {
|
|
508
503
|
this._hoveredKey && this.handleHoverOut(), this.hideTooltip(), this.restoreCursor();
|
|
@@ -514,7 +509,7 @@ class G {
|
|
|
514
509
|
containerPoint: t == null ? void 0 : t.containerPoint,
|
|
515
510
|
latlng: t == null ? void 0 : t.latlng
|
|
516
511
|
});
|
|
517
|
-
this._hoveredKey !== i.key && (this._hoveredKey && this.handleHoverOut(), this._hoveredKey = i.key, this.applySpriteStyle(i), (
|
|
512
|
+
this._hoveredKey !== i.key && (this._hoveredKey && this.handleHoverOut(), this._hoveredKey = i.key, this.applySpriteStyle(i), (n = (l = this.options).onHoverIn) == null || n.call(l, s), this.redraw({ type: "hover-in" })), (o = (a = this.options).onHover) == null || o.call(a, s), this.showTooltip(s, t), this.setCursor();
|
|
518
513
|
}
|
|
519
514
|
handleHoverOut(t = null) {
|
|
520
515
|
var r, s;
|
|
@@ -537,14 +532,14 @@ class G {
|
|
|
537
532
|
return null;
|
|
538
533
|
let e = null, i = null, r = Number.POSITIVE_INFINITY;
|
|
539
534
|
for (let s = 0; s < this.sprites.length; s += 1) {
|
|
540
|
-
const l = this.sprites[s],
|
|
541
|
-
if (!
|
|
535
|
+
const l = this.sprites[s], n = this._recordById.get(l.__pointLargeKey);
|
|
536
|
+
if (!n)
|
|
542
537
|
continue;
|
|
543
|
-
const a = this.map.latLngToContainerPoint([
|
|
544
|
-
if (Math.abs(d) >
|
|
538
|
+
const a = this.map.latLngToContainerPoint([n.latitude, n.longitude]), o = n.pickRadius, d = t.x - a.x, c = t.y - a.y;
|
|
539
|
+
if (Math.abs(d) > o || Math.abs(c) > o)
|
|
545
540
|
continue;
|
|
546
541
|
const g = d * d + c * c;
|
|
547
|
-
g < r && (r = g, e =
|
|
542
|
+
g < r && (r = g, e = n, i = l);
|
|
548
543
|
}
|
|
549
544
|
return e ? {
|
|
550
545
|
record: e,
|
|
@@ -564,7 +559,7 @@ class G {
|
|
|
564
559
|
};
|
|
565
560
|
}
|
|
566
561
|
showTooltip(t, e) {
|
|
567
|
-
var
|
|
562
|
+
var o, d, c, g, p, m;
|
|
568
563
|
if (!this.options.showTooltip || !e)
|
|
569
564
|
return;
|
|
570
565
|
const i = this.resolveTooltipHtml(t);
|
|
@@ -573,12 +568,12 @@ class G {
|
|
|
573
568
|
return;
|
|
574
569
|
}
|
|
575
570
|
const r = this.getTooltip(), s = Array.isArray(this.options.tooltipOffset) ? this.options.tooltipOffset : [14, 14], l = e.originalEvent || {};
|
|
576
|
-
let
|
|
577
|
-
if (!Number.isFinite(
|
|
578
|
-
const y = (g = (d = (
|
|
579
|
-
|
|
571
|
+
let n = u(l.clientX, Number.NaN), a = u(l.clientY, Number.NaN);
|
|
572
|
+
if (!Number.isFinite(n) || !Number.isFinite(a)) {
|
|
573
|
+
const y = (g = (d = (o = this.map) == null ? void 0 : o.getContainer) == null ? void 0 : (c = d.call(o)).getBoundingClientRect) == null ? void 0 : g.call(c);
|
|
574
|
+
n = ((y == null ? void 0 : y.left) || 0) + u((p = e.containerPoint) == null ? void 0 : p.x, 0), a = ((y == null ? void 0 : y.top) || 0) + u((m = e.containerPoint) == null ? void 0 : m.y, 0);
|
|
580
575
|
}
|
|
581
|
-
r.innerHTML = i, r.style.display = "block", r.style.left = `${
|
|
576
|
+
r.innerHTML = i, r.style.display = "block", r.style.left = `${n + u(s[0], 14)}px`, r.style.top = `${a + u(s[1], 14)}px`, this._tooltipRecordKey = t.key;
|
|
582
577
|
}
|
|
583
578
|
resolveTooltipHtml(t) {
|
|
584
579
|
var l;
|
|
@@ -587,7 +582,7 @@ class G {
|
|
|
587
582
|
const e = ((l = t.data) == null ? void 0 : l.properties) || t.data || {};
|
|
588
583
|
if (!f(e))
|
|
589
584
|
return `<div class="point-large-tooltip__line">${x(e)}</div>`;
|
|
590
|
-
const i = e.name || e.title || e.label || `点位 ${t.id ?? t.index}`, s = Object.entries(e).filter(([
|
|
585
|
+
const i = e.name || e.title || e.label || `点位 ${t.id ?? t.index}`, s = Object.entries(e).filter(([n, a]) => !["geometry", "coordinates", "position", "style", "highlightStyle", "image"].includes(n) && a !== void 0 && a !== null && typeof a != "object").slice(0, 8).map(([n, a]) => `<div class="point-large-tooltip__row"><span>${x(n)}</span><b>${x(a)}</b></div>`).join("");
|
|
591
586
|
return `
|
|
592
587
|
<div class="point-large-tooltip__title">${x(i)}</div>
|
|
593
588
|
${s}
|
|
@@ -680,7 +675,8 @@ class G {
|
|
|
680
675
|
total: this.records.length,
|
|
681
676
|
renderedCount: this.renderedCount,
|
|
682
677
|
highlightedId: ((t = this._recordById.get(this._highlightedKey)) == null ? void 0 : t.id) ?? null,
|
|
683
|
-
|
|
678
|
+
// 首次加载 PixiOverlay 时,点位已经进入待构建队列,也应对外保持“构建中”。
|
|
679
|
+
building: this._isBuilding || this._needsBuild,
|
|
684
680
|
destroyed: this.destroyed
|
|
685
681
|
};
|
|
686
682
|
}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.dt-contour-label-marker{border:0;background:transparent;pointer-events:none}.dt-contour-label-marker__content{display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-style:solid;box-shadow:0 1px 2px #14202438;line-height:1;letter-spacing:0;white-space:nowrap;transform-origin:center}.dt-contour-center-marker{border:0;background:transparent;pointer-events:none}.dt-contour-center-marker__content{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;line-height:1.15;white-space:nowrap;text-shadow:0 1px 3px rgba(0,0,0,.55)}.dt-contour-center-marker__label,.dt-contour-center-marker__value{display:block;line-height:1.15}
|
|
1
|
+
.dt-map-screenshot-selection{position:fixed;z-index:2000;overflow:hidden;outline:none;cursor:crosshair;touch-action:none;-webkit-user-select:none;user-select:none}.dt-map-screenshot-selection__tip{position:absolute;top:24px;left:50%;z-index:2;max-width:calc(100% - 32px);padding:8px 14px;border-radius:4px;color:#fff;font-size:14px;line-height:20px;white-space:nowrap;background:#002a5de0;box-shadow:0 4px 12px #00000040;transform:translate(-50%);pointer-events:none}.dt-map-screenshot-selection__tip--warning{background:#ad5b00eb}.dt-map-screenshot-selection__rect{position:absolute;display:none;box-sizing:border-box;border:1px solid #37c9ff;background:#37c9ff29;box-shadow:0 0 0 9999px #0003;pointer-events:none}.dt-contour-label-marker{border:0;background:transparent;pointer-events:none}.dt-contour-label-marker__content{display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-style:solid;box-shadow:0 1px 2px #14202438;line-height:1;letter-spacing:0;white-space:nowrap;transform-origin:center}.dt-contour-center-marker{border:0;background:transparent;pointer-events:none}.dt-contour-center-marker__content{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;line-height:1.15;white-space:nowrap;text-shadow:0 1px 3px rgba(0,0,0,.55)}.dt-contour-center-marker__label,.dt-contour-center-marker__value{display:block;line-height:1.15}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const f = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%20role='img'%20aria-label='台风中心'%3e%3cdefs%3e%3cradialGradient%20id='core'%20cx='50%25'%20cy='50%25'%20r='50%25'%3e%3cstop%20offset='0'%20stop-color='%23ffffff'/%3e%3cstop%20offset='0.32'%20stop-color='%239ff7ff'/%3e%3cstop%20offset='1'%20stop-color='%2308a7d8'/%3e%3c/radialGradient%3e%3c/defs%3e%3ccircle%20cx='32'%20cy='32'%20r='8'%20fill='url(%23core)'%20stroke='%23ffffff'%20stroke-width='2'/%3e%3cpath%20d='M31.8%206c12.7%200%2023%207.2%2023%2016.1%200%205.4-3.9%2010.3-10.3%2013.2%202.1-4.8%201.2-9.8-2.7-13-4.4-3.6-11.5-4.1-17.5-1.5C13.4%2025.5%206%2023.8%206%2018.3%206%2011.5%2017.5%206%2031.8%206Z'%20fill='%2315c7ed'%20fill-opacity='.9'%20stroke='%23ffffff'%20stroke-width='1.5'/%3e%3cpath%20d='M32.2%2058C19.5%2058%209.2%2050.8%209.2%2041.9c0-5.4%203.9-10.3%2010.3-13.2-2.1%204.8-1.2%209.8%202.7%2013%204.4%203.6%2011.5%204.1%2017.5%201.5C50.6%2038.5%2058%2040.2%2058%2045.7%2058%2052.5%2046.5%2058%2032.2%2058Z'%20fill='%23087da9'%20fill-opacity='.96'%20stroke='%23ffffff'%20stroke-width='1.5'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
f as t
|
|
4
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3clear/basegis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "BaseGIS map engine adapter and GIS layer utilities.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/basegis.js",
|
|
@@ -32,12 +32,13 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
34
34
|
"d3-contour": "^4.0.2",
|
|
35
|
+
"html2canvas": "^1.4.1",
|
|
35
36
|
"leaflet-pixi-overlay": "^1.9.5",
|
|
36
37
|
"pixi.js": "^7.4.3",
|
|
37
38
|
"vite": "^6.4.2"
|
|
38
39
|
},
|
|
39
40
|
"publishConfig": {
|
|
40
|
-
"access": "
|
|
41
|
+
"access": "public"
|
|
41
42
|
},
|
|
42
43
|
"keywords": [],
|
|
43
44
|
"author": "",
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
const u = {
|
|
2
|
-
OK: "OK",
|
|
3
|
-
FAILED: "FAILED",
|
|
4
|
-
NOT_INITIALIZED: "NOT_INITIALIZED",
|
|
5
|
-
INVALID_CONTAINER: "INVALID_CONTAINER",
|
|
6
|
-
ENGINE_NOT_REGISTERED: "ENGINE_NOT_REGISTERED",
|
|
7
|
-
ENGINE_RESOURCE_MISSING: "ENGINE_RESOURCE_MISSING",
|
|
8
|
-
METHOD_NOT_FOUND: "METHOD_NOT_FOUND",
|
|
9
|
-
UNSUPPORTED_CAPABILITY: "UNSUPPORTED_CAPABILITY",
|
|
10
|
-
INVALID_DEM: "INVALID_DEM"
|
|
11
|
-
};
|
|
12
|
-
function _({
|
|
13
|
-
success: i = !0,
|
|
14
|
-
message: t = "",
|
|
15
|
-
data: s = null,
|
|
16
|
-
code: n = u.OK
|
|
17
|
-
} = {}) {
|
|
18
|
-
return { success: i, message: t, data: s, code: n };
|
|
19
|
-
}
|
|
20
|
-
function C(i = null, t = "OK", s = u.OK) {
|
|
21
|
-
return _({ success: !0, message: t, data: i, code: s });
|
|
22
|
-
}
|
|
23
|
-
function g(i = "Operation failed.", t = u.FAILED, s = null) {
|
|
24
|
-
return _({ success: !1, message: i, data: s, code: t });
|
|
25
|
-
}
|
|
26
|
-
function T(i, t, s = "") {
|
|
27
|
-
const n = `${t} adapter does not support "${i}". ${s}`.trim();
|
|
28
|
-
return console.warn(`[3clear-dt-base] ${n}`), g(n, u.UNSUPPORTED_CAPABILITY, {
|
|
29
|
-
methodName: i,
|
|
30
|
-
engineType: t,
|
|
31
|
-
detail: s
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
class x {
|
|
35
|
-
constructor(t = {}) {
|
|
36
|
-
this.rawData = t, this.bound = Array.isArray(t.Bound) ? t.Bound : [], this.data = Array.isArray(t.DataAry) ? t.DataAry : [], this.valid = !1, this.errorMessage = "", this.lonMin = 0, this.latMin = 0, this.lonMax = 0, this.latMax = 0, this.lonCount = 0, this.latCount = 0, this.lonSpan = 0, this.latSpan = 0, this.lonStep = 0, this.latStep = 0, this.valueScale = 1, this.parse();
|
|
37
|
-
}
|
|
38
|
-
parse() {
|
|
39
|
-
if (this.bound.length < 6) {
|
|
40
|
-
this.errorMessage = "Wind field Bound must contain at least 6 values.";
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
const [t, s, n, o, e, a, l = 1] = this.bound, r = Number(n) * Number(o) * 2;
|
|
44
|
-
if (!Number.isFinite(Number(t)) || !Number.isFinite(Number(s)) || Number(n) < 2 || Number(o) < 2 || Number(e) <= 0 || Number(a) <= 0 || this.data.length !== r) {
|
|
45
|
-
this.errorMessage = `Invalid wind field data. Expected DataAry length ${r}, got ${this.data.length}.`;
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
this.lonMin = Number(t), this.latMin = Number(s), this.lonCount = Number(n), this.latCount = Number(o), this.lonSpan = Number(e), this.latSpan = Number(a), this.valueScale = Number(l) || 1, this.lonMax = this.lonMin + this.lonSpan, this.latMax = this.latMin + this.latSpan, this.lonStep = this.lonSpan / (this.lonCount - 1), this.latStep = this.latSpan / (this.latCount - 1), this.valid = !0;
|
|
49
|
-
}
|
|
50
|
-
contains(t, s) {
|
|
51
|
-
return Number.isFinite(t) && Number.isFinite(s) && t >= this.lonMin && t <= this.lonMax && s >= this.latMin && s <= this.latMax;
|
|
52
|
-
}
|
|
53
|
-
getBounds() {
|
|
54
|
-
return {
|
|
55
|
-
west: this.lonMin,
|
|
56
|
-
south: this.latMin,
|
|
57
|
-
east: this.lonMax,
|
|
58
|
-
north: this.latMax
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
getCenter() {
|
|
62
|
-
return {
|
|
63
|
-
lon: this.lonMin + this.lonSpan / 2,
|
|
64
|
-
lat: this.latMin + this.latSpan / 2
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
getVector(t, s) {
|
|
68
|
-
const n = (t * this.lonCount + s) * 2;
|
|
69
|
-
return {
|
|
70
|
-
u: Number(this.data[n]) / this.valueScale,
|
|
71
|
-
v: Number(this.data[n + 1]) / this.valueScale
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* 双线性插值。
|
|
76
|
-
*
|
|
77
|
-
* 数据约定为从左下角开始平铺,因此 row 直接对应从南到北的纬度索引。
|
|
78
|
-
*/
|
|
79
|
-
sample(t, s) {
|
|
80
|
-
if (!this.valid || !this.contains(t, s))
|
|
81
|
-
return null;
|
|
82
|
-
const n = (t - this.lonMin) / this.lonStep, o = (s - this.latMin) / this.latStep, e = Math.max(0, Math.min(Math.floor(n), this.lonCount - 2)), a = Math.max(0, Math.min(Math.floor(o), this.latCount - 2)), l = e + 1, r = a + 1, h = Math.max(0, Math.min(n - e, 1)), c = Math.max(0, Math.min(o - a, 1)), I = this.getVector(a, e), S = this.getVector(a, l), E = this.getVector(r, e), m = this.getVector(r, l), d = 1 - h, p = 1 - c, b = d * p, A = h * p, O = d * c, D = h * c, N = I.u * b + S.u * A + E.u * O + m.u * D, M = I.v * b + S.v * A + E.v * O + m.v * D;
|
|
83
|
-
return !Number.isFinite(N) || !Number.isFinite(M) ? null : {
|
|
84
|
-
u: N,
|
|
85
|
-
v: M,
|
|
86
|
-
speed: Math.hypot(N, M)
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
export {
|
|
91
|
-
u as R,
|
|
92
|
-
x as W,
|
|
93
|
-
g as f,
|
|
94
|
-
C as s,
|
|
95
|
-
T as u
|
|
96
|
-
};
|