Open-EO / openeo-web-editor

An interactive and easy to use web-based editor for the OpenEO API.
https://editor.openeo.org
Apache License 2.0
12 stars 17 forks source link

Allow usage of arrows to select data in WMTS viewer #278

Open clausmichele opened 2 years ago

clausmichele commented 2 years ago

I find the WMTS viewer really useful if I don't know exactly if there is data covering the area I'm interested in. However, it is quite difficult to navigate in time, since I can just use the mouse to change the selected date. Would it be possible to allow the usage of keyboard arrows to do +- 1 day in the selected date?

image

m-mohr commented 2 years ago

Yeah, that time slider is really painful to navigate but it's the only one available right now. The idea with arrows is nice, but I think it would need to be implemented upstream in ol-ext: https://github.com/Viglino/ol-ext The alternative would be to use another component for date selection. I've recently made it easier to add other components to the map, so we could also think about a date selector like in forms or so.

christophfriedrich commented 2 years ago

I don't know those components, but if it's the Timeline class, I've seen that it does have a setDate function (docs), so it should be possible for the Editor to listen for keystrokes and issue function calls accordingly :thinking:

m-mohr commented 2 years ago

PRs are welcome :-P