- control.onAdd = function (map) {
- var $container = $("<div>")
- .attr("class", "control-key");
-
- var button = this.makeButton("key", null, toggle)
- .appendTo($container);
-
- var $ui = this.makeUI("key-ui", "javascripts.key.title", toggle);
-
- var $section = $("<div>")
- .attr("class", "section")
+ control.onAddPane = function (map, button, $ui) {
+ const $section = $("<div>")
+ .attr("class", "p-3")