Changes between Version 9 and Version 10 of Styles/Lane_and_Road_Attributes
- Timestamp:
- 2013-02-19T12:04:34+01:00 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/Lane_and_Road_Attributes
v9 v10 41 41 description: "Visualization of lanes, width, turn lanes, changing the lane, lighting and street lamps, sidewalk, cycletracks, bicycle lanes, bus lanes, psv lanes."; 42 42 author: "Martin Vonwald"; 43 version: "0.99-beta 6-[[revision]]_[[date]]";43 version: "0.99-beta7-[[revision]]_[[date]]"; 44 44 license: "CC-BY-SA"; 45 45 min-josm-version: "5714"; … … 777 777 /* Determine the width of the lanes, road markings and the inner lane width */ 778 778 /*-------------------------------------------------------------------------------------------------------------------------------------------------*/ 779 way|z1-16[is_prop_set(ok)]780 {781 lane_width: 1;782 }783 784 779 way|z17[is_prop_set(ok)] 785 780 { 786 lane_default_width: 4;787 781 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))); 790 783 change_allowed: 6,9; 791 784 change_forbidden: 0; … … 796 789 way|z18[is_prop_set(ok)] 797 790 { 798 lane_default_width: 8;799 791 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))); 802 793 change_allowed: 12,18; 803 794 change_forbidden: 0; … … 808 799 way|z19[is_prop_set(ok)] 809 800 { 810 lane_default_width: 16;811 801 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))); 814 803 change_allowed: 24,36; 815 804 change_forbidden: 0; … … 820 809 way|z20[is_prop_set(ok)] 821 810 { 822 lane_default_width: 32;823 811 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))); 826 813 change_allowed: 48,72; 827 814 change_forbidden: 0; … … 832 819 way|z21-[is_prop_set(ok)] 833 820 { 834 lane_default_width: 64;835 821 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))); 838 823 change_allowed: 96,144; 839 824 change_forbidden: 0; … … 844 829 way|z22-[is_prop_set(ok)] 845 830 { 846 lane_default_width: 128;847 831 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))); 850 833 change_allowed: 192,288; 851 834 change_forbidden: 0; … … 1351 1334 1352 1335 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); 1354 1337 left-casing-color: eval(get(prop(style_sidewalk_color,"default"),prop(templ))); 1355 1338 left-casing-opacity: prop(style_ground_opacity,"default"); 1356 1339 1357 1340 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); 1359 1342 right-casing-color: eval(get(prop(style_sidewalk_color,"default"),prop(tempr))); 1360 1343 right-casing-opacity: prop(style_ground_opacity,"default");
