leiting-bim 2.1.126 → 2.1.128
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/leiting-bim.es.js +1 -1
- package/package.json +1 -1
- package/plugins/cesium-core/dist/cesium-core.mjs +53 -54
- package/plugins/cesium-core/dist/cesium-core.mjs.map +1 -1
- package/plugins/cesium-core/dist/cesium-core.umd.js +5 -5
- package/plugins/cesium-core/dist/cesium-core.umd.js.map +1 -1
- package/plugins/cesium-vue/dist/cesium-vue/src/components/marker-bubble/index.d.ts +34 -16
- package/plugins/cesium-vue/dist/components/card-content.js +1 -1
- package/plugins/cesium-vue/dist/components/echarts-pro.js +1 -1
- package/plugins/cesium-vue/dist/components/marker-bubble.js +60 -54
- package/plugins/cesium-vue/dist/components/marker-bubble.js.map +1 -1
- package/plugins/cesium-vue/dist/components/marker-manage.js +323 -307
- package/plugins/cesium-vue/dist/components/marker-manage.js.map +1 -1
- package/plugins/cesium-vue/dist/index-Kqi_S6KA.js +404 -0
- package/plugins/cesium-vue/dist/index-Kqi_S6KA.js.map +1 -0
- package/plugins/cesium-vue/dist/index-McKGafjp.js +45856 -0
- package/plugins/cesium-vue/dist/index-McKGafjp.js.map +1 -0
- package/plugins/cesium-vue/dist/index.js +1 -1
- package/plugins/theme-chalk/dist/theme-chalk.css +1 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { w as we } from "../create-DynflqE1.js";
|
|
2
|
-
import { h as
|
|
3
|
-
import { M as
|
|
4
|
-
import { CxCardCarousel as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
2
|
+
import { h as L, markRaw as M, render as S, defineComponent as xe, inject as Se, onMounted as De, watch as Z, onUnmounted as Ie, renderSlot as Oe, unref as Ee } from "vue";
|
|
3
|
+
import { M as D, H as J, a as H } from "../HtmlOverlayLabelPool-DgCFnmr3.js";
|
|
4
|
+
import { CxCardCarousel as Q } from "./card-carousel.js";
|
|
5
|
+
import { CxMarkerBubble as Ge } from "./marker-bubble.js";
|
|
6
|
+
import { CxMarkerDefault as ee } from "./marker-default.js";
|
|
7
|
+
import { CxMarkerHtml as Ae } from "./marker-html.js";
|
|
8
|
+
import { CxMarkerText as ke } from "./marker-text.js";
|
|
9
|
+
import { i as W, b as ne, a as _, S as O, d as te, c as V, e as se, f as Re, g as le, M as he, h as N, j as $e, k as Be, l as He, m as ce, n as de, o as Ne, p as ze, q as Fe, r as Ke, s as We, t as ge, u as Ve, v as Ye, w as Ue, x as Xe } from "../index-McKGafjp.js";
|
|
10
|
+
const qe = {
|
|
9
11
|
id: { type: String, default: "marker" },
|
|
10
12
|
Cesium: { type: Object },
|
|
11
13
|
viewer: { type: Object },
|
|
@@ -16,8 +18,8 @@ const Ue = {
|
|
|
16
18
|
themeConfig: { type: Object }
|
|
17
19
|
// Optional override
|
|
18
20
|
};
|
|
19
|
-
var
|
|
20
|
-
class
|
|
21
|
+
var I = /* @__PURE__ */ ((r) => (r.左建选中模型 = "MODEL_LEFT_CLICK", r.标记左键点击 = "TAG_LEFT_CLICK", r.标记移入 = "TAG_MOUSEENTER", r.标记移出 = "TAG_MOUSELEAVE", r.模型位置保存 = "SAVE_REGION", r.模型加载完成 = "MODEL_READY", r))(I || {});
|
|
22
|
+
class je {
|
|
21
23
|
Cesium;
|
|
22
24
|
viewer;
|
|
23
25
|
labelPool;
|
|
@@ -118,23 +120,23 @@ class Xe {
|
|
|
118
120
|
for (const a of this.levels) {
|
|
119
121
|
const n = a.level, s = this.gridLayers.get(n);
|
|
120
122
|
if (!s) continue;
|
|
121
|
-
const h = this.Cesium.Cartographic.fromDegrees(i.lon, i.lat),
|
|
123
|
+
const h = this.Cesium.Cartographic.fromDegrees(i.lon, i.lat), c = this.tilingScheme.positionToTileXY(
|
|
122
124
|
h,
|
|
123
125
|
n,
|
|
124
126
|
new this.Cesium.Cartesian2()
|
|
125
127
|
);
|
|
126
|
-
if (!
|
|
127
|
-
const l = `${
|
|
128
|
-
if (
|
|
129
|
-
const g =
|
|
130
|
-
if (g !== -1 &&
|
|
131
|
-
const f =
|
|
132
|
-
f !== -1 &&
|
|
128
|
+
if (!c) continue;
|
|
129
|
+
const l = `${c.x}_${c.y}`, d = s.get(l);
|
|
130
|
+
if (d) {
|
|
131
|
+
const g = d.allPoints.findIndex((f) => f.id === e.id);
|
|
132
|
+
if (g !== -1 && d.allPoints.splice(g, 1), i.data?.billboard?.[0]?.skipAggregation) {
|
|
133
|
+
const f = d.skipPoints.findIndex((u) => u.id === e.id);
|
|
134
|
+
f !== -1 && d.skipPoints.splice(f, 1);
|
|
133
135
|
} else {
|
|
134
|
-
const f = this.groupByTheme ? i.data?.theme : this.clusterTheme, u =
|
|
136
|
+
const f = this.groupByTheme ? i.data?.theme : this.clusterTheme, u = d.groups.get(f);
|
|
135
137
|
if (u) {
|
|
136
138
|
const p = u.findIndex((y) => y.id === e.id);
|
|
137
|
-
p !== -1 && u.splice(p, 1), u.length === 0 &&
|
|
139
|
+
p !== -1 && u.splice(p, 1), u.length === 0 && d.groups.delete(f);
|
|
138
140
|
}
|
|
139
141
|
}
|
|
140
142
|
}
|
|
@@ -151,8 +153,8 @@ class Xe {
|
|
|
151
153
|
for (const [a, n] of o.entries()) {
|
|
152
154
|
n.allPoints = n.allPoints.filter((s) => !t.has(s.id)), n.skipPoints = n.skipPoints.filter((s) => !t.has(s.id));
|
|
153
155
|
for (const [s, h] of n.groups.entries()) {
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
+
const c = h.filter((l) => !t.has(l.id));
|
|
157
|
+
c.length === 0 ? n.groups.delete(s) : n.groups.set(s, c);
|
|
156
158
|
}
|
|
157
159
|
n.allPoints.length === 0 && o.delete(a);
|
|
158
160
|
}
|
|
@@ -185,8 +187,8 @@ class Xe {
|
|
|
185
187
|
}, o.set(s, h)), h.allPoints.push(e), e.data?.billboard?.[0]?.skipAggregation)
|
|
186
188
|
h.skipPoints.push(e);
|
|
187
189
|
else {
|
|
188
|
-
const
|
|
189
|
-
h.groups.has(
|
|
190
|
+
const c = this.groupByTheme ? e.data?.billboard?.[0]?.theme : this.clusterTheme;
|
|
191
|
+
h.groups.has(c) || h.groups.set(c, []), h.groups.get(c).push(e);
|
|
190
192
|
}
|
|
191
193
|
}
|
|
192
194
|
}
|
|
@@ -281,41 +283,41 @@ class Xe {
|
|
|
281
283
|
return t;
|
|
282
284
|
}
|
|
283
285
|
_processTiles(e, t) {
|
|
284
|
-
const i = /* @__PURE__ */ new Set(), o = this.viewer.scene, a = o && o.globe, n = a && a.ellipsoid, s = n && o.camera.computeViewRectangle(n), h = (
|
|
286
|
+
const i = /* @__PURE__ */ new Set(), o = this.viewer.scene, a = o && o.globe, n = a && a.ellipsoid, s = n && o.camera.computeViewRectangle(n), h = (c, l, d) => {
|
|
285
287
|
if (!s) return !0;
|
|
286
|
-
const g = this.tilingScheme.tileXYToRectangle(
|
|
288
|
+
const g = this.tilingScheme.tileXYToRectangle(c, l, d);
|
|
287
289
|
return !(!g || g.east <= s.west || g.west >= s.east || g.north <= s.south || g.south >= s.north);
|
|
288
290
|
};
|
|
289
|
-
for (const
|
|
290
|
-
const l =
|
|
291
|
-
if (!l || typeof
|
|
292
|
-
const g = this._getGridRefLevel(
|
|
291
|
+
for (const c of e) {
|
|
292
|
+
const l = c.rectangle, d = c._level ?? c.level;
|
|
293
|
+
if (!l || typeof d != "number") continue;
|
|
294
|
+
const g = this._getGridRefLevel(d), f = this._resolveLevelIndex(g);
|
|
293
295
|
if (f === void 0) continue;
|
|
294
|
-
const u = this.levels[f].level, p =
|
|
296
|
+
const u = this.levels[f].level, p = c._x ?? c.x, y = c._y ?? c.y;
|
|
295
297
|
if (typeof p == "number" && typeof y == "number") {
|
|
296
|
-
const C =
|
|
298
|
+
const C = d - u;
|
|
297
299
|
if (C >= 0) {
|
|
298
|
-
const
|
|
300
|
+
const b = 1 << C, v = Math.floor(p / b), w = Math.floor(y / b), x = `${u}_${v}_${w}`;
|
|
299
301
|
if (i.has(x)) continue;
|
|
300
|
-
i.add(x), t(f, v, w,
|
|
302
|
+
i.add(x), t(f, v, w, d);
|
|
301
303
|
} else {
|
|
302
304
|
const v = 1 << Math.min(-C, this.maxRefineLevels), w = p * v, x = y * v;
|
|
303
305
|
for (let k = 0; k < v; k++)
|
|
304
306
|
for (let R = 0; R < v; R++) {
|
|
305
307
|
const $ = w + k, B = x + R;
|
|
306
308
|
if (!h($, B, u)) continue;
|
|
307
|
-
const
|
|
308
|
-
i.has(
|
|
309
|
+
const j = `${u}_${$}_${B}`;
|
|
310
|
+
i.has(j) || (i.add(j), t(f, $, B, d));
|
|
309
311
|
}
|
|
310
312
|
}
|
|
311
313
|
continue;
|
|
312
314
|
}
|
|
313
|
-
const
|
|
315
|
+
const T = this.levels[f].size, m = this.Cesium.Math.toDegrees(l.west), q = this.Cesium.Math.toDegrees(l.east), G = this.Cesium.Math.toDegrees(l.south), P = this.Cesium.Math.toDegrees(l.north), A = Math.floor((m - -180) / T), Me = Math.floor((q - -180) / T), Te = Math.floor((G - -90) / T), Pe = Math.floor((P - -90) / T);
|
|
314
316
|
for (let C = A; C <= Me; C++)
|
|
315
|
-
for (let
|
|
316
|
-
if (!h(C,
|
|
317
|
-
const v = `${u}_${C}_${
|
|
318
|
-
i.has(v) || (i.add(v), t(f, C,
|
|
317
|
+
for (let b = Te; b <= Pe; b++) {
|
|
318
|
+
if (!h(C, b, u)) continue;
|
|
319
|
+
const v = `${u}_${C}_${b}`;
|
|
320
|
+
i.has(v) || (i.add(v), t(f, C, b, d));
|
|
319
321
|
}
|
|
320
322
|
}
|
|
321
323
|
}
|
|
@@ -328,18 +330,18 @@ class Xe {
|
|
|
328
330
|
_getCellContext(e, t, i, o) {
|
|
329
331
|
const n = this.levels[e].level, s = this.gridLayers.get(n);
|
|
330
332
|
if (!s) return null;
|
|
331
|
-
const h = `${t}_${i}`,
|
|
332
|
-
if (!
|
|
333
|
-
const l = this.tilingScheme.tileXYToRectangle(t, i, n),
|
|
333
|
+
const h = `${t}_${i}`, c = s.get(h);
|
|
334
|
+
if (!c) return null;
|
|
335
|
+
const l = this.tilingScheme.tileXYToRectangle(t, i, n), d = this.Cesium.Math.toDegrees(l.west), g = this.Cesium.Math.toDegrees(l.south), f = this.Cesium.Math.toDegrees(l.east), u = this.Cesium.Math.toDegrees(l.north), p = (d + f) / 2, y = (g + u) / 2;
|
|
334
336
|
return {
|
|
335
337
|
levelIdx: e,
|
|
336
338
|
tileLevel: n,
|
|
337
339
|
lonIdx: t,
|
|
338
340
|
latIdx: i,
|
|
339
341
|
key: h,
|
|
340
|
-
cell:
|
|
342
|
+
cell: c,
|
|
341
343
|
rect: l,
|
|
342
|
-
west:
|
|
344
|
+
west: d,
|
|
343
345
|
south: g,
|
|
344
346
|
east: f,
|
|
345
347
|
north: u,
|
|
@@ -371,17 +373,17 @@ class Xe {
|
|
|
371
373
|
latIdx: n,
|
|
372
374
|
cell: s,
|
|
373
375
|
centerLon: h,
|
|
374
|
-
centerLat:
|
|
376
|
+
centerLat: c,
|
|
375
377
|
viewTileLevel: l
|
|
376
|
-
} = e,
|
|
378
|
+
} = e, d = l;
|
|
377
379
|
for (const [g, f] of s.groups) {
|
|
378
380
|
const u = f.filter((m) => m.data?.show !== !1);
|
|
379
381
|
if (u.length === 0) continue;
|
|
380
|
-
let p = h, y =
|
|
381
|
-
if (this.centralPointMode == "firstPoint" && (p = u[0]?.lon || 0, y = u[0]?.lat || 0,
|
|
382
|
+
let p = h, y = c, E = u[0]?.height || 0;
|
|
383
|
+
if (this.centralPointMode == "firstPoint" && (p = u[0]?.lon || 0, y = u[0]?.lat || 0, E = u[0]?.height || 0), o === this.levels.length - 1 || u.length < t)
|
|
382
384
|
for (const m of u) {
|
|
383
385
|
if (i >= this.displayLimit) break;
|
|
384
|
-
this._isVisibleAtLevel(m,
|
|
386
|
+
this._isVisibleAtLevel(m, d) && (this.labelPool.add(m.data, {
|
|
385
387
|
id: `point-${m.id}`,
|
|
386
388
|
lon: m.lon,
|
|
387
389
|
lat: m.lat,
|
|
@@ -393,9 +395,9 @@ class Xe {
|
|
|
393
395
|
else {
|
|
394
396
|
if (i >= this.displayLimit)
|
|
395
397
|
return i;
|
|
396
|
-
const m =
|
|
398
|
+
const m = d == null ? u : u.filter((A) => this._isVisibleAtLevel(A, d));
|
|
397
399
|
if (!m.length) return i;
|
|
398
|
-
const
|
|
400
|
+
const G = m[0]?.data?.billboard?.[0]?.theme || this.clusterTheme, P = this.groupByTheme ? `cluster-${o}-${a}-${n}-${g}` : `cluster-${o}-${a}-${n}`;
|
|
399
401
|
this.labelPool.add(
|
|
400
402
|
{
|
|
401
403
|
id: P,
|
|
@@ -409,8 +411,8 @@ class Xe {
|
|
|
409
411
|
id: P,
|
|
410
412
|
lon: p,
|
|
411
413
|
lat: y,
|
|
412
|
-
height:
|
|
413
|
-
theme:
|
|
414
|
+
height: E,
|
|
415
|
+
theme: G
|
|
414
416
|
}
|
|
415
417
|
), i++;
|
|
416
418
|
}
|
|
@@ -419,13 +421,13 @@ class Xe {
|
|
|
419
421
|
}
|
|
420
422
|
_debugDrawCell(e) {
|
|
421
423
|
if (!this.debugCurrentGrids) return;
|
|
422
|
-
const { levelIdx: t, west: i, south: o, east: a, north: n, lonIdx: s, latIdx: h } = e,
|
|
424
|
+
const { levelIdx: t, west: i, south: o, east: a, north: n, lonIdx: s, latIdx: h } = e, c = this.levels[t].level;
|
|
423
425
|
this._drawDebugGrid(
|
|
424
426
|
i,
|
|
425
427
|
o,
|
|
426
428
|
a,
|
|
427
429
|
n,
|
|
428
|
-
`L:${
|
|
430
|
+
`L:${c} X:${s} Y:${h}`
|
|
429
431
|
);
|
|
430
432
|
}
|
|
431
433
|
refresh() {
|
|
@@ -502,30 +504,30 @@ class Xe {
|
|
|
502
504
|
t && this._tileLoadListener && (t.tileLoadProgressEvent.removeEventListener(this._tileLoadListener), this._tileLoadListener = null), this._updateTimer !== null && (clearTimeout(this._updateTimer), this._updateTimer = null), this.labelPool.reset(), this._clearDebugGrids(), this._removeDebugImageryLayer();
|
|
503
505
|
}
|
|
504
506
|
}
|
|
505
|
-
var
|
|
506
|
-
function
|
|
507
|
-
return typeof r == "symbol" ||
|
|
507
|
+
var Ze = "[object Symbol]";
|
|
508
|
+
function Y(r) {
|
|
509
|
+
return typeof r == "symbol" || W(r) && ne(r) == Ze;
|
|
508
510
|
}
|
|
509
|
-
function
|
|
511
|
+
function ue(r, e) {
|
|
510
512
|
for (var t = -1, i = r == null ? 0 : r.length, o = Array(i); ++t < i; )
|
|
511
513
|
o[t] = e(r[t], t, r);
|
|
512
514
|
return o;
|
|
513
515
|
}
|
|
514
|
-
var
|
|
515
|
-
function
|
|
516
|
+
var ie = O ? O.prototype : void 0, re = ie ? ie.toString : void 0;
|
|
517
|
+
function fe(r) {
|
|
516
518
|
if (typeof r == "string")
|
|
517
519
|
return r;
|
|
518
|
-
if (
|
|
519
|
-
return
|
|
520
|
-
if (
|
|
521
|
-
return
|
|
520
|
+
if (_(r))
|
|
521
|
+
return ue(r, fe) + "";
|
|
522
|
+
if (Y(r))
|
|
523
|
+
return re ? re.call(r) : "";
|
|
522
524
|
var e = r + "";
|
|
523
525
|
return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
|
|
524
526
|
}
|
|
525
|
-
function
|
|
527
|
+
function me(r) {
|
|
526
528
|
return r;
|
|
527
529
|
}
|
|
528
|
-
function
|
|
530
|
+
function Je(r, e, t) {
|
|
529
531
|
switch (t.length) {
|
|
530
532
|
case 0:
|
|
531
533
|
return r.call(e);
|
|
@@ -538,72 +540,72 @@ function je(r, e, t) {
|
|
|
538
540
|
}
|
|
539
541
|
return r.apply(e, t);
|
|
540
542
|
}
|
|
541
|
-
var
|
|
542
|
-
function
|
|
543
|
+
var Qe = 800, et = 16, tt = Date.now;
|
|
544
|
+
function it(r) {
|
|
543
545
|
var e = 0, t = 0;
|
|
544
546
|
return function() {
|
|
545
|
-
var i =
|
|
547
|
+
var i = tt(), o = et - (i - t);
|
|
546
548
|
if (t = i, o > 0) {
|
|
547
|
-
if (++e >=
|
|
549
|
+
if (++e >= Qe)
|
|
548
550
|
return arguments[0];
|
|
549
551
|
} else
|
|
550
552
|
e = 0;
|
|
551
553
|
return r.apply(void 0, arguments);
|
|
552
554
|
};
|
|
553
555
|
}
|
|
554
|
-
function
|
|
556
|
+
function rt(r) {
|
|
555
557
|
return function() {
|
|
556
558
|
return r;
|
|
557
559
|
};
|
|
558
560
|
}
|
|
559
|
-
var
|
|
560
|
-
return
|
|
561
|
+
var at = te ? function(r, e) {
|
|
562
|
+
return te(r, "toString", {
|
|
561
563
|
configurable: !0,
|
|
562
564
|
enumerable: !1,
|
|
563
|
-
value:
|
|
565
|
+
value: rt(e),
|
|
564
566
|
writable: !0
|
|
565
567
|
});
|
|
566
|
-
} :
|
|
567
|
-
function
|
|
568
|
-
return e =
|
|
569
|
-
for (var i = arguments, o = -1, a =
|
|
568
|
+
} : me, pe = it(at), ae = Math.max;
|
|
569
|
+
function ye(r, e, t) {
|
|
570
|
+
return e = ae(e === void 0 ? r.length - 1 : e, 0), function() {
|
|
571
|
+
for (var i = arguments, o = -1, a = ae(i.length - e, 0), n = Array(a); ++o < a; )
|
|
570
572
|
n[o] = i[e + o];
|
|
571
573
|
o = -1;
|
|
572
574
|
for (var s = Array(e + 1); ++o < e; )
|
|
573
575
|
s[o] = i[o];
|
|
574
|
-
return s[e] = t(n),
|
|
576
|
+
return s[e] = t(n), Je(r, this, s);
|
|
575
577
|
};
|
|
576
578
|
}
|
|
577
|
-
function
|
|
578
|
-
return
|
|
579
|
+
function ot(r, e) {
|
|
580
|
+
return pe(ye(r, e, me), r + "");
|
|
579
581
|
}
|
|
580
|
-
function
|
|
581
|
-
if (!
|
|
582
|
+
function nt(r, e, t) {
|
|
583
|
+
if (!V(t))
|
|
582
584
|
return !1;
|
|
583
585
|
var i = typeof e;
|
|
584
|
-
return (i == "number" ?
|
|
586
|
+
return (i == "number" ? se(t) && Re(e, t.length) : i == "string" && e in t) ? le(t[e], r) : !1;
|
|
585
587
|
}
|
|
586
|
-
function
|
|
587
|
-
return
|
|
588
|
+
function st(r) {
|
|
589
|
+
return ot(function(e, t) {
|
|
588
590
|
var i = -1, o = t.length, a = o > 1 ? t[o - 1] : void 0, n = o > 2 ? t[2] : void 0;
|
|
589
|
-
for (a = r.length > 3 && typeof a == "function" ? (o--, a) : void 0, n &&
|
|
591
|
+
for (a = r.length > 3 && typeof a == "function" ? (o--, a) : void 0, n && nt(t[0], t[1], n) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++i < o; ) {
|
|
590
592
|
var s = t[i];
|
|
591
593
|
s && r(e, s, i, a);
|
|
592
594
|
}
|
|
593
595
|
return e;
|
|
594
596
|
});
|
|
595
597
|
}
|
|
596
|
-
var
|
|
597
|
-
function
|
|
598
|
-
if (
|
|
598
|
+
var lt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ht = /^\w*$/;
|
|
599
|
+
function ct(r, e) {
|
|
600
|
+
if (_(r))
|
|
599
601
|
return !1;
|
|
600
602
|
var t = typeof r;
|
|
601
|
-
return t == "number" || t == "symbol" || t == "boolean" || r == null ||
|
|
603
|
+
return t == "number" || t == "symbol" || t == "boolean" || r == null || Y(r) ? !0 : ht.test(r) || !lt.test(r) || e != null && r in Object(e);
|
|
602
604
|
}
|
|
603
|
-
var
|
|
604
|
-
function
|
|
605
|
+
var dt = "Expected a function";
|
|
606
|
+
function U(r, e) {
|
|
605
607
|
if (typeof r != "function" || e != null && typeof e != "function")
|
|
606
|
-
throw new TypeError(
|
|
608
|
+
throw new TypeError(dt);
|
|
607
609
|
var t = function() {
|
|
608
610
|
var i = arguments, o = e ? e.apply(this, i) : i[0], a = t.cache;
|
|
609
611
|
if (a.has(o))
|
|
@@ -611,77 +613,77 @@ function Y(r, e) {
|
|
|
611
613
|
var n = r.apply(this, i);
|
|
612
614
|
return t.cache = a.set(o, n) || a, n;
|
|
613
615
|
};
|
|
614
|
-
return t.cache = new (
|
|
616
|
+
return t.cache = new (U.Cache || he)(), t;
|
|
615
617
|
}
|
|
616
|
-
|
|
617
|
-
var
|
|
618
|
-
function
|
|
619
|
-
var e =
|
|
620
|
-
return t.size ===
|
|
618
|
+
U.Cache = he;
|
|
619
|
+
var gt = 500;
|
|
620
|
+
function ut(r) {
|
|
621
|
+
var e = U(r, function(i) {
|
|
622
|
+
return t.size === gt && t.clear(), i;
|
|
621
623
|
}), t = e.cache;
|
|
622
624
|
return e;
|
|
623
625
|
}
|
|
624
|
-
var
|
|
626
|
+
var ft = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, mt = /\\(\\)?/g, pt = ut(function(r) {
|
|
625
627
|
var e = [];
|
|
626
|
-
return r.charCodeAt(0) === 46 && e.push(""), r.replace(
|
|
627
|
-
e.push(o ? a.replace(
|
|
628
|
+
return r.charCodeAt(0) === 46 && e.push(""), r.replace(ft, function(t, i, o, a) {
|
|
629
|
+
e.push(o ? a.replace(mt, "$1") : i || t);
|
|
628
630
|
}), e;
|
|
629
631
|
});
|
|
630
|
-
function
|
|
631
|
-
return r == null ? "" :
|
|
632
|
+
function yt(r) {
|
|
633
|
+
return r == null ? "" : fe(r);
|
|
632
634
|
}
|
|
633
|
-
function
|
|
634
|
-
return
|
|
635
|
+
function X(r, e) {
|
|
636
|
+
return _(r) ? r : ct(r, e) ? [r] : pt(yt(r));
|
|
635
637
|
}
|
|
636
|
-
function
|
|
637
|
-
if (typeof r == "string" ||
|
|
638
|
+
function z(r) {
|
|
639
|
+
if (typeof r == "string" || Y(r))
|
|
638
640
|
return r;
|
|
639
641
|
var e = r + "";
|
|
640
642
|
return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
|
|
641
643
|
}
|
|
642
|
-
function
|
|
643
|
-
e =
|
|
644
|
+
function vt(r, e) {
|
|
645
|
+
e = X(e, r);
|
|
644
646
|
for (var t = 0, i = e.length; r != null && t < i; )
|
|
645
|
-
r = r[
|
|
647
|
+
r = r[z(e[t++])];
|
|
646
648
|
return t && t == i ? r : void 0;
|
|
647
649
|
}
|
|
648
|
-
var
|
|
649
|
-
function
|
|
650
|
-
return
|
|
650
|
+
var oe = O ? O.isConcatSpreadable : void 0;
|
|
651
|
+
function Ct(r) {
|
|
652
|
+
return _(r) || N(r) || !!(oe && r && r[oe]);
|
|
651
653
|
}
|
|
652
|
-
function
|
|
654
|
+
function bt(r, e, t, i, o) {
|
|
653
655
|
var a = -1, n = r.length;
|
|
654
|
-
for (t || (t =
|
|
656
|
+
for (t || (t = Ct), o || (o = []); ++a < n; ) {
|
|
655
657
|
var s = r[a];
|
|
656
|
-
t(s) ?
|
|
658
|
+
t(s) ? $e(o, s) : o[o.length] = s;
|
|
657
659
|
}
|
|
658
660
|
return o;
|
|
659
661
|
}
|
|
660
|
-
function
|
|
662
|
+
function _t(r) {
|
|
661
663
|
var e = r == null ? 0 : r.length;
|
|
662
|
-
return e ?
|
|
664
|
+
return e ? bt(r) : [];
|
|
663
665
|
}
|
|
664
|
-
function
|
|
665
|
-
return
|
|
666
|
+
function Lt(r) {
|
|
667
|
+
return pe(ye(r, void 0, _t), r + "");
|
|
666
668
|
}
|
|
667
|
-
var
|
|
669
|
+
var Mt = "[object Object]", Tt = Function.prototype, Pt = Object.prototype, ve = Tt.toString, wt = Pt.hasOwnProperty, xt = ve.call(Object);
|
|
668
670
|
function Ce(r) {
|
|
669
|
-
if (!
|
|
671
|
+
if (!W(r) || ne(r) != Mt)
|
|
670
672
|
return !1;
|
|
671
|
-
var e =
|
|
673
|
+
var e = Be(r);
|
|
672
674
|
if (e === null)
|
|
673
675
|
return !0;
|
|
674
|
-
var t =
|
|
675
|
-
return typeof t == "function" && t instanceof t && ve.call(t) ==
|
|
676
|
+
var t = wt.call(e, "constructor") && e.constructor;
|
|
677
|
+
return typeof t == "function" && t instanceof t && ve.call(t) == xt;
|
|
676
678
|
}
|
|
677
|
-
function
|
|
679
|
+
function St(r, e, t) {
|
|
678
680
|
var i = -1, o = r.length;
|
|
679
681
|
e < 0 && (e = -e > o ? 0 : o + e), t = t > o ? o : t, t < 0 && (t += o), o = e > t ? 0 : t - e >>> 0, e >>>= 0;
|
|
680
682
|
for (var a = Array(o); ++i < o; )
|
|
681
683
|
a[i] = r[i + e];
|
|
682
684
|
return a;
|
|
683
685
|
}
|
|
684
|
-
function
|
|
686
|
+
function Dt(r) {
|
|
685
687
|
return function(e, t, i) {
|
|
686
688
|
for (var o = -1, a = Object(e), n = i(e), s = n.length; s--; ) {
|
|
687
689
|
var h = n[++o];
|
|
@@ -691,89 +693,82 @@ function xt(r) {
|
|
|
691
693
|
return e;
|
|
692
694
|
};
|
|
693
695
|
}
|
|
694
|
-
var It =
|
|
695
|
-
function
|
|
696
|
-
(t !== void 0 && !
|
|
696
|
+
var It = Dt();
|
|
697
|
+
function F(r, e, t) {
|
|
698
|
+
(t !== void 0 && !le(r[e], t) || t === void 0 && !(e in r)) && He(r, e, t);
|
|
697
699
|
}
|
|
698
|
-
function
|
|
699
|
-
return
|
|
700
|
+
function Ot(r) {
|
|
701
|
+
return W(r) && se(r);
|
|
700
702
|
}
|
|
701
|
-
function
|
|
703
|
+
function K(r, e) {
|
|
702
704
|
if (!(e === "constructor" && typeof r[e] == "function") && e != "__proto__")
|
|
703
705
|
return r[e];
|
|
704
706
|
}
|
|
705
|
-
function
|
|
706
|
-
return
|
|
707
|
+
function Et(r) {
|
|
708
|
+
return ce(r, de(r));
|
|
707
709
|
}
|
|
708
|
-
function
|
|
709
|
-
var s =
|
|
710
|
-
if (
|
|
711
|
-
|
|
710
|
+
function Gt(r, e, t, i, o, a, n) {
|
|
711
|
+
var s = K(r, t), h = K(e, t), c = n.get(h);
|
|
712
|
+
if (c) {
|
|
713
|
+
F(r, t, c);
|
|
712
714
|
return;
|
|
713
715
|
}
|
|
714
|
-
var l = a ? a(s, h, t + "", r, e, n) : void 0,
|
|
715
|
-
if (
|
|
716
|
-
var g =
|
|
717
|
-
l = h, g || f || u ?
|
|
716
|
+
var l = a ? a(s, h, t + "", r, e, n) : void 0, d = l === void 0;
|
|
717
|
+
if (d) {
|
|
718
|
+
var g = _(h), f = !g && Ne(h), u = !g && !f && ze(h);
|
|
719
|
+
l = h, g || f || u ? _(s) ? l = s : Ot(s) ? l = Fe(s) : f ? (d = !1, l = Ke(h, !0)) : u ? (d = !1, l = We(h, !0)) : l = [] : Ce(h) || N(h) ? (l = s, N(s) ? l = Et(s) : (!V(s) || ge(s)) && (l = Ve(h))) : d = !1;
|
|
718
720
|
}
|
|
719
|
-
|
|
721
|
+
d && (n.set(h, l), o(l, h, i, a, n), n.delete(h)), F(r, t, l);
|
|
720
722
|
}
|
|
721
|
-
function
|
|
723
|
+
function be(r, e, t, i, o) {
|
|
722
724
|
r !== e && It(e, function(a, n) {
|
|
723
|
-
if (o || (o = new
|
|
724
|
-
|
|
725
|
+
if (o || (o = new Ye()), V(a))
|
|
726
|
+
Gt(r, e, n, t, be, i, o);
|
|
725
727
|
else {
|
|
726
|
-
var s = i ? i(
|
|
727
|
-
s === void 0 && (s = a),
|
|
728
|
+
var s = i ? i(K(r, n), a, n + "", r, e, o) : void 0;
|
|
729
|
+
s === void 0 && (s = a), F(r, n, s);
|
|
728
730
|
}
|
|
729
|
-
},
|
|
731
|
+
}, de);
|
|
730
732
|
}
|
|
731
|
-
function
|
|
733
|
+
function At(r) {
|
|
732
734
|
var e = r == null ? 0 : r.length;
|
|
733
735
|
return e ? r[e - 1] : void 0;
|
|
734
736
|
}
|
|
735
|
-
function
|
|
736
|
-
return e.length < 2 ? r :
|
|
737
|
+
function kt(r, e) {
|
|
738
|
+
return e.length < 2 ? r : vt(r, St(e, 0, -1));
|
|
737
739
|
}
|
|
738
|
-
var
|
|
739
|
-
|
|
740
|
-
}),
|
|
741
|
-
function
|
|
742
|
-
e =
|
|
740
|
+
var Rt = st(function(r, e, t) {
|
|
741
|
+
be(r, e, t);
|
|
742
|
+
}), $t = Object.prototype, Bt = $t.hasOwnProperty;
|
|
743
|
+
function Ht(r, e) {
|
|
744
|
+
e = X(e, r);
|
|
743
745
|
var t = -1, i = e.length;
|
|
744
746
|
if (!i)
|
|
745
747
|
return !0;
|
|
746
|
-
for (
|
|
747
|
-
var
|
|
748
|
-
if (
|
|
749
|
-
|
|
750
|
-
return !1;
|
|
751
|
-
if (a === "constructor" && t + 1 < i && typeof e[t + 1] == "string" && e[t + 1] === "prototype") {
|
|
752
|
-
if (o && t === 0)
|
|
753
|
-
continue;
|
|
754
|
-
return !1;
|
|
755
|
-
}
|
|
756
|
-
}
|
|
748
|
+
for (; ++t < i; ) {
|
|
749
|
+
var o = z(e[t]);
|
|
750
|
+
if (o === "__proto__" && !Bt.call(r, "__proto__") || (o === "constructor" || o === "prototype") && t < i - 1)
|
|
751
|
+
return !1;
|
|
757
752
|
}
|
|
758
|
-
var
|
|
759
|
-
return
|
|
753
|
+
var a = kt(r, e);
|
|
754
|
+
return a == null || delete a[z(At(e))];
|
|
760
755
|
}
|
|
761
|
-
function
|
|
756
|
+
function Nt(r) {
|
|
762
757
|
return Ce(r) ? void 0 : r;
|
|
763
758
|
}
|
|
764
|
-
var
|
|
759
|
+
var zt = 1, Ft = 2, Kt = 4, Wt = Lt(function(r, e) {
|
|
765
760
|
var t = {};
|
|
766
761
|
if (r == null)
|
|
767
762
|
return t;
|
|
768
763
|
var i = !1;
|
|
769
|
-
e =
|
|
770
|
-
return a =
|
|
771
|
-
}),
|
|
764
|
+
e = ue(e, function(a) {
|
|
765
|
+
return a = X(a, r), i || (i = a.length > 1), a;
|
|
766
|
+
}), ce(r, Ue(r), t), i && (t = Xe(t, zt | Ft | Kt, Nt));
|
|
772
767
|
for (var o = e.length; o--; )
|
|
773
|
-
|
|
768
|
+
Ht(t, e[o]);
|
|
774
769
|
return t;
|
|
775
770
|
});
|
|
776
|
-
function
|
|
771
|
+
function Vt(r, e) {
|
|
777
772
|
const t = e.materialType || "DynamicImgMaterial" + Date.now() + Math.floor(Math.random() * 1e3);
|
|
778
773
|
function i(a) {
|
|
779
774
|
this._definitionChanged = new r.Event(), this._color = a.color, this._colorSubscription = void 0, this.color = a.color, this.duration = a.duration, this._time = Date.now();
|
|
@@ -810,7 +805,7 @@ function Kt(r, e) {
|
|
|
810
805
|
vec2 st = materialInput.st;
|
|
811
806
|
float time = fract(mod(float(czm_frameNumber * 33.0) , float(${a.duration})) / float(${a.duration}));
|
|
812
807
|
${a.freely === "vertical" ? `vec4 colorImage = texture(image, vec2(fract(float(${a.count}) *st.t ${a.direction} time), fract(st.s)));` : `vec4 colorImage = texture(image, vec2(fract(float(${a.count}) *st.s ${a.direction} time), fract(st.t)));`}
|
|
813
|
-
|
|
808
|
+
material.diffuse = color.rgb;
|
|
814
809
|
material.alpha = colorImage.a;
|
|
815
810
|
return material;
|
|
816
811
|
}`;
|
|
@@ -827,8 +822,7 @@ function Kt(r, e) {
|
|
|
827
822
|
count: e.count,
|
|
828
823
|
freely: e.freely || "",
|
|
829
824
|
direction: e.direction,
|
|
830
|
-
duration: e.duration || 100
|
|
831
|
-
isCustomColor: e.isCustomColor
|
|
825
|
+
duration: e.duration || 100
|
|
832
826
|
})
|
|
833
827
|
},
|
|
834
828
|
translucent() {
|
|
@@ -836,7 +830,7 @@ function Kt(r, e) {
|
|
|
836
830
|
}
|
|
837
831
|
}), new i(e);
|
|
838
832
|
}
|
|
839
|
-
function
|
|
833
|
+
function _e(r, e) {
|
|
840
834
|
const t = e.MaterialType || "wallType" + (/* @__PURE__ */ new Date()).getTime() + parseInt(Math.random() * 1e3 + "");
|
|
841
835
|
function i(a) {
|
|
842
836
|
this._definitionChanged = new r.Event(), this._color = void 0, this._colorSubscription = void 0, this.color = a.color, this.duration = a.duration, this._time = (/* @__PURE__ */ new Date()).getTime();
|
|
@@ -870,10 +864,10 @@ function Le(r, e) {
|
|
|
870
864
|
return a.freely == "vertical" ? n += "vec4 colorImage = texture(image, vec2(fract(float(" + a.count + ")*st.t " + a.direction + ` time), fract(st.s)));
|
|
871
865
|
` : n += "vec4 colorImage = texture(image, vec2(fract(float(" + a.count + ")*st.s " + a.direction + ` time), fract(st.t)));
|
|
872
866
|
`, n += `vec4 fragColor;
|
|
873
|
-
fragColor.rgb = (
|
|
867
|
+
fragColor.rgb = (color.rgb) / 1.0;
|
|
874
868
|
fragColor = czm_gammaCorrect(fragColor);
|
|
875
|
-
`, n += ` material.diffuse =
|
|
876
|
-
material.alpha = colorImage.a;
|
|
869
|
+
`, n += ` material.diffuse = color.rgb;
|
|
870
|
+
material.alpha = colorImage.a * color.a;
|
|
877
871
|
material.emission = fragColor.rgb;
|
|
878
872
|
|
|
879
873
|
return material;
|
|
@@ -884,7 +878,7 @@ function Le(r, e) {
|
|
|
884
878
|
fabric: {
|
|
885
879
|
type: t,
|
|
886
880
|
uniforms: {
|
|
887
|
-
color: new r.Color(1,
|
|
881
|
+
color: e.color || new r.Color(1, 1, 1, 1),
|
|
888
882
|
image: e.image,
|
|
889
883
|
time: 0
|
|
890
884
|
},
|
|
@@ -899,11 +893,11 @@ function Le(r, e) {
|
|
|
899
893
|
}
|
|
900
894
|
}), new i(e);
|
|
901
895
|
}
|
|
902
|
-
function
|
|
903
|
-
const t = r.Color, i = Object.defineProperties, o = r.Event, a = r.createPropertyDescriptor, n = r.Property, s = (
|
|
904
|
-
let
|
|
905
|
-
function l(
|
|
906
|
-
|
|
896
|
+
function Yt(r, e) {
|
|
897
|
+
const t = r.Color, i = Object.defineProperties, o = r.Event, a = r.createPropertyDescriptor, n = r.Property, s = (d, g) => d === void 0 ? g : d, h = {};
|
|
898
|
+
let c = e.materialType || "PolylineFlow" + Date.now() + Math.floor(Math.random() * 1e3);
|
|
899
|
+
function l(d) {
|
|
900
|
+
d = s(d, h), this._definitionChanged = new o(), this._color = void 0, this._colorSubscription = void 0, this.color = d.color || t.fromBytes(0, 255, 255, 255), this._duration = void 0, this._durationSubscription = void 0, this.duration = s(d.duration, 45);
|
|
907
901
|
}
|
|
908
902
|
return i(l.prototype, {
|
|
909
903
|
isConstant: {
|
|
@@ -916,23 +910,23 @@ function Wt(r, e) {
|
|
|
916
910
|
return this._definitionChanged;
|
|
917
911
|
}
|
|
918
912
|
}
|
|
919
|
-
}), l.prototype.getType = function(
|
|
920
|
-
return
|
|
921
|
-
}, l.prototype.getValue = function(
|
|
913
|
+
}), l.prototype.getType = function(d) {
|
|
914
|
+
return c;
|
|
915
|
+
}, l.prototype.getValue = function(d, g) {
|
|
922
916
|
return g || (g = {}), g.color = n.getValueOrClonedDefault(
|
|
923
917
|
this._color,
|
|
924
|
-
|
|
918
|
+
d,
|
|
925
919
|
r.Color.WHITE,
|
|
926
920
|
g.color
|
|
927
921
|
), g.duration = this._duration, g;
|
|
928
|
-
}, l.prototype.equals = function(
|
|
929
|
-
return this ===
|
|
922
|
+
}, l.prototype.equals = function(d) {
|
|
923
|
+
return this === d || d instanceof l && n.equals(this._color, d._color);
|
|
930
924
|
}, i(l.prototype, {
|
|
931
925
|
color: a("color"),
|
|
932
926
|
duration: a("duration")
|
|
933
|
-
}), r.PolylineFlowMaterialProperty = l, r.Material._materialCache.addMaterial(
|
|
927
|
+
}), r.PolylineFlowMaterialProperty = l, r.Material._materialCache.addMaterial(c, {
|
|
934
928
|
fabric: {
|
|
935
|
-
type:
|
|
929
|
+
type: c,
|
|
936
930
|
uniforms: {
|
|
937
931
|
color: new t(1, 1, 1, 1),
|
|
938
932
|
duration: 45
|
|
@@ -962,7 +956,7 @@ function Wt(r, e) {
|
|
|
962
956
|
}
|
|
963
957
|
}), new l(e);
|
|
964
958
|
}
|
|
965
|
-
class
|
|
959
|
+
class Le {
|
|
966
960
|
categoryMap = /* @__PURE__ */ new Map();
|
|
967
961
|
CategoryGet = {};
|
|
968
962
|
constructor() {
|
|
@@ -1051,7 +1045,7 @@ class be {
|
|
|
1051
1045
|
return [...this.categoryMap.keys()];
|
|
1052
1046
|
}
|
|
1053
1047
|
}
|
|
1054
|
-
class
|
|
1048
|
+
class Ut {
|
|
1055
1049
|
id;
|
|
1056
1050
|
entities = [];
|
|
1057
1051
|
primitives = [];
|
|
@@ -1087,7 +1081,7 @@ class Vt {
|
|
|
1087
1081
|
}), this.primitives = [], t && this.aggregator && Array.isArray(this.dataItem.billboard) && this.aggregator.removePointsById([this.dataItem.id]), t && this.cardPool && this.dataItem.card && this.cardPool.removeByIds([this.dataItem.id]), this.dataItem.id;
|
|
1088
1082
|
}
|
|
1089
1083
|
}
|
|
1090
|
-
class
|
|
1084
|
+
class Xt {
|
|
1091
1085
|
id;
|
|
1092
1086
|
groupMap = /* @__PURE__ */ new Map();
|
|
1093
1087
|
Cesium;
|
|
@@ -1096,9 +1090,9 @@ class Yt {
|
|
|
1096
1090
|
aggregator;
|
|
1097
1091
|
cardPool;
|
|
1098
1092
|
constructor(e, t, i, o, a, n) {
|
|
1099
|
-
this.id = e, this.Cesium = t, this.viewer = i, this.materialManager = o, this.aggregator = a, this.cardPool = n, this.aggregator.labelPool.eventBus.addListener(
|
|
1093
|
+
this.id = e, this.Cesium = t, this.viewer = i, this.materialManager = o, this.aggregator = a, this.cardPool = n, this.aggregator.labelPool.eventBus.addListener(D.Click, {
|
|
1100
1094
|
name: "BufferedHierarchicalAggregator_maker_click",
|
|
1101
|
-
fn: (h,
|
|
1095
|
+
fn: (h, c) => {
|
|
1102
1096
|
this.cardPool.showByIds([h.data.id]);
|
|
1103
1097
|
}
|
|
1104
1098
|
}), new t.ScreenSpaceEventHandler(i.scene.canvas).setInputAction(() => {
|
|
@@ -1152,8 +1146,8 @@ class Yt {
|
|
|
1152
1146
|
themeKey: e.theme,
|
|
1153
1147
|
category: "polygon",
|
|
1154
1148
|
options: e
|
|
1155
|
-
}), o = Array.isArray(e.hierarchy[0]) ? e.hierarchy.flat() : e.hierarchy, a = this.Cesium.Cartesian3.fromDegreesArrayHeights(o), n = e.holes?.map((
|
|
1156
|
-
let l = Array.isArray(
|
|
1149
|
+
}), o = Array.isArray(e.hierarchy[0]) ? e.hierarchy.flat() : e.hierarchy, a = this.Cesium.Cartesian3.fromDegreesArrayHeights(o), n = e.holes?.map((c) => {
|
|
1150
|
+
let l = Array.isArray(c[0]) ? e.hierarchy.flat() : e.hole;
|
|
1157
1151
|
return this.Cesium.Cartesian3.fromDegreesArrayHeights(l.flat());
|
|
1158
1152
|
}) || [], s = new this.Cesium.PolygonHierarchy(a, n);
|
|
1159
1153
|
let h = {
|
|
@@ -1200,18 +1194,18 @@ class Yt {
|
|
|
1200
1194
|
this.removeGroup(i);
|
|
1201
1195
|
const o = [], a = e.show !== !1;
|
|
1202
1196
|
(e.polyline || []).forEach((h) => {
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1197
|
+
const c = this.createPolyline(h, a);
|
|
1198
|
+
c && o.push(c);
|
|
1205
1199
|
}), (e.wall || []).forEach((h) => {
|
|
1206
|
-
const
|
|
1207
|
-
|
|
1200
|
+
const c = this.createWall(h, a);
|
|
1201
|
+
c && o.push(c);
|
|
1208
1202
|
}), (e.polygon || []).forEach((h) => {
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1203
|
+
const c = this.createPolygon(h, a);
|
|
1204
|
+
c && o.push(c);
|
|
1211
1205
|
});
|
|
1212
1206
|
const n = this.createBillboardPoints(e);
|
|
1213
1207
|
n.length && t && this.aggregator.appendPoints(n, !1), this.createCard(e);
|
|
1214
|
-
const s = new
|
|
1208
|
+
const s = new Ut({
|
|
1215
1209
|
id: i,
|
|
1216
1210
|
entities: o,
|
|
1217
1211
|
primitives: [],
|
|
@@ -1259,7 +1253,7 @@ class Yt {
|
|
|
1259
1253
|
this.groupMap.forEach((e) => e.removeAll(this.viewer)), this.groupMap.clear();
|
|
1260
1254
|
}
|
|
1261
1255
|
}
|
|
1262
|
-
class
|
|
1256
|
+
class qt {
|
|
1263
1257
|
Cesium;
|
|
1264
1258
|
viewer;
|
|
1265
1259
|
layerMap = /* @__PURE__ */ new Map();
|
|
@@ -1272,7 +1266,7 @@ class Ut {
|
|
|
1272
1266
|
addLayer(e) {
|
|
1273
1267
|
this.layerMap.has(e) || this.layerMap.set(
|
|
1274
1268
|
e,
|
|
1275
|
-
new
|
|
1269
|
+
new Xt(
|
|
1276
1270
|
e,
|
|
1277
1271
|
this.Cesium,
|
|
1278
1272
|
this.viewer,
|
|
@@ -1307,7 +1301,7 @@ class Ut {
|
|
|
1307
1301
|
this.layerMap.get(e)?.removeGroups(t);
|
|
1308
1302
|
}
|
|
1309
1303
|
}
|
|
1310
|
-
class
|
|
1304
|
+
class jt {
|
|
1311
1305
|
labelId;
|
|
1312
1306
|
cardId;
|
|
1313
1307
|
opt;
|
|
@@ -1315,13 +1309,13 @@ class Xt {
|
|
|
1315
1309
|
MaterialManager;
|
|
1316
1310
|
instance;
|
|
1317
1311
|
constructor(e) {
|
|
1318
|
-
this.labelId = e.labelId, this.cardId = e.cardId, this.opt = e, this.MaterialManager = e.MaterialManager || new
|
|
1312
|
+
this.labelId = e.labelId, this.cardId = e.cardId, this.opt = e, this.MaterialManager = e.MaterialManager || new Le(), this.instance = this.initCore(e, e.eventBus, e.cardEventBus);
|
|
1319
1313
|
}
|
|
1320
1314
|
//初始化标记管理
|
|
1321
1315
|
initCore(e, t, i) {
|
|
1322
1316
|
let { Cesium: o, viewer: a, aggregatorOptions: n } = e;
|
|
1323
1317
|
t || (t = new H()), i || (i = new H());
|
|
1324
|
-
const s = new
|
|
1318
|
+
const s = new J(o, a, this.labelId, t), h = new J(o, a, this.cardId, i, !1), c = new je(o, a, {
|
|
1325
1319
|
//聚合
|
|
1326
1320
|
threshold: n?.threshold || 16,
|
|
1327
1321
|
displayLimit: n?.displayLimit || 300,
|
|
@@ -1335,15 +1329,15 @@ class Xt {
|
|
|
1335
1329
|
// 普通点的默认主题
|
|
1336
1330
|
...n,
|
|
1337
1331
|
labelPool: s
|
|
1338
|
-
}), l = this.MaterialManager,
|
|
1332
|
+
}), l = this.MaterialManager, d = new qt(
|
|
1339
1333
|
//实体图层管理
|
|
1340
1334
|
o,
|
|
1341
1335
|
a,
|
|
1342
1336
|
l,
|
|
1343
|
-
|
|
1337
|
+
c,
|
|
1344
1338
|
h
|
|
1345
1339
|
);
|
|
1346
|
-
return { materialManager: l, entityLayerManager:
|
|
1340
|
+
return { materialManager: l, entityLayerManager: d, cardPool: h, labelPool: s, aggregator: c, eventBus: t, cardEventBus: i };
|
|
1347
1341
|
}
|
|
1348
1342
|
//添加标记
|
|
1349
1343
|
set(e) {
|
|
@@ -1357,18 +1351,18 @@ class Xt {
|
|
|
1357
1351
|
//添加
|
|
1358
1352
|
add(e) {
|
|
1359
1353
|
let t = [];
|
|
1360
|
-
|
|
1354
|
+
_(e) ? t = e : t.push(e), t.forEach((i) => {
|
|
1361
1355
|
this.entityList.set(i.id, i);
|
|
1362
1356
|
}), this.instance.entityLayerManager.getLayer("Layer_default") || this.instance.entityLayerManager.addLayer("Layer_default"), this.instance.entityLayerManager.addGroupsToLayer("Layer_default", t);
|
|
1363
1357
|
}
|
|
1364
1358
|
//更新标记
|
|
1365
1359
|
update(e, t = !0) {
|
|
1366
1360
|
let i = [];
|
|
1367
|
-
|
|
1361
|
+
_(e) ? i = e : i.push(e);
|
|
1368
1362
|
const o = i.map((a) => {
|
|
1369
1363
|
const n = this.entityList.get(a.id);
|
|
1370
1364
|
if (!n) return;
|
|
1371
|
-
let s =
|
|
1365
|
+
let s = Rt({}, n, a);
|
|
1372
1366
|
return this.entityList.set(a.id, s), s;
|
|
1373
1367
|
}).filter(Boolean);
|
|
1374
1368
|
t && this.instance.entityLayerManager.updateGroupToLayer("Layer_default", o);
|
|
@@ -1387,7 +1381,7 @@ class Xt {
|
|
|
1387
1381
|
//删除标记
|
|
1388
1382
|
delete(e) {
|
|
1389
1383
|
let t = [];
|
|
1390
|
-
|
|
1384
|
+
_(e) ? t = e : t.push(e), t.forEach((i) => {
|
|
1391
1385
|
this.entityList.delete(i);
|
|
1392
1386
|
}), this.instance.entityLayerManager.removeGroups("Layer_default", t);
|
|
1393
1387
|
}
|
|
@@ -1398,14 +1392,14 @@ class Xt {
|
|
|
1398
1392
|
this.instance.aggregator.setDebugCurrentGrids(e || !1);
|
|
1399
1393
|
}
|
|
1400
1394
|
}
|
|
1401
|
-
function
|
|
1395
|
+
function Zt({
|
|
1402
1396
|
Cesium: r,
|
|
1403
1397
|
options: e,
|
|
1404
1398
|
MaterialManager: t
|
|
1405
1399
|
}) {
|
|
1406
1400
|
if (e.data?.theme) {
|
|
1407
1401
|
if (e.data?.lineType == "1") {
|
|
1408
|
-
let i =
|
|
1402
|
+
let i = Yt(r, {
|
|
1409
1403
|
color: new r.Color.fromCssColorString(e?.options?.color || "#ffffff"),
|
|
1410
1404
|
duration: 100
|
|
1411
1405
|
});
|
|
@@ -1445,7 +1439,7 @@ function qt({
|
|
|
1445
1439
|
category: "polyline"
|
|
1446
1440
|
});
|
|
1447
1441
|
} else if (e.data?.lineType == "5") {
|
|
1448
|
-
let i =
|
|
1442
|
+
let i = Vt(r, {
|
|
1449
1443
|
image: e.img,
|
|
1450
1444
|
color: new r.Color.fromCssColorString(e?.options?.color || "#ffffff"),
|
|
1451
1445
|
duration: 5e3,
|
|
@@ -1461,7 +1455,7 @@ function qt({
|
|
|
1461
1455
|
}
|
|
1462
1456
|
}
|
|
1463
1457
|
}
|
|
1464
|
-
function
|
|
1458
|
+
function Jt({
|
|
1465
1459
|
Cesium: r,
|
|
1466
1460
|
options: e,
|
|
1467
1461
|
MaterialManager: t
|
|
@@ -1484,7 +1478,7 @@ function jt({
|
|
|
1484
1478
|
category: "polygon"
|
|
1485
1479
|
});
|
|
1486
1480
|
} else if (e.data?.polygonType == "DynamicImgMaterial") {
|
|
1487
|
-
let i =
|
|
1481
|
+
let i = _e(r, {
|
|
1488
1482
|
image: e.img,
|
|
1489
1483
|
color: new r.Color.fromCssColorString(e?.options?.color),
|
|
1490
1484
|
duration: 5e3,
|
|
@@ -1500,7 +1494,7 @@ function jt({
|
|
|
1500
1494
|
}
|
|
1501
1495
|
}
|
|
1502
1496
|
}
|
|
1503
|
-
function
|
|
1497
|
+
function Qt({
|
|
1504
1498
|
Cesium: r,
|
|
1505
1499
|
options: e,
|
|
1506
1500
|
MaterialManager: t
|
|
@@ -1516,9 +1510,9 @@ function Zt({
|
|
|
1516
1510
|
category: "wall"
|
|
1517
1511
|
});
|
|
1518
1512
|
} else if (e.data?.wallType == "DynamicImgMaterial") {
|
|
1519
|
-
let i =
|
|
1513
|
+
let i = _e(r, {
|
|
1520
1514
|
image: e.img,
|
|
1521
|
-
|
|
1515
|
+
color: new r.Color.fromCssColorString(e?.options?.color),
|
|
1522
1516
|
duration: 5e3,
|
|
1523
1517
|
freely: e.data?.freely || "vertical",
|
|
1524
1518
|
direction: "+",
|
|
@@ -1532,7 +1526,7 @@ function Zt({
|
|
|
1532
1526
|
}
|
|
1533
1527
|
}
|
|
1534
1528
|
}
|
|
1535
|
-
class
|
|
1529
|
+
class ei extends jt {
|
|
1536
1530
|
constructor(e) {
|
|
1537
1531
|
const {
|
|
1538
1532
|
labelId: t = "report-marker",
|
|
@@ -1542,14 +1536,14 @@ class Jt extends Xt {
|
|
|
1542
1536
|
cardThemeConfig: n = [],
|
|
1543
1537
|
runListener: s = () => {
|
|
1544
1538
|
},
|
|
1545
|
-
MaterialManager: h = new
|
|
1546
|
-
aggregatorOptions:
|
|
1547
|
-
} = e, l = [...o],
|
|
1539
|
+
MaterialManager: h = new Le(),
|
|
1540
|
+
aggregatorOptions: c
|
|
1541
|
+
} = e, l = [...o], d = [...a], g = [...n], f = {
|
|
1548
1542
|
clusterTheme: "Tag1007",
|
|
1549
1543
|
pointTheme: "Tag1001",
|
|
1550
1544
|
centralPointMode: "firstPoint",
|
|
1551
1545
|
debugCurrentGrids: !1,
|
|
1552
|
-
...
|
|
1546
|
+
...c || {}
|
|
1553
1547
|
}, u = {
|
|
1554
1548
|
...e,
|
|
1555
1549
|
labelId: t,
|
|
@@ -1558,7 +1552,7 @@ class Jt extends Xt {
|
|
|
1558
1552
|
aggregatorOptions: f,
|
|
1559
1553
|
eventBus: new H()
|
|
1560
1554
|
};
|
|
1561
|
-
super(u), this.opt = { ...this.opt, ...u }, this.initTagListener(this.instance.eventBus, this.opt), this.loadTabThemeConfig(l), this.loadLineThemeConfig(
|
|
1555
|
+
super(u), this.opt = { ...this.opt, ...u }, this.initTagListener(this.instance.eventBus, this.opt), this.loadTabThemeConfig(l), this.loadLineThemeConfig(d), this.loadCardThemeConfig(g), this.initDefaultLineMaterials(), this.initDefaultTagTheme();
|
|
1562
1556
|
}
|
|
1563
1557
|
initDefaultTagTheme() {
|
|
1564
1558
|
this.setTagTheme({
|
|
@@ -1671,21 +1665,21 @@ class Jt extends Xt {
|
|
|
1671
1665
|
const t = this.opt.Cesium, i = this.instance.materialManager || this.opt.MaterialManager;
|
|
1672
1666
|
if (e.line?.length > 0)
|
|
1673
1667
|
for (let o of e.line)
|
|
1674
|
-
|
|
1668
|
+
Zt({
|
|
1675
1669
|
options: o,
|
|
1676
1670
|
Cesium: t,
|
|
1677
1671
|
MaterialManager: i
|
|
1678
1672
|
});
|
|
1679
1673
|
if (e.polygon?.length > 0)
|
|
1680
1674
|
for (let o of e.polygon)
|
|
1681
|
-
|
|
1675
|
+
Jt({
|
|
1682
1676
|
options: o,
|
|
1683
1677
|
Cesium: t,
|
|
1684
1678
|
MaterialManager: i
|
|
1685
1679
|
});
|
|
1686
1680
|
if (e.wall?.length > 0)
|
|
1687
1681
|
for (let o of e.wall)
|
|
1688
|
-
|
|
1682
|
+
Qt({
|
|
1689
1683
|
options: o,
|
|
1690
1684
|
Cesium: t,
|
|
1691
1685
|
MaterialManager: i
|
|
@@ -1719,7 +1713,7 @@ class Jt extends Xt {
|
|
|
1719
1713
|
t.registerTheme(i.data.theme, {
|
|
1720
1714
|
createElement(o, a) {
|
|
1721
1715
|
let n = a.data.data, s;
|
|
1722
|
-
return i.comType == 1 ? s = M(
|
|
1716
|
+
return i.comType == 1 ? s = L(M(Q), {
|
|
1723
1717
|
data: n || {},
|
|
1724
1718
|
imgSrc: i.data.img,
|
|
1725
1719
|
styleConfig: {
|
|
@@ -1740,7 +1734,7 @@ class Jt extends Xt {
|
|
|
1740
1734
|
top: "0px"
|
|
1741
1735
|
},
|
|
1742
1736
|
bgClass: [i.data.theme]
|
|
1743
|
-
}) : i.comType == 3 && (s = M(
|
|
1737
|
+
}) : i.comType == 3 && (s = L(M(Q), {
|
|
1744
1738
|
data: n || {},
|
|
1745
1739
|
imgSrc: i.data.img,
|
|
1746
1740
|
styleConfig: {
|
|
@@ -1763,7 +1757,7 @@ class Jt extends Xt {
|
|
|
1763
1757
|
bgClass: [i.data.theme]
|
|
1764
1758
|
// titleConfig: themeOptions.options.titleConfig,
|
|
1765
1759
|
// pageInfoConfig: themeOptions.options.pageInfoConfig,
|
|
1766
|
-
})),
|
|
1760
|
+
})), S(s, o), () => S(null, o);
|
|
1767
1761
|
},
|
|
1768
1762
|
options: {
|
|
1769
1763
|
offset: i.data.pixelOffset,
|
|
@@ -1778,7 +1772,7 @@ class Jt extends Xt {
|
|
|
1778
1772
|
t.registerTheme(e.data.theme, {
|
|
1779
1773
|
createElement(i, o) {
|
|
1780
1774
|
let a = o.data?.billboard?.[0];
|
|
1781
|
-
const n =
|
|
1775
|
+
const n = Wt(a, ["position", "options"]);
|
|
1782
1776
|
let s, h = {
|
|
1783
1777
|
...n,
|
|
1784
1778
|
text: a?.options?.text,
|
|
@@ -1787,71 +1781,93 @@ class Jt extends Xt {
|
|
|
1787
1781
|
textStyle: e?.data?.options?.textStyle,
|
|
1788
1782
|
imgStyle: e?.data?.options?.imgStyle
|
|
1789
1783
|
};
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1784
|
+
if (o.data?.gridKey)
|
|
1785
|
+
s = L(M(ee), {
|
|
1786
|
+
text: o.data?.count,
|
|
1787
|
+
isFullLink: e.isFullLink ?? !1,
|
|
1788
|
+
img: e?.data.options.img,
|
|
1789
|
+
imgStyle: e?.data.options?.imgStyle,
|
|
1790
|
+
textStyle: {
|
|
1791
|
+
display: "block !important",
|
|
1792
|
+
"font-size": "12px !important",
|
|
1793
|
+
minWidth: "20px",
|
|
1794
|
+
maxWidth: "max-content",
|
|
1795
|
+
position: "absolute",
|
|
1796
|
+
left: "63%",
|
|
1797
|
+
top: "-8px",
|
|
1798
|
+
background: "#f00",
|
|
1799
|
+
"border-radius": "50%",
|
|
1800
|
+
height: "20px",
|
|
1801
|
+
"line-height": "20px",
|
|
1802
|
+
"text-align": "center",
|
|
1803
|
+
color: "white"
|
|
1804
|
+
}
|
|
1805
|
+
});
|
|
1806
|
+
else if (e.comType == 4)
|
|
1807
|
+
s = L(M(Ae), h);
|
|
1808
|
+
else if (e.comType == 5) {
|
|
1809
|
+
const c = a?.options || {}, l = e?.data?.options || {}, d = a?.pixelOffset || e?.data?.pixelOffset || { x: 0, y: 0 }, g = c.otherOffset ?? l.otherOffset ?? { x: 0, y: -0 }, f = c.isCanDraggable ?? l.isCanDraggable ?? e?.isCanDraggable ?? !1;
|
|
1810
|
+
s = L(M(Ge), {
|
|
1811
|
+
...h,
|
|
1812
|
+
pixelOffset: d,
|
|
1813
|
+
textStyle: c.textStyle || l.textStyle,
|
|
1814
|
+
lineStyle: c.lineStyle || l.lineStyle,
|
|
1815
|
+
otherOffset: g,
|
|
1816
|
+
isCanDraggable: f,
|
|
1817
|
+
onCanDraggable: c.onCanDraggable || e?.onCanDraggable,
|
|
1818
|
+
onSetOtherOffset: (u) => {
|
|
1819
|
+
o.data?.billboard?.[0]?.options && (o.data.billboard[0].options.otherOffset = u), c.onSetOtherOffset?.(u), e?.onSetOtherOffset?.(o.data, u);
|
|
1820
|
+
}
|
|
1821
|
+
});
|
|
1822
|
+
} else e.comType == 6 || e.comType == 7 ? s = L(M(ke), {
|
|
1823
|
+
text: h.text,
|
|
1824
|
+
textStyle: h.textStyle
|
|
1825
|
+
}) : s = L(M(ee), h);
|
|
1826
|
+
return S(s, i), () => S(null, i);
|
|
1811
1827
|
},
|
|
1812
1828
|
options: {
|
|
1813
|
-
offset: e?.data?.pixelOffset || {}
|
|
1829
|
+
offset: e.comType == 5 ? {} : e?.data?.pixelOffset || {}
|
|
1814
1830
|
}
|
|
1815
1831
|
});
|
|
1816
1832
|
}
|
|
1817
1833
|
//标记监听事件
|
|
1818
1834
|
initTagListener(e, t) {
|
|
1819
1835
|
let { viewer: i, tagListeningOptions: o } = t;
|
|
1820
|
-
e.addListener(
|
|
1836
|
+
e.addListener(D.Click, {
|
|
1821
1837
|
name: "marker:click",
|
|
1822
1838
|
fn: (a) => {
|
|
1823
|
-
t.runListener?.(
|
|
1839
|
+
t.runListener?.(I.标记左键点击, a.data), ge(a.data?.onClick) && a.data?.onClick(a.data), a.data?.cameraPoint && a.data?.billboard[0]?.isFlyToCameraPoint && i?.camera?.flyTo({
|
|
1824
1840
|
duration: 1,
|
|
1825
1841
|
...a.data?.cameraPoint
|
|
1826
1842
|
});
|
|
1827
1843
|
}
|
|
1828
|
-
}), e.addListener(
|
|
1844
|
+
}), e.addListener(D.MouseEnter, {
|
|
1829
1845
|
name: "marker:mouseenter",
|
|
1830
1846
|
fn: (a) => {
|
|
1831
1847
|
let n = this.opt.Cesium, s = { x: 0, y: 0 };
|
|
1832
1848
|
try {
|
|
1833
1849
|
if (a.data?.billboard?.[0]?.position?.length > 2) {
|
|
1834
|
-
let h = a.data?.billboard[0]?.position,
|
|
1850
|
+
let h = a.data?.billboard[0]?.position, c = n.Cartesian3.fromDegrees(h[0], h[1], h[3] || 0), l = this.instance.labelPool.toWindowCoordinates(c);
|
|
1835
1851
|
s.x = l.x, s.y = l.y;
|
|
1836
1852
|
}
|
|
1837
1853
|
} catch (h) {
|
|
1838
1854
|
console.log(h);
|
|
1839
1855
|
}
|
|
1840
|
-
t.runListener?.(
|
|
1856
|
+
t.runListener?.(I.标记移入, a.data, s);
|
|
1841
1857
|
}
|
|
1842
|
-
}), e.addListener(
|
|
1858
|
+
}), e.addListener(D.MouseLeave, {
|
|
1843
1859
|
name: "marker:mouseleave",
|
|
1844
1860
|
fn: (a) => {
|
|
1845
1861
|
let n = this.opt.Cesium, s = { x: 0, y: 0 };
|
|
1846
1862
|
try {
|
|
1847
1863
|
if (a.data?.billboard?.[0]?.position?.length > 2) {
|
|
1848
|
-
let h = a.data?.billboard[0]?.position,
|
|
1864
|
+
let h = a.data?.billboard[0]?.position, c = n.Cartesian3.fromDegrees(h[0], h[1], h[3] || 0), l = this.instance.labelPool.toWindowCoordinates(c);
|
|
1849
1865
|
s.x = l.x, s.y = l.y;
|
|
1850
1866
|
}
|
|
1851
1867
|
} catch (h) {
|
|
1852
1868
|
console.log(h);
|
|
1853
1869
|
}
|
|
1854
|
-
t.runListener?.(
|
|
1870
|
+
t.runListener?.(I.标记移出, a.data, s);
|
|
1855
1871
|
}
|
|
1856
1872
|
}), o?.forEach((a) => {
|
|
1857
1873
|
e.addListener(a.key, a.ListenerItem, a.overwrite);
|
|
@@ -1869,16 +1885,16 @@ class Jt extends Xt {
|
|
|
1869
1885
|
});
|
|
1870
1886
|
}
|
|
1871
1887
|
}
|
|
1872
|
-
const
|
|
1888
|
+
const ti = /* @__PURE__ */ xe({
|
|
1873
1889
|
__name: "MarkerManage",
|
|
1874
|
-
props:
|
|
1890
|
+
props: qe,
|
|
1875
1891
|
emits: ["register", "load", "marker-event"],
|
|
1876
1892
|
setup(r, { expose: e, emit: t }) {
|
|
1877
|
-
const i = r, o = t, a =
|
|
1893
|
+
const i = r, o = t, a = Se("leitingMethods");
|
|
1878
1894
|
let n = null;
|
|
1879
1895
|
const s = (l = {}) => {
|
|
1880
1896
|
if (n) return n;
|
|
1881
|
-
const
|
|
1897
|
+
const d = {
|
|
1882
1898
|
...i,
|
|
1883
1899
|
...l,
|
|
1884
1900
|
Cesium: l.Cesium || i.Cesium,
|
|
@@ -1887,50 +1903,50 @@ const Qt = /* @__PURE__ */ xe({
|
|
|
1887
1903
|
o("marker-event", { key: g, data: f, args: u });
|
|
1888
1904
|
}
|
|
1889
1905
|
};
|
|
1890
|
-
return !
|
|
1906
|
+
return !d.Cesium || !d.viewer ? null : (n = new ei(d), l.methods && (l.methods.setTagTheme = n.setTagTheme.bind(n), l.methods.setMaterial = n.setMaterial.bind(n), l.methods.setEntityList = n.set.bind(n), l.methods.addComItem = n.add.bind(n), l.methods.deleteComItem = n.delete.bind(n), l.methods.updateComItem = n.update.bind(n), l.methods.getEntityByID = n.getById.bind(n), l.methods.getOptions = n.getOptions.bind(n)), o("load", n), n);
|
|
1891
1907
|
}, h = {
|
|
1892
1908
|
init: s,
|
|
1893
1909
|
set: (l) => n?.set(l),
|
|
1894
1910
|
add: (l) => n?.add(l),
|
|
1895
|
-
update: (l,
|
|
1911
|
+
update: (l, d) => n?.update(l, d),
|
|
1896
1912
|
getById: (l) => n?.getById(l),
|
|
1897
1913
|
getOptions: () => n?.getOptions(),
|
|
1898
1914
|
delete: (l) => n?.delete(l),
|
|
1899
|
-
setMarkerAggregationEnabled: (l,
|
|
1915
|
+
setMarkerAggregationEnabled: (l, d) => n?.setMarkerAggregationEnabled(l, d),
|
|
1900
1916
|
setDebugCurrentGridsEnabled: (l) => n?.setDebugCurrentGridsEnabled(l),
|
|
1901
1917
|
initThemes: (l) => n?.initThemes(l),
|
|
1902
1918
|
setTagTheme: (l) => n?.setTagTheme(l),
|
|
1903
1919
|
setMaterial: (l) => n?.setMaterial(l)
|
|
1904
1920
|
};
|
|
1905
1921
|
e(h), o("register", h);
|
|
1906
|
-
function
|
|
1922
|
+
function c() {
|
|
1907
1923
|
if (n) return n;
|
|
1908
|
-
const l =
|
|
1909
|
-
|
|
1924
|
+
const l = Ee(a), d = l?.getCesium?.(), g = l?.getViewer?.();
|
|
1925
|
+
d && g ? s({ Cesium: d, viewer: g, methods: l }) : i.Cesium && i.viewer && s({ methods: l });
|
|
1910
1926
|
}
|
|
1911
|
-
return
|
|
1912
|
-
|
|
1913
|
-
}),
|
|
1927
|
+
return De(() => {
|
|
1928
|
+
c();
|
|
1929
|
+
}), Z(
|
|
1914
1930
|
() => [i.Cesium, i.viewer],
|
|
1915
|
-
([l,
|
|
1916
|
-
l &&
|
|
1931
|
+
([l, d]) => {
|
|
1932
|
+
l && d && !n && c();
|
|
1917
1933
|
}
|
|
1918
|
-
),
|
|
1934
|
+
), Z(
|
|
1919
1935
|
() => a?.value,
|
|
1920
|
-
(l,
|
|
1921
|
-
|
|
1936
|
+
(l, d) => {
|
|
1937
|
+
c();
|
|
1922
1938
|
},
|
|
1923
1939
|
{ deep: !1 }
|
|
1924
|
-
),
|
|
1925
|
-
}), (l,
|
|
1940
|
+
), Ie(() => {
|
|
1941
|
+
}), (l, d) => Oe(l.$slots, "default");
|
|
1926
1942
|
}
|
|
1927
|
-
}),
|
|
1943
|
+
}), di = we(ti);
|
|
1928
1944
|
export {
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1945
|
+
di as CxMarkerManage,
|
|
1946
|
+
ei as MarkerManage,
|
|
1947
|
+
jt as MarkerManagerCore,
|
|
1948
|
+
I as ReportListenerKey,
|
|
1949
|
+
di as default,
|
|
1950
|
+
qe as markerManageProps
|
|
1935
1951
|
};
|
|
1936
1952
|
//# sourceMappingURL=marker-manage.js.map
|