Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add numeric basin ids to basin paths in svg #8

Open
hcorson-dosch-usgs opened this issue Dec 21, 2021 · 0 comments
Open

Add numeric basin ids to basin paths in svg #8

hcorson-dosch-usgs opened this issue Dec 21, 2021 · 0 comments
Assignees

Comments

@hcorson-dosch-usgs
Copy link
Contributor

In order to more easily join the svg paths to the data in our Javscript code (in order to set up interactions), it would be helpful to have the numeric basin ids from the IWS data added to the basin paths in the svg. One potentially tricky bit is that some IWS basins seem to have >1 basin id associated with them (e.g. upper colorado, illinois river basin), so we might need to figure out a clever way to set up the id or class names such that we can parse that information if we want the interaction to be triggered for the IWS basin as a whole. Although, if we end up adding all basins from the dataset to the map, and setting up interactions for each of those basins (rather than only the IWS basins), then I think we'd be back to a 1:1 mapping, which would solve that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants