From cf7a71b5907e4fe022b246942afd48e390a7229b Mon Sep 17 00:00:00 2001 From: Konstantin Pastbin Date: Mon, 24 Feb 2025 19:23:59 +0700 Subject: [PATCH] [styles] Add pathtexts to power lines Signed-off-by: Konstantin Pastbin --- data/styles/outdoors/include/Basemap_label.mapcss | 8 ++++++++ .../outdoors/include/priorities_4_overlays.prio.txt | 1 + 2 files changed, 9 insertions(+) diff --git a/data/styles/outdoors/include/Basemap_label.mapcss b/data/styles/outdoors/include/Basemap_label.mapcss index f879434beb..e158bcd2e5 100644 --- a/data/styles/outdoors/include/Basemap_label.mapcss +++ b/data/styles/outdoors/include/Basemap_label.mapcss @@ -8,6 +8,14 @@ line|z14-[natural=cliff], line|z16-[natural=cliff], {font-size: 12; text-color: @label_medium; text-halo-color: @label_halo_light;} +line[power=line], +{text-position: line;} +line|z15-[power=line], +{text: name; font-size: 10; text-color: @label_light; text-halo-opacity: 0.7; text-halo-radius: 1; text-halo-color: @label_halo_medium;} +line|z16-[power=line], +{font-size: 11;} + + /* 9. ISOLINES */ line[isoline] diff --git a/data/styles/outdoors/include/priorities_4_overlays.prio.txt b/data/styles/outdoors/include/priorities_4_overlays.prio.txt index 7723c53cd7..74068f4bef 100644 --- a/data/styles/outdoors/include/priorities_4_overlays.prio.txt +++ b/data/styles/outdoors/include/priorities_4_overlays.prio.txt @@ -1073,6 +1073,7 @@ natural-spring-drinking_water_no # icon z12- (also has captio isoline-step_10 # pathtext z16- (also has line z15-) isoline-zero # pathtext z15- (also has line z15-) +power-line === 1000 amenity-grave_yard # icon z17- (also has caption(optional) z17-, area z14-)