You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
admin_level=7 boundary centroid labels look like populated places #923
As of #888, the centroid of an admin_level=7 boundary is labeled with a similar treatment as a place=city point: a black label in mixed case. This is potentially confusing, because such boundaries may represent mere administrative subdivisions, not populated places. This forum post gives an example from Central Europe.
The default treatment should probably be more similar to that of an admin_level=6 centroid (e.g., county) than a place=city point. In the event that the boundary does represent a populated place, it would likely have a label member with the appropriate place=* value, which would suppress the centroid point in the tile.
Does the Grieben place point represent the same place as the Grieben boundary relation? If so, add the place point to the boundary relation with the label role; that’ll suppress the automatically generated label at the centroid. Any boundary corresponding to a populated place should be modeled like this – in other words, any boundary that should be labeled somewhere other than the centroid, because that other location has special meaning.
My original forum post only referred to “towns” because that’s what admin_level=7 boundaries are called in the particular part of the United States that I used as an example, from #888. The labels that we recently introduced actually represent territories bounded by admin_level=7 boundaries, more or less equivalent to place=municipality, not necessarily what would be locally known as towns or what would be tagged as place=town. I should’ve used some more geographically diverse examples to make that clearer.
Assuming the place=village node and admin_level=8 both represent the Gemeinde of Westertimke, as opposed to a settlement within the Gemeinde, changeset 148,295 is correct. I’d expect the centroid point to go away as a result. However, it’s still in the tiles, so I don’t know if that’s a caching issue or if the tiler isn’t correctly suppressing the centroid point.
Technically, it works fine on municipalities which I have added 24 hours ago. However, it does not work on edits made by others two years ago - maybe it's a tile problem.
Ah, the centroid functionality was only added a few months ago, so maybe we need to purge the tile cache more aggressively just once to get those old edits through the system.
The default treatment should probably be more similar to that of an admin_level=6 centroid (e.g., county) than a place=city point. In the event that the boundary does represent a populated place, it would likely have a label member with the appropriate place=* value, which would suppress the centroid point in the tile.
In other words, it would be clearer if we style every automatically generated centroid point like we currently style counties, since the centroid isn’t as meaningful as the overall shape of the boundary.
Yes, I am happy to do that. Basically just , even thought "similar to counties and should look the same" still ideal to think more like "7 and 8 are subcounties - still should feel kind of like counties but smaller, but similar" :)
admin_level=7 boundary relations like Redwood Township currently appear as both boundary lines and centroid points (the kind that denotes an administrative area). The labels are identical to admin_level=8 labels at some zoom levels, but this is a more general issue we can track separately.
Activity
OHM-FK27 commentedon Dec 11, 2024
Another more striking example from Mecklenburg: The little village of Börzow (688 inhabitants) hides the bigger city of Grevesmühlen (10'398 inhabitants). Grieben and Rehna are shown twice (as populated place AND as subdivision) which makes it hard to update them.
https://www.openhistoricalmap.org/#map=11/53.7946/11.0625
1ec5 commentedon Dec 11, 2024
Does the Grieben place point represent the same place as the Grieben boundary relation? If so, add the place point to the boundary relation with the
labelrole; that’ll suppress the automatically generated label at the centroid. Any boundary corresponding to a populated place should be modeled like this – in other words, any boundary that should be labeled somewhere other than the centroid, because that other location has special meaning.OHM-FK27 commentedon Dec 11, 2024
So far, it did not work: Kirchtimke (1974-) and Westertimke (1974-) are really small villages, no towns.
https://www.openhistoricalmap.org/#map=13/53.2405/9.1562
1ec5 commentedon Dec 11, 2024
My original forum post only referred to “towns” because that’s what
admin_level=7boundaries are called in the particular part of the United States that I used as an example, from #888. The labels that we recently introduced actually represent territories bounded byadmin_level=7boundaries, more or less equivalent toplace=municipality, not necessarily what would be locally known as towns or what would be tagged asplace=town. I should’ve used some more geographically diverse examples to make that clearer.Assuming the
place=villagenode andadmin_level=8both represent the Gemeinde of Westertimke, as opposed to a settlement within the Gemeinde, changeset 148,295 is correct. I’d expect the centroid point to go away as a result. However, it’s still in the tiles, so I don’t know if that’s a caching issue or if the tiler isn’t correctly suppressing the centroid point.OHM-FK27 commentedon Dec 12, 2024
Technically, it works fine on municipalities which I have added 24 hours ago. However, it does not work on edits made by others two years ago - maybe it's a tile problem.
1ec5 commentedon Dec 12, 2024
Ah, the centroid functionality was only added a few months ago, so maybe we need to purge the tile cache more aggressively just once to get those old edits through the system.
Rub21 commentedon Dec 12, 2024
I can do a purge of the tiler at all zoom levels. Maybe this is not the only issue in these areas; maybe other areas are affected too.
Rub21 commentedon Dec 13, 2024
I have cleaned the tiler cache, it should be ok now, if the issue persist, could you share exact place where need to check.
OHM-FK27 commentedon Dec 13, 2024
Thank you! Graz (Austria) is fine now on all levels. Bonn (Germany) has a new missing highway:
https://www.openhistoricalmap.org/way/200679682
The duplicated municipalities (point and area) near Bonn, Bremen, Hamburg and Munich still exist on all levels.
"Siegburg seit 1969" hides Siegburg, "Troisdorf seit 1969" hides Troisdorf.
https://www.openhistoricalmap.org/relation/2698172#map=13/50.8039/7.2424
https://www.openhistoricalmap.org/relation/2698173#map=12/50.8181/7.1459
Rub21 commentedon Dec 15, 2024
Thanks for reporting this, I fixed the issue, details of the issue can be found here: #917 (comment)
Rub21 commentedon Dec 15, 2024
Seems 👆 it could be fix by @vknoppkewetzel :)
1ec5 commentedon Dec 20, 2024
In other words, it would be clearer if we style every automatically generated centroid point like we currently style counties, since the centroid isn’t as meaningful as the overall shape of the boundary.
11 remaining items
vknoppkewetzel commentedon Jan 3, 2025
Yes, I am happy to do that. Basically just , even thought "similar to counties and should look the same" still ideal to think more like "7 and 8 are subcounties - still should feel kind of like counties but smaller, but similar" :)
1ec5 commentedon Apr 15, 2026
admin_level=7boundary relations like Redwood Township currently appear as both boundary lines and centroid points (the kind that denotes an administrative area). The labels are identical toadmin_level=8labels at some zoom levels, but this is a more general issue we can track separately.