mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
Add buffer to time zoom on narrative
This commit is contained in:
committed by
Lachlan Kermode
parent
e1dc09301b
commit
88092c711d
@@ -57,6 +57,9 @@ function updateNarrative(appState, action) {
|
||||
if (+step.latitude < cornerBound0[0]) cornerBound0[0] = +step.latitude;
|
||||
if (+step.latitude > cornerBound1[0]) cornerBound1[0] = +step.latitude;
|
||||
});
|
||||
|
||||
minTime = new Date(minTime.getTime() - Math.abs((maxTime - minTime) / 10));
|
||||
maxTime = new Date(maxTime.getTime() + Math.abs((maxTime - minTime) / 10));
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user