|
@@ -73,9 +73,8 @@ export default {
|
|
this.echarts[i].iseyes = !this.echarts[i].iseyes;
|
|
this.echarts[i].iseyes = !this.echarts[i].iseyes;
|
|
let label = this.echarts[i].label;
|
|
let label = this.echarts[i].label;
|
|
let id = "scjg" + i;
|
|
let id = "scjg" + i;
|
|
- console.log("----", this.dataSources, id);
|
|
|
|
if (this.dataSources[id]) {
|
|
if (this.dataSources[id]) {
|
|
- this.dataSources[id].show = item.iseyes;
|
|
|
|
|
|
+ this.dataSources[id].show = this.echarts[i].iseyes;
|
|
} else this.addPolygon(label, id);
|
|
} else this.addPolygon(label, id);
|
|
// emit("eyesChaneg");
|
|
// emit("eyesChaneg");
|
|
},
|
|
},
|
|
@@ -108,13 +107,11 @@ export default {
|
|
{ clampToGround: true }
|
|
{ clampToGround: true }
|
|
);
|
|
);
|
|
polygon.then(function (dataSource) {
|
|
polygon.then(function (dataSource) {
|
|
- console.log("----", _this);
|
|
|
|
// dataSource.id = id;
|
|
// dataSource.id = id;
|
|
// 将数据源添加到Cesium Viewer
|
|
// 将数据源添加到Cesium Viewer
|
|
viewer.dataSources.add(dataSource);
|
|
viewer.dataSources.add(dataSource);
|
|
viewer.zoomTo(dataSource);
|
|
viewer.zoomTo(dataSource);
|
|
_this.dataSources[id] = dataSource;
|
|
_this.dataSources[id] = dataSource;
|
|
- console.log(_this.dataSources);
|
|
|
|
// 可以获取实体并进行操作
|
|
// 可以获取实体并进行操作
|
|
// dataSource.entities.values.forEach((entity) => {
|
|
// dataSource.entities.values.forEach((entity) => {
|
|
// // 你可以在这里设置实体的属性,例如位置、颜色等
|
|
// // 你可以在这里设置实体的属性,例如位置、颜色等
|