]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.layers.js
Add clearer close action, refactor base layer code
[rails.git] / app / assets / javascripts / leaflet.layers.js
index 80613a5d937730353636a29e3f1b9d709f7985ef..57cd53d4dc840cf21384e9b4907b0edb4d1a8543 100644 (file)
@@ -20,6 +20,12 @@ L.OSM.layers = function(options) {
 
     $('<section>')
        .appendTo($ui)
+       .append(
+          $('<a>')
+            .html('&raquo;')
+            .attr('class', 'close-button')
+            .attr('href', '#')
+            .bind('click', toggle))
        .append(
         $('<h2>')
           .text(I18n.t('javascripts.map.layers.header')));