Frontend: Set max zoom for fitBounds to 15

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-01-17 02:05:48 +01:00
parent 64a16a27b0
commit 3671cf078f

View file

@ -127,7 +127,7 @@
this.map.getSource("photos").setData(this.result);
if (this.filter.q || !this.initialized) {
this.map.fitBounds(this.result.bbox, {maxZoom: 18, padding: 100});
this.map.fitBounds(this.result.bbox, {maxZoom: 15, padding: 100});
}
this.initialized = true;