L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) {
var control = L.control(options);
L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) {
var control = L.control(options);
control.onAdd = function (map) {
var $container = $("<div>")
.attr("class", "control-" + uiClass);
control.onAdd = function (map) {
var $container = $("<div>")
.attr("class", "control-" + uiClass);
.attr("class", "control-button")
.attr("href", "#")
.html("<span class=\"icon " + uiClass + "\"></span>")
.on("click", toggle);
.attr("class", "control-button")
.attr("href", "#")
.html("<span class=\"icon " + uiClass + "\"></span>")
.on("click", toggle);
- .append(
- $("<button type='button' class='btn-close float-end mt-1'>")
+ .append($("<div class='flex-grow-1 text-break'>")
+ .append($("<h4>")
+ .text(I18n.t(paneTitle))))
+ .append($("<div>")
+ .append($("<button type='button' class='btn-close mt-1'>")
// control.onAddPane = function (map, button, $ui, toggle) {
// }
// control.onAddPane = function (map, button, $ui, toggle) {
// }