Skip to content

Commit 035c27e

Browse files
committed
【SDK】【Cesium】【图层导入时,先清除所有图元】
1 parent 8f11537 commit 035c27e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/service/3DPlot/PlotLayer3D.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ class PlotLayer3D extends Observable {
236236
*/
237237
fromJSON(geoJson) {
238238
if (geoJson.type === "FeatureCollection") {
239+
this.removeAll();
239240
const {features} = geoJson;
240241
features.forEach((s) => {
241242
this._addGeoJSONObject(s);

0 commit comments

Comments
 (0)