Closed jidanni closed 1 day ago
Similar to #2800 and #3243. Loading + aborting topic was already proposed in #1766
Maybe we can merge all 4 or 5 current issues into one, and check the performance part first: https://github.com/openstreetmap/openstreetmap-website/issues?q=%22map+data%22+label%3Amapview+
Problem
Here we are in the right side panel Layers menu, looking at the Map Data checkbox:
In a desert or jungle, checking and unchecking the checkbox works fine. Any data items will appear on the map in blue.
But in big cities with plenty of streets and shops, checking the Map Data checkbox might entail a massive data flow to one's computer. So much so that it becomes unresponsive. Whereupon we wonder if we really did check the checkbox in the first place. So we think we didn't and then check it again, only compounding the problem, etc.
Therefore perhaps if a slider was used, like often seen on cellphones, that way we could see if we really slid it to the on or off position or not. Hopefully that would work differently than the checkbox.
Also first update the indicator (checkbox or slider) (to some intermediate state), then do the task, that might help here too.
And also display a prominent "Loading..." while the data is still flowing in. And maybe even have an "abort" button... even if pressing ESC or X in the browser also works.
When testing, remember that some users have very slow data connections too.