-
Notifications
You must be signed in to change notification settings - Fork 824
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
roads.mss carto code style error #2468
Comments
Might be a nice exercise for people new to contributing. |
I tried, but i also included my changes from another of my branches (simplify-capital). Yes git is not that easy... Will try again! |
In this particular case I see no sense in enforcing this. While the gist of the rule is to prevent style problems if higher/lower zooms are left out here the next rule anyway starts with What sense does it make to change
to
I'm against dogmatic applying of style rules. |
See #410 for the previous time we had this discussion. I personally have no strong opinion either way. |
The standard way to write the logic here is [feature = 'highway_residential'],
[feature = 'highway_unclassified'] {
[zoom >= 12] {
[feature = 'highway_residential'] { ... }
[feature = 'highway_unclassified'] { ... }
}
[zoom >= 13] { ... }
...
} |
Note that it is done this way in part because proper way (presented in the comment above) resulted in a weird glitch. At that time a glitch was appearing solely in TileMill (but not if export to file was used). Due to poor reproducibility I never successfully tracked down whatever it was truly caused by this change and whatever it was bug in style code or in Tilemill or in something else. For this reason I will will remove "easy" label - if there is really something fishy going here it may be a poor introduction. |
At line 1342
zoom =
should never be usedThe text was updated successfully, but these errors were encountered: