| | |
| | | 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 { |
| | |
| | | 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%", |
| | |
| | | //初始化弹窗事件 |
| | | // that.showBottom(); |
| | | that.initLayerOpen(); |
| | | //添加鼠标点击事件 |
| | | mapViewer.addClick(); |
| | | }); |
| | | let size = this.detectZoom(); |
| | | this.scale = (100 / size).toFixed(2); |