Show administrative boundary text labels from z11 to z16 based on admin_level #3677
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #622
Also see #3649
Changes proposed in this pull request:
admin_level IN ('0',
from query, as this level is not used.Explanation:
Test renderings with links to the current rendering:
Dili, East Timor, z11
Here we see one admin_level=4 with a central label (because it is less than 196000 way_pixels in area), while the others have no central label, but now do have labels along the border (>196k way_pixels)
https://www.openstreetmap.org/#map=11/-8.6666/125.6661
Oecusse, Enclave of East Timor in Indonesia, z11
https://www.openstreetmap.org/#map=z11/-9.3115/124.2749
Andorra, z11
No border labels are displayed at z11, because the admin_level=2 area is <360000 pixels
https://www.openstreetmap.org/#map=11/42.5096/1.5346
Ashgabat, Turkmenistan, z11
https://www.openstreetmap.org/#map=11/37.9504/58.1925
Port Moresby, Papua New Guinea, z11
https://www.openstreetmap.org/#map=11/-9.5168/147.2635
Port Moresby, z12
Liechtenstein, z13
https://www.openstreetmap.org/#map=13/47.2027/9.5424
Yogyakarta, Indonesia, z14
Koutio, New Caledonia, z15
https://www.openstreetmap.org/#map=15/-22.2183/166.4791