openstreetmap-americana icon indicating copy to clipboard operation
openstreetmap-americana copied to clipboard

Add suburb, quarter, neighborhood rendering

Open wmisener opened this issue 7 months ago • 12 comments

This PR renders urban districts (OSM place=suburb, place=quarter, and place=neighbourhood), resolving #1058. Urban districts are rendered in all caps with a dark blue font color, the same font color as currently used for waterway label. However, waterway labels are always mixed case and italicized, so I think the risk of confusion is low. The color and capitalization, along with the lack of a dot, distinguishes urban districts from the 'independent' place hierarchy (i.e. city, town, village).

Since the distinction in OSM between each place value in American usage is fuzzy at best, all three classes are rendered similarly. The only differences are zoom level and font size. Suburbs appear between z11-z15, quarters between z14-z16, and neighbourhoods between z14-z17. I would've liked quarters to appear at z13, but they only begin to appear in the tiles at z14. The maximum zooms ensure that the labels disappear to make room for POIs once you are at high zoom.

In the legend, I labeled suburb "Major district", quarter "Large neighborhood", and neighbourhood "Neighborhood". Though maybe all three could just be grouped together?

Samples: Los Angeles, z11 (localhost) Screen Shot 2024-07-06 at 4 44 00 PM

San Francisco-Oakland, z11 (localhost) Screen Shot 2024-07-06 at 4 41 21 PM

Oakland, z12 (localhost) Screen Shot 2024-07-06 at 4 40 24 PM

Midtown Manhattan, z14 (localhost) Screen Shot 2024-07-06 at 4 45 25 PM

Manhattan, z16 (localhost) Screen Shot 2024-07-06 at 4 58 04 PM

Marina del Rey, z14 (localhost) Screen Shot 2024-07-06 at 5 00 46 PM Compare the place=quarter (top) to the natural=water (bottom)

Legend, z14 (localhost) Screen Shot 2024-07-06 at 4 31 59 PM

wmisener avatar Jul 07 '24 00:07 wmisener