X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e8f2af833ac73f953cb65d06b8861c0f9844e852..387ecce798585022ffac69d28ae703c737c36f3b:/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 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 = $("