Frontend: Don't update markers while loading
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
66f781fb90
commit
d9c68fa933
|
@ -113,8 +113,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
return Api.get("geo", options).then((response) => {
|
return Api.get("geo", options).then((response) => {
|
||||||
this.loading = false;
|
|
||||||
|
|
||||||
if(response.data.features && response.data.features.length > 0) {
|
if(response.data.features && response.data.features.length > 0) {
|
||||||
this.markers = {};
|
this.markers = {};
|
||||||
|
|
||||||
|
@ -133,12 +131,14 @@
|
||||||
this.map.fitBounds(this.result.bbox, {maxZoom: 19});
|
this.map.fitBounds(this.result.bbox, {maxZoom: 19});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.initialized = true;
|
||||||
|
|
||||||
this.updateMarkers();
|
this.updateMarkers();
|
||||||
} else {
|
} else {
|
||||||
this.$notify.warning("No photos found");
|
this.$notify.warning("No photos found");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.initialized = true;
|
this.loading = false;
|
||||||
}).catch(() => this.loading = false);
|
}).catch(() => this.loading = false);
|
||||||
},
|
},
|
||||||
renderMap() {
|
renderMap() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user