Skip to content

Commit ad0a5cd

Browse files
author
Nicolò Maria Mezzopera
committed
fix: add missing beforeDestroy function
1 parent 4be33b0 commit ad0a5cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mixins/LayerGroup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export default {
1212
mounted () {
1313
this.layerGroupOptions = {...this.layerOptions};
1414
},
15+
beforeDestroy () {
16+
this.parentContainer.removeLayer(this);
17+
},
1518
methods: {
1619
addLayer (layer, alreadyAdded) {
1720
if (!alreadyAdded) {

0 commit comments

Comments
 (0)