-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
New quest: Building colour #431
Conversation
override val elementFilter = """ | ||
ways, relations with | ||
((building and building !~ no|construction) | ||
or (building:part and building:part !~ no|construction)) |
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.
Note: I haven't found a good real-world case to test the colour on a building:part
. Any suggestion where to find one? 😅
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.
I mostly find elevators tagged as building:parts, and not much else.
But I'll have a look when testing the quest.
app/src/main/java/de/westnordost/streetcomplete/quests/QuestsModule.kt
Outdated
Show resolved
Hide resolved
So you got it working, nice! (I'll have a proper look at the PR later this weekend) |
Some more comments after a very quick test and looking for applicable building parts on overpass:
|
Sorry for the late response - I wasn't home during the weekend.
The height of
ACK'd & fixed!
I didn't know about some of those combinations. Excluding most of them sounds like a good idea, but I'd like to be able to tag coloured glass.
I think it would be also fine to skip this quest for too complicated buildings, if it's not easy to tag in a casual survey. It's gonna be okay for other cases. 😄 |
No problem at all, we don't have a time schedule anyway
Alright, then let's leave it as it is.
I only found out about
Currently I'm in favor of leaving the filter as it is: If you don't intend to do any more changes, I'll merge the PR. |
I think this PR is good to merge as-is. As you explained, it's probably "good enough" for most cases. Thanks for your reviews. 😄 |
Based on the same pattern as #428, adds a building colour quest.
Notable changes/additions:
RoofColourDisplayItem
andBuildingColourDisplayItem
use a new common base classFilteredDisplayItem
to avoid repeating the colour matrix logicFilteredDisplayItem
is modified from the the suggestion in New quest: Roof colour #428 (comment) to avoid dupes (equality + hashCode overrides)moveFavoritesToFront
is enabled for roof colours, again.