Skip to content

Commit 3c9e919

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/pug-code-gen-2.0.3
2 parents 7bee8a6 + 61373c9 commit 3c9e919

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/plugins/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,9 @@ Wrapper for [Leaflet-Semicircle](https://github.com/jieter/Leaflet-semicircle).
131131
Wrapper for [FreeDraw](https://github.com/Wildhoney/Leaflet.FreeDraw)
132132

133133
> Allows drawing shapes on the map and retrieve those shapes as a list of polygons.
134+
135+
## [vue2-leaflet-ruler](https://github.com/panbak/vue2-leaflet-ruler)
136+
137+
Wrapper for [Leaflet-Ruler](https://github.com/gokertanrisever/leaflet-ruler)
138+
139+
> Allows measuring distance and angle on the map.

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)