Leaflet Weather Overlay

Are you having problems with using or developing a plugin? Let me know here.
Post Reply
bluealien11
Posts: 4
Joined: Fri Aug 03, 2018 9:40 am

Leaflet Weather Overlay

Post by bluealien11 »

I am playing with trying to get a weather overlay on the Leaflet map. From what I have read, it seems doable and I was curious if anyone in here has done it, and if so how?

I saw some older posts about implementing radar and satellite imagery on the map, but did not see any explanations on how to do so.

Thanks!
thebaldgeek
Posts: 8
Joined: Tue Feb 24, 2015 3:06 am

Re: Leaflet Weather Overlay

Post by thebaldgeek »

I upgraded yesterday and found my weather overlay disabled, so would like to add a 'Me Too' to this thread.

If anyone has any information on how to restore this function, many of us would be very grateful.

Thanks in advance.
nitro999
Posts: 90
Joined: Tue Feb 09, 2016 7:32 pm
Location: UK
Contact:

Re: Leaflet Weather Overlay

Post by nitro999 »

I have just published some code for weather, ATC airspace, and other overlays for Leaflet here:

viewtopic.php?f=9&p=7883#p7883
bluealien11
Posts: 4
Joined: Fri Aug 03, 2018 9:40 am

Re: Leaflet Weather Overlay

Post by bluealien11 »

Very slick! Thank You!

I have everything showing up, except weather. The airspace and everything pulls up just fine. Is there another step?
nitro999
Posts: 90
Joined: Tue Feb 09, 2016 7:32 pm
Location: UK
Contact:

Re: Leaflet Weather Overlay

Post by nitro999 »

For weather you need to register for an API key on Aerisweather and then insert your API key into the code at the marked point
bluealien11
Posts: 4
Joined: Fri Aug 03, 2018 9:40 am

Re: Leaflet Weather Overlay

Post by bluealien11 »

Just saw that. Great. Works like a charm! Thank you!
RickBoatright
Posts: 16
Joined: Tue Dec 20, 2016 3:36 am

Re: Leaflet Weather Overlay

Post by RickBoatright »

I've modified Nitro99's code to use the free nexrad leaflet tile server at U of IA... see this post viewtopic.php?f=5&t=1859
MikeNYC
Posts: 2
Joined: Thu Jul 11, 2019 8:49 pm

Re: Leaflet Weather Overlay

Post by MikeNYC »

Hi, thanks for the great bit of code!

Is there any easy way to implement a function to refresh the weather in regular intervals (1-5 minutes)? I can toggle the layer off then on manually to refresh, but in my install I'm setting it up as a view-only kiosk and would like to have updated weather.

Perhaps there's a bit of JS that can disable and re-enable the layer, based on a timer?
Post Reply