Closed ramiroaznar closed 7 years ago
I strongly disagree.
Zero is a value like any other.
The "weight" of it depends on the parameter you are measuring and the meaning of it within the context
If you know the domain of your data, you can always overwrite some properties/filters.
#layer {
marker-width: ramp([col], range(2,8));
[col = 0] {
marker-width: 0;
}
}
What do you think about that approach?
That's what I did when I encountered this use case. :-)
Thus, I'm closing this one.
I would like to open a discussion about the behavior of
0
values within ramps functions. In my humble opinion, in the majority of use cases, they should not be included in the first bucket. For instance, when making a bubble map features with0
values should havemarker-width: 0
.The only use case that makes sense to be included in any bucket is when you have negative and positive values.
cc @makella @AbelVM @rochoa
PD: related tweet.