L.OSM.note = function (options) { var control = L.control(options); control.onAdd = function (map) { var $container = $('
') .attr('class', 'control-note'); $('') .attr('class', 'control-button') .attr('href', '#') .attr('title', I18n.t('javascripts.notes.new.add')) .html('') .appendTo($container); return $container[0]; }; return control; };