")
- .attr("class", "layers-ui");
-
- $("
")
- .attr("class", "sidebar_heading")
- .appendTo($ui)
- .append(
- $("
")
- .text(I18n.t("javascripts.close"))
- .attr("class", "icon close")
- .bind("click", toggle))
- .append(
- $("")
- .text(I18n.t("javascripts.map.layers.header")));
-
var baseSection = $("")
.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)) {
@@ -124,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 = $("