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 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 landuse=grass
and natural=sand
tags. In fact, in iD, creating a fairway, green, rough, or tee automatically adds landuse=grass
to the tags. Likewise, bunkers add 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. golf=tee
, fairway
, driving_range
, and rough
would get the same fill color as 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 golf=green
would get the same color as leisure=pitch
. And golf=bunker
would get a natural=sand
color.
On top of that, agreement was reached on rendering golf=hole
, a line that shows the playing path, along with a label of its ref
or name
. And finally, the actual location of the hole – golf=pin
– would get an icon, labeled where applicable.
One final change was updating the fill of leisure=golf_course
. The original green background was a single-use color. Carto is already a green-heavy color scheme, and the opportunity was taken to remove one shade, instead using the same color as campsites.