Changes between Version 16 and Version 17 of Styles/Surface
- Timestamp:
- 2011-03-17T02:55:28+01:00 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/Surface
v16 v17 1 1 This style visualizes the surface and smoothness tags on highways. Currently it does the following: 2 3 - Up to zoom level 10 you may use this as a data detector (it visualizes smoothness/surface coverage). 4 - gray -> surface is present (dropped in 11 and above) 5 - green -> smoothness is present (dropped in 11 and above) 6 - white -> both surface and smoothness are present (also shown in zoom level 11, nice transition to the rest) 2 7 3 8 - The line color primarily codes the smoothness tag, however some line coloring is done on ways according to surface, if smoothness is untagged. … … 102 107 fill-color: magenta; 103 108 fill-opacity: 0.02; 104 z-index: -0.8;109 z-index: 0.2; 105 110 } 106 111 … … 118 123 119 124 120 way[highway][!area] 125 way|z11-[highway][!area] 126 { 127 color: #909090; 128 opacity: 1.0; 129 z-index: 0.9; 130 } 131 132 way|z-10[highway][surface] 121 133 { 122 134 color: #909090; … … 125 137 } 126 138 127 128 129 130 way[highway][smoothness] 139 way|z-10[highway][smoothness] 140 { 141 color: #90F090; 142 opacity: 1.0; 143 z-index: 1.0; 144 } 145 146 way|z-11[highway][smoothness][surface] 147 { 148 color: white; 149 opacity: 1.0; 150 z-index: 1.0; 151 } 152 153 154 155 156 way|z14-[highway][smoothness][surface] 157 { 158 color: #909090; 159 } 160 161 way|z12-[highway][smoothness] 131 162 { 132 163 width: 1.5; … … 134 165 } 135 166 136 way|z14-[highway][smoothness][surface] 137 { 138 color: #909090; 139 } 140 141 way[highway][smoothness=impassable] 167 way|z12-[highway][smoothness=impassable] 142 168 { 143 169 color: eval(rgb((7*0.142*(1-red(prop(color)))) + red(prop(color)), (1*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color)))); … … 145 171 } 146 172 147 way[highway][smoothness=very_horrible] 173 way|z12-[highway][smoothness=very_horrible] 148 174 { 149 175 color: eval(rgb((6*0.142*(1-red(prop(color)))) + red(prop(color)), (2*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color)))); … … 151 177 } 152 178 153 way[highway][smoothness=horrible] 179 way|z12-[highway][smoothness=horrible] 154 180 { 155 181 color: eval(rgb((5*0.142*(1-red(prop(color)))) + red(prop(color)), (3*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color)))); … … 157 183 } 158 184 159 way[highway][smoothness=very_bad] 185 way|z12-[highway][smoothness=very_bad] 160 186 { 161 187 color: eval(rgb((4*0.142*(1-red(prop(color)))) + red(prop(color)), (4*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color)))); … … 163 189 } 164 190 165 way[highway][smoothness=bad] 191 way|z12-[highway][smoothness=bad] 166 192 { 167 193 color: eval(rgb((3*0.142*(1-red(prop(color)))) + red(prop(color)), (5*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color)))); … … 169 195 } 170 196 171 way[highway][smoothness=intermediate] 197 way|z12-[highway][smoothness=intermediate] 172 198 { 173 199 color: eval(rgb((2*0.142*(1-red(prop(color)))) + red(prop(color)), (6*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color)))); … … 175 201 } 176 202 177 way[highway][smoothness=good] 203 way|z12-[highway][smoothness=good] 178 204 { 179 205 color: eval(rgb((1*0.142*(1-red(prop(color)))) + red(prop(color)), (7*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color)))); 180 206 } 181 207 182 way[highway][smoothness=excellent] 208 way|z12-[highway][smoothness=excellent] 183 209 { 184 210 color: white;
