]> git.openstreetmap.org Git - rails.git/commitdiff
Clear the note cache when the note layer is turned off
authorTom Hughes <tom@compton.nu>
Tue, 12 Feb 2013 10:01:25 +0000 (10:01 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 12 Feb 2013 10:01:25 +0000 (10:01 +0000)
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();
+      notes = {};
     }
   });