X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3689798a04194d5098ce3dc84aab7967b27b7239..4863a9490601d954139e17741dd5144adf99f621:/app/assets/javascripts/leaflet.layers.js diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index fd493ee32..2bb4c5c1b 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -140,6 +140,7 @@ L.OSM.layers = function(options) { } else { map.removeLayer(layer); } + map.fire('overlaylayerchange', {layer: layer}); }); map.on('layeradd layerremove', function() {