zywlgis 0.5.31 → 0.5.33

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.
@@ -133288,6 +133288,8 @@ class k {
133288
133288
  };
133289
133289
  // 设置地图引擎位置
133290
133290
  static setMapEnginePosition = (A, e, t, i, r, s, o) => {
133291
+ if (window.isOpenSyncZoomLensCamera)
133292
+ return;
133291
133293
  let a = A.containerID, l = this.getMapEngineID(a), D = this.getMapEngineInstance(l.cesiumID), P = this.getMapEngineInstance(l.maptalksID), c = this.getMapEngineInstance(l.openlayersID), h = A?.center?.longitude ?? 117.21833231944812, g = A?.center?.latitude ?? 39.06565050593017;
133292
133294
  if (D) {
133293
133295
  let Q = D.scene.camera, w = D.clock, C = A?.camera?.heading ?? 0, E = A?.camera?.pitch ?? -89;
@@ -133921,7 +133923,7 @@ class k {
133921
133923
  u.textContent = `HAE:${Number((Number(IA) + Number(MA)).toFixed(1))}m`;
133922
133924
  }
133923
133925
  } else !P && (l || D) && (Q.style.display = "none", u && (u.style.display = "none"));
133924
- AA ? (g.style.width = `${70 * o}px`, g.style.right = "10px") : (g.style.width = "0px", g.style.right = "0px"), iA && u.style.display !== "none" ? (u.style.width = `${100 * o}px`, u.style.display = "", u.style.right = `${parseInt(g.style.right) + g.offsetWidth + 10}px`) : (u.style.width = "0px", u.style.display = "none", u.style.right = "0px"), $ && Q.style.display !== "none" ? (Q.style.width = `${100 * o}px`, Q.style.display = "", Q.style.right = `${parseInt(u.style.right) + u.offsetWidth}px`) : (Q.style.width = "0px", Q.style.display = "none", Q.style.right = "0px"), w || (w = document.createElement("div"), w.id = `${A}-MapEngineMouseLatitudeDiv`, w.style.position = "absolute", h.appendChild(w), w.style.color = "#fff", w.style.width = `${150 * o}px`, w.style.height = `${R}px`, w.style.fontSize = `${Y}px`, w.style.zIndex = 5, w.style.alignContent = "center", w.textContent = "纬度"), Q.style.display === "none" ? w.style.right = `${parseInt(g.style.right) + g.offsetWidth}px` : w.style.right = `${parseInt(Q.style.right) + Q.offsetWidth}px`, i && !r && (w.style.display = "block", w.textContent = `纬度 ${i}`), C || (C = document.createElement("div"), C.id = `${A}-MapEngineMouseLongitudeDiv`, C.style.position = "absolute", h.appendChild(C), C.style.color = "#fff", C.style.width = `${150 * o}px`, C.style.height = `${R}px`, C.style.fontSize = `${Y}px`, C.style.zIndex = 5, C.style.alignContent = "center", C.textContent = "经度"), C.style.right = `${parseInt(w.style.right) + w.offsetWidth}px`, t && !r && (C.style.display = "block", C.textContent = `经度 ${t}`), E || (E = document.createElement("div"), E.id = `${A}-MapEngineMapZoomDiv`, E.style.position = "absolute", h.appendChild(E), E.style.color = "#fff", E.style.height = `${R}px`, E.style.fontSize = `${Y}px`, E.style.zIndex = 5, E.style.textAlign = "center", E.style.alignContent = "center"), E.style.right = `${parseInt(C.style.right) + C.offsetWidth}px`, TA ? (E.style.width = `${80 * o}px`, E.style.display = "") : (E.style.width = "0px", E.style.display = "none"), p || (p = document.createElement("div"), p.id = `${A}-MapEngineScaleDiv`, p.style.position = "absolute", h.appendChild(p), p.style.height = `${R}px`, p.style.right = "0px", p.style.zIndex = 5), p.style.right = `${parseInt(E.style.right) + E.offsetWidth}px`;
133926
+ AA ? (g.style.width = `${70 * o}px`, g.style.right = "10px") : (g.style.width = "0px", g.style.right = "0px"), iA && u.style.display !== "none" ? (u.style.width = `${100 * o}px`, u.style.display = "", u.style.right = `${parseInt(g.style.right) + g.offsetWidth + 10}px`) : (u.style.width = "0px", u.style.display = "none", u.style.right = "0px"), $ && Q.style.display !== "none" ? (Q.style.width = `${100 * o}px`, Q.style.display = "", Q.style.right = `${parseInt(u.style.right) + u.offsetWidth}px`) : (Q.style.width = "0px", Q.style.display = "none", Q.style.right = "0px"), w || (w = document.createElement("div"), w.id = `${A}-MapEngineMouseLatitudeDiv`, w.style.position = "absolute", h.appendChild(w), w.style.color = "#fff", w.style.width = `${135 * o}px`, w.style.height = `${R}px`, w.style.fontSize = `${Y}px`, w.style.zIndex = 5, w.style.alignContent = "center", w.textContent = "纬度"), Q.style.display === "none" ? w.style.right = `${parseInt(g.style.right) + g.offsetWidth}px` : w.style.right = `${parseInt(Q.style.right) + Q.offsetWidth}px`, i && !r && (w.style.display = "block", w.textContent = `纬度 ${i}`), C || (C = document.createElement("div"), C.id = `${A}-MapEngineMouseLongitudeDiv`, C.style.position = "absolute", h.appendChild(C), C.style.color = "#fff", C.style.width = `${145 * o}px`, C.style.height = `${R}px`, C.style.fontSize = `${Y}px`, C.style.zIndex = 5, C.style.alignContent = "center", C.textContent = "经度"), C.style.right = `${parseInt(w.style.right) + w.offsetWidth}px`, t && !r && (C.style.display = "block", C.textContent = `经度 ${t}`), E || (E = document.createElement("div"), E.id = `${A}-MapEngineMapZoomDiv`, E.style.position = "absolute", h.appendChild(E), E.style.color = "#fff", E.style.height = `${R}px`, E.style.fontSize = `${Y}px`, E.style.zIndex = 5, E.style.textAlign = "center", E.style.alignContent = "center"), E.style.right = `${parseInt(C.style.right) + C.offsetWidth}px`, TA ? (E.style.width = `${80 * o}px`, E.style.display = "") : (E.style.width = "0px", E.style.display = "none"), p || (p = document.createElement("div"), p.id = `${A}-MapEngineScaleDiv`, p.style.position = "absolute", h.appendChild(p), p.style.height = `${R}px`, p.style.right = "0px", p.style.zIndex = 5), p.style.right = `${parseInt(E.style.right) + E.offsetWidth}px`;
133925
133927
  const pA = document.getElementById(
133926
133928
  `${A}-MapTileLoadProgressTextDiv`
133927
133929
  );
@@ -137357,6 +137359,7 @@ class k {
137357
137359
  * @param {Object} cameraOption - 相机姿态参数
137358
137360
  */
137359
137361
  static syncCamera = (A, e, t, i, r) => {
137362
+ window.isOpenSyncZoomLensCamera = !0;
137360
137363
  let s = new Cesium.Camera(A), o, a;
137361
137364
  e > t ? (o = e, a = e / t) : (o = t, a = t / e);
137362
137365
  let l = new Cesium.PerspectiveFrustum({
@@ -137385,6 +137388,7 @@ class k {
137385
137388
  * @param {string} containerID - 地图容器ID
137386
137389
  */
137387
137390
  static restoreCamera = (A) => {
137391
+ window.isOpenSyncZoomLensCamera = !1;
137388
137392
  let e = this.getMapEngineID(A), t = this.getMapEngineInstance(e.cesiumID);
137389
137393
  t && window.originalFrustum && (t.scene.camera.frustum = window.originalFrustum);
137390
137394
  };
@@ -194260,7 +194264,7 @@ const zte = (n, A) => {
194260
194264
  blurActiveElementOnCanvasFocus: !1,
194261
194265
  baseLayerPicker: !1,
194262
194266
  mapProjection: new Cesium.WebMercatorProjection()
194263
- }), k.setMapEngineInstance(this.cesiumID, o), window.sceneIntegrator || (window.sceneIntegrator = MoA(o))), k.getPointPrimitiveCollection(this.cesiumID), k.getLabelCollection(this.cesiumID), k.getBillboardCollection(this.cesiumID), r === -90 || o.scene.camera.switchToPerspectiveFrustum(), o.scene.backgroundColor = Cesium.Color.fromCssColorString("#232323"), o.scene.globe.baseColor = Cesium.Color.fromCssColorString("#2A3034"), o.cesiumWidget.creditContainer.style.display = "none", o.scene.screenSpaceCameraController.enableCollisionDetection = !0, o.scene.globe.tileLoadProgressEvent.addEventListener((a) => {
194267
+ }), k.setMapEngineInstance(this.cesiumID, o), window.sceneIntegrator || (window.sceneIntegrator = MoA(o))), k.getPointPrimitiveCollection(this.cesiumID), k.getLabelCollection(this.cesiumID), k.getBillboardCollection(this.cesiumID), r === -90 ? o.scene.camera.switchToOrthographicFrustum() : o.scene.camera.switchToPerspectiveFrustum(), o.scene.backgroundColor = Cesium.Color.fromCssColorString("#232323"), o.scene.globe.baseColor = Cesium.Color.fromCssColorString("#2A3034"), o.cesiumWidget.creditContainer.style.display = "none", o.scene.screenSpaceCameraController.enableCollisionDetection = !0, o.scene.globe.tileLoadProgressEvent.addEventListener((a) => {
194264
194268
  this.createTileLoadProgressIcon(), this.tileLoadProgress < a ? (this.tileLoadProgress = cA.cloneDeep(a), this.drawCircle(a)) : (this.tileLoadProgress = 100 - a, this.drawCircle(this.tileLoadProgress));
194265
194269
  }), this.setCesiumState(
194266
194270
  e,
@@ -194608,6 +194612,8 @@ const zte = (n, A) => {
194608
194612
  },
194609
194613
  // 设置地图引擎状态栏
194610
194614
  setMapEngineStateBar() {
194615
+ if (window.isOpenSyncZoomLensCamera)
194616
+ return;
194611
194617
  let n, A;
194612
194618
  this.mouseCoordinate && this.mouseCoordinate.length && (n = this.mouseCoordinate[0], A = this.mouseCoordinate[1]), k.createMapEngineStateBar(
194613
194619
  this.containerID,
@@ -194874,7 +194880,7 @@ const zte = (n, A) => {
194874
194880
  },
194875
194881
  // 相机变化事件处理器(Cesium模式专用)
194876
194882
  cesiumCameraChanged() {
194877
- let A = k.getMapEngineInstance(this.cesiumID).scene, e = A.camera, t = document.getElementById(
194883
+ let e = k.getMapEngineInstance(this.cesiumID).scene.camera, t = document.getElementById(
194878
194884
  `${this.containerID}-MapEngineMapMode`
194879
194885
  );
194880
194886
  if (t) {
@@ -194885,8 +194891,8 @@ const zte = (n, A) => {
194885
194891
  `${this.containerID}-MapEnginecompassNeedle`
194886
194892
  );
194887
194893
  if (i) {
194888
- let r = 0;
194889
- (A.mode === 3 || A.mode === 2) && (r = Cesium.Math.toDegrees(e.heading)), i.style.transform = `rotate(${r}deg)`;
194894
+ let r = Cesium.Math.toDegrees(e.heading);
194895
+ i.style.transform = `rotate(${r}deg)`;
194890
194896
  }
194891
194897
  if (!this.isKeyDown && !window.isStartMapModeChange && !this.initializeMap && this.setMapEngineStateBar(), !this.heatMapUpdateTimer) {
194892
194898
  let r = k.getHeatMaps();
@@ -194924,7 +194930,7 @@ const zte = (n, A) => {
194924
194930
  ), this.MapEngine_Temp.camera = {
194925
194931
  heading: parseInt(Cesium.Math.toDegrees(e.heading)),
194926
194932
  pitch: parseInt(Cesium.Math.toDegrees(e.pitch))
194927
- }, this.syncZoom(k.getZoom(this.containerID)), this.setMapEngineStateBar(), this.refreshZoom();
194933
+ }, window.isOpenSyncZoomLensCamera || (this.syncZoom(k.getZoom(this.containerID)), this.setMapEngineStateBar(), this.refreshZoom());
194928
194934
  },
194929
194935
  cesiumScenePostRender(n) {
194930
194936
  this.stats && this.stats.update();