Changes between Version 47 and Version 48 of Styles/Lane_and_Road_Attributes
- Timestamp:
- 2014-10-01T16:14:40+02:00 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/Lane_and_Road_Attributes
v47 v48 63 63 #!style type="mapcss" 64 64 65 66 65 meta { 67 66 title: "Lane and road attributes"; … … 69 68 link: "http://josm.openstreetmap.de/wiki/Styles/Lane_and_Road_Attributes"; 70 69 author: "Martin Vonwald"; 71 version: "2. 6-[[revision]]_[[date]]";70 version: "2.7-[[revision]]_[[date]]"; 72 71 license: "CC-BY-SA"; 72 icon: "images/icon.png"; 73 73 min-josm-version: "7287"; 74 74 } … … 1588 1588 { 1589 1589 lane_min_width: 4; 1590 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?(( 1.25*tag(width))/prop(lanes_all)):4)));1590 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((prop(pixel_per_metre,"default")*tag(width))/prop(lanes_all)):(3*prop(pixel_per_metre,"default"))))); 1591 1591 change_allowed: list(6,9); 1592 1592 road_marking_width: 1; … … 1597 1597 { 1598 1598 lane_min_width: 8; 1599 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?(( 2.5*tag(width))/prop(lanes_all)):8)));1599 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((prop(pixel_per_metre,"default")*tag(width))/prop(lanes_all)):(3*prop(pixel_per_metre,"default"))))); 1600 1600 change_allowed: list(12,18); 1601 1601 road_marking_width: 2; … … 1606 1606 { 1607 1607 lane_min_width: 8; 1608 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?(( 5*tag(width))/prop(lanes_all)):16)));1608 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((prop(pixel_per_metre,"default")*tag(width))/prop(lanes_all)):(3*prop(pixel_per_metre,"default"))))); 1609 1609 change_allowed: list(24,36); 1610 1610 road_marking_width: 2; … … 1615 1615 { 1616 1616 lane_min_width: 8; 1617 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?(( 10*tag(width))/prop(lanes_all)):32)));1617 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((prop(pixel_per_metre,"default")*tag(width))/prop(lanes_all)):(3*prop(pixel_per_metre,"default"))))); 1618 1618 change_allowed: list(48,72); 1619 1619 road_marking_width: 2; … … 1624 1624 { 1625 1625 lane_min_width: 12; 1626 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?(( 20*tag(width))/prop(lanes_all)):64)));1626 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((prop(pixel_per_metre,"default")*tag(width))/prop(lanes_all)):(3*prop(pixel_per_metre,"default"))))); 1627 1627 change_allowed: list(96,144); 1628 1628 road_marking_width: 4; … … 1633 1633 { 1634 1634 lane_min_width: 20; 1635 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?(( 40*tag(width))/prop(lanes_all)):128)));1635 lane_default_width: eval(max(prop(lane_min_width),(has_tag_key(width)?((prop(pixel_per_metre,"default")*tag(width))/prop(lanes_all)):(3*prop(pixel_per_metre,"default"))))); 1636 1636 change_allowed: list(192,288); 1637 1637 road_marking_width: 6; … … 3120 3120 /***************************************************************************************************************************************************/ 3121 3121 /*-------------------------------------------------------------------------------------------------------------------------------------------------*/ 3122 /* Extra rendering for footways/cycleways if not already rendered */ 3123 /*-------------------------------------------------------------------------------------------------------------------------------------------------*/ 3124 /***************************************************************************************************************************************************/ 3125 way|z17-[!is_prop_set(ok, "default")][highway=footway], 3126 way|z17-[!is_prop_set(ok, "default")][highway=cycleway] 3127 { 3128 width: eval(2*prop(pixel_per_metre,"default")); 3129 linecap: none; 3130 opacity: eval(prop("style_lane_opacity","default")); 3131 right-casing-width: eval(max(1,0.15*prop(pixel_per_metre,"default"))); right-casing-color: gray; 3132 left-casing-width: eval(max(1,0.15*prop(pixel_per_metre,"default"))); left-casing-color: gray; 3133 casing-linecap: none; 3134 temp: 0; 3135 temp: eval(prop(temp)+(((tag("highway")="footway") || ((has_tag_key("foot")) && (tag("foot") ="designated")))?1:0)); 3136 temp: eval(prop(temp)+(((tag("highway")="cycleway") || ((has_tag_key("bicycle")) && (tag("bicycle")="designated")))?2:0)); 3137 color: eval(get(prop(style_sidewalk_color,"default"),prop(temp))); 3138 } 3139 3140 /***************************************************************************************************************************************************/ 3141 /*-------------------------------------------------------------------------------------------------------------------------------------------------*/ 3122 3142 /* Additional attributes/features */ 3123 3143 /*-------------------------------------------------------------------------------------------------------------------------------------------------*/ … … 3170 3190 symbol-fill-opacity: 0.05; 3171 3191 } 3172 3173 3192 3174 3193 /*-------------------------------------------------------------------------------------------------------------------------------------------------*/
