Browse Source

Merge branch 'master' of http://114.244.114.158:8802/siwei/real3d-portalsite

zpf 1 year ago
parent
commit
36d4444a34
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),