From: Tom Hughes Date: Tue, 12 Feb 2013 10:01:25 +0000 (+0000) Subject: Clear the note cache when the note layer is turned off X-Git-Tag: live~5096^2~17 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/34f823a30ea9cb004ab7b19fc24ac582746b5629?hp=eed9de548363fc705af1bab13c8d5a06cdd62a11 Clear the note cache when the note layer is turned off --- 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 = {}; } });