]> git.openstreetmap.org Git - rails.git/blob - app/assets/javascripts/leaflet.note.js
Reset filter bounds whenever it's enabled
[rails.git] / app / assets / javascripts / leaflet.note.js
1 L.OSM.note = function (options) {
2   var control = L.control(options);
3
4   control.onAdd = function (map) {
5     var $container = $('<div>')
6       .attr('class', 'control-note');
7
8     $('<a>')
9       .attr('id', 'createnoteanchor')
10       .attr('class', 'control-button geolink')
11       .attr('data-minzoom', 12)
12       .attr('href', '#')
13       .html('<span class="icon note"></span>')
14       .appendTo($container);
15
16     return $container[0];
17   };
18
19   return control;
20 };