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 » Fri Aug 03, 2018 9:48 am

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 » Fri Aug 03, 2018 5:16 pm

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: 80
Joined: Tue Feb 09, 2016 7:32 pm
Location: UK
Contact:

Re: Leaflet Weather Overlay

Post by nitro999 » Sat Aug 04, 2018 7:40 am

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 » Fri Aug 10, 2018 7:56 pm

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: 80
Joined: Tue Feb 09, 2016 7:32 pm
Location: UK
Contact:

Re: Leaflet Weather Overlay

Post by nitro999 » Fri Aug 10, 2018 8:00 pm

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 » Fri Aug 10, 2018 8:03 pm

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 » Thu Jun 13, 2019 8:15 pm

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 » Thu Jul 11, 2019 8:52 pm

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