maxiaoxiao 1 жил өмнө
parent
commit
aa8e5f0bd3

+ 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),