X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/04ff7d4ee81040f152c38ee39ba84491c91a66f3..d04852fa47f5762f88ab91c2653d2f6224932406:/app/assets/javascripts/leaflet.layers.js?ds=inline
diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js
index 2633d1037..27311f7c1 100644
--- a/app/assets/javascripts/leaflet.layers.js
+++ b/app/assets/javascripts/leaflet.layers.js
@@ -8,11 +8,12 @@ L.OSM.layers = function (options) {
.attr("class", "section base-layers")
.appendTo($ui);
- var baseLayers = $("
")
+ var baseLayers = $("")
.appendTo(baseSection);
layers.forEach(function (layer) {
var item = $("- ")
+ .attr("class", "rounded-3")
.appendTo(baseLayers);
if (map.hasLayer(layer)) {
@@ -98,11 +99,14 @@ L.OSM.layers = function (options) {
var addOverlay = function (layer, name, maxArea) {
var item = $("
- ")
- .tooltip({
- placement: "top"
- })
.appendTo(overlays);
+ if (name === "notes" || name === "data") {
+ item
+ .attr("title", I18n.t("javascripts.site.map_" + name + "_zoom_in_tooltip"))
+ .tooltip("disable");
+ }
+
var label = $("