diff --git a/dist/leaflet.groupedlayercontrol.min.js b/dist/leaflet.groupedlayercontrol.min.js
index a0a3bf8..a6693f9 100644
--- a/dist/leaflet.groupedlayercontrol.min.js
+++ b/dist/leaflet.groupedlayercontrol.min.js
@@ -1,5 +1,5 @@
-/*! Version: 0.6.0
-Date: 2017-02-20 */
+/*! Version: 0.6.1
+Date: 2018-04-30 */
-L.Control.GroupedLayers=L.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,exclusiveGroups:[],groupCheckboxes:!1},initialize:function(a,b,c){var d,e;L.Util.setOptions(this,c),this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._groupList=[],this._domGroups=[];for(d in a)this._addLayer(a[d],d);for(d in b)for(e in b[d])this._addLayer(b[d][e],e,d,!0)},onAdd:function(a){return this._initLayout(),this._update(),a.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(a){a.off("layeradd",this._onLayerChange).off("layerremove",this._onLayerChange)},addBaseLayer:function(a,b){return this._addLayer(a,b),this._update(),this},addOverlay:function(a,b,c){return this._addLayer(a,b,c,!0),this._update(),this},removeLayer:function(a){var b=L.Util.stamp(a),c=this._getLayer(b);return c&&delete this.layers[this.layers.indexOf(c)],this._update(),this},_getLayer:function(a){for(var b=0;b";var d=document.createElement("div");return d.innerHTML=c,d.firstChild},_addItem:function(a){var b,c,d,e=document.createElement("label"),f=this._map.hasLayer(a.layer);a.overlay?a.group.exclusive?(d="leaflet-exclusive-group-layer-"+a.group.id,b=this._createRadioElement(d,f)):(b=document.createElement("input"),b.type="checkbox",b.className="leaflet-control-layers-selector",b.defaultChecked=f):b=this._createRadioElement("leaflet-base-layers",f),b.layerId=L.Util.stamp(a.layer),b.groupID=a.group.id,L.DomEvent.on(b,"click",this._onInputClick,this);var g=document.createElement("span");if(g.innerHTML=" "+a.name,e.appendChild(b),e.appendChild(g),a.overlay){c=this._overlaysList;var h=this._domGroups[a.group.id];if(!h){h=document.createElement("div"),h.className="leaflet-control-layers-group",h.id="leaflet-control-layers-group-"+a.group.id;var i=document.createElement("label");if(i.className="leaflet-control-layers-group-label",""!==a.group.name&&!a.group.exclusive&&this.options.groupCheckboxes){var j=document.createElement("input");j.type="checkbox",j.className="leaflet-control-layers-group-selector",j.groupID=a.group.id,j.legend=this,L.DomEvent.on(j,"click",this._onGroupInputClick,j),i.appendChild(j)}var k=document.createElement("span");k.className="leaflet-control-layers-group-name",k.innerHTML=a.group.name,i.appendChild(k),h.appendChild(i),c.appendChild(h),this._domGroups[a.group.id]=h}c=h}else c=this._baseLayersList;return c.appendChild(e),e},_onGroupInputClick:function(){var a,b,c,d=this.legend;d._handlingClick=!0;var e=d._form.getElementsByTagName("input"),f=e.length;for(a=0;f>a;a++)b=e[a],b.groupID===this.groupID&&"leaflet-control-layers-selector"===b.className&&(b.checked=this.checked,c=d._getLayer(b.layerId),b.checked&&!d._map.hasLayer(c.layer)?d._map.addLayer(c.layer):!b.checked&&d._map.hasLayer(c.layer)&&d._map.removeLayer(c.layer));d._handlingClick=!1},_onInputClick:function(){var a,b,c,d=this._form.getElementsByTagName("input"),e=d.length;for(this._handlingClick=!0,a=0;e>a;a++)b=d[a],"leaflet-control-layers-selector"===b.className&&(c=this._getLayer(b.layerId),b.checked&&!this._map.hasLayer(c.layer)?this._map.addLayer(c.layer):!b.checked&&this._map.hasLayer(c.layer)&&this._map.removeLayer(c.layer));this._handlingClick=!1},_expand:function(){L.DomUtil.addClass(this._container,"leaflet-control-layers-expanded");var a=this._map._size.y-4*this._container.offsetTop;ac;c++)if(a[c]===b)return c;return-1}}),L.control.groupedLayers=function(a,b,c){return new L.Control.GroupedLayers(a,b,c)};
+L.Control.GroupedLayers=L.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,exclusiveGroups:[],groupCheckboxes:!1},initialize:function(a,b,c){var d,e;L.Util.setOptions(this,c),this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._groupList=[],this._domGroups=[];for(d in a)this._addLayer(a[d],d);for(d in b)for(e in b[d])this._addLayer(b[d][e],e,d,!0)},onAdd:function(a){return this._initLayout(),this._update(),a.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(a){a.off("layeradd",this._onLayerChange,this).off("layerremove",this._onLayerChange,this)},addBaseLayer:function(a,b){return this._addLayer(a,b),this._update(),this},addOverlay:function(a,b,c){return this._addLayer(a,b,c,!0),this._update(),this},removeLayer:function(a){var b=L.Util.stamp(a),c=this._getLayer(b);return c&&delete this._layers[this._layers.indexOf(c)],this._update(),this},_getLayer:function(a){for(var b=0;b";var d=document.createElement("div");return d.innerHTML=c,d.firstChild},_addItem:function(a){var b,c,d,e=document.createElement("label"),f=this._map.hasLayer(a.layer);a.overlay?a.group.exclusive?(d="leaflet-exclusive-group-layer-"+a.group.id,b=this._createRadioElement(d,f)):(b=document.createElement("input"),b.type="checkbox",b.className="leaflet-control-layers-selector",b.defaultChecked=f):b=this._createRadioElement("leaflet-base-layers",f),b.layerId=L.Util.stamp(a.layer),b.groupID=a.group.id,L.DomEvent.on(b,"click",this._onInputClick,this);var g=document.createElement("span");if(g.innerHTML=" "+a.name,e.appendChild(b),e.appendChild(g),a.overlay){c=this._overlaysList;var h=this._domGroups[a.group.id];if(!h){h=document.createElement("div"),h.className="leaflet-control-layers-group",h.id="leaflet-control-layers-group-"+a.group.id;var i=document.createElement("label");if(i.className="leaflet-control-layers-group-label",""!==a.group.name&&!a.group.exclusive&&this.options.groupCheckboxes){var j=document.createElement("input");j.type="checkbox",j.className="leaflet-control-layers-group-selector",j.groupID=a.group.id,j.legend=this,L.DomEvent.on(j,"click",this._onGroupInputClick,j),i.appendChild(j)}var k=document.createElement("span");k.className="leaflet-control-layers-group-name",k.innerHTML=a.group.name,i.appendChild(k),h.appendChild(i),c.appendChild(h),this._domGroups[a.group.id]=h}c=h}else c=this._baseLayersList;return c.appendChild(e),e},_onGroupInputClick:function(){var a,b,c,d=this.legend;d._handlingClick=!0;var e=d._form.getElementsByTagName("input"),f=e.length;for(a=0;f>a;a++)b=e[a],b.groupID===this.groupID&&"leaflet-control-layers-selector"===b.className&&(b.checked=this.checked,c=d._getLayer(b.layerId),b.checked&&!d._map.hasLayer(c.layer)?d._map.addLayer(c.layer):!b.checked&&d._map.hasLayer(c.layer)&&d._map.removeLayer(c.layer));d._handlingClick=!1},_onInputClick:function(){var a,b,c,d=this._form.getElementsByTagName("input"),e=d.length;for(this._handlingClick=!0,a=0;e>a;a++)b=d[a],"leaflet-control-layers-selector"===b.className&&(c=this._getLayer(b.layerId),b.checked&&!this._map.hasLayer(c.layer)?this._map.addLayer(c.layer):!b.checked&&this._map.hasLayer(c.layer)&&this._map.removeLayer(c.layer));this._handlingClick=!1},_expand:function(){L.DomUtil.addClass(this._container,"leaflet-control-layers-expanded");var a=this._map._size.y-4*this._container.offsetTop;ac;c++)if(a[c]===b)return c;return-1}}),L.control.groupedLayers=function(a,b,c){return new L.Control.GroupedLayers(a,b,c)};
//# sourceMappingURL=leaflet.groupedlayercontrol.min.js.map
\ No newline at end of file
diff --git a/dist/leaflet.groupedlayercontrol.min.js.map b/dist/leaflet.groupedlayercontrol.min.js.map
index 4ba4942..5bbb028 100644
--- a/dist/leaflet.groupedlayercontrol.min.js.map
+++ b/dist/leaflet.groupedlayercontrol.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"leaflet.groupedlayercontrol.min.js","sources":["../src/leaflet.groupedlayercontrol.js"],"names":["L","Control","GroupedLayers","extend","options","collapsed","position","autoZIndex","exclusiveGroups","groupCheckboxes","initialize","baseLayers","groupedOverlays","i","j","Util","setOptions","this","_layers","_lastZIndex","_handlingClick","_groupList","_domGroups","_addLayer","onAdd","map","_initLayout","_update","on","_onLayerChange","_container","onRemove","off","addBaseLayer","layer","name","addOverlay","group","removeLayer","id","stamp","_layer","_getLayer","layers","indexOf","length","className","container","DomUtil","create","setAttribute","Browser","touch","DomEvent","stopPropagation","disableClickPropagation","form","_form","android","_expand","_collapse","link","_layersLink","href","title","stop","_map","_baseLayersList","_separator","_overlaysList","appendChild","overlay","push","groupId","_indexOf","exclusive","setZIndex","innerHTML","obj","baseLayersPresent","overlaysPresent","_addItem","style","display","e","type","fire","_createRadioElement","checked","radioHtml","radioFragment","document","createElement","firstChild","input","groupRadioName","label","hasLayer","defaultChecked","layerId","groupID","_onInputClick","groupContainer","groupLabel","groupInput","legend","_onGroupInputClick","groupName","this_legend","inputs","getElementsByTagName","inputsLen","addLayer","addClass","acceptableHeight","_size","y","offsetTop","clientHeight","height","replace","arr","control","groupedLayers"],"mappings":";;;AAIAA,EAAEC,QAAQC,cAAgBF,EAAEC,QAAQE,QAElCC,SACEC,WAAW,EACXC,SAAU,WACVC,YAAY,EACZC,mBACAC,iBAAiB,GAGnBC,WAAY,SAAUC,EAAYC,EAAiBR,GACjD,GAAIS,GAAGC,CACPd,GAAEe,KAAKC,WAAWC,KAAMb,GAExBa,KAAKC,WACLD,KAAKE,YAAc,EACnBF,KAAKG,gBAAiB,EACtBH,KAAKI,cACLJ,KAAKK,aAEL,KAAKT,IAAKF,GACRM,KAAKM,UAAUZ,EAAWE,GAAIA,EAGhC,KAAKA,IAAKD,GACR,IAAKE,IAAKF,GAAgBC,GACxBI,KAAKM,UAAUX,EAAgBC,GAAGC,GAAIA,EAAGD,GAAG,IAKlDW,MAAO,SAAUC,GAQf,MAPAR,MAAKS,cACLT,KAAKU,UAELF,EACKG,GAAG,WAAYX,KAAKY,eAAgBZ,MACpCW,GAAG,cAAeX,KAAKY,eAAgBZ,MAErCA,KAAKa,YAGdC,SAAU,SAAUN,GAClBA,EACKO,IAAI,WAAYf,KAAKY,gBACrBG,IAAI,cAAef,KAAKY,iBAG/BI,aAAc,SAAUC,EAAOC,GAG7B,MAFAlB,MAAKM,UAAUW,EAAOC,GACtBlB,KAAKU,UACEV,MAGTmB,WAAY,SAAUF,EAAOC,EAAME,GAGjC,MAFApB,MAAKM,UAAUW,EAAOC,EAAME,GAAO,GACnCpB,KAAKU,UACEV,MAGTqB,YAA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,SAAUhH,EAAYC,EAAiBR,GAC/D,MAAO,IAAIJ,GAAEC,QAAQC,cAAcS,EAAYC,EAAiBR"}
\ No newline at end of file
+{"version":3,"file":"leaflet.groupedlayercontrol.min.js","sources":["../src/leaflet.groupedlayercontrol.js"],"names":["L","Control","GroupedLayers","extend","options","collapsed","position","autoZIndex","exclusiveGroups","groupCheckboxes","initialize","baseLayers","groupedOverlays","i","j","Util","setOptions","this","_layers","_lastZIndex","_handlingClick","_groupList","_domGroups","_addLayer","onAdd","map","_initLayout","_update","on","_onLayerChange","_container","onRemove","off","addBaseLayer","layer","name","addOverlay","group","removeLayer","id","stamp","_layer","_getLayer","indexOf","length","className","container","DomUtil","create","setAttribute","Browser","touch","DomEvent","stopPropagation","disableClickPropagation","form","_form","android","_expand","_collapse","link","_layersLink","href","title","stop","_map","_baseLayersList","_separator","_overlaysList","appendChild","overlay","push","groupId","_indexOf","exclusive","setZIndex","innerHTML","obj","baseLayersPresent","overlaysPresent","_addItem","style","display","e","type","fire","_createRadioElement","checked","radioHtml","radioFragment","document","createElement","firstChild","input","groupRadioName","label","hasLayer","defaultChecked","layerId","groupID","_onInputClick","groupContainer","groupLabel","groupInput","legend","_onGroupInputClick","groupName","this_legend","inputs","getElementsByTagName","inputsLen","addLayer","addClass","acceptableHeight","_size","y","offsetTop","clientHeight","height","replace","arr","control","groupedLayers"],"mappings":";;;AAIAA,EAAEC,QAAQC,cAAgBF,EAAEC,QAAQE,QAElCC,SACEC,WAAW,EACXC,SAAU,WACVC,YAAY,EACZC,mBACAC,iBAAiB,GAGnBC,WAAY,SAAUC,EAAYC,EAAiBR,GACjD,GAAIS,GAAGC,CACPd,GAAEe,KAAKC,WAAWC,KAAMb,GAExBa,KAAKC,WACLD,KAAKE,YAAc,EACnBF,KAAKG,gBAAiB,EACtBH,KAAKI,cACLJ,KAAKK,aAEL,KAAKT,IAAKF,GACRM,KAAKM,UAAUZ,EAAWE,GAAIA,EAGhC,KAAKA,IAAKD,GACR,IAAKE,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C,QAAQiE,SAAS/F,KAAKa,WAAY,kCAEpC,IAAImF,GAAmBhG,KAAKgD,KAAKiD,MAAMC,EAAiC,EAA5BlG,KAAKa,WAAWsF,SACxDH,GAAmBhG,KAAKuC,MAAM6D,eAChCrH,EAAE+C,QAAQiE,SAAS/F,KAAKuC,MAAO,oCAC/BvC,KAAKuC,MAAMyB,MAAMqC,OAASL,EAAmB,OAIjDtD,UAAW,WACT1C,KAAKa,WAAWe,UAAY5B,KAAKa,WAAWe,UAAU0E,QAAQ,mCAAoC,KAGpG9C,SAAU,SAAU+C,EAAK3C,GACvB,IAAK,GAAIhE,GAAI,EAAGC,EAAI0G,EAAI5E,OAAY9B,EAAJD,EAAOA,IACrC,GAAI2G,EAAI3G,KAAOgE,EACb,MAAOhE,EAGX,OAAO,MAIXb,EAAEyH,QAAQC,cAAgB,SAAU/G,EAAYC,EAAiBR,GAC/D,MAAO,IAAIJ,GAAEC,QAAQC,cAAcS,EAAYC,EAAiBR"}
\ No newline at end of file
diff --git a/package.json b/package.json
index 0219990..5b7f25b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "leaflet-groupedlayercontrol",
- "version": "0.6.0",
+ "version": "0.6.1",
"description": "A Leaflet layer control with support for grouping overlays together",
"main": "dist/leaflet.groupedlayercontrol.min.js",
"directories": {