Frontend: Remove existing markers after finding new results
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
624ade62c6
commit
317ef92c42
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue