X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bb868e0b11b25eb000a2c71cc993db86e383e0f3..71e7208a0aceccf47edce739803130096999da5d:/app/assets/javascripts/leaflet.key.js diff --git a/app/assets/javascripts/leaflet.key.js b/app/assets/javascripts/leaflet.key.js index 3e8e66854..238d70c5f 100644 --- a/app/assets/javascripts/leaflet.key.js +++ b/app/assets/javascripts/leaflet.key.js @@ -1,30 +1,14 @@ L.OSM.key = function (options) { - var control = L.control(options); + var control = L.OSM.sidebarPane(options); control.onAdd = function (map) { var $container = $("
") .attr("class", "control-key"); - var button = $("") - .attr("class", "control-button") - .attr("href", "#") - .html("") - .on("click", toggle) + var button = this.makeButton("key", null, toggle) .appendTo($container); - var $ui = $("
") - .attr("class", "key-ui"); - - $("
") - .attr("class", "sidebar_heading") - .appendTo($ui) - .append( - $("