From 34f823a30ea9cb004ab7b19fc24ac582746b5629 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 12 Feb 2013 10:01:25 +0000 Subject: [PATCH] Clear the note cache when the note layer is turned off --- app/assets/javascripts/index/notes.js.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index bff4c446c..a623a51a2 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -37,6 +37,7 @@ $(document).ready(function () { if (e.layer == noteLayer) { map.off("moveend", loadNotes); noteLayer.clearLayers(); + notes = {}; } }); -- 2.43.2