- 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 = $('<div>')
- .attr('class', 'key-ui');
-
- $('<div>')
- .attr('class', 'sidebar_heading')
- .appendTo($ui)
- .append(
- $('<span>')
- .text(I18n.t('javascripts.close'))
- .attr('class', 'icon close')
- .bind('click', toggle))
- .append(
- $('<h4>')
- .text(I18n.t('javascripts.key.title')));
-
- var $section = $('<div>')
- .attr('class', 'section')
+ control.onAddPane = function (map, button, $ui) {
+ var $section = $("<div>")
+ .attr("class", "p-3")