zywlgis 0.5.37 → 0.5.39

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,54 +10946,100 @@ class Gi {
10946
10946
  isHighlight: this.isHighlight,
10947
10947
  customHTML: this.data_?.customHTML
10948
10948
  });
10949
- window.CustomHTMLRender || (window.CustomHTMLRender = t.scene.postRender.addEventListener(
10949
+ this.calculatePosition(
10950
+ t.scene,
10951
+ this.HTMLInstance_,
10952
+ this.presentationMode_,
10953
+ this.destination_,
10954
+ this.data_?.customHTML,
10955
+ this.isHighlight
10956
+ ), this.addShowHTML({
10957
+ HTMLInstance: this.HTMLInstance_,
10958
+ destination: this.destination_,
10959
+ presentationMode: this.presentationMode_,
10960
+ isHighlight: this.isHighlight,
10961
+ customHTML: this.data_?.customHTML
10962
+ });
10963
+ }
10964
+ window.CustomHTMLRender || (window.CustomHTMLRender = t.scene.camera.changed.addEventListener(
10950
10965
  this.postRenderCustomHTML
10951
10966
  ));
10952
10967
  };
10953
10968
  // 渲染回调方法(帧更新)
10954
10969
  postRenderCustomHTML = () => {
10955
- if (window.CustomHTMLInstances_) {
10956
- let A = k.getMapEngineInstance(this.containerID_);
10957
- [...window.CustomHTMLInstances_].forEach((e) => {
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(
10970
+ if (window.ShowHTMLInstances_) {
10971
+ const e = k.getMapEngineInstance(this.containerID_).scene;
10972
+ for (const t of [...window.ShowHTMLInstances_]) {
10973
+ const i = t[1].HTMLInstance, r = t[1].presentationMode;
10974
+ if (r === 0 || !i || i && i.style.display !== "block")
10975
+ continue;
10976
+ const s = t[1].destination, o = t[1].isHighlight, a = t[1].customHTML;
10977
+ this.calculatePosition(
10978
+ e,
10962
10979
  i,
10963
- new Cesium.Cartesian2()
10980
+ r,
10981
+ s,
10982
+ a,
10983
+ o
10964
10984
  );
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
- });
10985
+ }
10986
+ }
10987
+ };
10988
+ calculatePosition = (A, e, t, i, r, s) => {
10989
+ const o = A.cartesianToCanvasCoordinates(
10990
+ i,
10991
+ new Cesium.Cartesian2()
10992
+ );
10993
+ if (o) {
10994
+ let a = r?.dx ?? 0, l = r?.dy ?? 0;
10995
+ a = a * window.devicePixelRatio, l = l * window.devicePixelRatio;
10996
+ const D = e.offsetHeight * window.devicePixelRatio, P = e.offsetWidth * window.devicePixelRatio;
10997
+ e.style.top = `${o.y * window.devicePixelRatio + l - D / 2}px`, e.style.left = `${o.x * window.devicePixelRatio + a - P / 2}px`;
10998
+ let c = A.camera, h = c.position, g = c.positionCartographic, u = g.height + A.globe.ellipsoid.maximumRadius, Q;
10999
+ if (A.mode === Cesium.SceneMode.SCENE2D ? Q = g.height : Q = Cesium.Cartesian3.distance(h, i), t === 0)
11000
+ e.style.display = "none";
11001
+ else {
11002
+ const w = this.containerID_.split("-cesium")[0], C = k.transformCoordinate(i), E = k.getMapHeightByZoom(w, 6, C);
11003
+ Q <= u && g.height < E ? t === 2 ? s ? e.style.display = "block" : e.style.display = "none" : e.style.display = "block" : e.style.display = "none";
11004
+ }
10979
11005
  }
10980
11006
  };
10981
11007
  // 显示方法
10982
11008
  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;
11009
+ let A = k.getMapEngineInstance(this.containerID_), e = this.data_.ID + "-ZYWLCustomHTML";
11010
+ if (window.CustomHTMLInstances_ && window.CustomHTMLInstances_.has(e)) {
11011
+ let t = window.CustomHTMLInstances_.get(e);
11012
+ t.presentationMode === 2 && (t.HTMLInstance.style.display = "block"), t.isHighlight = !0, this.calculatePosition(
11013
+ A.scene,
11014
+ t.HTMLInstance,
11015
+ t.presentationMode,
11016
+ t.destination,
11017
+ t.customHTML,
11018
+ t.isHighlight
11019
+ ), this.addShowHTML(t);
10987
11020
  }
10988
11021
  };
10989
11022
  // 隐藏方法
10990
11023
  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;
11024
+ let A = k.getMapEngineInstance(this.containerID_), e = this.data_.ID + "-ZYWLCustomHTML";
11025
+ if (window.CustomHTMLInstances_ && window.CustomHTMLInstances_.has(e)) {
11026
+ let t = window.CustomHTMLInstances_.get(e);
11027
+ t.presentationMode === 2 && (t.HTMLInstance.style.display = "none"), t.isHighlight = !1, this.calculatePosition(
11028
+ A.scene,
11029
+ t.HTMLInstance,
11030
+ t.presentationMode,
11031
+ t.destination,
11032
+ t.customHTML,
11033
+ t.isHighlight
11034
+ ), this.removeShowHTML(t);
10995
11035
  }
10996
11036
  };
11037
+ addShowHTML = (A) => {
11038
+ window.ShowHTMLInstances_ || (window.ShowHTMLInstances_ = /* @__PURE__ */ new Map()), window.ShowHTMLInstances_.has(A.HTMLInstance.id) && window.ShowHTMLInstances_.delete(A.HTMLInstance.id), (A.presentationMode === 1 || A.presentationMode === 2 && A.isHighlight) && window.ShowHTMLInstances_.set(A.HTMLInstance.id, A);
11039
+ };
11040
+ removeShowHTML = (A) => {
11041
+ window.ShowHTMLInstances_ || (window.ShowHTMLInstances_ = /* @__PURE__ */ new Map()), window.ShowHTMLInstances_ && window.ShowHTMLInstances_.has(A.HTMLInstance.id) && window.ShowHTMLInstances_.delete(A.HTMLInstance.id);
11042
+ };
10997
11043
  // 销毁方法
10998
11044
  clear = () => {
10999
11045
  let e = k.getMapEngineInstance(this.containerID_)?.cesiumWidget?.container;
@@ -11065,7 +11111,7 @@ class ra {
11065
11111
  e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABHNCSVQICAgIfAhkiAAAF9RJREFUeF7tnQuwXVV5x7k8BARMguVZMCGAYHwkVuRRCybSArEooXYaqNgkfUFqp8GpDGkdSjKVllBmBLUVnI4ko05CWwXESrBKEkYLlLaYisTwSEixQBAlEVBQMP1/h3Xiyb33nLPfe+39/dbMN+cmZ++11vdb+/uftddee62R3UiNJrBjx4595cDxsjfIjpEdINtP9upxbPT/vyY4/yN9/rjHnh/w72f13cOyDSMjI/c1Gh6V320EBs0goECfoJpOC2bB3rXJ+nv3mrz4ucrdZGLQYw/o740Sh+011YliUxBAAFLAqupQBfsUlTVTdkJPwB9aVfkFlfOk8jExuF9mPYWvSRS+V1DeZFMQAQSgIJB5sgkB/84Q9Bb4JgBtTHbrsDbYOgSh/iZGAGpoA0cBP4wugjCMUMnfIwAlA7bsCfjEkBGExKiKORABKIbjmFwU9JP0n78rmyd7e0nFtD3be+XgctlK3S4803Zn6/APASiQuoJ+T2U3OwT9e/T5qgKz95zVT+X8rUEMVksMXvIMo0jfEYACaCrw36Rsfl/2ftnBBWRJFv0JPKWvPi/7jITAnjCQchBAADLCU9D/kk79QPi1n54xG07LR2B96B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  }
11068
- return console.log("图片base64字节数>>>>>>", new Blob([e]).size), e;
11114
+ return e;
11069
11115
  };
11070
11116
  }
11071
11117
  var Cp = { exports: {} };
@@ -133360,24 +133406,27 @@ class k {
133360
133406
  let i = this.getMapEngineID(A), r = this.getMapEngineInstance(i.openlayersID), s = this.getMapEngineInstance(i.cesiumID);
133361
133407
  if (r && s) {
133362
133408
  let o, a = r.getView().getResolutionForZoom(e);
133409
+ const l = this.degreesToRadians(t?.latitude);
133363
133410
  return o = this.calcDistanceForResolution(
133364
133411
  A,
133365
133412
  a,
133366
- this.degreesToRadians(t?.latitude)
133413
+ l
133367
133414
  ), o;
133368
133415
  }
133369
133416
  };
133370
133417
  static calcDistanceForResolution = (A, e, t) => {
133371
133418
  let i = this.getMapEngineID(A), r = this.getMapEngineInstance(i.openlayersID);
133372
133419
  const o = this.getMapEngineInstance(i.cesiumID).scene, a = o.camera.frustum, l = o.canvas.clientHeight, D = r.getView().getProjection().getMetersPerUnit(), P = Math.cos(Math.abs(t));
133373
- let c, h = 0.7302107096371538;
133374
- return a instanceof Cesium.PerspectiveFrustum && (h = a.fovy), c = e * D * P * l / 2 / Math.tan(h / 2), c;
133420
+ let c;
133421
+ const h = e * D * P * l;
133422
+ let g = 0.7302107096371538;
133423
+ return a instanceof Cesium.PerspectiveFrustum && (g = a.fovy), c = h / 2 / Math.tan(g / 2), c;
133375
133424
  };
133376
133425
  static calcResolutionForDistance = (A, e, t) => {
133377
133426
  let i = this.getMapEngineID(A), r = this.getMapEngineInstance(i.openlayersID);
133378
- const o = this.getMapEngineInstance(i.cesiumID).scene, a = o.camera.frustum, l = r.getView().getProjection().getMetersPerUnit(), D = Math.cos(Math.abs(t));
133379
- let P = 0.7302107096371538;
133380
- return a instanceof Cesium.PerspectiveFrustum && (P = a.fovy), 2 * e * Math.tan(P / 2) / l / D / o.canvas.clientHeight;
133427
+ const o = this.getMapEngineInstance(i.cesiumID).scene, a = o.camera.frustum, l = o.canvas.clientHeight, D = r.getView().getProjection().getMetersPerUnit(), P = Math.cos(Math.abs(t));
133428
+ let c, h = 0.7302107096371538;
133429
+ return a instanceof Cesium.PerspectiveFrustum && (h = a.fovy), c = 2 * e * Math.tan(h / 2), c / D / P / l;
133381
133430
  };
133382
133431
  static calculateZoom = (A, e) => {
133383
133432
  let t = e.getView().getZoomForResolution(A);
@@ -133392,15 +133441,14 @@ class k {
133392
133441
  a.clientHeight / 2
133393
133442
  ), D;
133394
133443
  if (D = k.getCartesian(s, l), D) {
133395
- let P = Cesium.Cartesian3.distance(D, o.position), c = s.globe.ellipsoid.cartesianToCartographic(D), h = this.calculateZoom(
133396
- this.calcResolutionForDistance(
133397
- A,
133398
- P,
133399
- c ? c.latitude : 0
133400
- ),
133401
- i
133402
- );
133403
- return h < 0 && (h = 0), parseInt(h);
133444
+ let P = Cesium.Cartesian3.distance(D, o.position), c = s.globe.ellipsoid.cartesianToCartographic(D);
133445
+ const h = c ? c.latitude : 0;
133446
+ let g = this.calcResolutionForDistance(
133447
+ A,
133448
+ P,
133449
+ h
133450
+ ), u = this.calculateZoom(g, i);
133451
+ return u < 0 && (u = 0), parseInt(u);
133404
133452
  }
133405
133453
  } else {
133406
133454
  if (i)
@@ -133450,15 +133498,8 @@ class k {
133450
133498
  let a = Cesium.Cartesian3.distance(
133451
133499
  t.scene.camera.position,
133452
133500
  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);
133501
+ ), l = new Cesium.HeadingPitchRange(0, s, a);
133502
+ t.scene.camera.lookAt(i, l), t.scene.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
133462
133503
  } else
133463
133504
  t.scene.camera.setView({
133464
133505
  orientation: new Cesium.HeadingPitchRoll(0, s, o)
@@ -135447,14 +135488,18 @@ class k {
135447
135488
  else if (A.includes("-openlayers"))
135448
135489
  t && (e ? e === "TakeOffCursor.png" ? t.getTargetElement().style.cursor = `url(${ra.getIconBase64(e)}) 16 21, auto` : t.getTargetElement().style.cursor = e : t.getTargetElement().style.cursor = "");
135449
135490
  else if (A.includes("-maptalks"))
135450
- t && (e ? e === "TakeOffCursor.png" ? t.setCursor(`url(${ra.getIconBase64(e)}) 16 21, auto`) : t.setCursor(e) : t.setCursor(""));
135491
+ t && (e ? e === "TakeOffCursor.png" ? t.setCursor(
135492
+ `url(${ra.getIconBase64(e)}) 16 21, auto`
135493
+ ) : t.setCursor(e) : t.setCursor(""));
135451
135494
  else {
135452
135495
  let i = this.getMapEngineID(A), r = this.getMapEngineInstance(i.cesiumID);
135453
135496
  r && (e ? e === "TakeOffCursor.png" ? r.container.style.cursor = `url(${ra.getIconBase64(e)}) 16 21, auto` : r.container.style.cursor = e : r.container.style.cursor = "", console.log(r.container));
135454
135497
  let s = this.getMapEngineInstance(i.openlayersID);
135455
135498
  s && (e ? e === "TakeOffCursor.png" ? s.getTargetElement().style.cursor = `url(${ra.getIconBase64(e)}) 16 21, auto` : s.getTargetElement().style.cursor = e : s.getTargetElement().style.cursor = "");
135456
135499
  let o = this.getMapEngineInstance(i.maptalksID);
135457
- o && (e ? e === "TakeOffCursor.png" ? o.setCursor(`url(${ra.getIconBase64(e)}) 16 21, auto`) : o.setCursor(e) : o.setCursor(""));
135500
+ o && (e ? e === "TakeOffCursor.png" ? o.setCursor(
135501
+ `url(${ra.getIconBase64(e)}) 16 21, auto`
135502
+ ) : o.setCursor(e) : o.setCursor(""));
135458
135503
  }
135459
135504
  };
135460
135505
  /**恢复鼠标样式*/
@@ -138065,42 +138110,47 @@ class k {
138065
138110
  "5",
138066
138111
  "6",
138067
138112
  "7"
138068
- ], l = A?.max ?? 18, D = A?.min ?? 1, P = A.urlTemplate, c;
138113
+ ], l = A?.tokens ?? [], D = A?.max ?? 18, P = A?.min ?? 1, c = A.urlTemplate, h;
138069
138114
  switch (o) {
138070
138115
  case 0:
138071
- c = new Mr(t, {
138116
+ h = new Mr(t, {
138072
138117
  crossOrigin: "anonymous",
138073
- urlTemplate: P,
138118
+ urlTemplate: c,
138074
138119
  subdomains: a,
138075
138120
  attribution: "",
138076
138121
  hitDetect: !1,
138077
- minZoom: D,
138122
+ minZoom: P,
138078
138123
  // maxZoom: maximumLevel,
138079
- maxAvailableZoom: l,
138124
+ maxAvailableZoom: D,
138080
138125
  visible: i,
138081
138126
  zIndex: r,
138082
138127
  opacity: s,
138083
- renderer: window.mapRenderer
138128
+ renderer: window.mapRenderer,
138129
+ customTags: {
138130
+ tk: function() {
138131
+ return l[Math.floor(Math.random() * l.length)];
138132
+ }
138133
+ }
138084
138134
  });
138085
138135
  break;
138086
138136
  case 1:
138087
138137
  {
138088
- let h = A?.layers ?? "", g = A?.styles ?? "";
138089
- c = new OI(t, {
138138
+ let g = A?.layers ?? "", u = A?.styles ?? "";
138139
+ h = new OI(t, {
138090
138140
  crossOrigin: "anonymous",
138091
- urlTemplate: P,
138141
+ urlTemplate: c,
138092
138142
  subdomains: a,
138093
138143
  attribution: "",
138094
138144
  hitDetect: !1,
138095
- minZoom: D,
138145
+ minZoom: P,
138096
138146
  // maxZoom: maximumLevel,
138097
- maxAvailableZoom: l,
138147
+ maxAvailableZoom: D,
138098
138148
  visible: i,
138099
138149
  zIndex: r,
138100
138150
  opacity: s,
138101
138151
  renderer: window.mapRenderer,
138102
- layers: h,
138103
- styles: g,
138152
+ layers: g,
138153
+ styles: u,
138104
138154
  version: "1.1.1",
138105
138155
  format: "image/png",
138106
138156
  transparent: !0,
@@ -138109,7 +138159,7 @@ class k {
138109
138159
  }
138110
138160
  break;
138111
138161
  }
138112
- return c;
138162
+ return h;
138113
138163
  };
138114
138164
  /**
138115
138165
  * 获取OpenLayers的瓦片图层(支持XYZ和WMS)
@@ -138248,30 +138298,33 @@ class k {
138248
138298
  "5",
138249
138299
  "6",
138250
138300
  "7"
138251
- ], a = A?.zIndex ?? 0, l = {
138301
+ ], a = A?.tokens ?? [], l = A?.zIndex ?? 0, D = {
138252
138302
  layerID: r,
138253
- zIndex: a
138254
- }, D = A?.max ?? 18;
138303
+ zIndex: l,
138304
+ tk: function() {
138305
+ return a[Math.floor(Math.random() * a.length)];
138306
+ }
138307
+ }, P = A?.max ?? 18;
138255
138308
  A?.min;
138256
- let P = A.urlTemplate;
138309
+ let c = A.urlTemplate;
138257
138310
  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;
138311
+ let h;
138259
138312
  switch (s) {
138260
138313
  case 0:
138261
138314
  {
138262
- let h;
138263
- e && t ? h = new Cesium.Resource({
138264
- url: P,
138315
+ let g;
138316
+ e && t ? g = new Cesium.Resource({
138317
+ url: c,
138265
138318
  headers: {
138266
138319
  appid: e,
138267
138320
  sign: t
138268
138321
  }
138269
- }) : h = P, c = new Cesium.UrlTemplateImageryProvider({
138270
- url: h,
138322
+ }) : g = c, h = new Cesium.UrlTemplateImageryProvider({
138323
+ url: g,
138271
138324
  subdomains: o,
138272
- customTags: l,
138273
- maximumLevel: D,
138274
- credit: JSON.stringify(l),
138325
+ customTags: D,
138326
+ maximumLevel: P,
138327
+ credit: JSON.stringify(D),
138275
138328
  // 用于后续识别
138276
138329
  tilingScheme: new Cesium.WebMercatorTilingScheme({
138277
138330
  numberOfLevelZeroTilesX: 1,
@@ -138283,61 +138336,61 @@ class k {
138283
138336
  break;
138284
138337
  case 1:
138285
138338
  {
138286
- let h = A?.layers ?? "", g = A?.styles ?? "", u = "EPSG:3857", Q = {};
138287
- e && t && (Q = {
138339
+ let g = A?.layers ?? "", u = A?.styles ?? "", Q = "EPSG:3857", w = {};
138340
+ e && t && (w = {
138288
138341
  appid: e,
138289
138342
  sign: t
138290
138343
  });
138291
- let w = new Cesium.Resource({
138292
- url: P,
138293
- headers: Q,
138344
+ let C = new Cesium.Resource({
138345
+ url: c,
138346
+ headers: w,
138294
138347
  queryParameters: {
138295
138348
  SERVICE: "WMS",
138296
138349
  VERSION: "1.1.1",
138297
138350
  REQUEST: "GetMap",
138298
138351
  FORMAT: "image/png",
138299
138352
  TRANSPARENT: !0,
138300
- LAYERS: h,
138301
- STYLES: g,
138353
+ LAYERS: g,
138354
+ STYLES: u,
138302
138355
  WIDTH: 256,
138303
138356
  HEIGHT: 256,
138304
- SRS: u
138357
+ SRS: Q
138305
138358
  }
138306
138359
  });
138307
- c = new Cesium.WebMapServiceImageryProvider({
138308
- url: w,
138360
+ h = new Cesium.WebMapServiceImageryProvider({
138361
+ url: C,
138309
138362
  subdomains: o,
138310
- customTags: l,
138311
- maximumLevel: D,
138312
- layers: h,
138363
+ customTags: D,
138364
+ maximumLevel: P,
138365
+ layers: g,
138313
138366
  enablePickFeatures: !0,
138314
138367
  parameters: {
138315
138368
  FORMAT: "image/png"
138316
138369
  },
138317
138370
  tilingScheme: new Cesium.WebMercatorTilingScheme(),
138318
- srs: u,
138319
- credit: JSON.stringify(l)
138371
+ srs: Q,
138372
+ credit: JSON.stringify(D)
138320
138373
  });
138321
138374
  }
138322
138375
  break;
138323
138376
  case 2:
138324
138377
  {
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,
138378
+ let g = A?.layers ?? "img", u = A?.styles ?? "default", Q = A?.format ?? "image/png", w = A?.matrixSet ?? "w";
138379
+ h = new Cesium.WebMapTileServiceImageryProvider({
138380
+ url: c,
138328
138381
  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)
138382
+ customTags: D,
138383
+ maximumLevel: P,
138384
+ layer: g,
138385
+ style: u,
138386
+ format: Q,
138387
+ tileMatrixSetID: w,
138388
+ credit: JSON.stringify(D)
138336
138389
  });
138337
138390
  }
138338
138391
  break;
138339
138392
  }
138340
- return c;
138393
+ return h;
138341
138394
  };
138342
138395
  /**
138343
138396
  * 对Cesium三维地图中的图层进行排序,使其显示顺序与传入的layers数组一致。
@@ -139917,7 +139970,10 @@ class k {
139917
139970
  static reDrawLabel = (A, e, t, i) => {
139918
139971
  let r, s = t?.customLabel;
139919
139972
  if (s && i) {
139920
- let o = s?.show ?? !0, a = {
139973
+ let o = s?.show ?? !1;
139974
+ if (!o)
139975
+ return r;
139976
+ let a = {
139921
139977
  textDx: s?.dx ?? 0,
139922
139978
  // 文本水平偏移
139923
139979
  textDy: s?.dy ?? 0,
@@ -139965,34 +140021,37 @@ class k {
139965
140021
  static reDrawHTML = (A, e, t, i) => {
139966
140022
  let r = t?.customHTML;
139967
140023
  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
- };
140024
+ let s = r?.presentationMode ?? 0;
140025
+ if (s !== 0) {
140026
+ let o = new en(i, {
140027
+ id: e,
140028
+ symbol: {},
140029
+ // 标记无默认样式
140030
+ editable: !1,
140031
+ dragShadow: !1,
140032
+ interactive: !1
140033
+ }), a;
140034
+ window.isGPUSupport ? a = k.getPointLayer(A) : a = k.getVectorLayer(A);
140035
+ let l = a.getGeometries();
140036
+ return l.push(o), console.log("监测<<<<<", a, l), a.addGeometry(l), console.log("监测>>>>>", a, l), {
140037
+ presentationMode: s,
140038
+ infoWindow: new H$.InfoWindow({
140039
+ content: r?.content ?? "",
140040
+ // 信息窗内容(默认空字符串)
140041
+ dx: r?.dx ?? 0,
140042
+ // 水平偏移
140043
+ dy: r?.dy ?? 0,
140044
+ // 垂直偏移
140045
+ single: !1,
140046
+ // 是否单例模式(默认false
140047
+ custom: !0,
140048
+ // 自定义内容(默认true
140049
+ autoPan: !1
140050
+ // 自动平移地图(默认false)
140051
+ }).addTo(o),
140052
+ marker: o
140053
+ };
140054
+ }
139996
140055
  }
139997
140056
  };
139998
140057
  /// 根据屏幕坐标获取笛卡尔
@@ -163639,7 +163698,7 @@ class zoA {
163639
163698
  scene: A.scene
163640
163699
  };
163641
163700
  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_);
163701
+ this.modelInstance_ && A.scene.primitives.remove(this.modelInstance_), this.modelInstance_ = D, A.scene.primitives.add(this.modelInstance_);
163643
163702
  });
163644
163703
  }
163645
163704
  this.frustumInstance_ || (this.frustumInstance_ = new aWA(this.containerID_, "Models")), this.frustumInstance_.DataProcessing(this.data_, e);
@@ -164147,7 +164206,7 @@ class DWA {
164147
164206
  reDrawCustomLabel = () => {
164148
164207
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
164149
164208
  const A = this.data_.coordinates[0];
164150
- if (this.customLabelInstances_) {
164209
+ if (this.customLabelInstances_?.length) {
164151
164210
  let e = this.customLabelInstances_[0];
164152
164211
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
164153
164212
  } else {
@@ -164697,7 +164756,7 @@ class cWA {
164697
164756
  reDrawCustomLabel = () => {
164698
164757
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
164699
164758
  const A = this.data_.coordinates[0];
164700
- if (this.customLabelInstances_) {
164759
+ if (this.customLabelInstances_?.length) {
164701
164760
  let e = this.customLabelInstances_[0];
164702
164761
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
164703
164762
  } else {
@@ -164939,7 +164998,7 @@ class hWA {
164939
164998
  reDrawCustomLabel = () => {
164940
164999
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
164941
165000
  const A = this.data_.coordinates[0];
164942
- if (this.customLabelInstances_) {
165001
+ if (this.customLabelInstances_?.length) {
164943
165002
  let e = this.customLabelInstances_[0];
164944
165003
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
164945
165004
  } else {
@@ -166830,7 +166889,7 @@ class fWA {
166830
166889
  this.data_?.symbol?.pointColor && this.data_?.symbol?.pointColor.length && (i = this.data_?.symbol?.pointColor), i = Cesium.Color.fromCssColorString(i);
166831
166890
  const r = this.data_?.symbol?.pixelSize ?? 10;
166832
166891
  new Promise((s) => {
166833
- const o = this.containerID_.split("-cesium")[0], a = k.transformCoordinate(e), l = k.getMapHeightByZoom(o, 21, a), D = k.getMapHeightByZoom(o, 4, a);
166892
+ const o = this.containerID_.split("-cesium")[0], a = k.transformCoordinate(e), l = k.getMapHeightByZoom(o, 20, a), D = k.getMapHeightByZoom(o, 4, a);
166834
166893
  s({
166835
166894
  nearHeight: l,
166836
166895
  farHeight: D
@@ -168171,7 +168230,7 @@ class Xq {
168171
168230
  reDrawCustomLabel = () => {
168172
168231
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
168173
168232
  const A = this.data_.coordinates[0];
168174
- if (this.customLabelInstances_) {
168233
+ if (this.customLabelInstances_?.length) {
168175
168234
  let e = this.customLabelInstances_[0];
168176
168235
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
168177
168236
  } else {
@@ -168517,7 +168576,7 @@ class vWA {
168517
168576
  this.data_.ID + "-&-ZYWL-&-CenterHTML-0",
168518
168577
  this.data_,
168519
168578
  this.center_
168520
- ), this.centerHTMLInstance_ && (this.centerHTMLInstance_.presentationMode === 0 || this.centerHTMLInstance_.presentationMode === 2 ? this.centerHTMLInstance_.infoWindow.hide() : this.centerHTMLInstance_.infoWindow.show());
168579
+ ), console.log(this.centerHTMLInstance_), this.centerHTMLInstance_ && (this.centerHTMLInstance_.presentationMode === 0 || this.centerHTMLInstance_.presentationMode === 2 ? this.centerHTMLInstance_.infoWindow.hide() : this.centerHTMLInstance_.infoWindow.show());
168521
168580
  else {
168522
168581
  let e = A?.presentationMode ?? 0;
168523
168582
  this.centerHTMLInstance_.marker.setCoordinates(this.center_), e === 0 || e === 2 ? this.centerHTMLInstance_.infoWindow.hide() : this.centerHTMLInstance_.infoWindow.show();
@@ -168531,7 +168590,7 @@ class vWA {
168531
168590
  reDrawCustomLabel = () => {
168532
168591
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
168533
168592
  const A = this.data_.coordinates[0];
168534
- if (this.customLabelInstances_) {
168593
+ if (this.customLabelInstances_?.length) {
168535
168594
  let e = this.customLabelInstances_[0];
168536
168595
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
168537
168596
  } else {
@@ -168621,7 +168680,7 @@ class vWA {
168621
168680
  mouseover = (A) => {
168622
168681
  if (this.isEditable_)
168623
168682
  return;
168624
- if (this.centerHTMLInstance_ && this.centerHTMLInstance_.presentationMode === 2 && this.centerHTMLInstance_.infoWindow.show(), this.customHTMLInstances_ && this.customHTMLInstances_.length)
168683
+ if (console.log(this.centerHTMLInstance_, this.customHTMLInstances_), this.centerHTMLInstance_ && this.centerHTMLInstance_.presentationMode === 2 && this.centerHTMLInstance_.infoWindow.show(), this.customHTMLInstances_ && this.customHTMLInstances_.length)
168625
168684
  for (let t = 0; t < this.customHTMLInstances_.length; t++)
168626
168685
  this.customHTMLInstances_[t].presentationMode === 2 && this.customHTMLInstances_[t].infoWindow.show();
168627
168686
  if (!this.isHighlight_)
@@ -168864,7 +168923,7 @@ class _q {
168864
168923
  reDrawCustomLabel = () => {
168865
168924
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
168866
168925
  const A = this.data_.coordinates[0];
168867
- if (this.customLabelInstances_) {
168926
+ if (this.customLabelInstances_?.length) {
168868
168927
  let e = this.customLabelInstances_[0];
168869
168928
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
168870
168929
  } else {
@@ -175363,7 +175422,7 @@ class OWA {
175363
175422
  reDrawCustomLabel = () => {
175364
175423
  if (this.visible_ && Array.isArray(this.data_?.coordinates) && this.data_?.coordinates.length) {
175365
175424
  const A = this.data_.coordinates[0];
175366
- if (this.customLabelInstances_) {
175425
+ if (this.customLabelInstances_?.length) {
175367
175426
  let e = this.customLabelInstances_[0];
175368
175427
  e.setCoordinates([A.longitude, A.latitude]), e.setContent(A?.customLabel?.content ?? "");
175369
175428
  } else {
@@ -193982,7 +194041,7 @@ const zte = (n, A) => {
193982
194041
  { type: "css", url: "/libs/Cesium/Widgets/widgets.css" },
193983
194042
  // JavaScript资源 - 按依赖顺序加载
193984
194043
  { type: "js", url: "/libs/Cesium/Cesium.js" },
193985
- { type: "js", url: "/libs/Cesium/Cesium-Version.js" },
194044
+ { type: "js", url: "/libs/Cesium/Cesium-Extend.js" },
193986
194045
  { type: "js", url: "/libs/SuperMap3D/SuperMap3D.js" },
193987
194046
  { type: "js", url: "/libs/cpRPA.js" },
193988
194047
  { type: "js", url: "/libs/egm96_mhl.js" }
@@ -194129,6 +194188,7 @@ const zte = (n, A) => {
194129
194188
  let t = this.createOL(e);
194130
194189
  k.setMapEngineInstance(this.openlayersID, t), this.createCesium(e);
194131
194190
  } else {
194191
+ window.isGPUSupport = !1;
194132
194192
  let t = this.createMaptalks(e);
194133
194193
  k.setMapEngineInstance(this.maptalksID, t), this.setMapEngineStateBar();
194134
194194
  let i = document.getElementById(
@@ -194231,7 +194291,7 @@ const zte = (n, A) => {
194231
194291
  createCesium(n) {
194232
194292
  let A = this.MapConfiguration_Temp?.isAR ?? !1, e = document.getElementById(this.cesiumID);
194233
194293
  e || (e = document.createElement("div"), e.id = this.cesiumID, e.tabIndex = "0", e.style.position = "absolute", e.style.height = "100%", e.style.width = "100%", e.style.zIndex = 2, e.style.backgroundColor = "#232323", n && n.appendChild(e));
194234
- let t = this.MapEngine_Temp?.zoom?.max ?? 21, i = this.MapEngine_Temp?.zoom?.min ?? 1, r = this.MapEngine_Temp?.camera?.pitch ?? -90, s = k.isSupportWebGL2(), o = k.getMapEngineInstance(this.cesiumID);
194294
+ let t = this.MapEngine_Temp?.zoom?.max ?? 20, i = this.MapEngine_Temp?.zoom?.min ?? 1, r = this.MapEngine_Temp?.camera?.pitch ?? -90, s = k.isSupportWebGL2(), o = k.getMapEngineInstance(this.cesiumID);
194235
194295
  return o || (o = new Cesium.Viewer(this.cesiumID, {
194236
194296
  geocoder: !1,
194237
194297
  animation: !1,
@@ -194324,7 +194384,7 @@ const zte = (n, A) => {
194324
194384
  if (A.scene.sun.show = !1, A.scene.moon.show = !1, A.scene.skyBox.show = !1, A.scene.logarithmicDepthBuffer = !1, e)
194325
194385
  A.scene.skyAtmosphere.show = !1, A.scene.backgroundColor = Cesium.Color.TRANSPARENT, A.scene.globe.translucency.enabled = !0, A.scene.globe.translucency.backFaceAlpha = 0, A.scene.globe.translucency.frontFaceAlpha = 0;
194326
194386
  else {
194327
- this.addMapSlider(A, n), A.imageryLayers.removeAll(), A.scene.postProcessStages.fxaa.enabled = !0, window.devicePixelRatio = 1, A.resolutionScale = window.devicePixelRatio, A.targetFrameRate = 120, A.trackedEntity = void 0, A.scene.globe.maximumScreenSpaceError = 1, A.scene.globe.preloadAncestors = !0, A.scene.globe.preloadSiblings = !0, t > 21 && (t = 21);
194387
+ this.addMapSlider(A, n), A.imageryLayers.removeAll(), A.scene.postProcessStages.fxaa.enabled = !0, window.devicePixelRatio = 1, A.resolutionScale = window.devicePixelRatio, A.targetFrameRate = 120, A.trackedEntity = void 0, A.scene.globe.maximumScreenSpaceError = 1, A.scene.globe.preloadAncestors = !1, A.scene.globe.preloadSiblings = !1, t > 20 && (t = 20);
194328
194388
  let r = k.getMapHeightByZoom(
194329
194389
  this.containerID,
194330
194390
  t,
@@ -194687,8 +194747,8 @@ const zte = (n, A) => {
194687
194747
  if (Q) {
194688
194748
  w || (w = document.createElement("img"), w.id = `${this.containerID}-MapEngineZoomIn`, n.appendChild(w), w.addEventListener("click", () => {
194689
194749
  this.setMapEngineRangingTool(!1);
194690
- let m = this.loadZoom(), T = this.MapEngine_Temp?.zoom?.max ?? 21;
194691
- T > 21 && (T = 21), m < T && (m++, this.syncZoom(m), window.isStartMapModeChange = !0, k.setMapEnginePosition(
194750
+ let m = this.loadZoom(), T = this.MapEngine_Temp?.zoom?.max ?? 20;
194751
+ T > 20 && (T = 20), m < T && (m++, this.syncZoom(m), window.isStartMapModeChange = !0, k.setMapEnginePosition(
194692
194752
  this.MapEngine_Temp,
194693
194753
  this.loadZoom(),
194694
194754
  !0,
@@ -195856,7 +195916,7 @@ const zte = (n, A) => {
195856
195916
  let D = k.getNoFly(l);
195857
195917
  D && (k.removeNoFly(l), D.clear());
195858
195918
  },
195859
- 500
195919
+ 50
195860
195920
  ), console.log(`删除了${n}数据>>>>>>>>>>`, i));
195861
195921
  const r = t.changed ?? [];
195862
195922
  Array.isArray(r) && r.length && (await this.processArrayAsync(
@@ -195866,7 +195926,7 @@ const zte = (n, A) => {
195866
195926
  let D = k.getNoFly(l);
195867
195927
  D && D.DataProcessing(cA.cloneDeep(a));
195868
195928
  },
195869
- 500
195929
+ 50
195870
195930
  ), console.log(`更新了${n}数据>>>>>>>>>>`, r));
195871
195931
  const s = k.getMapEngineInstance(this.cesiumID), o = t.added ?? [];
195872
195932
  Array.isArray(o) && o.length && (await this.processArrayAsync(
@@ -195917,13 +195977,15 @@ const zte = (n, A) => {
195917
195977
  }
195918
195978
  D && (k.setNoFly(l, D), D.DataProcessing(cA.cloneDeep(a)));
195919
195979
  },
195920
- 500
195980
+ 50
195921
195981
  ).then((a) => {
195922
195982
  console.log("新增完成");
195923
195983
  }), console.log(`新增了${n}数据>>>>>>>>>>`, o));
195924
195984
  });
195925
195985
  },
195926
195986
  async setZYWLAnnotations(n, A) {
195987
+ console.time("标注");
195988
+ const e = 500;
195927
195989
  await this.handleCRUDData(n, A, async (t) => {
195928
195990
  const i = t.removed ?? [];
195929
195991
  Array.isArray(i) && i.length && (await this.processArrayAsync(
@@ -195933,7 +195995,7 @@ const zte = (n, A) => {
195933
195995
  let D = k.getAnnotation(l);
195934
195996
  D && (k.removeAnnotation(l), D.clear());
195935
195997
  },
195936
- 500
195998
+ e
195937
195999
  ), console.log(`删除了${n}数据>>>>>>>>>>`, i));
195938
196000
  const r = t.changed ?? [];
195939
196001
  Array.isArray(r) && r.length && (await this.processArrayAsync(
@@ -195943,7 +196005,7 @@ const zte = (n, A) => {
195943
196005
  let D = k.getAnnotation(l);
195944
196006
  D && D.DataProcessing(cA.cloneDeep(a));
195945
196007
  },
195946
- 500
196008
+ e
195947
196009
  ), console.log(`更新了${n}数据>>>>>>>>>>`, r));
195948
196010
  const s = k.getMapEngineInstance(this.cesiumID), o = t.added ?? [];
195949
196011
  Array.isArray(o) && o.length && (await this.processArrayAsync(
@@ -196000,8 +196062,8 @@ const zte = (n, A) => {
196000
196062
  }
196001
196063
  D && (k.setAnnotation(l, D), D.DataProcessing(cA.cloneDeep(a)));
196002
196064
  },
196003
- 500
196004
- ), console.log(`新增了${n}数据>>>>>>>>>>`, o));
196065
+ e
196066
+ ), console.log(`新增了${n}数据>>>>>>>>>>`, o), console.timeEnd("标注"));
196005
196067
  });
196006
196068
  },
196007
196069
  async setZYWLFlightPaths(n, A) {
@@ -196288,7 +196350,7 @@ const zte = (n, A) => {
196288
196350
  let D = k.getCustomNoFlyZone(l);
196289
196351
  D && (k.removeCustomNoFlyZone(l), D.clear());
196290
196352
  },
196291
- 500
196353
+ 50
196292
196354
  ), console.log(`删除了${n}数据>>>>>>>>>>`, i));
196293
196355
  const r = t.changed ?? [];
196294
196356
  Array.isArray(r) && r.length && (await this.processArrayAsync(
@@ -196298,7 +196360,7 @@ const zte = (n, A) => {
196298
196360
  let D = k.getCustomNoFlyZone(l);
196299
196361
  D && D.DataProcessing(cA.cloneDeep(a));
196300
196362
  },
196301
- 500
196363
+ 50
196302
196364
  ), console.log(`更新了${n}数据>>>>>>>>>>`, r));
196303
196365
  const s = k.getMapEngineInstance(this.cesiumID), o = t.added ?? [];
196304
196366
  Array.isArray(o) && o.length && (await this.processArrayAsync(
@@ -196328,7 +196390,7 @@ const zte = (n, A) => {
196328
196390
  }
196329
196391
  D && (k.setCustomNoFlyZone(l, D), D.DataProcessing(cA.cloneDeep(a)));
196330
196392
  },
196331
- 500
196393
+ 50
196332
196394
  ), console.log(`新增了${n}数据>>>>>>>>>>`, o));
196333
196395
  });
196334
196396
  },