Ticket #22704: text_fuct_parent_way_angle.mapcss

File text_fuct_parent_way_angle.mapcss, 1.4 KB (added by mikeho, 2 years ago)
Line 
1/*
2OpenRailwayMap Style File for JOSM
3OpenRailwayMap - Copyright (C) 2023 user: mikeho
4This program comes with ABSOLUTELY NO WARRANTY.
5This is free software, and you are welcome to redistribute it under certain conditions.
6See https://wiki.openstreetmap.org/wiki/OpenRailwayMap for details.
7
8Format details: https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation
9 https://wiki.openstreetmap.org/wiki/MapCSS/0.2
10*/
11
12meta {
13 title: "JOSM - test for function parent_way_angle - 02.03.2023 - Version 1.0";
14 version: "1.0";
15 description: "Style to display the result of function parent_way_angle.";
16 author: "mikeho";
17 watch-modified: true;
18}
19
20node|z18-::layer_speed_for1 {
21 z-index: 400;
22 text-offset-x: 0;
23 text-offset-y: 26;
24 font-size: 18;
25 text: concat("angle: ", parent_way_angle(), " << length: ", length( concat( parent_way_angle() ) ), " <<" );
26
27 text-position: line;
28 text-color: #F44; text-halo-opacity: 1;
29 text-halo-color: #202020; text-halo-radius: 4;
30 text-allow-overlap: true;
31}
32node|z18-::layer_speed_for2 {
33 z-index: 402;
34 text-offset-x: 0;
35 text-offset-y: 6;
36 font-size: 18;
37 text: concat("angle: ", eval( parent_way_angle() + 0.001 ), " <<" );
38
39 text-position: line;
40 text-color: #F44; text-halo-opacity: 1;
41 text-halo-color: #202020; text-halo-radius: 4;
42 text-allow-overlap: true;
43}