]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Remove the notes control
[rails.git] / app / views / site / index.html.erb
index fa790dbb1bcf999f468ec6fc340ec97b2d6b5eb2..fc9435b09cc4b527ae7584edac11b52aad9332e4 100644 (file)
@@ -153,9 +153,6 @@ end
       });
       map.addLayer(map.noteLayer);
 
-      map.noteControl = new OpenLayers.Control.Notes(map.noteLayer); 
-      map.addControl(map.noteControl);
-
       $("createnoteanchor").observe("click", addNote);
 
       map.events.register("zoomend", map, allowNoteReports);
@@ -288,8 +285,7 @@ end
   }
 
   function addNote() {
-    map.noteControl.activate();
-    map.noteControl.addTemporaryMarker(map.getCenter());
+    map.noteLayer.addNote(map.getCenter());
   }
 
   function allowNoteReports() {