-
Notifications
You must be signed in to change notification settings - Fork 14
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
streams are over roads #151
Comments
Oops, definitely a bug!
…On Thu, Mar 9, 2017 at 5:36 PM, eringreb ***@***.***> wrote:
Streams show overtop of trails and roads.
[image: image]
<https://cloud.githubusercontent.com/assets/18540280/23778392/df172aee-0507-11e7-9489-43c86a91ab13.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#151>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AA0EOzF8bZeF8mNDugEZRjUskhlXaK4Oks5rkKkqgaJpZM4MY26u>
.
|
And @eringreb congrats for your first Github issue! :) |
Thanks! The map looks great. Also made me realize I tagged a bunch of trails in my local parks incorrectly since they weren't showing up colored. Fixed now! |
:)
…On Fri, Mar 10, 2017 at 11:12 AM, eringreb ***@***.***> wrote:
Thanks! The map looks great. Also made me realize I tagged a bunch of
trails in my local parks incorrectly since they weren't showing up colored.
Fixed now!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#151 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA0EO6hYttj9qTWQEw5K7vaxHvfmBn_Uks5rkaCxgaJpZM4MY26u>
.
|
@bcamper (Nathaniel writing) can you check the logic here, please? It seems like Tangram isn't evaluate the true and false correctly? There is a vector tile bug (tilezen/vector-datasource#1143) that streams that are
|
Boolean filters actually behave differently, as covered in the docs ;) https://mapzen.com/documentation/tangram/Filters-Overview/#feature-properties
This is a quirk going back to early Tangram. I honestly think that I meant to implement it to match JS truthy/falsiness (e.g. "true" values include I don't really like it, but we've avoided changing it to not break compatibility, and because there was an existing syntax that did support direct boolean matches (the list syntax with a single boolean value works because lists matches the property value to any of the values in the list). So you can make this:
I would also be interested in revisiting this syntax though since I am skeptical that it has every been used (or understood!) as currently written. cc @matteblair @meetar |
@matteblair If I recall, you had some qualms about trying to reimplement all of JS truthy/falsey behavior in C++, an understandable hesitation given that itself a quirk of the language :) A more modest change could be to make it so that a boolean filter matches take
|
You can't set the |
I feel like there may be more usage of this syntax than we realize - I'd want to take a cursory survey of its use before we seriously consider changing it. @bcamper In your suggested revision I think you wrote |
Which means that I don't think the current syntax is all that bad, but if we were to change it I would favor something more explicit in syntax. We could use a mapping to check existence, similar to the range filter syntax: |
I did mean
I don't think so? I had:
"neither null nor false", meaning the only values that
Agree on syntax usage review "in the wild" before changing, just making proposals here. I would say I like your suggestion of something like So rather than supporting special syntax for this, I'd prefer to allow people who truly need that to do so with a function filter like |
I see, I misunderstood the revision you were suggesting.
This seems harder to understand than the current syntax; instead of this filter meaning one thing about a feature, it would now mean one of three possible things about the feature. If using Boolean feature properties is more common than using the presence/absence of properties, then wouldn't it make sense to use the more concise |
Streams show overtop of trails and roads.
The text was updated successfully, but these errors were encountered: