|
@@ -411,7 +411,7 @@ export default {
|
|
|
var that = this;
|
|
|
that.clear();
|
|
|
this.removehandlerPolygon();
|
|
|
-
|
|
|
+ debugger;
|
|
|
var coordinates = geojson.geometry.coordinates;
|
|
|
var positions = [];
|
|
|
that.ProjectScope.positions = [];
|
|
@@ -455,7 +455,7 @@ export default {
|
|
|
// })
|
|
|
// )
|
|
|
// .then(function (kmlDatasource) {
|
|
|
- //
|
|
|
+ // debugger;
|
|
|
// kmlDatasource.entities.values.add(polygonEntity);
|
|
|
// var entity = kmlDatasource.entities.values[0];
|
|
|
// // kmlDatasource.setVisibleInViewport(0, false);
|
|
@@ -708,7 +708,7 @@ export default {
|
|
|
);
|
|
|
});
|
|
|
handlerPolygon.drawEvt.addEventListener(async (result) => {
|
|
|
-
|
|
|
+ debugger;
|
|
|
that.tooltip.setVisible(false);
|
|
|
that.resetForm();
|
|
|
// that.Drawpolygons = result.object;
|
|
@@ -773,7 +773,7 @@ export default {
|
|
|
// );
|
|
|
// });
|
|
|
// handlerPolygon.drawEvt.addEventListener(async (result) => {
|
|
|
- //
|
|
|
+ // debugger;
|
|
|
// that.tooltip.setVisible(false);
|
|
|
// that.resetForm();
|
|
|
// that.imptAnalysis(result.object);
|
|
@@ -1066,7 +1066,7 @@ export default {
|
|
|
var bytes2 = new TextEncoder().encode(kml2);
|
|
|
// 创建一个Blob对象
|
|
|
var blob2 = new Blob([bytes2], { type: "text/plain" });
|
|
|
-
|
|
|
+ debugger;
|
|
|
//恢复原样
|
|
|
for (
|
|
|
var modelsloadDataindex = 0;
|
|
@@ -1099,7 +1099,7 @@ export default {
|
|
|
)
|
|
|
.then(function (kmlDatasource) {
|
|
|
eids.push(kmlDatasource);
|
|
|
-
|
|
|
+ debugger;
|
|
|
// kmlDatasource.entities.values.add(polygonEntity);
|
|
|
// var entity = kmlDatasource.entities.values[0];
|
|
|
for (
|
|
@@ -1107,6 +1107,7 @@ export default {
|
|
|
entitieindex < kmlDatasource.entities.values.length;
|
|
|
entitieindex++
|
|
|
) {
|
|
|
+ debugger;
|
|
|
const entitie =
|
|
|
kmlDatasource.entities.values[entitieindex];
|
|
|
that.setEntitieParameter(entitie, entitieindex);
|
|
@@ -1124,7 +1125,7 @@ export default {
|
|
|
)
|
|
|
.then(function (kmlDatasource) {
|
|
|
eids.push(kmlDatasource);
|
|
|
-
|
|
|
+
|
|
|
// kmlDatasource.entities.values.add(polygonEntity);
|
|
|
// var entity = kmlDatasource.entities.values[0];
|
|
|
for (
|
|
@@ -1201,7 +1202,7 @@ export default {
|
|
|
)
|
|
|
.then(function (kmlDatasource) {
|
|
|
eids.push(kmlDatasource);
|
|
|
-
|
|
|
+
|
|
|
// kmlDatasource.entities.values.add(polygonEntity);
|
|
|
// var entity = kmlDatasource.entities.values[0];
|
|
|
for (
|
|
@@ -1229,7 +1230,7 @@ export default {
|
|
|
entitie.polygon.material = new Cesium.Color.fromCssColorString(
|
|
|
entitie.kml.extendedData.fill.value
|
|
|
).withAlpha(1);
|
|
|
- entitie.polygon.height = this.gd + 3; //+ entitieindex * 0.1;
|
|
|
+ entitie.polygon.height = this.gd + 4 - entitieindex * 0.01;
|
|
|
entitie.polygon.outline = false;
|
|
|
}
|
|
|
if (entitie.children.length > 0) {
|
|
@@ -1413,7 +1414,7 @@ export default {
|
|
|
shour = that.proValue;
|
|
|
}
|
|
|
|
|
|
- //
|
|
|
+ // debugger;
|
|
|
this.nIntervId = setInterval(function () {
|
|
|
that.proValue = shour;
|
|
|
if (shour < ehour) {
|
|
@@ -1747,7 +1748,7 @@ export default {
|
|
|
gridType: "points",
|
|
|
property: "value",
|
|
|
units: "degrees",
|
|
|
- weight: 60,
|
|
|
+ weight: 50,
|
|
|
};
|
|
|
const isobandsOptions = {
|
|
|
zProperty: "value",
|
|
@@ -1779,6 +1780,23 @@ export default {
|
|
|
// 根据参与分级的属性和分级的数组计算出等值面
|
|
|
const isobandsData = isobands(grid, breaks, isobandsOptions);
|
|
|
var intersection = featureCollection(isobandsData.features);
|
|
|
+
|
|
|
+ //补充最大时间的底层图层
|
|
|
+
|
|
|
+ for (var index = intersection.features.length - 1; index >= 0; index--) {
|
|
|
+ var feature = intersection.features[index];
|
|
|
+ if (feature.geometry.coordinates.length > 0) {
|
|
|
+ // feature.geometry.coordinates[0] = [
|
|
|
+ // polygonPs.geometry.coordinates[0],
|
|
|
+ // feature.geometry.coordinates[0][0],
|
|
|
+ // ];
|
|
|
+ feature.geometry.coordinates.push([
|
|
|
+ polygonPs.geometry.coordinates[0],
|
|
|
+ ]);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// intersection = intersect(intersection, polygonPs);
|
|
|
|
|
|
// 初始化一个数组来存储交集结果
|