- 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');
-
- $('<section>')
- .appendTo($ui)
- .append(
- $('<a>')
- .html('»')
- .attr('class', 'close-button')
- .attr('href', '#')
- .bind('click', toggle))
- .append(
- $('<h2>')
- .text(I18n.t('javascripts.key.title')));
-
- var $section = $('<section>')
+ control.onAddPane = function (map, button, $ui) {
+ var $section = $("<div>")
+ .attr("class", "section")