target zoom for goto user location

This commit is contained in:
Laura Klünder 2018-12-26 18:05:24 +01:00
parent 24e29eadf9
commit 3c8a9f9c3e

View file

@ -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 });
}
},