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