From 00c56856a21585ce4444c48745a9dd68155bdd52 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 27 Jun 2019 13:05:13 +0200 Subject: [PATCH] Don't clear the results on change --- contribs/gmf/src/query/windowComponent.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contribs/gmf/src/query/windowComponent.js b/contribs/gmf/src/query/windowComponent.js index bf0688ee063d..942ef4b11c0d 100644 --- a/contribs/gmf/src/query/windowComponent.js +++ b/contribs/gmf/src/query/windowComponent.js @@ -265,7 +265,8 @@ exports.Controller_ = function($element, $scope, ngeoQueryResult, ngeoMapQuerent if (newQueryResult.total > 0) { this.show(); } else if (oldQueryResult !== newQueryResult) { - this.close(); + this.open = false; + this.clear(); } }); }; @@ -552,6 +553,7 @@ function(opt_lastFeature) { exports.Controller_.prototype.close = function() { this.open = false; this.clear(); + this.ngeoMapQuerent_.clear(); };