Esri / solutions-erg-widget

The Emergency Response Guide (ERG) widget allows users to determine potential hazards based on the type of chemical spill and user-selected location on the map.
Apache License 2.0
6 stars 4 forks source link

Possibility to use wind direction value from map datasets #101

Open siriosus opened 4 years ago

siriosus commented 4 years ago

Hi, Thank you for creation and sharing such a valuable widget. Could you please advise is it possible to embed value of wind direction from web map dataset as default?

Thank you in advance!

kgonzago commented 4 years ago

@siriosus Sorry for the late reply. The widget currently does not have the functionality to read a layer with wind direction values from a webmap. Our team is open to enhancing the widget and will add this to our backlog as a future enhancement.

Even though the widget lacks that capability, it does have the option of reading in weather data from Yahoo and Darksky. The only thing is that it is only offered in the WAB Developer Edition. If you download WAB DE and navigate to the widgets/EmergencyResponseGuide/Widget.js file, you will see parameters on line 135 and 136 which to hold Yahoo or Darksky weather URL. Once those parameters are populated, the weather component of the widget will be available. Please let me know if you have any questions about that.