]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Arrange and group map buttons
[rails.git] / app / assets / javascripts / index / notes.js.erb
index 1646e8b6d2a83680a3719d3e421e5f567d58a9de..3a2a153936fb438d64daa0ebf61f948874beb555 100644 (file)
@@ -3,7 +3,7 @@
 
 function initializeNotes(map) {
   var params = OSM.mapParams(),
-      noteLayer = new L.LayerGroup({code: 'N'}),
+      noteLayer = map.noteLayer,
       notes = {},
       newNote;
 
@@ -25,8 +25,6 @@ function initializeNotes(map) {
     })
   };
 
-  map.noteLayer = noteLayer;
-
   map.on("layeradd", function (e) {
     if (e.layer == noteLayer) {
       loadNotes();