Changes between Initial Version and Version 1 of Styles/Building_Levels_Labels


Ignore:
Timestamp:
2019-05-19T15:45:59+02:00 (7 years ago)
Author:
Alexander-II
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Building_Levels_Labels

    v1 v1  
     1Idea: sowa1980\\
     2Coding: Alexander-II
     3
     4{{{
     5meta{
     6  title: "Building Levels Labels";
     7  author: "sowa1980, Alexander-II";
     8  version: "1.03_2019-05-19";
     9  description: "Explicitly shows such tags as roof:levels, building:levels, building:levels:underground, building:min_level in the center of building/building part.";
     10}
     11
     12meta[lang=ru] {
     13  title: "Отображение этажей зданий";
     14  description: "Выводит значение значение тегов roof:levels, building:levels, building:levels:underground, building:min_level в центре полигона здания/части";
     15}
     16
     17/* Building */
     18area[building][roof:levels]::t {
     19  text: eval(concat("roof:levels = ", tag("roof:levels")));
     20  text-color: #357c23;
     21  font-size: 10;
     22  text-offset-y: 45;
     23  text-position: center;
     24  text-halo-radius: 1.5;
     25  text-halo-color: white;
     26}
     27
     28area[building][building:levels]::tt {
     29  text: eval(concat("building:levels = ", tag("building:levels")));
     30  text-color: #357c23;
     31  font-size: 10;
     32  text-offset-y: 34;
     33  text-position: center;
     34  text-halo-radius: 1.5;
     35  text-halo-color: white;
     36}
     37
     38area[building][building:levels:underground]::ttt {
     39  text: eval(concat("building:levels:underground = ", tag("building:levels:underground")));
     40  text-color: #357c23;
     41  font-size: 10;
     42  text-offset-y: 23;
     43  text-position: center;
     44  text-halo-radius: 1.5;
     45  text-halo-color: white;
     46}
     47
     48area[building][building:min_level]::tttt {
     49  text: eval(concat("building:min_level = ", tag("building:min_level")));
     50  text-color: #357c23;
     51  font-size: 10;
     52  text-offset-y: 12;
     53  text-position: center;
     54  text-halo-radius: 1.5;
     55  text-halo-color: white;
     56}
     57
     58/* Building Part */
     59area[building:part][roof:levels]::t {
     60  text: eval(concat("roof:levels = ", tag("roof:levels")));
     61  text-color: #1d82df;
     62  font-size: 10;
     63  text-offset-y: -12;
     64  text-position: center;
     65  text-halo-radius: 1.5;
     66  text-halo-color: white;
     67}
     68
     69area[building:part][building:levels]::tt {
     70  text: eval(concat("building:levels = ", tag("building:levels")));
     71  text-color: #1d82df;
     72  font-size: 10;
     73  text-offset-y: -23;
     74  text-position: center;
     75  text-halo-radius: 1.5;
     76  text-halo-color: white;
     77}
     78
     79area[building:part][building:levels:underground]::ttt {
     80  text: eval(concat("building:levels:underground = ", tag("building:levels:underground")));
     81  text-color: #1d82df;
     82  font-size: 10;
     83  text-offset-y: -34;
     84  text-position: center;
     85  text-halo-radius: 1.5;
     86  text-halo-color: white;
     87}
     88
     89area[building:part][building:min_level]::tttt {
     90  text: eval(concat("building:min_level = ", tag("building:min_level")));
     91  text-color: #1d82df;
     92  font-size: 10;
     93  text-offset-y: -45;
     94  text-position: center;
     95  text-halo-radius: 1.5;
     96  text-halo-color: white;
     97}
     98
     99}}}