Golf course details now rendered with the latest Carto release
Posted by jgruca on 25 September 2021 in English.Almost one year ago, I decided to take a crack at fixing something that bugged me in the way golf courses were rendered in carto. And now that fix – or what it evolved into – is finally merged and getting deployed!
If you look at the wiki page for https://wiki.openstreetmap.org/wiki/Tag:leisure=golf_course, you’ll find a rich vocabulary for how to (micro)map many aspects of the layout: tees, holes, pins, bunkers, so on and so on. And in many of these tags, there’s an admonition: don’t tag for the renderer just to get these features to show up. Naturally, mappers will do what they want to do, and most fairways, greens, and bunkers have accompanying https://wiki.openstreetmap.org/wiki/Tag:landuse=grass and https://wiki.openstreetmap.org/wiki/Tag:natural=sand tags. In fact, in iD, creating a fairway, green, rough, or tee automatically adds https://wiki.openstreetmap.org/wiki/Tag:landuse=grass to the tags. Likewise, bunkers add https://wiki.openstreetmap.org/wiki/Tag:natural=sand.
This is useful for making a case that carto needs to render these tags, and that there’s a general agreement on what they should look like. After much back and forth and discussion in the PRs, a consensus emerged. https://wiki.openstreetmap.org/wiki/Tag:golf=tee, fairway, driving_range, and rough would get the same fill color as https://wiki.openstreetmap.org/wiki/Tag:landuse=grass. rough would also get a subtle pattern on top of its fill to highlight the different length of grass. The green would get a darker shade to differentiate it from the surrounding fairway, and so https://wiki.openstreetmap.org/wiki/Tag:golf=green would get the same color as https://wiki.openstreetmap.org/wiki/Tag:leisure=pitch. And https://wiki.openstreetmap.org/wiki/Tag:golf=bunker would get a https://wiki.openstreetmap.org/wiki/Tag:natural=sand color.