Changes between Version 9 and Version 10 of Styles/Lane_and_Road_Attributes


Ignore:
Timestamp:
2013-02-19T12:04:34+01:00 (13 years ago)
Author:
imagic
Comment:

The tag width was not considered properly (width:lanes was)

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Lane_and_Road_Attributes

    v9 v10  
    4141    description: "Visualization of lanes, width, turn lanes, changing the lane, lighting and street lamps, sidewalk, cycletracks, bicycle lanes, bus lanes, psv lanes.";
    4242    author: "Martin Vonwald";
    43     version: "0.99-beta6-[[revision]]_[[date]]";
     43    version: "0.99-beta7-[[revision]]_[[date]]";
    4444    license: "CC-BY-SA";
    4545    min-josm-version: "5714";
     
    777777/* Determine the width of the lanes, road markings and the inner lane width                                                                        */
    778778/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
    779 way|z1-16[is_prop_set(ok)]
    780 {
    781     lane_width: 1;
    782 }
    783 
    784779way|z17[is_prop_set(ok)]
    785780{
    786     lane_default_width: 4;
    787781    lane_min_width: 4;
    788 
    789     lane_width: eval(max(4,(has_tag_key(width)?((1.25*tag(width))/prop(lanes_all)):4)));
     782    lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((1.25*tag(width))/prop(lanes_all)):4)));
    790783    change_allowed: 6,9;
    791784    change_forbidden: 0;
     
    796789way|z18[is_prop_set(ok)]
    797790{
    798     lane_default_width: 8;
    799791    lane_min_width: 8;
    800 
    801     lane_width: eval(max(8,(has_tag_key(width)?((2.5*tag(width))/prop(lanes_all)):8)));
     792    lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((2.5*tag(width))/prop(lanes_all)):8)));
    802793    change_allowed: 12,18;
    803794    change_forbidden: 0;
     
    808799way|z19[is_prop_set(ok)]
    809800{
    810     lane_default_width: 16;
    811801    lane_min_width: 8;
    812 
    813     lane_width: eval(max(8,(has_tag_key(width)?((5*tag(width))/prop(lanes_all)):16)));
     802    lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((5*tag(width))/prop(lanes_all)):16)));
    814803    change_allowed: 24,36;
    815804    change_forbidden: 0;
     
    820809way|z20[is_prop_set(ok)]
    821810{
    822     lane_default_width: 32;
    823811    lane_min_width: 8;
    824 
    825     lane_width: eval(max(8,(has_tag_key(width)?((10*tag(width))/prop(lanes_all)):32)));
     812    lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((10*tag(width))/prop(lanes_all)):32)));
    826813    change_allowed: 48,72;
    827814    change_forbidden: 0;
     
    832819way|z21-[is_prop_set(ok)]
    833820{
    834     lane_default_width: 64;
    835821    lane_min_width: 12;
    836 
    837     lane_width: eval(max(12,(has_tag_key(width)?((20*tag(width))/prop(lanes_all)):64)));
     822    lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((20*tag(width))/prop(lanes_all)):64)));
    838823    change_allowed: 96,144;
    839824    change_forbidden: 0;
     
    844829way|z22-[is_prop_set(ok)]
    845830{
    846     lane_default_width: 128;
    847831    lane_min_width: 20;
    848 
    849     lane_width: eval(max(20,(has_tag_key(width)?((40*tag(width))/prop(lanes_all)):128)));
     832    lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((40*tag(width))/prop(lanes_all)):128)));
    850833    change_allowed: 192,288;
    851834    change_forbidden: 0;
     
    13511334
    13521335    left-casing-linecap: none;
    1353     left-casing-width: eval((prop(templ)>0)?(prop(lane_width,"default")/2):0);
     1336    left-casing-width: eval((prop(templ)>0)?(prop(lane_default_width,"default")/2):0);
    13541337    left-casing-color:  eval(get(prop(style_sidewalk_color,"default"),prop(templ)));
    13551338    left-casing-opacity: prop(style_ground_opacity,"default");
    13561339
    13571340    right-casing-linecap: none;
    1358     right-casing-width: eval((prop(tempr)>0)?(prop(lane_width,"default")/2):0);
     1341    right-casing-width: eval((prop(tempr)>0)?(prop(lane_default_width,"default")/2):0);
    13591342    right-casing-color:  eval(get(prop(style_sidewalk_color,"default"),prop(tempr)));
    13601343    right-casing-opacity: prop(style_ground_opacity,"default");