From 3c8a9f9c3eb2a6565f7a1d1a5e6b4ec0ae7de73c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Wed, 26 Dec 2018 18:05:24 +0100 Subject: [PATCH] target zoom for goto user location --- src/c3nav/site/static/site/js/c3nav.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/site/static/site/js/c3nav.js b/src/c3nav/site/static/site/js/c3nav.js index d1e02990..daf32d29 100644 --- a/src/c3nav/site/static/site/js/c3nav.js +++ b/src/c3nav/site/static/site/js/c3nav.js @@ -1448,7 +1448,7 @@ c3nav = { } if (c3nav._current_user_location) { c3nav._levelControl.setLevel(c3nav._current_user_location.level); - c3nav.map.flyTo(L.GeoJSON.coordsToLatLng(c3nav._current_user_location.geometry.coordinates), 4, { duration: 1 }); + c3nav.map.flyTo(L.GeoJSON.coordsToLatLng(c3nav._current_user_location.geometry.coordinates), 3, { duration: 1 }); } },