Mercurial > gemma
changeset 1042:f786f6024ad1
set zoomlevel when panning to selected search result
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 25 Oct 2018 07:32:55 +0200 |
parents | 7e3c620a5639 |
children | 740679d6682f |
files | client/src/application/Topbar.vue |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/application/Topbar.vue Thu Oct 25 07:01:18 2018 +0200 +++ b/client/src/application/Topbar.vue Thu Oct 25 07:32:55 2018 +0200 @@ -214,6 +214,7 @@ let view = this.openLayersMap.getView(); view.animate( { + zoom: resultEntry.type === 'bottleneck' ? 16 : 14, center: fromLonLat( resultEntry.geom.coordinates, view.getProjection()