Skip to content

Commit baadfbd

Browse files
committed
Merge branch 'dev' of github.com:MapGIS/WebClient-JavaScript into dev
2 parents cba3263 + d8afff0 commit baadfbd

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)