- var control = L.OSM.sidebarPane(options);
-
- control.onAdd = function (map) {
- var $container = $("<div>")
- .attr("class", "control-key");
-
- var button = $("<a>")
- .attr("class", "control-button")
- .attr("href", "#")
- .html("<span class=\"icon key\"></span>")
- .on("click", toggle)
- .appendTo($container);
-
- var $ui = this.makeUI("key-ui", "javascripts.key.title", toggle);
+ var control = L.OSM.sidebarPane(options, "key", null, "javascripts.key.title");