surprise
2024-01-02 b2fdf4f25251229adbe9a6963cb35fb7fc868172
src/components/map/viewer.vue
@@ -42,6 +42,7 @@
import jiejing from "@/assets/img/new/jiejing.png";
import "animate.css";
import Bus from "@tools/Bus";
import mapViewer from "../../assets/js/Layer/mapViewer";
let activeLi, nLayer, LWLayer;
export default {
@@ -132,8 +133,8 @@
      Viewer.scene.globe.translucency.frontFaceAlpha = 0.5;
      Viewer.scene.globe.undergroundColor = undefined;
      //开启编辑并启用属性弹窗
      sgworld.Creator.SimpleGraphic.setEdit(true, {
        editProp: true,
      sgworld.Creator.SimpleGraphic.setEdit(false, {
        editProp: false,
        editPropData: {
          offset: "r",
          height: "60%",
@@ -196,6 +197,8 @@
      //初始化弹窗事件
      // that.showBottom();
      that.initLayerOpen();
      //添加鼠标点击事件
      mapViewer.addClick();
    });
    let size = this.detectZoom();
    this.scale = (100 / size).toFixed(2);