Changeset 16938 in josm


Ignore:
Timestamp:
2020-08-26T22:05:33+02:00 (4 weeks ago)
Author:
Klumbumbus
Message:
  • fix #19714 - Add rendering of right side of barrier=city_wall
  • Add two_sided=yes checkbox to barrier=city_wall preset
  • Fix unpredictable rendering of patterns
Location:
trunk/resources
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/defaultpresets.xml

    r16930 r16938  
    16331633            <key key="barrier" value="city_wall" />
    16341634            <reference ref="optional_height" />
     1635            <check key="two_sided" text="Two-sided" disable_off="true" />
    16351636            <combo key="material" text="Material" values="adobe,brick,concrete,glass,masonry,metal,plastic,reinforced_concrete,steel,stone,wood" />
    16361637        </item> <!-- City Wall -->
  • trunk/resources/styles/standard/elemstyles.mapcss

    r16930 r16938  
    415415    fill-color: barrier#F0F050;
    416416}
     417way[barrier=city_wall][two_sided!=yes] {
     418    repeat-image: "presets/barrier/barrier_pattern.svg";
     419    repeat-image-align: top;
     420    repeat-image-offset: 0.5;
     421}
    417422way[barrier=kerb] {
    418423    repeat-image: "presets/barrier/kerb_pattern.svg";
    419424    repeat-image-align: top;
     425    repeat-image-offset: 0.5;
    420426}
    421427way[barrier=retaining_wall] {
    422428    repeat-image: "presets/misc/cliff_pattern.svg";
    423429    repeat-image-align: top;
     430    repeat-image-offset: 0.5;
    424431}
    425432node[barrier=hedge],
     
    46604667    repeat-image: "presets/misc/cliff_pattern.svg";
    46614668    repeat-image-align: top;
     4669    repeat-image-offset: 0.5;
    46624670    width: 1;
    46634671    color: #b2b2b2;
Note: See TracChangeset for help on using the changeset viewer.