Skip to content

Commit 799da9d

Browse files
authored
Merge pull request #671 from mikeu/fix-666
Use same addLayer call in LLayerGroup as other components
2 parents 07ee274 + bce0978 commit 799da9d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/LLayerGroup.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ export default {
2727
DomEvent.on(this.mapObject, this.$listeners);
2828
this.ready = true;
2929
this.parentContainer = findRealParent(this.$parent);
30-
if (this.visible) {
31-
this.parentContainer.addLayer(this);
32-
}
30+
this.parentContainer.addLayer(this, !this.visible);
3331
this.$nextTick(() => {
3432
/**
3533
* Triggers when the component is ready

0 commit comments

Comments
 (0)