X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5ac731a3fc426e83da404788d42927438fe7017d..2f0794738c022f060a07d45f6bed3ea68ea4d166:/app/assets/javascripts/leaflet.layers.js
diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js
index d40a1b603..bb00f716c 100644
--- a/app/assets/javascripts/leaflet.layers.js
+++ b/app/assets/javascripts/leaflet.layers.js
@@ -114,40 +114,68 @@ L.OSM.layers = function(options) {
$('
')
.text(I18n.t('javascripts.map.layers.overlays'))
+ .attr("class", "deemphasize")
.appendTo(overlaySection);
var list = $('
')
.appendTo(overlaySection);
- function addOverlay(layer, name) {
+ function addOverlay(layer, name, maxArea) {
+ var refName = name.split(' ').join('_').toLowerCase();
var item = $('- ')
+ .attr('class', refName)
+ .tooltip({
+ placement: 'top'
+ })
.appendTo(list);
var label = $('