From 5d93a12d9a97ba4f99ac6c93a79af58e35bdacb4 Mon Sep 17 00:00:00 2001 From: Christopher Eby Date: Wed, 18 Apr 2018 01:50:39 -0500 Subject: [PATCH] Extend intermittent waterbody rendering to basins --- water.mss | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/water.mss b/water.mss index 9030e30a02..f1de044624 100644 --- a/water.mss +++ b/water.mss @@ -30,12 +30,23 @@ [landuse = 'basin']::landuse { [zoom >= 7][way_pixels >= 32], [zoom >= 8] { - polygon-fill: @water-color; - [way_pixels >= 4] { - polygon-gamma: 0.75; + [int_intermittent = 'no'] { + polygon-fill: @water-color; + [way_pixels >= 4] { + polygon-gamma: 0.75; + } + [way_pixels >= 64] { + polygon-gamma: 0.6; + } } - [way_pixels >= 64] { - polygon-gamma: 0.6; + [int_intermittent = 'yes'] { + polygon-pattern-file: url('symbols/intermittent_water.png'); + [way_pixels >= 4] { + polygon-pattern-gamma: 0.75; + } + [way_pixels >= 64] { + polygon-pattern-gamma: 0.6; + } } } }