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