Do not lock zoom when focusing on a course

This commit is contained in:
Mattéo Delabre 2020-07-25 00:58:25 +02:00
parent 41a92ff826
commit e907d22faf
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
1 changed files with 0 additions and 3 deletions

View File

@ -239,7 +239,6 @@ const createMap = target =>
// Course on which the view is currently focused
let focusedCourse = null;
const focusZoom = 17;
const startFocus = courseId =>
{
@ -248,7 +247,6 @@ const createMap = target =>
const course = simulInstance.courses[courseId];
view.animate({
center: course.position,
zoom: focusZoom,
duration: 500,
}, () => focusedCourse = courseId);
}
@ -294,7 +292,6 @@ const createMap = target =>
if (course.id === focusedCourse)
{
view.setCenter(course.position);
// view.setZoom(focus);
}
}
}