X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/eebe1f1d3ed885e94725c07d24e0483f603f03da..f17304e8ed8490f8c80bd86ea0d78538ca46f589:/app/assets/javascripts/leaflet.note.js diff --git a/app/assets/javascripts/leaflet.note.js b/app/assets/javascripts/leaflet.note.js index 68e09c88d..a38e012de 100644 --- a/app/assets/javascripts/leaflet.note.js +++ b/app/assets/javascripts/leaflet.note.js @@ -6,24 +6,13 @@ L.OSM.note = function (options) { .attr('class', 'control-note'); $('') - .attr('class', 'control-button') + .attr('id', 'createnoteanchor') + .attr('class', 'control-button geolink') + .attr('data-minzoom', 12) .attr('href', '#') - .attr('title', 'Notes') .html('') - .on('click', toggle) .appendTo($container); - function toggle(e) { - e.stopPropagation(); - e.preventDefault(); - - if (map.hasLayer(map.noteLayer)) { - map.removeLayer(map.noteLayer); - } else { - map.addLayer(map.noteLayer); - } - } - return $container[0]; };