Animated Rainfall Radar custom widget for Experience Builder , worldwide (+src)

2779
5
11-28-2023 02:39 PM
Labels (2)
FredericPoliart_EsriAU
Frequent Contributor

Not sure if this was posted before: 

https://esriaustraliatechblog.wordpress.com/2023/02/15/rain-radar/

One of the most highly requested features for Web Maps has been to overlay the the Rain Radar and animate it

Live demo: Preview Demo here
Video : https://www.youtube.com/watch?v=qSRovErKutw
Source Code: https://github.com/bgtdevhub/rainfall-radar-exb 

 

FredericPoliart_EsriAU_1-1701210978798.png

 

FredericPoliart_EsriAU_4-1701211020981.png


more info : https://esriaustraliatechblog.wordpress.com/2023/02/15/rain-radar/ 



 

 

5 Replies
JeffreyThompson2
MVP Frequent Contributor

This widget does not clean up properly and the radar may come back after you close it. The animation works by quickly adding and removing layers to the map which looks awful in the Map Layers Widget. I think it has other issues as well. I have this widget in one Experience as something of a novelty, so I have never taken the time to try and de-bug it. The code contains numerous useEffect, useCallback and setTimeout functions so it may be tricky to fix it without breaking something else.

On the same site, there is also a great widget for viewing NearMap data. These two widgets do not work well together and will likely throw errors if activated in the same session.

https://esriaustraliatechblog.wordpress.com/2023/01/23/nearmap-arcgis-experience-builder-widget/

GIS Developer
City of Arlington, Texas
José_LuisMartínez_Barba
Emerging Contributor

Does this process consume ArcGIS online credits?

0 Kudos
JeffreyThompson2
MVP Frequent Contributor

The data comes from a free API that is not associated with ESRI, so it won't cost any credits. Generally speaking, it's a pretty good widget, but it does have some bugs.

You may want to poke around ArcGIS Online for a bit to see if you can find radar posted by your country's weather service as many countries have this available as a free service. In the USA, you can find such a layer here.

https://mapservices.weather.noaa.gov/eventdriven/rest/services/radar/radar_base_reflectivity_time/Im...

It updates more frequently than the service this widget uses and contains time enabled data, so it should be possible to use with the Timeline Widget. So it would be a good alternative, if you don't want to deal with this widget's issues.

GIS Developer
City of Arlington, Texas
José_LuisMartínez_Barba
Emerging Contributor

Thank you this well have to do for now because I was using live radar data from the National Weather Service Data as OGC Web Services on the Public Cloud, connecting it thought WMS but it doesn’t cover my area of interest.

0 Kudos
SunshineLuke90
Occasional Contributor

It looks like Rain Viewer has updated their API, and removed some access to tiles in the "now" time frame, as well as only providing the "default blue" instead of all of the other types. Since I have needed a radar widget for my own GIS, I have developed a new radar widget, which uses a service worker to cache radar tiles. This requires a couple of extra steps when building and deploying applications using this radar widget, detailed in the Readme of the widget. My widget also allows you to view image tiles from GOES, including GeoColor, Fire Temperature, and Microphysics. 

Unfortunately for those outside of North America, my radar widget is using data from the National Weather Service, so it won't be a replacement for everyone.

You can find this widget as the "new-radar" widget in my widgets repository on GitHub. https://github.com/SunshineLuke90/widgets/tree/master/new-radar

0 Kudos