parent
ee9ac1930d
commit
2520bdb9eb
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ L.OSM.layers = function(options) {
|
|||
map.fire('baselayerchange', {layer: layer});
|
||||
});
|
||||
|
||||
item.on('dblclick', toggle);
|
||||
|
||||
map.on('layeradd layerremove', function() {
|
||||
item.toggleClass('active', map.hasLayer(layer));
|
||||
input.prop('checked', map.hasLayer(layer));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue