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

Sortable legends #67

Merged
merged 8 commits into from
Sep 27, 2021
Merged

Sortable legends #67

merged 8 commits into from
Sep 27, 2021

Conversation

dcdenu4
Copy link
Member

@dcdenu4 dcdenu4 commented Sep 27, 2021

This PR adds the sortable legend feature. Legends can now be rearranged and the visible maps are updated accordingly. This is part 1 of the functionality required to satisfy issue #32 so not closing that issue here.

Using react-sortable-hoc and not doing any visual layer tricks yet.
Sorting is working with single layer services. It is not working yet
with multi layer services such as coastal habitats or protected areas.

Scrolling on drag is also not set up yet
Also do some CSS work to make sure that styling is as expected.
Rearraged coastal habitat layers in scaledefinitions so that they would
layer in proper order with sorting via legends. Did not do this for
protected areas becasue I don't think it matters
@dcdenu4 dcdenu4 added this to the Final Prototype milestone Sep 27, 2021
Copy link
Member Author

@dcdenu4 dcdenu4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

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

Successfully merging this pull request may close these issues.

1 participant