| | |
| | | import * as turf from "@turf/turf"; |
| | | import WKT from "terraformer-wkt-parser"; |
| | | import rightServer from "./rightServer"; |
| | | import config from "./config"; |
| | | // import config from "../../../../public/config/config"; |
| | | import CryptoJS from "crypto-js"; |
| | | // import { Store } from "vuex"; |
| | | import store from "@/store"; |
| | |
| | | polyline: SmartEarth.Cesium.Color.fromCssColorString("#ffff0050"), |
| | | polygon: SmartEarth.Cesium.Color.fromCssColorString("#ffff0050"), |
| | | }, |
| | | exportSquare: null, |
| | | topTools(res) { |
| | | this.toolFlag = res.id; |
| | | switch (res.id) { |
| | |
| | | case "l3": //在线制图 |
| | | store.state.isShowMap = true; |
| | | this.setThematicMap(); |
| | | |
| | | break; |
| | | case "l4": |
| | | store.state.isShowMap = true; |
| | |
| | | }, |
| | | thematicTools(res) { |
| | | switch (res.id) { |
| | | case "t1": |
| | | store.state.setLayerManager = !store.state.setLayerManager; |
| | | break; |
| | | case "t2": |
| | | this.createSimpleGraphic("rectangle", "square"); |
| | | break; |
| | | case "t3": |
| | | this.delRectangle(); |
| | | break; |
| | | case "t4": |
| | | store.state.setExportList = !store.state.setExportList |
| | | break; |
| | | } |
| | | }, |
| | |
| | | var east1 = ss[2]; |
| | | var north1 = ss[3]; |
| | | var south1 = ss[1]; |
| | | this.exportSquare = ss; |
| | | var geometry = Cesium.Rectangle.fromDegrees(west1, south1, east1, north1); |
| | | |
| | | |
| | | |
| | | Viewer.camera.setView({ |
| | | destination: Cesium.Rectangle.fromDegrees(west, south, east, north), |
| | | }); |
| | |
| | | // var handle = new SmartEarth.Cesium.ScreenSpaceEventHandler( |
| | | // earthCtrl.viewer.scene.canvas |
| | | // ); |
| | | |
| | | }, |
| | | |
| | | //坐标定位 |
| | |
| | | window.rightViewer.scene.skyAtmosphere.show = false; |
| | | const compass = document.getElementsByClassName("bottom_btn")[0]; |
| | | compass.style.right = "calc(50% + 70px)"; |
| | | compass.style.positions = "absolute"; |
| | | store.state.doubleMap = true; |
| | | setTimeout(() => { |
| | | window.functionGetLayer({ |
| | |
| | | //空间查询属性定位 |
| | | spaceLocation(res) { |
| | | var name = '空间查询'; |
| | | debugger |
| | | |
| | | this.setClearLocation(name); |
| | | switch (res.type) { |
| | | case 'MultiPolygon': |