diff client/src/store/application.js @ 5075:aeb100b4c41b time-sliding

timeslider: prerequisites for time travel * splitting selected time to a) the actual time visible on map (in the toolbar) b) the actual selected time with the timeslider Analogous to an event "ongoing refresh" we have "ongoing timeslide". During this event (a) stays the same according to the information presented on the screen. (b) is not affected. As soon as the loaders settle, the next requests are started with the then "selected time" and the actual time visible on map is set to this new value. Reloading the layers "jumps back to now".
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 13 Mar 2020 10:37:44 +0100
parents 43bebcc8961f
children fe63733750d7
line wrap: on
line diff
--- a/client/src/store/application.js	Thu Mar 12 11:08:12 2020 +0100
+++ b/client/src/store/application.js	Fri Mar 13 10:37:44 2020 +0100
@@ -48,6 +48,7 @@
     countries: ["AT", "SK", "HU", "HR", "RS", "BG", "RO"],
     searchQuery: "",
     selectedTime: new Date(),
+    currentVisibleTime: new Date(),
     version,
     tempRoute: "",
     config: {}
@@ -79,6 +80,9 @@
     }
   },
   mutations: {
+    setCurrentVisibleTime: (state, currentVisibleTime) => {
+      state.currentVisibleTime = currentVisibleTime;
+    },
     setTempRoute: (state, tempRoute) => {
       state.tempRoute = tempRoute;
     },