Open mgcth opened 4 months ago
Rendering tiles with data works, an early implementation that is slightly choppy when panning and zooming, but it works.
It would be nice if we could still filter out point in such a way that the lower zoom levels points are always present in the higher zoom levels. I think this would stabilise the visuals when zooming, as they shift slightly now.
Description
When we fetch multipoint data it's for the whole area SMHI covers. We can downsample that data. To visualise it on a map as fast as possible we should format the data such that only relevant data for that view is loaded in the required level of detail.
One options is through tiling. That is, we can write the data in a vector tile format like mapbox vector tiles. So for lower zoom levels the point density can be decreased while for higher zoom levels it should increase.
Another options would be to load in the full detailed dataset. But I think it's a few MB for the full grid at one time step. If we want to animate say temperature it would be a few MB to load upfront (if we don't stream it somehow).
Stream, mostly relevant for animations. But I think tiling will solve the animation case.