Browse Source

历史记录调整

maxiaoxiao 1 year ago
parent
commit
aa8e5f0bd3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/complianceAnalysis/components/lsjl.vue

+ 1 - 1
src/views/complianceAnalysis/components/lsjl.vue

@@ -182,7 +182,7 @@ export default {
     },
     // 加载GeoJSON数据
     addPolygon(geojson) {
-      viewer.dataSources.removeAll();
+      this.reset();
       let polygon = Cesium.GeoJsonDataSource.load(geojson, {
         stroke: Cesium.Color.RED,
         fill: Cesium.Color.WHITE, //.withAlpha(0.3),