inbo / crow

Online tool to visualize birds detected by weather radars
https://inbo.github.io/crow/
MIT License
15 stars 7 forks source link

Show radar and code in dropdown #195

Closed peterdesmet closed 1 year ago

peterdesmet commented 1 year ago

@niconoe I want to adapt the dropdown and map to show the code - location combination rather than just location:

Screenshot 2023-05-10 at 16 22 02

Code =odimCode, location = text in config.ts, so it should be possible to create a computed value (e.g. radarLabel) from the two. I tried to see where it could be introduced, but I got a bit lost in the code. 😅. Is it possible to do that for dropdown and map only? Or do we have to update all text properties in config.ts, which would not be DRY, is prone to error and would also affect the selectedRadarLocation value.

The default value for radarLabel could be text (keeping with the current value used by RMI crow). For aloft/crow I would use the longer value.

niconoe commented 1 year ago

Sounds doable, I'll have a look!

peterdesmet commented 1 year ago

Resolved in #196 and #197