From f9c4f02715486b10e5fdcd8bcf02b2c1c699eb04 Mon Sep 17 00:00:00 2001 From: John van Breda Date: Thu, 19 Apr 2018 10:58:52 +0100 Subject: [PATCH] Fix reset of filter hand drawn boundary Fixes https://github.com/StephRorke/NN_AMS/issues/35 --- js/reportFilters.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/reportFilters.js b/js/reportFilters.js index 93aeeb2b..b9149278 100644 --- a/js/reportFilters.js +++ b/js/reportFilters.js @@ -899,6 +899,7 @@ jQuery(document).ready(function ($) { $('input#location_list\\:search\\:name').val(''); if (typeof all === 'undefined' || all === false) { indiciaData.mapdiv.removeAllFeatures(map.editLayer, 'boundary'); + indiciaData.mapdiv.removeAllFeatures(map.editLayer, 'queryPolygon'); } else { map.editLayer.removeAllFeatures(); }