Frontend: Remove existing markers after finding new results

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-01-15 06:12:33 +01:00
parent 624ade62c6
commit 317ef92c42

View file

@ -117,7 +117,13 @@
if(response.data.features && response.data.features.length > 0) {
this.markers = {};
for (let id in this.markersOnScreen) {
this.markersOnScreen[id].remove();
}
this.markersOnScreen = {};
this.photos = {};
this.result = response.data;