Changeset 9566 in josm
- Timestamp:
- 2016-01-22T20:06:35+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/styles/standard/elemstyles.mapcss
r9550 r9566 953 953 /*****************/ 954 954 955 /* prepare lane */ 955 956 way[oneway?][cycleway=lane]:righthandtraffic::core_cycleway, 956 957 way[oneway=-1][cycleway=opposite_lane]:righthandtraffic::core_cycleway { 957 set l R;958 set laneRight; 958 959 set righthandtr; 959 960 } 960 961 way[oneway?][cycleway=opposite_lane]:righthandtraffic::core_cycleway, 961 962 way[oneway=-1][cycleway=lane]:righthandtraffic::core_cycleway { 962 set l L;963 set laneLeft; 963 964 set righthandtr; 964 965 } 965 966 way[oneway?][cycleway=lane]!.righthandtr::core_cycleway, 966 967 way[oneway=-1][cycleway=opposite_lane]!.righthandtr::core_cycleway { 967 set l L;968 set laneLeft; 968 969 } 969 970 way[oneway?][cycleway=opposite_lane]!.righthandtr::core_cycleway, 970 971 way[oneway=-1][cycleway=lane]!.righthandtr::core_cycleway { 971 set l R;972 set laneRight; 972 973 } 973 974 way[cycleway:left=lane]::core_cycleway { 974 set l L;975 set laneLeft; 975 976 } 976 977 way[cycleway:right=lane]::core_cycleway { 977 set l R;978 set laneRight; 978 979 } 979 980 way[oneway=no][cycleway=lane]::core_cycleway, 980 981 way[!oneway][cycleway=lane]::core_cycleway { 981 set lL; 982 set lR; 983 } 984 982 set laneLeft; 983 set laneRight; 984 } 985 986 /* prepare shared_lane */ 987 way[oneway?][cycleway=shared_lane]:righthandtraffic::core_cycleway { 988 set shared_laneRight; 989 set righthandtr; 990 } 991 way[oneway=-1][cycleway=shared_lane]:righthandtraffic::core_cycleway { 992 set shared_laneLeft; 993 set righthandtr; 994 } 995 way[oneway?][cycleway=shared_lane]!.righthandtr::core_cycleway { 996 set shared_laneLeft; 997 } 998 way[oneway=-1][cycleway=shared_lane]!.righthandtr::core_cycleway { 999 set shared_laneRight; 1000 } 1001 way[cycleway:left=shared_lane]::core_cycleway { 1002 set shared_laneLeft; 1003 } 1004 way[cycleway:right=shared_lane]::core_cycleway { 1005 set shared_laneRight; 1006 } 1007 way[oneway=no][cycleway=shared_lane]::core_cycleway, 1008 way[!oneway][cycleway=shared_lane]::core_cycleway { 1009 set shared_laneLeft; 1010 set shared_laneRight; 1011 } 1012 1013 /* prepare track */ 985 1014 way[oneway?][cycleway=track]:righthandtraffic::core_cycleway, 986 1015 way[oneway=-1][cycleway=opposite_track]:righthandtraffic::core_cycleway { 987 set t R;1016 set trackRight; 988 1017 set righthandtr; 989 1018 } 990 1019 way[oneway?][cycleway=opposite_track]:righthandtraffic::core_cycleway, 991 1020 way[oneway=-1][cycleway=track]:righthandtraffic::core_cycleway { 992 set t L;1021 set trackLeft; 993 1022 set righthandtr; 994 1023 } 995 1024 way[oneway?][cycleway=track]!.righthandtr::core_cycleway, 996 1025 way[oneway=-1][cycleway=opposite_track]!.righthandtr::core_cycleway { 997 set t L;1026 set trackLeft; 998 1027 } 999 1028 way[oneway?][cycleway=opposite_track]!.righthandtr::core_cycleway, 1000 1029 way[oneway=-1][cycleway=track]!.righthandtr::core_cycleway { 1001 set t R;1030 set trackRight; 1002 1031 } 1003 1032 way[cycleway:left=track]::core_cycleway { 1004 set t L;1033 set trackLeft; 1005 1034 } 1006 1035 way[cycleway:right=track]::core_cycleway { 1007 set t R;1036 set trackRight; 1008 1037 } 1009 1038 way[oneway=no][cycleway=track]::core_cycleway, 1010 1039 way[!oneway][cycleway=track]::core_cycleway { 1011 set tL; 1012 set tR; 1013 } 1014 1015 way.lR::core_cycleway { 1040 set trackLeft; 1041 set trackRight; 1042 } 1043 1044 /* render lane */ 1045 way.laneRight::core_cycleway { 1016 1046 width: 2; 1017 1047 color: bicycle#b100ff; … … 1021 1051 modifier: true; 1022 1052 } 1023 way[prop("l L","core_cycleway")]::core_cycleway2 {1053 way[prop("laneLeft","core_cycleway")]::core_cycleway2 { 1024 1054 width: 2; 1025 1055 color: bicycle#b100ff; … … 1029 1059 modifier: true; 1030 1060 } 1031 way.tR::core_cycleway { 1061 /* render shared_lane */ 1062 way.shared_laneRight::core_cycleway { 1063 width: 2; 1064 color: bicycle#b100ff; 1065 dashes: 6, 3; 1066 offset: 0 - (prop("width", "default") / 2) - 2; 1067 major-z-index: 2.1; 1068 modifier: true; 1069 } 1070 way[prop("shared_laneLeft","core_cycleway")]::core_cycleway2 { 1071 width: 2; 1072 color: bicycle#b100ff; 1073 dashes: 6, 3; 1074 offset: (prop("width", "default") / 2) + 2; 1075 major-z-index: 2.1; 1076 modifier: true; 1077 } 1078 /* render track */ 1079 way.trackRight::core_cycleway { 1032 1080 width: 2; 1033 1081 color: bicycle#b100ff; … … 1037 1085 modifier: true; 1038 1086 } 1039 way[prop("t L","core_cycleway")]::core_cycleway2 {1087 way[prop("trackLeft","core_cycleway")]::core_cycleway2 { 1040 1088 width: 2; 1041 1089 color: bicycle#b100ff; … … 1045 1093 modifier: true; 1046 1094 } 1047 1095 /* render opposite */ 1048 1096 way[cycleway=opposite]::core_cycleway { 1049 1097 object-z-index: 1;
Note:
See TracChangeset
for help on using the changeset viewer.