|
@@ -249,7 +249,6 @@ export default {
|
|
|
|
|
|
// 加载GeoJSON数据
|
|
|
loadGeoJSON(geojson, yanse, id) {
|
|
|
- let _this = this;
|
|
|
const dataSource = new Cesium.GeoJsonDataSource();
|
|
|
dataSource
|
|
|
.load(geojson, {
|
|
@@ -307,7 +306,7 @@ export default {
|
|
|
},
|
|
|
mapview(item) {
|
|
|
console.log(item)
|
|
|
- this.drawWktPloygon(item.geom, "#ff0000", item.dkbm);
|
|
|
+ this.drawWktPloygon(item.geom, "#ff0000", item.id);
|
|
|
},
|
|
|
|
|
|
submit() {
|
|
@@ -346,6 +345,7 @@ export default {
|
|
|
},
|
|
|
//监听区域id的变化,用于删除上一次点击生成的geojson区域面
|
|
|
tempdataSourcesId(newVal, oldVal) {
|
|
|
+ console.log(newVal, oldVal,'newVal, oldVal');
|
|
|
if (oldVal) {
|
|
|
viewer.dataSources.remove(dataSources[oldVal]);
|
|
|
}
|