Skip to content

Commit

Permalink
Merge pull request #50 from ttsvetko/master
Browse files Browse the repository at this point in the history
Fixes issue #49 - removeLayer method doesn't work
  • Loading branch information
ismyrnow authored Oct 5, 2017
2 parents e628cee + 451dc7b commit 050049d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leaflet.groupedlayercontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ L.Control.GroupedLayers = L.Control.extend({
var id = L.Util.stamp(layer);
var _layer = this._getLayer(id);
if (_layer) {
delete this.layers[this.layers.indexOf(_layer)];
delete this._layers[this._layers.indexOf(_layer)];
}
this._update();
return this;
Expand Down

0 comments on commit 050049d

Please sign in to comment.