-
Notifications
You must be signed in to change notification settings - Fork 90
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
Feature/custom legend components #3539
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well! Two small things:
- I'm not sure about the timeline looping
- When you pause the timeline the bar looks like this:
You have to manually drag the bar to then end to see the full loss. Maybe it can default/reset to full when the start/end sliders are dragged?
In any case, awesome work! Looking pretty blazing 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Progress!
I cant reproduce the error with GLADs losing the timeline but that might have been a deps issue. Regarding timeline, as this is an interaction design problem I am going to merge and we can work with Fausto on the use cases later on. Thanks for the good feedback 💯 . |
"They say you are what you eat, but I don't remember eating a flipping legend" - new GFW legend (probably)
The time has come to customise the WRI API legend with both styles and some fancy custom components to control our every complicated layers. Here is what we have:
Timeline
: a range slider timeline component that allows you to trim, filter and play canvas players on the mapLayerListMenu
: displays a list of togglable layers when the layer is typeisMultiLayer
, with additional info component nested inside.LayerSelectorMenu
: displays a selector menu for when the layer is typeisSelectorLayer
LossStatement
: a disclaimer for loss type layersThreshold Selector
: a dropdown selector for layers withthres
orthreshold
in theirparams_config
Other new components for a better life and a better you:
Toggle
: reimplemented theLayerToggle
component with a new custom toggle for dynamic styling.Dropdown
: this is now allows a native params to use the native browser selectorAdditional needed tasks: