1 L.OSM.sidebar = function (selector) {
8 control.addTo = function (_) {
13 control.addPane = function (pane) {
19 control.togglePane = function (pane, button) {
27 .removeClass("active");
29 if (current === pane) {
30 if ($("html").attr("dir") === "rtl") {
31 map.panBy([-paneWidth, 0], { animate: false });
34 current = currentButton = $();
38 currentButton = button || $();
39 if ($("html").attr("dir") === "rtl") {
40 map.panBy([paneWidth, 0], { animate: false });
44 map.invalidateSize({ pan: false, animate: false });