From 1cc880038295a6906c9df559e378f412136ac778 Mon Sep 17 00:00:00 2001 From: Compufreak345 Date: Fri, 31 Jul 2015 17:57:20 +0200 Subject: [PATCH 1/5] Fix typo on method name causing errors In my testcase the layer-group is still not displayed on the map, but at least it does not throw errors causing the map to not render anymore... --- leaflet-layer-group.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leaflet-layer-group.html b/leaflet-layer-group.html index 98d8b5f..baf4b5c 100644 --- a/leaflet-layer-group.html +++ b/leaflet-layer-group.html @@ -44,11 +44,11 @@ var feature = L.layerGroup() this.feature = feature; this.feature.addTo(this.container); - this.registerContaierOnChildren(); + this.registerContainerOnChildren(); } }, - registerContaierOnChildren: function() { + registerContainerOnChildren: function() { for (var i = 0; i < this.children.length; i++) { this.children[i].container = this.feature; } From f1e37b36d5c07767b18ae9ce7923210f37a2c681 Mon Sep 17 00:00:00 2001 From: Compufreak345 Date: Fri, 31 Jul 2015 18:21:55 +0200 Subject: [PATCH 2/5] Make layer-group working Added missing semicolon & so children can actually be found. --- leaflet-layer-group.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leaflet-layer-group.html b/leaflet-layer-group.html index baf4b5c..b9cc024 100644 --- a/leaflet-layer-group.html +++ b/leaflet-layer-group.html @@ -17,7 +17,7 @@ --> -