-
Notifications
You must be signed in to change notification settings - Fork 2
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
task/WG-91-Allow non-persistent tile layer adjustments in public hazmapper maps #175
Conversation
I am inclined to adhere to the UI consistency of option 1. The disabled state is pretty well understood these days. Hiding controls might be bad for accessibility design as well. |
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.
LGTM. I like option 1.
@taoteg but in the public view, it can never be enabled. in that case, wouldn't it be better to just hide it as it doesn't apply to the public view. |
@nathanfranklin I'll go with Option 2. Adding the Overlays title back now |
@nathanfranklin I think there may be a terminology mismatch here - I would say "hide the control" NO, but "not include the control at all" YES. It runs afoul of accessibility best practices to hide UI controls (because they are still there for anyone who needs the accessibility to work, which creates bad navigation experience). However, as long as the control doesn't exist in the component to begin with(when the client renders it), that is fine. I'm a bit rusty in my Angular, is the |
@taoteg , |
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.
LGTM!
Overview:
During the RAPID webinar, users wanted to be able to tweak public map opacity without making changes to the map.
also from Karen (https://designsafe-ci.slack.com/archives/C057MKDUZFS/p1683657846684769?thread_ts=1683649659.461539&cid=C057MKDUZFS):
It may also be helpful to keep some format of the layers option so users can still toggle between the satellite view and the map view. That way they can see what an area looked like before the event?
PR Status:
Related Jira tickets:
Summary of Changes:
1. See the Layers Option
2. Tweak the opacity of a tile layer
3. Toggle between tile layers (for example: toggling between Satellite view and the Roads view)
4. Guests/users will not be able to delete or save layer changes (by design).
Testing Steps:
UI Photos:
Project Owner/Co-Owner view is unchanged (non-public view)
Here is Option 1 for the public view (notice buttons are disabled, but not hidden from view)
Here is Option 2 for the public view (notice buttons are hidden/not rendered)
If this option is picked I need to add back the 'Overlays' title
Let me know which option y'all prefer
Notes:
I made it so that the 'Save Layer Options' button is only rendered when there's a change/save opportunity. Otherwise the button is not rendered, until it needs to be (this is only in the non-public view, in the public view the 'Save Layer Options' button is never rendered, by design).