Open wadhwamatic opened 2 years ago
Imho, a short term fix is to keep the boundary like this but at least update the tooltip name to only display the admin1 name, since the result we are getting is for that admin.
The other tricky thing to consider: what should happen when we activate an admin level dataset that does not use the same level?
@ericboucher - If we have an admin level dataset that is at a different level than the default, we'll have more than one boundary file so this scenario won't exist
@ericboucher @DanielJDufour @JorgeMartinezG
Up until we added the ability to stylize different admin levels uniquely, and to have admin level data associated at different levels, there was just one admin boundary file per deployment. Now we can have 1 or more, but in the case where we have just 1, there is a conflict with how the 'run analysis' feature works when we bound results by admin area. There could be other instances where just a single admin boundary file will also cause issues.
A couple of notes:
The screenshots below show the current issue with a single boundary file when we run an analysis using the new features in https://github.com/WFP-VAM/prism-frontend/pull/431. To replicate:
The analysis module allows for selection of admin 1 and admin 2, but we do not have an admin 1 boundary file.
The map continues to show admin 2 boundaries, but the analysis was presumably done on admin 1. These leads to unexpected results, including showing that every admin area had some percentage of area exposed to the earthquake