Explorar el Código

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

zpf hace 1 año
padre
commit
36d4444a34
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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),