|
@@ -47,6 +47,9 @@ export default {
|
|
activeTabs: {
|
|
activeTabs: {
|
|
type: String,
|
|
type: String,
|
|
},
|
|
},
|
|
|
|
+ type: {
|
|
|
|
+ type: String,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -139,9 +142,12 @@ export default {
|
|
},
|
|
},
|
|
// 加载GeoJSON数据
|
|
// 加载GeoJSON数据
|
|
addPolygon() {
|
|
addPolygon() {
|
|
- // let geojson = CX_geojeson;
|
|
|
|
|
|
+ let geojson =
|
|
|
|
+ this.$props.type == "hegxfx"
|
|
|
|
+ ? "/static/data/ghss/导入.geojson"
|
|
|
|
+ : "staticdatadraw.geojson";
|
|
let polygon = Cesium.GeoJsonDataSource.load(
|
|
let polygon = Cesium.GeoJsonDataSource.load(
|
|
- "/static/data/ghss/导入.geojson"
|
|
|
|
|
|
+ geojson
|
|
// { clampToGround: true }
|
|
// { clampToGround: true }
|
|
);
|
|
);
|
|
polygon.then(function (dataSource) {
|
|
polygon.then(function (dataSource) {
|
|
@@ -202,13 +208,6 @@ export default {
|
|
return this.model;
|
|
return this.model;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
-
|
|
|
|
- // watch(
|
|
|
|
- // () => prop.activeTabs,
|
|
|
|
- // (newValue, oldValue) => {
|
|
|
|
- // this.getXzq();
|
|
|
|
- // }
|
|
|
|
- // );
|
|
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|