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

Validate: label can be hidden behind mini map when loading label #3582

Closed
misaugstad opened this issue Jun 29, 2024 · 3 comments
Closed

Validate: label can be hidden behind mini map when loading label #3582

misaugstad opened this issue Jun 29, 2024 · 3 comments

Comments

@misaugstad
Copy link
Member

Brief description of problem/feature

Since adding a minimap to all versions of Validate (PR #3576), we now have an issue where the label can be hidden behind the mini map immediately when we show it to them. This is because we try to pan the user to the view that the labeler had when they added it, expecting it to give better context than just centering the label. But that's not going to fly if the label is just completely hidden!

Potential solution(s)

The easiest thing would be to have the label show up above the minimap no matter what... This looks funky.
Screenshot from 2024-06-28 19-16-59

Next could be to mess with the opacity of the minimap if the label is underneath it. Better... Still kinda weird? Idk I think I need to look at it again with fresh eyes later. Could also just fully hide the minimap if the label is behind it.
Screenshot from 2024-06-28 19-18-18

Another option is to detect if the label is going to show up under the minimap, and auto-pan the GSV so that the label doesn't start behind the minimap. The only downside to this one (aside from code complexity) is that users can still pan so that the label ends up behind the minimap on their own. Though this method could be combined with another method so that the label remains visible if the user pans to make it under the minimap.

@jonfroehlich
Copy link
Member

jonfroehlich commented Jun 29, 2024 via email

@misaugstad
Copy link
Member Author

If label starts behind mini-map, just move minimap to bottom left rather than the default of bottom-right?

Right, I forgot that I was going to mention that that was another option... I'm not a fan of it. Might be a little weird to have the map jumping around. And more importantly, what do we do with the zoom buttons that are next to it? Then those will just be floating unless we move those too.

@misaugstad
Copy link
Member Author

Since we are removing the minimap (#3593), this issue will no longer be relevant.

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

No branches or pull requests

2 participants