X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f24309ad3e7b2a805f032afdef9765dc6d0bc022..439ad373ec5ee364003625e56159b1dce5fb186e:/app/assets/javascripts/leaflet.layers.js
diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js
index 2bb4c5c1b..2d28c256c 100644
--- a/app/assets/javascripts/leaflet.layers.js
+++ b/app/assets/javascripts/leaflet.layers.js
@@ -120,8 +120,13 @@ L.OSM.layers = function(options) {
var list = $('
')
.appendTo(overlaySection);
- function addOverlay(layer, name) {
+ function addOverlay(layer, name, minZoom) {
+ var refName = name.split(' ').join('_').toLowerCase();
var item = $('- ')
+ .attr('class', refName)
+ .tooltip({
+ placement: 'top'
+ })
.appendTo(list);
var label = $('