]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Clear the note cache when the note layer is turned off
[rails.git] / app / assets / javascripts / index / notes.js.erb
index bff4c446c371380261f095ac74fb3db695fb935d..a623a51a2a7fce29bf52bd8af0d949af90977c0b 100644 (file)
@@ -37,6 +37,7 @@ $(document).ready(function () {
     if (e.layer == noteLayer) {
       map.off("moveend", loadNotes);
       noteLayer.clearLayers();
     if (e.layer == noteLayer) {
       map.off("moveend", loadNotes);
       noteLayer.clearLayers();
+      notes = {};
     }
   });
 
     }
   });