]> git.0d.be Git - hdm-toner-cartocss.git/commitdiff
lighten small road labels in zoom levels < 16
authorFrédéric Péters <fpeters@0d.be>
Wed, 8 Dec 2021 14:35:46 +0000 (14:35 +0000)
committerFrédéric Péters <fpeters@0d.be>
Wed, 8 Dec 2021 14:35:46 +0000 (14:35 +0000)
labels.mss

index b2eb65d7c97a26ef6a9c7aa8047ec832f63d75b0..47b82fcfdbc39489c796c6a5144b923b9e0c1dbd 100644 (file)
   text-name: '[name]';
   text-face-name: @bold;
   text-placement: line;
-  text-fill: @road_text;
+  text-fill: lighten(@road_text, 50%);
+  [zoom>=16] {
+    text-fill: @road_text;
+  }
   text-halo-fill: @road_halo;
   text-halo-radius: 1;
   text-min-distance: 60;