L.OSM.note = function (options) { var control = L.control(options); control.onAdd = function (map) { var $container = $('
') .attr('class', 'control-note'); $('') .attr('id', 'createnoteanchor') .attr('class', 'control-button geolink') .attr('data-minzoom', 12) .attr('href', '#') .html('') .appendTo($container); return $container[0]; }; return control; };