dpaulat / supercell-wx

Supercell Wx is a free, open source advanced weather radar viewer.
https://supercell-wx.rtfd.io
MIT License
85 stars 14 forks source link

Select nearest radar #216

Closed sentryjs closed 1 month ago

sentryjs commented 1 month ago

Sometimes the radar site labels are hard to see when zoomed in or just get lost when dragging the map around.

It would be nice if I could just click or double click the map and it would select the nearest site for me. Since some sites don't show product data would probably want to be able to right click a site and disable/remove it from the map so the nearest doesn't pick it up as an option.

dpaulat commented 1 month ago

Click is used by dragging, and double click by zoom. I could do Ctrl or Shift click, but I'm wondering if it'd be easier to just assign a hotkey?

sentryjs commented 1 month ago

Middle mouse? I do like the idea of it being tied to the mouse since it would be closest site to mouse position I assume.

dpaulat commented 1 month ago

This should be available in the next development snapshot: https://github.com/dpaulat/supercell-wx/actions/runs/9232822196

I restricted middle click to selecting WSR-88D. If you'd like TDWR, I can add a setting.

dpaulat commented 1 month ago

Opening this back up, seems to work inconsistently when switching back and forth between sites.