zywlgis 0.5.37 → 0.5.38

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.
@@ -10921,7 +10921,7 @@ class Gi {
10921
10921
  }
10922
10922
  // 数据处理入口
10923
10923
  DataProcessing = (A) => {
10924
- this.data_ = A, this.presentationMode_ = this.data_?.customHTML?.presentationMode ?? 0, this.reDraw();
10924
+ this.data_ = A, this.presentationMode_ = this.data_?.customHTML?.presentationMode ?? 0, this.presentationMode_ === 0 ? this.clear() : this.reDraw();
10925
10925
  };
10926
10926
  // 核心重绘方法
10927
10927
  reDraw = () => {
@@ -10934,7 +10934,7 @@ class Gi {
10934
10934
  const t = k.getMapEngineInstance(this.containerID_), i = t.cesiumWidget.container;
10935
10935
  this.destination_ = k.transformCartesian3(e);
10936
10936
  const r = this.data_?.customHTML?.pointerEvents ?? "none", s = this.data_.ID + "-ZYWLCustomHTML";
10937
- if (this.HTMLInstance_ || (this.HTMLInstance_ = document.createElement("div"), this.HTMLInstance_.id = s, this.HTMLInstance_.style.position = "absolute", this.HTMLInstance_.style.pointerEvents = r, i.appendChild(this.HTMLInstance_)), this.HTMLInstance_)
10937
+ if (this.HTMLInstance_ || (this.HTMLInstance_ = document.createElement("div"), this.HTMLInstance_.id = s, this.HTMLInstance_.style.position = "absolute", this.HTMLInstance_.style.pointerEvents = r, i.appendChild(this.HTMLInstance_)), this.HTMLInstance_) {
10938
10938
  if (this.HTMLInstance_.innerHTML = A, this.presentationMode_ === 0 || this.presentationMode_ === 2 ? this.HTMLInstance_.style.display = "none" : this.presentationMode_ === 1 && (this.HTMLInstance_.style.display = "block"), window.CustomHTMLInstances_ || (window.CustomHTMLInstances_ = /* @__PURE__ */ new Map()), window.CustomHTMLInstances_.has(s)) {
10939
10939
  let o = window.CustomHTMLInstances_.get(s);
10940
10940
  o.HTMLInstance = this.HTMLInstance_, o.destination = this.destination_, o.presentationMode = this.presentationMode_, o.customHTML = this.data_?.customHTML;
@@ -10946,52 +10946,57 @@ class Gi {
10946
10946
  isHighlight: this.isHighlight,
10947
10947
  customHTML: this.data_?.customHTML
10948
10948
  });
10949
- window.CustomHTMLRender || (window.CustomHTMLRender = t.scene.postRender.addEventListener(
10950
- this.postRenderCustomHTML
10951
- ));
10949
+ this.calculatePosition(t.scene, this.HTMLInstance_, this.presentationMode_, this.destination_, this.data_?.customHTML, this.isHighlight);
10950
+ }
10951
+ window.CustomHTMLRender || (window.CustomHTMLRender = t.scene.camera.changed.addEventListener(this.postRenderCustomHTML));
10952
10952
  };
10953
10953
  // 渲染回调方法(帧更新)
10954
10954
  postRenderCustomHTML = () => {
10955
10955
  if (window.CustomHTMLInstances_) {
10956
10956
  let A = k.getMapEngineInstance(this.containerID_);
10957
- [...window.CustomHTMLInstances_].forEach((e) => {
10957
+ for (const e of [...window.CustomHTMLInstances_]) {
10958
10958
  let t = e[1].HTMLInstance;
10959
- if (!t)
10960
- return;
10961
- const i = e[1].destination, r = e[1].presentationMode, s = e[1].isHighlight, o = e[1].customHTML, a = A.scene, l = a.cartesianToCanvasCoordinates(
10962
- i,
10963
- new Cesium.Cartesian2()
10964
- );
10965
- if (l) {
10966
- let D = o?.dx ?? 0, P = o?.dy ?? 0;
10967
- D = D * window.devicePixelRatio, P = P * window.devicePixelRatio;
10968
- const c = t.offsetHeight * window.devicePixelRatio, h = t.offsetWidth * window.devicePixelRatio;
10969
- t.style.top = `${l.y * window.devicePixelRatio + P - c / 2}px`, t.style.left = `${l.x * window.devicePixelRatio + D - h / 2}px`;
10970
- let g = a.camera, u = g.position, Q = g.positionCartographic, w = Q.height + a.globe.ellipsoid.maximumRadius, C;
10971
- if (a.mode === Cesium.SceneMode.SCENE2D ? C = Q.height : C = Cesium.Cartesian3.distance(u, i), r === 0)
10972
- t.style.display = "none";
10973
- else {
10974
- const E = this.containerID_.split("-cesium")[0], p = k.transformCoordinate(i), m = k.getMapHeightByZoom(E, 6, p);
10975
- C <= w && Q.height < m ? r === 2 ? s ? t.style.display = "block" : t.style.display = "none" : t.style.display = "block" : t.style.display = "none";
10976
- }
10977
- }
10978
- });
10959
+ const i = e[1].presentationMode;
10960
+ if (i === 0 || !t || t && t.style.display !== "block")
10961
+ continue;
10962
+ const r = e[1].destination, s = e[1].isHighlight, o = e[1].customHTML, a = A.scene;
10963
+ this.calculatePosition(a, t, i, r, o, s);
10964
+ }
10965
+ }
10966
+ };
10967
+ calculatePosition = (A, e, t, i, r, s) => {
10968
+ const o = A.cartesianToCanvasCoordinates(
10969
+ i,
10970
+ new Cesium.Cartesian2()
10971
+ );
10972
+ if (o) {
10973
+ let a = r?.dx ?? 0, l = r?.dy ?? 0;
10974
+ a = a * window.devicePixelRatio, l = l * window.devicePixelRatio;
10975
+ const D = e.offsetHeight * window.devicePixelRatio, P = e.offsetWidth * window.devicePixelRatio;
10976
+ e.style.top = `${o.y * window.devicePixelRatio + l - D / 2}px`, e.style.left = `${o.x * window.devicePixelRatio + a - P / 2}px`;
10977
+ let c = A.camera, h = c.position, g = c.positionCartographic, u = g.height + A.globe.ellipsoid.maximumRadius, Q;
10978
+ if (A.mode === Cesium.SceneMode.SCENE2D ? Q = g.height : Q = Cesium.Cartesian3.distance(h, i), t === 0)
10979
+ e.style.display = "none";
10980
+ else {
10981
+ const w = this.containerID_.split("-cesium")[0], C = k.transformCoordinate(i), E = k.getMapHeightByZoom(w, 6, C);
10982
+ Q <= u && g.height < E ? t === 2 ? s ? e.style.display = "block" : e.style.display = "none" : e.style.display = "block" : e.style.display = "none";
10983
+ }
10979
10984
  }
10980
10985
  };
10981
10986
  // 显示方法
10982
10987
  show = () => {
10983
- let A = this.data_.ID + "-ZYWLCustomHTML";
10984
- if (window.CustomHTMLInstances_ && window.CustomHTMLInstances_.has(A)) {
10985
- let e = window.CustomHTMLInstances_.get(A);
10986
- e.presentationMode === 2 && (e.HTMLInstance.style.display = "block"), e.isHighlight = !0;
10988
+ let A = k.getMapEngineInstance(this.containerID_), e = this.data_.ID + "-ZYWLCustomHTML";
10989
+ if (window.CustomHTMLInstances_ && window.CustomHTMLInstances_.has(e)) {
10990
+ let t = window.CustomHTMLInstances_.get(e);
10991
+ t.presentationMode === 2 && (t.HTMLInstance.style.display = "block"), t.isHighlight = !0, this.calculatePosition(A.scene, t.HTMLInstance, t.presentationMode, t.destination, t.customHTML, t.isHighlight);
10987
10992
  }
10988
10993
  };
10989
10994
  // 隐藏方法
10990
10995
  hide = () => {
10991
- let A = this.data_.ID + "-ZYWLCustomHTML";
10992
- if (window.CustomHTMLInstances_ && window.CustomHTMLInstances_.has(A)) {
10993
- let e = window.CustomHTMLInstances_.get(A);
10994
- e.presentationMode === 2 && (e.HTMLInstance.style.display = "none"), e.isHighlight = !1;
10996
+ let A = k.getMapEngineInstance(this.containerID_), e = this.data_.ID + "-ZYWLCustomHTML";
10997
+ if (window.CustomHTMLInstances_ && window.CustomHTMLInstances_.has(e)) {
10998
+ let t = window.CustomHTMLInstances_.get(e);
10999
+ t.presentationMode === 2 && (t.HTMLInstance.style.display = "none"), t.isHighlight = !1, this.calculatePosition(A.scene, t.HTMLInstance, t.presentationMode, t.destination, t.customHTML, t.isHighlight);
10995
11000
  }
10996
11001
  };
10997
11002
  // 销毁方法
@@ -11065,7 +11070,7 @@ class ra {
11065
11070
  e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABHNCSVQICAgIfAhkiAAAF9RJREFUeF7tnQuwXVV5x7k8BARMguVZMCGAYHwkVuRRCybSArEooXYaqNgkfUFqp8GpDGkdSjKVllBmBLUVnI4ko05CWwXESrBKEkYLlLaYisTwSEixQBAlEVBQMP1/h3Xiyb33nLPfe+39/dbMN+cmZ++11vdb+/uftddee62R3UiNJrBjx4595cDxsjfIjpEdINtP9upxbPT/vyY4/yN9/rjHnh/w72f13cOyDSMjI/c1Gh6V320EBs0goECfoJpOC2bB3rXJ+nv3mrz4ucrdZGLQYw/o740Sh+011YliUxBAAFLAqupQBfsUlTVTdkJPwB9aVfkF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XQHK6LRAAiaH4JwoGqht0udHsIx0ZQrTKqsKEn4Ncq4H9YRiHkmZwAApCcVWVHShCOCIIwQ5+vl9kkpKaJwkOqs03GeVBmXfuve3/zrrILKEVBCEAKWHUeGl5UsleXTQy6ZqJgf0+V2ThDlcnuzzeFILdA77X/5YWbKpsie1kIQHZ2UZ0pgZisCpnZ7cSEHps44O+DgxNP6dN2udkebNDfz+iYLQrwLVEBoDKZCPw/CeDD+UBRG00AAAAASUVORK5CYII=";
11066
11071
  break;
11067
11072
  }
11068
- return console.log("图片base64字节数>>>>>>", new Blob([e]).size), e;
11073
+ return e;
11069
11074
  };
11070
11075
  }
11071
11076
  var Cp = { exports: {} };
@@ -133450,15 +133455,12 @@ class k {
133450
133455
  let a = Cesium.Cartesian3.distance(
133451
133456
  t.scene.camera.position,
133452
133457
  i
133453
- ), l = () => {
133454
- let D = new Cesium.HeadingPitchRange(
133455
- Cesium.Math.toRadians(r),
133456
- s,
133457
- a
133458
- );
133459
- t.scene.camera.lookAt(i, D), t.scene.camera.lookAtTransform(Cesium.Matrix4.IDENTITY), r > 0 && r <= 180 ? r-- : r > 180 && r < 360 ? r++ : t.clock.onTick.removeEventListener(l);
133460
- };
133461
- t.clock.onTick.addEventListener(l);
133458
+ ), l = new Cesium.HeadingPitchRange(
133459
+ 0,
133460
+ s,
133461
+ a
133462
+ );
133463
+ t.scene.camera.lookAt(i, l), t.scene.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
133462
133464
  } else
133463
133465
  t.scene.camera.setView({
133464
133466
  orientation: new Cesium.HeadingPitchRoll(0, s, o)
@@ -138065,42 +138067,47 @@ class k {
138065
138067
  "5",
138066
138068
  "6",
138067
138069
  "7"
138068
- ], l = A?.max ?? 18, D = A?.min ?? 1, P = A.urlTemplate, c;
138070
+ ], l = A?.tokens ?? [], D = A?.max ?? 18, P = A?.min ?? 1, c = A.urlTemplate, h;
138069
138071
  switch (o) {
138070
138072
  case 0:
138071
- c = new Mr(t, {
138073
+ h = new Mr(t, {
138072
138074
  crossOrigin: "anonymous",
138073
- urlTemplate: P,
138075
+ urlTemplate: c,
138074
138076
  subdomains: a,
138075
138077
  attribution: "",
138076
138078
  hitDetect: !1,
138077
- minZoom: D,
138079
+ minZoom: P,
138078
138080
  // maxZoom: maximumLevel,
138079
- maxAvailableZoom: l,
138081
+ maxAvailableZoom: D,
138080
138082
  visible: i,
138081
138083
  zIndex: r,
138082
138084
  opacity: s,
138083
- renderer: window.mapRenderer
138085
+ renderer: window.mapRenderer,
138086
+ customTags: {
138087
+ tk: function() {
138088
+ return l[Math.floor(Math.random() * l.length)];
138089
+ }
138090
+ }
138084
138091
  });
138085
138092
  break;
138086
138093
  case 1:
138087
138094
  {
138088
- let h = A?.layers ?? "", g = A?.styles ?? "";
138089
- c = new OI(t, {
138095
+ let g = A?.layers ?? "", u = A?.styles ?? "";
138096
+ h = new OI(t, {
138090
138097
  crossOrigin: "anonymous",
138091
- urlTemplate: P,
138098
+ urlTemplate: c,
138092
138099
  subdomains: a,
138093
138100
  attribution: "",
138094
138101
  hitDetect: !1,
138095
- minZoom: D,
138102
+ minZoom: P,
138096
138103
  // maxZoom: maximumLevel,
138097
- maxAvailableZoom: l,
138104
+ maxAvailableZoom: D,
138098
138105
  visible: i,
138099
138106
  zIndex: r,
138100
138107
  opacity: s,
138101
138108
  renderer: window.mapRenderer,
138102
- layers: h,
138103
- styles: g,
138109
+ layers: g,
138110
+ styles: u,
138104
138111
  version: "1.1.1",
138105
138112
  format: "image/png",
138106
138113
  transparent: !0,
@@ -138109,7 +138116,7 @@ class k {
138109
138116
  }
138110
138117
  break;
138111
138118
  }
138112
- return c;
138119
+ return h;
138113
138120
  };
138114
138121
  /**
138115
138122
  * 获取OpenLayers的瓦片图层(支持XYZ和WMS)
@@ -138248,30 +138255,33 @@ class k {
138248
138255
  "5",
138249
138256
  "6",
138250
138257
  "7"
138251
- ], a = A?.zIndex ?? 0, l = {
138258
+ ], a = A?.tokens ?? [], l = A?.zIndex ?? 0, D = {
138252
138259
  layerID: r,
138253
- zIndex: a
138254
- }, D = A?.max ?? 18;
138260
+ zIndex: l,
138261
+ tk: function() {
138262
+ return a[Math.floor(Math.random() * a.length)];
138263
+ }
138264
+ }, P = A?.max ?? 18;
138255
138265
  A?.min;
138256
- let P = A.urlTemplate;
138266
+ let c = A.urlTemplate;
138257
138267
  A.hasOwnProperty("appID") && A.appID && A.appID.length && (e = A.appID), A.hasOwnProperty("appSign") && A.appSign && A.appSign.length && (t = A.appSign);
138258
- let c;
138268
+ let h;
138259
138269
  switch (s) {
138260
138270
  case 0:
138261
138271
  {
138262
- let h;
138263
- e && t ? h = new Cesium.Resource({
138264
- url: P,
138272
+ let g;
138273
+ e && t ? g = new Cesium.Resource({
138274
+ url: c,
138265
138275
  headers: {
138266
138276
  appid: e,
138267
138277
  sign: t
138268
138278
  }
138269
- }) : h = P, c = new Cesium.UrlTemplateImageryProvider({
138270
- url: h,
138279
+ }) : g = c, h = new Cesium.UrlTemplateImageryProvider({
138280
+ url: g,
138271
138281
  subdomains: o,
138272
- customTags: l,
138273
- maximumLevel: D,
138274
- credit: JSON.stringify(l),
138282
+ customTags: D,
138283
+ maximumLevel: P,
138284
+ credit: JSON.stringify(D),
138275
138285
  // 用于后续识别
138276
138286
  tilingScheme: new Cesium.WebMercatorTilingScheme({
138277
138287
  numberOfLevelZeroTilesX: 1,
@@ -138283,61 +138293,61 @@ class k {
138283
138293
  break;
138284
138294
  case 1:
138285
138295
  {
138286
- let h = A?.layers ?? "", g = A?.styles ?? "", u = "EPSG:3857", Q = {};
138287
- e && t && (Q = {
138296
+ let g = A?.layers ?? "", u = A?.styles ?? "", Q = "EPSG:3857", w = {};
138297
+ e && t && (w = {
138288
138298
  appid: e,
138289
138299
  sign: t
138290
138300
  });
138291
- let w = new Cesium.Resource({
138292
- url: P,
138293
- headers: Q,
138301
+ let C = new Cesium.Resource({
138302
+ url: c,
138303
+ headers: w,
138294
138304
  queryParameters: {
138295
138305
  SERVICE: "WMS",
138296
138306
  VERSION: "1.1.1",
138297
138307
  REQUEST: "GetMap",
138298
138308
  FORMAT: "image/png",
138299
138309
  TRANSPARENT: !0,
138300
- LAYERS: h,
138301
- STYLES: g,
138310
+ LAYERS: g,
138311
+ STYLES: u,
138302
138312
  WIDTH: 256,
138303
138313
  HEIGHT: 256,
138304
- SRS: u
138314
+ SRS: Q
138305
138315
  }
138306
138316
  });
138307
- c = new Cesium.WebMapServiceImageryProvider({
138308
- url: w,
138317
+ h = new Cesium.WebMapServiceImageryProvider({
138318
+ url: C,
138309
138319
  subdomains: o,
138310
- customTags: l,
138311
- maximumLevel: D,
138312
- layers: h,
138320
+ customTags: D,
138321
+ maximumLevel: P,
138322
+ layers: g,
138313
138323
  enablePickFeatures: !0,
138314
138324
  parameters: {
138315
138325
  FORMAT: "image/png"
138316
138326
  },
138317
138327
  tilingScheme: new Cesium.WebMercatorTilingScheme(),
138318
- srs: u,
138319
- credit: JSON.stringify(l)
138328
+ srs: Q,
138329
+ credit: JSON.stringify(D)
138320
138330
  });
138321
138331
  }
138322
138332
  break;
138323
138333
  case 2:
138324
138334
  {
138325
- let h = A?.layers ?? "img", g = A?.styles ?? "default", u = A?.format ?? "image/png", Q = A?.matrixSet ?? "w";
138326
- c = new Cesium.WebMapTileServiceImageryProvider({
138327
- url: P,
138335
+ let g = A?.layers ?? "img", u = A?.styles ?? "default", Q = A?.format ?? "image/png", w = A?.matrixSet ?? "w";
138336
+ h = new Cesium.WebMapTileServiceImageryProvider({
138337
+ url: c,
138328
138338
  subdomains: o,
138329
- customTags: l,
138330
- maximumLevel: D,
138331
- layer: h,
138332
- style: g,
138333
- format: u,
138334
- tileMatrixSetID: Q,
138335
- credit: JSON.stringify(l)
138339
+ customTags: D,
138340
+ maximumLevel: P,
138341
+ layer: g,
138342
+ style: u,
138343
+ format: Q,
138344
+ tileMatrixSetID: w,
138345
+ credit: JSON.stringify(D)
138336
138346
  });
138337
138347
  }
138338
138348
  break;
138339
138349
  }
138340
- return c;
138350
+ return h;
138341
138351
  };
138342
138352
  /**
138343
138353
  * 对Cesium三维地图中的图层进行排序,使其显示顺序与传入的layers数组一致。
@@ -139917,7 +139927,10 @@ class k {
139917
139927
  static reDrawLabel = (A, e, t, i) => {
139918
139928
  let r, s = t?.customLabel;
139919
139929
  if (s && i) {
139920
- let o = s?.show ?? !0, a = {
139930
+ let o = s?.show ?? !1;
139931
+ if (!o)
139932
+ return r;
139933
+ let a = {
139921
139934
  textDx: s?.dx ?? 0,
139922
139935
  // 文本水平偏移
139923
139936
  textDy: s?.dy ?? 0,
@@ -139965,34 +139978,37 @@ class k {
139965
139978
  static reDrawHTML = (A, e, t, i) => {
139966
139979
  let r = t?.customHTML;
139967
139980
  if (r && i) {
139968
- let s = new en(i, {
139969
- id: e,
139970
- symbol: {},
139971
- // 标记无默认样式
139972
- editable: !1,
139973
- dragShadow: !1,
139974
- interactive: !1
139975
- }), o;
139976
- window.isGPUSupport ? o = k.getPointLayer(A) : o = k.getVectorLayer(A);
139977
- let a = o.getGeometries();
139978
- return a.push(s), console.log("监测<<<<<", o, a), o.addGeometry(a), console.log("监测>>>>>", o, a), {
139979
- presentationMode: r?.presentationMode ?? 0,
139980
- infoWindow: new H$.InfoWindow({
139981
- content: r?.content ?? "",
139982
- // 信息窗内容(默认空字符串)
139983
- dx: r?.dx ?? 0,
139984
- // 水平偏移
139985
- dy: r?.dy ?? 0,
139986
- // 垂直偏移
139987
- single: !1,
139988
- // 是否单例模式(默认false)
139989
- custom: !0,
139990
- // 自定义内容(默认true
139991
- autoPan: !1
139992
- // 自动平移地图(默认false
139993
- }).addTo(s),
139994
- marker: s
139995
- };
139981
+ let s = r?.presentationMode ?? 0;
139982
+ if (s !== 0) {
139983
+ let o = new en(i, {
139984
+ id: e,
139985
+ symbol: {},
139986
+ // 标记无默认样式
139987
+ editable: !1,
139988
+ dragShadow: !1,
139989
+ interactive: !1
139990
+ }), a;
139991
+ window.isGPUSupport ? a = k.getPointLayer(A) : a = k.getVectorLayer(A);
139992
+ let l = a.getGeometries();
139993
+ return l.push(o), console.log("监测<<<<<", a, l), a.addGeometry(l), console.log("监测>>>>>", a, l), {
139994
+ presentationMode: s,
139995
+ infoWindow: new H$.InfoWindow({
139996
+ content: r?.content ?? "",
139997
+ // 信息窗内容(默认空字符串)
139998
+ dx: r?.dx ?? 0,
139999
+ // 水平偏移
140000
+ dy: r?.dy ?? 0,
140001
+ // 垂直偏移
140002
+ single: !1,
140003
+ // 是否单例模式(默认false
140004
+ custom: !0,
140005
+ // 自定义内容(默认true
140006
+ autoPan: !1
140007
+ // 自动平移地图(默认false)
140008
+ }).addTo(o),
140009
+ marker: o
140010
+ };
140011
+ }
139996
140012
  }
139997
140013
  };
139998
140014
  /// 根据屏幕坐标获取笛卡尔
@@ -163639,7 +163655,7 @@ class zoA {
163639
163655
  scene: A.scene
163640
163656
  };
163641
163657
  r !== void 0 && (l.minimumPixelSize = r), s !== void 0 && (l.maximumScale = s), Cesium.Model.fromGltfAsync(l).then((D) => {
163642
- console.log(D), this.modelInstance_ && A.scene.primitives.remove(this.modelInstance_), this.modelInstance_ = D, A.scene.primitives.add(this.modelInstance_);
163658
+ this.modelInstance_ && A.scene.primitives.remove(this.modelInstance_), this.modelInstance_ = D, A.scene.primitives.add(this.modelInstance_);
163643
163659
  });
163644
163660
  }
163645
163661
  this.frustumInstance_ || (this.frustumInstance_ = new aWA(this.containerID_, "Models")), this.frustumInstance_.DataProcessing(this.data_, e);
@@ -164147,7 +164163,7 @@ class DWA {
164147
164163
  reDrawCustomLabel = () => {
164148
164164
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
164149
164165
  const A = this.data_.coordinates[0];
164150
- if (this.customLabelInstances_) {
164166
+ if (this.customLabelInstances_?.length) {
164151
164167
  let e = this.customLabelInstances_[0];
164152
164168
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
164153
164169
  } else {
@@ -164697,7 +164713,7 @@ class cWA {
164697
164713
  reDrawCustomLabel = () => {
164698
164714
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
164699
164715
  const A = this.data_.coordinates[0];
164700
- if (this.customLabelInstances_) {
164716
+ if (this.customLabelInstances_?.length) {
164701
164717
  let e = this.customLabelInstances_[0];
164702
164718
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
164703
164719
  } else {
@@ -164939,7 +164955,7 @@ class hWA {
164939
164955
  reDrawCustomLabel = () => {
164940
164956
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
164941
164957
  const A = this.data_.coordinates[0];
164942
- if (this.customLabelInstances_) {
164958
+ if (this.customLabelInstances_?.length) {
164943
164959
  let e = this.customLabelInstances_[0];
164944
164960
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
164945
164961
  } else {
@@ -168171,7 +168187,7 @@ class Xq {
168171
168187
  reDrawCustomLabel = () => {
168172
168188
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
168173
168189
  const A = this.data_.coordinates[0];
168174
- if (this.customLabelInstances_) {
168190
+ if (this.customLabelInstances_?.length) {
168175
168191
  let e = this.customLabelInstances_[0];
168176
168192
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
168177
168193
  } else {
@@ -168517,7 +168533,7 @@ class vWA {
168517
168533
  this.data_.ID + "-&-ZYWL-&-CenterHTML-0",
168518
168534
  this.data_,
168519
168535
  this.center_
168520
- ), this.centerHTMLInstance_ && (this.centerHTMLInstance_.presentationMode === 0 || this.centerHTMLInstance_.presentationMode === 2 ? this.centerHTMLInstance_.infoWindow.hide() : this.centerHTMLInstance_.infoWindow.show());
168536
+ ), console.log(this.centerHTMLInstance_), this.centerHTMLInstance_ && (this.centerHTMLInstance_.presentationMode === 0 || this.centerHTMLInstance_.presentationMode === 2 ? this.centerHTMLInstance_.infoWindow.hide() : this.centerHTMLInstance_.infoWindow.show());
168521
168537
  else {
168522
168538
  let e = A?.presentationMode ?? 0;
168523
168539
  this.centerHTMLInstance_.marker.setCoordinates(this.center_), e === 0 || e === 2 ? this.centerHTMLInstance_.infoWindow.hide() : this.centerHTMLInstance_.infoWindow.show();
@@ -168531,7 +168547,7 @@ class vWA {
168531
168547
  reDrawCustomLabel = () => {
168532
168548
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
168533
168549
  const A = this.data_.coordinates[0];
168534
- if (this.customLabelInstances_) {
168550
+ if (this.customLabelInstances_?.length) {
168535
168551
  let e = this.customLabelInstances_[0];
168536
168552
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
168537
168553
  } else {
@@ -168621,7 +168637,7 @@ class vWA {
168621
168637
  mouseover = (A) => {
168622
168638
  if (this.isEditable_)
168623
168639
  return;
168624
- if (this.centerHTMLInstance_ && this.centerHTMLInstance_.presentationMode === 2 && this.centerHTMLInstance_.infoWindow.show(), this.customHTMLInstances_ && this.customHTMLInstances_.length)
168640
+ if (console.log(this.centerHTMLInstance_, this.customHTMLInstances_), this.centerHTMLInstance_ && this.centerHTMLInstance_.presentationMode === 2 && this.centerHTMLInstance_.infoWindow.show(), this.customHTMLInstances_ && this.customHTMLInstances_.length)
168625
168641
  for (let t = 0; t < this.customHTMLInstances_.length; t++)
168626
168642
  this.customHTMLInstances_[t].presentationMode === 2 && this.customHTMLInstances_[t].infoWindow.show();
168627
168643
  if (!this.isHighlight_)
@@ -168864,7 +168880,7 @@ class _q {
168864
168880
  reDrawCustomLabel = () => {
168865
168881
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
168866
168882
  const A = this.data_.coordinates[0];
168867
- if (this.customLabelInstances_) {
168883
+ if (this.customLabelInstances_?.length) {
168868
168884
  let e = this.customLabelInstances_[0];
168869
168885
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
168870
168886
  } else {
@@ -175363,7 +175379,7 @@ class OWA {
175363
175379
  reDrawCustomLabel = () => {
175364
175380
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
175365
175381
  const A = this.data_.coordinates[0];
175366
- if (this.customLabelInstances_) {
175382
+ if (this.customLabelInstances_?.length) {
175367
175383
  let e = this.customLabelInstances_[0];
175368
175384
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
175369
175385
  } else {
@@ -194129,6 +194145,7 @@ const zte = (n, A) => {
194129
194145
  let t = this.createOL(e);
194130
194146
  k.setMapEngineInstance(this.openlayersID, t), this.createCesium(e);
194131
194147
  } else {
194148
+ window.isGPUSupport = !1;
194132
194149
  let t = this.createMaptalks(e);
194133
194150
  k.setMapEngineInstance(this.maptalksID, t), this.setMapEngineStateBar();
194134
194151
  let i = document.getElementById(
@@ -195711,7 +195728,11 @@ const zte = (n, A) => {
195711
195728
  if (L && (m = new Cesium.ImageryLayer(L, {
195712
195729
  show: u,
195713
195730
  splitDirection: E
195714
- }), i.imageryLayers.add(m), c)) {
195731
+ }), m.readyEvent.addEventListener((b) => {
195732
+ console.log("readyEvent", b);
195733
+ }), m.errorEvent.addEventListener((b) => {
195734
+ console.log("errorEvent", b);
195735
+ }), i.imageryLayers.add(m), console.log(m), c)) {
195715
195736
  let b = Cesium.Color.fromCssColorString(
195716
195737
  k.setMapColor(c)
195717
195738
  );
@@ -195856,7 +195877,7 @@ const zte = (n, A) => {
195856
195877
  let D = k.getNoFly(l);
195857
195878
  D && (k.removeNoFly(l), D.clear());
195858
195879
  },
195859
- 500
195880
+ 50
195860
195881
  ), console.log(`删除了${n}数据>>>>>>>>>>`, i));
195861
195882
  const r = t.changed ?? [];
195862
195883
  Array.isArray(r) && r.length && (await this.processArrayAsync(
@@ -195866,7 +195887,7 @@ const zte = (n, A) => {
195866
195887
  let D = k.getNoFly(l);
195867
195888
  D && D.DataProcessing(cA.cloneDeep(a));
195868
195889
  },
195869
- 500
195890
+ 50
195870
195891
  ), console.log(`更新了${n}数据>>>>>>>>>>`, r));
195871
195892
  const s = k.getMapEngineInstance(this.cesiumID), o = t.added ?? [];
195872
195893
  Array.isArray(o) && o.length && (await this.processArrayAsync(
@@ -195917,13 +195938,15 @@ const zte = (n, A) => {
195917
195938
  }
195918
195939
  D && (k.setNoFly(l, D), D.DataProcessing(cA.cloneDeep(a)));
195919
195940
  },
195920
- 500
195941
+ 50
195921
195942
  ).then((a) => {
195922
195943
  console.log("新增完成");
195923
195944
  }), console.log(`新增了${n}数据>>>>>>>>>>`, o));
195924
195945
  });
195925
195946
  },
195926
195947
  async setZYWLAnnotations(n, A) {
195948
+ console.time("标注");
195949
+ const e = 500;
195927
195950
  await this.handleCRUDData(n, A, async (t) => {
195928
195951
  const i = t.removed ?? [];
195929
195952
  Array.isArray(i) && i.length && (await this.processArrayAsync(
@@ -195933,7 +195956,7 @@ const zte = (n, A) => {
195933
195956
  let D = k.getAnnotation(l);
195934
195957
  D && (k.removeAnnotation(l), D.clear());
195935
195958
  },
195936
- 500
195959
+ e
195937
195960
  ), console.log(`删除了${n}数据>>>>>>>>>>`, i));
195938
195961
  const r = t.changed ?? [];
195939
195962
  Array.isArray(r) && r.length && (await this.processArrayAsync(
@@ -195943,7 +195966,7 @@ const zte = (n, A) => {
195943
195966
  let D = k.getAnnotation(l);
195944
195967
  D && D.DataProcessing(cA.cloneDeep(a));
195945
195968
  },
195946
- 500
195969
+ e
195947
195970
  ), console.log(`更新了${n}数据>>>>>>>>>>`, r));
195948
195971
  const s = k.getMapEngineInstance(this.cesiumID), o = t.added ?? [];
195949
195972
  Array.isArray(o) && o.length && (await this.processArrayAsync(
@@ -196000,8 +196023,8 @@ const zte = (n, A) => {
196000
196023
  }
196001
196024
  D && (k.setAnnotation(l, D), D.DataProcessing(cA.cloneDeep(a)));
196002
196025
  },
196003
- 500
196004
- ), console.log(`新增了${n}数据>>>>>>>>>>`, o));
196026
+ e
196027
+ ), console.log(`新增了${n}数据>>>>>>>>>>`, o), console.timeEnd("标注"));
196005
196028
  });
196006
196029
  },
196007
196030
  async setZYWLFlightPaths(n, A) {
@@ -196288,7 +196311,7 @@ const zte = (n, A) => {
196288
196311
  let D = k.getCustomNoFlyZone(l);
196289
196312
  D && (k.removeCustomNoFlyZone(l), D.clear());
196290
196313
  },
196291
- 500
196314
+ 50
196292
196315
  ), console.log(`删除了${n}数据>>>>>>>>>>`, i));
196293
196316
  const r = t.changed ?? [];
196294
196317
  Array.isArray(r) && r.length && (await this.processArrayAsync(
@@ -196298,7 +196321,7 @@ const zte = (n, A) => {
196298
196321
  let D = k.getCustomNoFlyZone(l);
196299
196322
  D && D.DataProcessing(cA.cloneDeep(a));
196300
196323
  },
196301
- 500
196324
+ 50
196302
196325
  ), console.log(`更新了${n}数据>>>>>>>>>>`, r));
196303
196326
  const s = k.getMapEngineInstance(this.cesiumID), o = t.added ?? [];
196304
196327
  Array.isArray(o) && o.length && (await this.processArrayAsync(
@@ -196328,7 +196351,7 @@ const zte = (n, A) => {
196328
196351
  }
196329
196352
  D && (k.setCustomNoFlyZone(l, D), D.DataProcessing(cA.cloneDeep(a)));
196330
196353
  },
196331
- 500
196354
+ 50
196332
196355
  ), console.log(`新增了${n}数据>>>>>>>>>>`, o));
196333
196356
  });
196334
196357
  },