Closed AnttiRumpunen closed 1 year ago
Function where the code is calculates minimum timestep in the timeselector.
If minimum time is earlier than observationStart => use observationStart. If not, then return timestamp which is closest value (rounded down) which can be divided by stepSeconds. Min is calculated from obs/fcst divider minus X number of timesteps.
Seems ok, I suppose.
There are problems with showing map layer during certain times... There is also incorrect parameter and data in fmi:observation:radar:precipitation1h -layer which is fixed in Smartmet-project.
Do a sanity check to this: https://github.com/fmidev/weather-app/blob/ddc95b6d9306ff06ac9c8027ef479afe336d2473/src/utils/map.ts#L70