|
@@ -238,7 +238,7 @@ export default {
|
|
|
tooltip: createTooltip(document.body),
|
|
|
form: {
|
|
|
timeInterval: 60,
|
|
|
- spacing: 3,
|
|
|
+ spacing: 8,
|
|
|
selDate: new Date(),
|
|
|
startTime: 10,
|
|
|
endTime: 14,
|
|
@@ -304,7 +304,9 @@ export default {
|
|
|
computed: {},
|
|
|
mounted() {
|
|
|
this.multiViewportMode = scene.multiViewportMode + 1;
|
|
|
-
|
|
|
+ document.oncontextmenu = function (e) {
|
|
|
+ e.preventDefault();
|
|
|
+ };
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
@@ -374,14 +376,15 @@ export default {
|
|
|
|
|
|
handlerPolygon.activate();
|
|
|
handlerPolygon.activeEvt.addEventListener(function (isActive) {
|
|
|
- if (isActive == true) {
|
|
|
- viewer.enableCursorStyle = false;
|
|
|
- viewer._element.style.cursor = "";
|
|
|
- document.body.classList.add("drawCur");
|
|
|
- } else {
|
|
|
- viewer.enableCursorStyle = true;
|
|
|
- document.body.classList.remove("drawCur");
|
|
|
- }
|
|
|
+ // if (isActive == true) {
|
|
|
+ // viewer.enableCursorStyle = false;
|
|
|
+ // viewer._element.style.cursor = "";
|
|
|
+ // document.body.classList.add("drawCur");
|
|
|
+ // } else {
|
|
|
+ // viewer.enableCursorStyle = true;
|
|
|
+ // document.body.classList.remove("drawCur");
|
|
|
+ // }
|
|
|
+ that.tooltip.setVisible(false);
|
|
|
});
|
|
|
handlerPolygon.movingEvt.addEventListener((windowPosition) => {
|
|
|
that.tooltip.showAt(
|
|
@@ -473,6 +476,7 @@ export default {
|
|
|
},
|
|
|
analysis() {
|
|
|
let that = this;
|
|
|
+ debugger;
|
|
|
that.clear();
|
|
|
that.tableData = [];
|
|
|
if (!handlerPolygon) {
|
|
@@ -485,14 +489,15 @@ export default {
|
|
|
|
|
|
handlerPolygon.activate();
|
|
|
handlerPolygon.activeEvt.addEventListener(function (isActive) {
|
|
|
- if (isActive == true) {
|
|
|
- // viewer.enableCursorStyle = false;
|
|
|
- // viewer._element.style.cursor = "";
|
|
|
- document.body.classList.add("drawCur");
|
|
|
- } else {
|
|
|
- // viewer.enableCursorStyle = true;
|
|
|
- document.body.classList.remove("drawCur");
|
|
|
- }
|
|
|
+ // if (isActive == true) {
|
|
|
+ // // viewer.enableCursorStyle = false;
|
|
|
+ // // viewer._element.style.cursor = "";
|
|
|
+ // document.body.classList.add("drawCur");
|
|
|
+ // } else {
|
|
|
+ // // viewer.enableCursorStyle = true;
|
|
|
+ // document.body.classList.remove("drawCur");
|
|
|
+ // }
|
|
|
+ that.tooltip.setVisible(false);
|
|
|
});
|
|
|
handlerPolygon.movingEvt.addEventListener((windowPosition) => {
|
|
|
that.tooltip.showAt(
|
|
@@ -511,6 +516,7 @@ export default {
|
|
|
shadowQuery = new Cesium.ShadowQueryPoints(scene);
|
|
|
shadowQuery.setVisibleInViewport(that.radio);
|
|
|
shadowQuery.queryPointsEvent.addEventListener(function (e) {
|
|
|
+ console.log(new Date().getSeconds());
|
|
|
that.tableData = [];
|
|
|
that.loading = false;
|
|
|
let sdsd = [];
|
|
@@ -529,10 +535,10 @@ export default {
|
|
|
sd.properties.value = e_shadowRadio;
|
|
|
sdsd.push(sd);
|
|
|
}
|
|
|
-
|
|
|
+ console.log(new Date().getSeconds());
|
|
|
let gsd = that.setIsoline(sdsd);
|
|
|
// that.sdh = [];
|
|
|
-
|
|
|
+ console.log(new Date().getSeconds());
|
|
|
for (
|
|
|
let featuresindex = 0;
|
|
|
featuresindex < gsd.features.length;
|
|
@@ -564,14 +570,13 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ console.log(new Date().getSeconds());
|
|
|
if (shadowQuery) {
|
|
|
shadowQuery.destroy();
|
|
|
shadowQuery = null;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
let positions = that.positions;
|
|
|
let points = that.points;
|
|
|
var polygons = result.object;
|
|
@@ -634,11 +639,11 @@ export default {
|
|
|
let polygonPs = polygon([trufpolygons]);
|
|
|
let areaPs = area(polygonPs);
|
|
|
if (areaPs <= 20000) {
|
|
|
- that.form.spacing = 3;
|
|
|
+ that.form.spacing = 10;
|
|
|
} else if (areaPs <= 60000) {
|
|
|
- that.form.spacing = 5;
|
|
|
+ that.form.spacing = 10;
|
|
|
} else if (areaPs <= 100000) {
|
|
|
- that.form.spacing = 8;
|
|
|
+ that.form.spacing = 10;
|
|
|
} else {
|
|
|
that.form.spacing = 10;
|
|
|
}
|
|
@@ -770,6 +775,7 @@ export default {
|
|
|
if (handlerPolygon) {
|
|
|
handlerPolygon.clear();
|
|
|
handlerPolygon.deactivate();
|
|
|
+ handlerPolygon = null;
|
|
|
}
|
|
|
this.tooltip.setVisible(false);
|
|
|
if (shadowQuery) {
|
|
@@ -1082,6 +1088,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
+ document.oncontextmenu = null;
|
|
|
this.clear();
|
|
|
this.clearmarkedPoints();
|
|
|
if (shadowQuery) {
|