Skip to content

Commit 67a0c10

Browse files
committed
【SDK】【Mapbox】【优化FabricLayer】
1 parent 96f887d commit 67a0c10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mapboxgl/overlay/FabricLayer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ export class FabricLayer {
187187
this._visiable();
188188
}
189189
removeEvent() {
190-
this.mapContainer.removeChild(this.canvas);
190+
try {
191+
this.mapContainer.removeChild(this.canvas);
192+
}catch (e) {}
191193
}
192194

193195
/**

0 commit comments

Comments
 (0)