X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bbfc65d1e1090fe62030d83c580f1d1628ac3e0f..1082d3a6535c5c2a777ae64a3067e9f8657bd32c:/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() {