-
-
Notifications
You must be signed in to change notification settings - Fork 717
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
Remove popup when marker is behind terrain #3865
Remove popup when marker is behind terrain #3865
Conversation
Looks like a reasonable UX, the code is basically a one line change, so I don't have real comments. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3865 +/- ##
==========================================
- Coverage 86.83% 86.58% -0.25%
==========================================
Files 241 241
Lines 32341 32343 +2
Branches 1962 1981 +19
==========================================
- Hits 28082 28003 -79
- Misses 3340 3394 +54
- Partials 919 946 +27 ☔ View full report in Codecov by Sentry. |
Also changelog is needed. |
Can you verify that the added scenario is covered in tests? According to the code coverage report it seems that it's not well covered...? |
THANKS!! |
Currently popups do not change opacity when hidden by terrain.
It looks especially bad when a popup is attached to a marker. Marker becomes semi-transparent, and popup doesn't.
By this PR I suggest to hide a "dependent" popup when its marker is behind terrain.
It's not the only possible solution but 1) it's simple and 2) it actually seems more adequate than making a popup semi-transparent because such semi-transparent popup will create a lot of visual noise.
So here I make sure that
popup.behind.terrain.before.after.mp4
This solution does not affect independent popups. They will still be fully opaque behind terrain.
It seems that visibility of dependent and independent popups are 2 different problems.
Visibility of a dependent popup should be determined by the marker.
Visibility of an independent popup should be determined by popup's own position relative to terrain.
It will require to somehow copy or reuse the bulky opacity-related code from marker.ts.
CHANGELOG.md
under the## main
section.