Mercurial > gemma
changeset 2139:22bbd0d0500e
client: limit zooming out to roughly Europe
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 07 Feb 2019 09:15:39 +0100 |
parents | 4a903d382901 |
children | 55bedb39295a |
files | client/src/components/Maplayer.vue |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Maplayer.vue Wed Feb 06 17:05:10 2019 +0100 +++ b/client/src/components/Maplayer.vue Thu Feb 07 09:15:39 2019 +0100 @@ -164,6 +164,7 @@ controls: [], view: new View({ center: [this.extent.lon, this.extent.lat], + minZoom: 5, // restrict zooming out to ~size of Europe for width 1000px zoom: this.extent.zoom, projection: this.projection })