X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e8f2af833ac73f953cb65d06b8861c0f9844e852..dbe84a97bf48789e0f32a185f701840fc68063bd:/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 f372b86cf..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)) {
@@ -100,11 +101,10 @@ L.OSM.layers = function (options) {
var item = $("
- ")
.appendTo(overlays);
- var tooltip;
if (name === "notes" || name === "data") {
- item.attr("title", I18n.t("javascripts.site.map_" + name + "_zoom_in_tooltip"));
- tooltip = new bootstrap.Tooltip(item[0]);
- tooltip.disable();
+ item
+ .attr("title", I18n.t("javascripts.site.map_" + name + "_zoom_in_tooltip"))
+ .tooltip("disable");
}
var label = $("