From c2e2cb0eec9ca8bd92aa1dce5bdae0e3395ebfb1 Mon Sep 17 00:00:00 2001 From: Matt Amos Date: Wed, 9 Dec 2015 17:12:05 +0000 Subject: [PATCH] Add racetracks as a kind of roads. --- TileStache/Goodies/VecTiles/transform.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TileStache/Goodies/VecTiles/transform.py b/TileStache/Goodies/VecTiles/transform.py index bb81e100..e0af9781 100644 --- a/TileStache/Goodies/VecTiles/transform.py +++ b/TileStache/Goodies/VecTiles/transform.py @@ -154,6 +154,11 @@ def _road_kind(properties): return 'aerialway' if highway == 'motorway_junction': return 'exit' + leisure = properties.get('leisure') + if leisure == 'track': + # note: racetrack rather than track, as track might be confusing + # between a track for racing and a track as in a faint trail. + return 'racetrack' return 'minor_road'