projecthorus / sondehub-tracker

🎈 Frontend for SondeHub Radiosonde Tracking
https://v2.sondehub.org
MIT License
59 stars 25 forks source link

Filter "Hide receivers from the map" and "Hide chase cars from the map" do not work while maps stays open for longer time. #269

Open Torrehoradada opened 1 year ago

Torrehoradada commented 1 year ago

Hi, this is an issue which may have a reference to issue #267 which is already closed. If you have one or both of those mentioned filters set, these items are initially not displayed on the map. If you now leave the map open for a while, during the time more and more of the filtered items will reappear. Bildschirmfoto vom 2022-10-19 22-17-13 You can remove those items from the map by setting the filter off and setting the filter on again. Sometimes -I do not know why- you need to repeat this one time to see a change on the map display. If you now again wait long enough, the filtered items will repeat to reappear. Greetings!

darksidelemm commented 1 year ago

Currently away in a location with poor internet access so cannot verify what's going on here. Will have a look when I return in a few weeks..

Torrehoradada commented 1 year ago

Still the same, the error occures on following filters:

darksidelemm commented 1 year ago

I can confirm I've seen the behaviour of new receivers showing up after they have been 'hidden'. This is likely due to the websockets handling code not respecting those settings. I'm sure its the case for the other settings too (recovered sondes, chase cars).

I'll have some time to look into this over the next week or so.

darksidelemm commented 1 year ago

Hmm, this is an odd one. When those toggles are set, it certainly should clear all existing items off the map, then inhibit any new items from being showed. Will require more investigation...