Skip to content

Commit

Permalink
fix bug when many maps in Leaflet 1.4.0 as in Leaflet/Leaflet@d8dd2f0
Browse files Browse the repository at this point in the history
  • Loading branch information
jjimenezshaw committed Jan 20, 2019
1 parent 4d787e3 commit f4a7403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion L.Control.Layers.Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
// now create the element like in _addItem
var checked = this._map.hasLayer(tree.layer)
var input;
var radioGroup = overlay ? tree.radioGroup : 'leaflet-base-layers';
var radioGroup = overlay ? tree.radioGroup : 'leaflet-base-layers_' + L.Util.stamp(this);
if (radioGroup) {
input = this._createRadioElement(radioGroup, checked);
} else {
Expand Down

0 comments on commit f4a7403

Please sign in to comment.