]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.note.js
Refactor layer persistence
[rails.git] / app / assets / javascripts / leaflet.note.js
index 43717f2c1acd0ea2fd335151e22e903892a50a09..24f18f7ab3f66de38f3351eb146c68fcf1232491 100644 (file)
@@ -5,11 +5,11 @@ L.Control.Note = L.Control.extend({
     },
 
     onAdd: function (map) {
     },
 
     onAdd: function (map) {
-        var className = 'leaflet-control-locate',
-            classNames = className + ' leaflet-control-zoom leaflet-bar leaflet-control',
-            container = L.DomUtil.create('div', classNames);
+        var className = 'control-note',
+            container = L.DomUtil.create('div', className);
 
 
-        var link = L.DomUtil.create('a', 'leaflet-bar-part leaflet-bar-part-single', container);
+        var link = L.DomUtil.create('a', 'control-button', container);
+        link.innerHTML = "<span class='icon note'></span>";
         link.href = '#';
         link.title = this.options.title;
 
         link.href = '#';
         link.title = this.options.title;