Akylas / oss-weather

An OSS weather app for iOS/Android
MIT License
188 stars 13 forks source link

Add location indicator dot to radar map #94

Closed 0-5-0 closed 7 months ago

0-5-0 commented 7 months ago

Suggestion to add a location indicator dot for the current location/weather location on the radar map, this would be useful when the entire map is full of "weather" to help pin point the original location, especially when moving or zooming the map around.

I'm not sure if Rainviewer would provide some type of transparency otherwise so we can see names or landmarks on the map?

Something like this for opacity/transparency:

image

I think it might be in https://github.com/Akylas/oss-weather/blob/78adcf94274a8ff106530a7feb77f76a1daf1db8/map/index.ts, setting opacity to 0.5 or 0.7?

Referenced from (https://github.com/rainviewer/rainviewer-api-example/blob/master/rainviewer-api-example.html):

maxZoom: 18, pmIgnore: false, opacity=0.5

Example without opacity (you can also test out different colour themes): https://rainviewer.github.io/rainviewer-api-example/rainviewer-api-example.html

Example with opacity (0.5) adjustable through the little icon in the bottom right: https://mwasil.github.io/Leaflet.Rainviewer/demo/

farfromrefug commented 7 months ago

@0-5-0 it is released!

0-5-0 commented 7 months ago

Location indicator looks great, opacity looks great :), thanks again lol