wiki:Styles/Building_Levels_Labels

Legend

Sowa1980 came up with an idea to show explicitly levels tags while editing building. Showing them allow to see in a convenient way which tags are not set without selecting individual objects.

  • Greenish colour is for building related tags.
  • Blueish colour is for building part related tags.

Credits

Idea: Sowa1980
Coding: Alexander-II

Screenshot

https://josm.openstreetmap.de/raw-attachment/wiki/Styles/Building_Levels_Labels/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202019-05-19%20%D0%B2%2016.55.16.png

meta {
  title: "Building Levels Labels";
  author: "Sowa1980, Alexander-II";
  version: "1.8_2019-05-30";
  description: "Explicitly shows such tags as roof:levels, building:levels, building:levels:underground, building:min_level in the center of building/building part.";
}

meta[lang=ru] {
  title: "Отображение этажей зданий";
  description: "Выводит значение тегов roof:levels, building:levels, building:levels:underground, building:min_level в центре полигона здания/части";
}

/* Building */
area[building][roof:levels]::t {
  text: eval(concat("roof:levels = ", tag("roof:levels")));
  text-color: #357c23;
  font-size: 10;
  text-offset-y: 45;
  text-position: center;
  text-halo-radius: 1.5;
  text-halo-color: white;
}

area[building][building:levels]::tt {
  text: eval(concat("building:levels = ", tag("building:levels")));
  text-color: #357c23;
  font-size: 10;
  text-offset-y: 34;
  text-position: center;
  text-halo-radius: 1.5;
  text-halo-color: white;
}

area[building][building:levels:underground]::ttt {
  text: eval(concat("building:levels:underground = ", tag("building:levels:underground")));
  text-color: #357c23;
  font-size: 10;
  text-offset-y: 23;
  text-position: center;
  text-halo-radius: 1.5;
  text-halo-color: white;
}

area[building][building:min_level]::tttt {
  text: eval(concat("building:min_level = ", tag("building:min_level")));
  text-color: #357c23;
  font-size: 10;
  text-offset-y: 12;
  text-position: center;
  text-halo-radius: 1.5;
  text-halo-color: white;
}

/* Building Part */
area[building:part][roof:levels]::t {
  text: eval(concat("roof:levels = ", tag("roof:levels")));
  text-color: #1d82df;
  font-size: 10;
  text-offset-y: -12;
  text-position: center;
  text-halo-radius: 1.5;
  text-halo-color: white;
}

area[building:part][building:levels]::tt {
  text: eval(concat("building:levels = ", tag("building:levels")));
  text-color: #1d82df;
  font-size: 10;
  text-offset-y: -23;
  text-position: center;
  text-halo-radius: 1.5;
  text-halo-color: white;
}

area[building:part][building:levels:underground]::ttt {
  text: eval(concat("building:levels:underground = ", tag("building:levels:underground")));
  text-color: #1d82df;
  font-size: 10;
  text-offset-y: -34;
  text-position: center;
  text-halo-radius: 1.5;
  text-halo-color: white;
}

area[building:part][building:min_level]::tttt {
  text: eval(concat("building:min_level = ", tag("building:min_level")));
  text-color: #1d82df;
  font-size: 10;
  text-offset-y: -45;
  text-position: center;
  text-halo-radius: 1.5;
  text-halo-color: white;
}

Styles_Building_Levels_Labels-style.mapcss, Styles_Building_Levels_Labels.zip

Last modified 5 months ago Last modified on 2019-05-30T18:05:43+02:00

Attachments (1)

Download all attachments as: .zip