X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bc27347b8f8333b65962b8c00f76dc99a1095a8a..e418075e26d80d68e4127d3358a2d8b11dee3a13:/app/assets/javascripts/leaflet.layers.js?ds=sidebyside
diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js
index d40a1b603..d6276919c 100644
--- a/app/assets/javascripts/leaflet.layers.js
+++ b/app/assets/javascripts/leaflet.layers.js
@@ -114,40 +114,70 @@ 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 = $('