os-climate / physrisk-ui

UI for the Physical Risk tool
Apache License 2.0
5 stars 10 forks source link

Implement API request submission on map click #11

Closed negillett closed 2 years ago

negillett commented 2 years ago

We'd like an API request to be submitted when a user selects a location on the map box. The request should be made to the API's hazard route implemented by https://github.com/os-climate/physrisk-api/issues/5 with latitude and longitude provided by map selection. Upon receipt of request response, the UI plots a graph below the map box using returned intensity_curve_sets. These are curves with return period and event intensity.

Graphing suggestions: chartJS

negillett commented 2 years ago

@joemoorhouse, @Floflow, feel free to adjust the description here, as I'm nearing the edge of my depth.