usgs / landslides-post-wildfire-debris-flow

A web application that displays estimates for the probability and volume of debris flows that may be produced by a storm in a recently burned area
Other
7 stars 6 forks source link

Update DetailsView to use images #39

Closed ehunter-usgs closed 7 years ago

ehunter-usgs commented 7 years ago

When an event is more than two years old the leaflet map will be traded for a static image of the "Segmented Probability" layer.

The image will be used as soon as the event is two calendar years old. This means that as soon as we enter into 2017, that only 2017 and 2016 will use a leaflet map and all 2015 events will use the static image provided on the FTP server.

The image and pdf to be displayed can be found on the ftp server, at:

jmfee-usgs commented 7 years ago

I'm a little concerned about the YYYYMMDD being part of the url: what if the fire date is changed after the fact? maybe make this part of the <mapImage> variable?

ehunter-usgs commented 7 years ago

@jmfee-usgs I was confused by greg's naming convention, YYYYMMDD is part of the mapImage attribute