X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8a02bd67d9d20c4a6b01b58e88b8d65163a3798e..33a2ccf560dbb4054d260a7ba9b4a572d4668ae9:/app/assets/javascripts/leaflet.sidebar-pane.js?ds=sidebyside diff --git a/app/assets/javascripts/leaflet.sidebar-pane.js b/app/assets/javascripts/leaflet.sidebar-pane.js index f087cbb4a..516a446c3 100644 --- a/app/assets/javascripts/leaflet.sidebar-pane.js +++ b/app/assets/javascripts/leaflet.sidebar-pane.js @@ -1,23 +1,52 @@ -L.OSM.sidebarPane = function (options) { +L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) { var control = L.control(options); - control.makeUI = function (uiClass, paneTitle, toggle) { + control.onAdd = function (map) { + var $container = $("