Changes between Version 2 and Version 3 of Styles/Greenery


Ignore:
Timestamp:
2021-08-30T20:39:44+02:00 (3 years ago)
Author:
JeroenHoek
Comment:

Label for shrubbery:shape.

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Greenery

    v2 v3  
    1414meta {
    1515    title: "Greenery details";
    16     description: "Higlight various cultivated greenery features, like shrubbery.";
     16    description: "Highlight various cultivated greenery features, like shrubbery.";
    1717    icon: "greenery-icon.svg";
    1818    author: "Jeroen Hoek";
     
    2828  type: boolean;
    2929  label: tr("Show the height as text on the area");
     30  default: true;
     31}
     32
     33setting::show_shape_label {
     34  type: boolean;
     35  label: tr("Show the value of shrubbery:shape as text on the area");
    3036  default: true;
    3137}
     
    95101}
    96102
    97 area[natural=shrubbery][setting("show_height_label")] {
     103area|z19-[natural=shrubbery][setting("show_height_label")] {
    98104    text: height;
    99105    font-size: 10;
    100106    text-color: #5BE67A;
    101107    text-position: inside;
     108    text-offset-y: 6;
     109    text-halo-color: black;
     110    text-halo-radius: 3;
     111}
     112area|z19-[natural=shrubbery][setting("show_shape_label")]::ShapeLabel {
     113    text: "shrubbery:shape";
     114    font-size: 10;
     115    text-color: #5BE67A;
     116    text-position: inside;
     117    text-offset-y: -6;
     118    text-halo-color: black;
     119    text-halo-radius: 3;
    102120}
    103121
     
    108126    fill-image: concat(prop(density, default), ".png");   
    109127    fill-opacity: 1.0;
    110     fill-extent: ;
     128    fill-extent: 10000;
    111129}
    112130