|
@@ -83,6 +83,8 @@
|
|
|
import { GetPage, GetFxjg, Delect } from "@/api/ghss/hgxfx.js";
|
|
|
import hgxfx from "../../../../static/data/ghss/data.js";
|
|
|
import { Message, MessageBox } from "element-ui";
|
|
|
+import { rest } from "lodash";
|
|
|
+let dataSources;
|
|
|
export default {
|
|
|
props: {
|
|
|
historyList: {
|
|
@@ -194,14 +196,18 @@ export default {
|
|
|
viewer.dataSources.removeAll();
|
|
|
let polygon = Cesium.GeoJsonDataSource.load(geojson, {
|
|
|
stroke: Cesium.Color.RED,
|
|
|
- fill: Cesium.Color.WHITE.withAlpha(0.3),
|
|
|
+ fill: Cesium.Color.WHITE, //.withAlpha(0.3),
|
|
|
strokeWidth: 5,
|
|
|
});
|
|
|
polygon.then(function (dataSource) {
|
|
|
+ dataSources = dataSource;
|
|
|
viewer.dataSources.add(dataSource);
|
|
|
viewer.zoomTo(dataSource);
|
|
|
});
|
|
|
},
|
|
|
+ reset() {
|
|
|
+ if (dataSources) viewer.dataSources.remove(dataSources);
|
|
|
+ },
|
|
|
},
|
|
|
watch: {},
|
|
|
};
|