1 |
|
---|
2 | node[type=with_auto] {
|
---|
3 | /*
|
---|
4 | * display the content of one of the name tags
|
---|
5 | */
|
---|
6 | text: auto;
|
---|
7 | text-color: white;
|
---|
8 | font-size: 10;
|
---|
9 | }
|
---|
10 |
|
---|
11 | node[type=with_tag_shortcut] {
|
---|
12 | /*
|
---|
13 | * display the content of the tag "VALSOU". This is equal to
|
---|
14 | * text: tag("VALSOU")
|
---|
15 | */
|
---|
16 | text: "VALSOU";
|
---|
17 | text-color: white;
|
---|
18 | font-size: 10;
|
---|
19 | }
|
---|
20 |
|
---|
21 | node[type=with_tag] {
|
---|
22 | /*
|
---|
23 | * display the content of the tag "VALSOU". A more verbose way to
|
---|
24 | * write
|
---|
25 | * text: tag("VALSOU")
|
---|
26 | */
|
---|
27 | text: eval(tag("VALSOU"));
|
---|
28 | text-color: white;
|
---|
29 | font-size: 10;
|
---|
30 | }
|
---|
31 |
|
---|
32 | relation[type=a_parent_relation] > node[type=with_parent_tag] {
|
---|
33 | /*
|
---|
34 | * display the content of the tag "VALSOU" of any of the parent
|
---|
35 | * relations of type a_parent_relation
|
---|
36 | */
|
---|
37 | text: eval(parent_tag("VALSOU"));
|
---|
38 | text-color: white;
|
---|
39 | font-size: 10;
|
---|
40 | }
|
---|
41 |
|
---|
42 | way[type=a_parent_way] > node[type=with_parent_tag] {
|
---|
43 | /*
|
---|
44 | * display the content of the tag "my_special_tag" of any of the parent
|
---|
45 | * ways of type a_parent_way
|
---|
46 | */
|
---|
47 | text: eval(parent_tag("my_special_tag"));
|
---|
48 | text-color: white;
|
---|
49 | font-size: 10;
|
---|
50 | }
|
---|