Open eatyourgreens opened 2 months ago
Each of the hazard options has a different list of epochs, so one global epoch variable might not work after all.
eg.
I'm ignoring hazard parameters in the URL for the time being. URLs record the selected hazard, but layer parameters are set to the defaults.
https://jamaica.infrastructureresilience.org/exposure?lat=17.87511&lon=-77.24007&zoom=12.78&assets=true&hazards=true&buildings=true®ions=false&terrestrial=false&marine=false
Hazard layer parameters (and parameters for other layers too) are stored independently, so I can select river flooding for 2050, but surface flooding for 2080 and cyclones for the present day. I'm not sure if this is a bug as such, but I think that I'd expect epoch to be set globally for all layers, when I change it for one layer. Otherwise, I have to go through all my currently selected layers and change the epoch for each one, if I want to see exposure for 2050, say.