-
Notifications
You must be signed in to change notification settings - Fork 819
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
state name labels get rendered until z19 #1913
Comments
There are some weird bugs in Carto. Could it be related to any of the following? mapbox/carto#315 |
mapbox/carto#370 might be a good candidate. I had a look at the XML generated with carto 0.15.3.
Interestingly, with 100000 there is a
rule without the upper limit that is not present with 99999. If I understand the XML correctly this should cause state name labels to be rendered from z7+ onwards if the way pixels are larger than 3000. This may cause the behaviour I noticed. |
Further testing reveals that if the first part of the following selector is omitted it works as expected:
This change also does not trigger the bug:
If way_pixels < 196000 is set above, the bug still occurs. |
Related to #1391.
Example: http://osm.org/go/0JrJIi_qT?m=
I think it does not make sense to render state name labels (
admin_level=4
) on high zoom levels, not even for the smaller states. Before #1134 we had cut-off zoom levels for admin name labels. We then moved to usingway_pixels
.Currently
admin_level=4
uses the same value asadmin_level=2
, namely 196000. I wanted to experiment with the value, but noted some strange behaviour. The label of the biggest Austrian state Lower Austria (https://www.openstreetmap.org/relation/77189, ~19.000 sq km, just for reference) disappeared at z8 when I used a value of 99999, but was rendered till z19 when I used a value of 100000.To me this does not make sense. Can anybody explain this behaviour? Relevant code portions are https://github.com/gravitystorm/openstreetmap-carto/blob/master/placenames.mss#L21 and https://github.com/gravitystorm/openstreetmap-carto/blob/master/project.yaml#L1453.
The text was updated successfully, but these errors were encountered: