Closed lenalebt closed 8 months ago
Great suggestions! Yes, a PR is welcome :) Please update both landuse and POIs layers and include tests.
Thanks for the PR! We may want to show labels for these in the POIs layer using polylabel; in any case we need to make modifications to the style now to show these.
I personally was using a different style anyways, "just" had the problem that the data was missing. No reason not to add the labels though, I just have no clue what you mean when you say "polylabel". If you help me a little I'd open a PR for some labels as well.
If you want your green areas to be labeled with text, generally we want to use the "polylabel" function in the Java code to find the pole of inaccessibility for a polygon, and then label it only using a point in the style. This is preferred over putting those properties in the polygon because they might cover multiple tiles and we only want a single label. Though if you have a specific instance in your style we can work from a visual and determine if this is really necessary.
@lenalebt Sorry I missed the original question to me in the PR.
To add the labels to the POIs layer, edit this file to include the same tags you included in the Lanuse.java class in https://github.com/protomaps/basemaps/pull/206:
As to if the labels are appropriate, I generally fallback on the research done in Tilezen's equivalent logic:
In this case YES for allotments (because community gardens often have names) but NO for village_green
(and YES for playground
).
Redoing the research for village_green
using TagInfo with current state of OSM data, I see that 4% of those features now have names. So if you wanted to add them up to you. The others are more than 10%.
Hey @nvkelso @bdon thanks for your support! I added a PR - was not really sure whether it's correct what I'm doing, but I think you can better judge whether this is what you were looking for.
Have a nice day!
Description OSM tagged areas with
landuse=village_green
andlanduse=allotments
are missing in the tileset. Same is true for polygons withleisure=playground
. I think they should all be included in layer "landuse" withLocation https://www.openstreetmap.org/#map=18/51.50497/7.31888
Screenshots vs
I can provide a PR, if that helps :-)