Do not lock zoom when focusing on a course
This commit is contained in:
parent
41a92ff826
commit
e907d22faf
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue