-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Show nearby related POIs #3480
Show nearby related POIs #3480
Conversation
…g_bin_operator/AddClothingBinOperator.kt Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
Thanks for the review! |
Device-2021-11-02-190324-1.mp4Device-2021-11-02-190643-.mp4Device-2021-11-02-190855-1.mp4 |
In your first video, when opening the quest for Kiosk 104, it looks like the quest is actually for SuperBioMarkt, because its whole geometry is highlighted. Is it possible to hide all other quest pins while the quest answer sheet is open? Then all highlighted geometries look completely different (violet background + icon) compared to the current quest geometry (orange background + quest marker pin). That'd also make the example in your third video look better: There, a quest pin with a bike parking icon is shown above an area with a bike parking icon. If the quest pin is hidden, that eliminates the duplication. |
Yes it is possible. If you want to test it yourself, add fun startFocusQuest(quest: Quest, offset: RectF) {
+ pinMode = PinMode.NONE
geometryMapComponent?.beginFocusGeometry(quest.geometry, offset) to I agree that it is much more clear/clean this way, but it results in a visual jerk every time the quest form is open and closed. It is probably possible to reduce this jerk, maybe even remove it altogether, not sure. It will be some effort though to cleanly refactor the code so that hide/show is faster. |
I checked - hiding the quest pins can not be faster. And it's actually not that slow. Showing the quest pins again can be faster but only with more effort, i.e. more working around missing features in tangram-es. The main issue is that it is not possible in tangram-es to switch the visibility of a layer. You can only clear it. So what is done when "hiding" any layer is to actually clear it. When it should be shown again, it is built up anew from data fetched from the database. I added a feature request to tangrams/tangram-es#2299 , let's see what Matt thinks. Since there is already a convenience wrapper around tangram in Streetcomplete code, maybe the |
Will look on how it will be possible to change the "view mode" when the quest form is open. |
Notes:
|
so, left to do:
|
# Conflicts: # app/src/main/java/de/westnordost/streetcomplete/quests/postbox_collection_times/AddPostboxCollectionTimes.kt
Device-2021-11-15-152301-1.mp4(Note the shops are on different levels in the mall) |
Shout out to @matteblair: Thank for enabling this fast-switching between displayed layers in the new version of tangram-es! |
Fixes #3338, fixes #2354
This PR adds functionality that quests can highlight map data in its vicinity that is helpful / necessary for context of the quest.
Examples: