- control.onAdd = function (map) {
- var $container = $('<div>')
- .attr('class', 'control-key');
-
- $('<a>')
- .attr('class', 'control-button')
- .attr('href', '#')
- .attr('title', I18n.t('javascripts.key.tooltip'))
- .html('<span class="icon key"></span>')
- .on('click', toggle)
- .appendTo($container);
-
- var $ui = $('<div>')
- .attr('class', 'layers-ui');
-
- $('<h2>')
- .text(I18n.t('javascripts.key.title'))
+ control.onAddPane = function (map, button, $ui) {
+ var $section = $("<div>")
+ .attr("class", "section")