Changeset 8012 in josm
- Timestamp:
- 2015-02-05T21:27:10+01:00 (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/defaultpresets.xml
r8011 r8012 723 723 </item> <!-- Construction --> 724 724 <separator/> 725 <item name="Road Restrictions" icon="presets/restrictions.png" type="node,way " preset_name_label="true">725 <item name="Road Restrictions" icon="presets/restrictions.png" type="node,way,closedway" preset_name_label="true"> 726 726 <link href="http://wiki.openstreetmap.org/wiki/Key:access" 727 727 da.href="http://wiki.openstreetmap.org/wiki/Da:Key:access" -
trunk/styles/standard/elemstyles.mapcss
r8010 r8012 152 152 dashes: 2,2; 153 153 } 154 node[ access?!] {154 node[traffic_sign][access?!] { 155 155 icon-image: "vehicle/restriction/access.png"; 156 156 set icon_z17; 157 157 } 158 node[ access=permissive],159 node[ access=private],160 node[ access=destination] {158 node[traffic_sign][access=permissive], 159 node[traffic_sign][access=private], 160 node[traffic_sign][access=destination] { 161 161 icon-image: "misc/no_icon.png"; 162 162 set icon_z17; 163 163 text: auto; 164 164 } 165 node[ bicycle?!] {165 node[traffic_sign][bicycle?!] { 166 166 icon-image: "vehicle/restriction/bicycle.png"; 167 167 set icon_z17; 168 168 } 169 node[ bicycle=designated] {169 node[traffic_sign][bicycle=designated] { 170 170 icon-image: "vehicle/restriction/bicycle-designated.png"; 171 171 set icon_z17; 172 172 text: auto; 173 173 } 174 node[ foot?!] {174 node[traffic_sign][foot?!] { 175 175 icon-image: "vehicle/restriction/foot.png"; 176 176 set icon_z17; 177 177 } 178 node[ foot=designated] {178 node[traffic_sign][foot=designated] { 179 179 icon-image: "vehicle/restriction/foot-designated.png"; 180 180 set icon_z17; 181 181 text: auto; 182 182 } 183 node[ goods?!],184 node[ hgv?!] {183 node[traffic_sign][goods?!], 184 node[traffic_sign][hgv?!] { 185 185 icon-image: "vehicle/restriction/goods.png"; 186 186 set icon_z17; 187 187 } 188 node[ horse?!] {188 node[traffic_sign][horse?!] { 189 189 icon-image: "vehicle/restriction/horse.png"; 190 190 set icon_z17; 191 191 } 192 node[ horse=designated] {192 node[traffic_sign][horse=designated] { 193 193 icon-image: "vehicle/restriction/horse-designated.png"; 194 194 set icon_z17; 195 195 } 196 node[ motorcycle?!] {196 node[traffic_sign][motorcycle?!] { 197 197 icon-image: "vehicle/restriction/motorbike.png"; 198 198 set icon_z17; 199 199 } 200 node[ motorcar?!] {200 node[traffic_sign][motorcar?!] { 201 201 icon-image: "vehicle/restriction/motorcar.png"; 202 202 set icon_z17; 203 203 } 204 node[ psv?!] {204 node[traffic_sign][psv?!] { 205 205 icon-image: "vehicle/restriction/psv.png"; 206 206 set icon_z17; 207 207 } 208 node[ motorboat?!],209 node[ boat?!] {208 node[traffic_sign][motorboat?!], 209 node[traffic_sign][boat?!] { 210 210 icon-image: "misc/no_icon.png"; 211 211 set icon_z17; … … 215 215 set icon_z17; 216 216 } 217 node[ maxweight] {217 node[traffic_sign][maxweight] { 218 218 icon-image: "vehicle/restriction/maxweight.png"; 219 219 set icon_z17; 220 220 } 221 node[ maxheight] {221 node[traffic_sign][maxheight] { 222 222 icon-image: "vehicle/restriction/maxheight.png"; 223 223 set icon_z17; 224 224 } 225 node[ maxwidth] {225 node[traffic_sign][maxwidth] { 226 226 icon-image: "vehicle/restriction/maxwidth.png"; 227 227 set icon_z17; 228 228 } 229 node[ maxlength] {229 node[traffic_sign][maxlength] { 230 230 icon-image: "vehicle/restriction/maxlength.png"; 231 231 set icon_z17; 232 232 } 233 node[ minspeed] {233 node[traffic_sign][minspeed] { 234 234 icon-image: "vehicle/restriction/minspeed.png"; 235 235 set icon_z17; 236 236 } 237 node[ maxstay],238 node[t oll] {237 node[traffic_sign][maxstay], 238 node[traffic_sign][toll] { 239 239 icon-image: "misc/no_icon.png"; 240 240 set icon_z17; … … 4205 4205 /* maxspeed nodes */ 4206 4206 /******************/ 4207 node[ maxspeed=none][!is_prop_set(icon-image)] {4207 node[traffic_sign][maxspeed=none][!is_prop_set(icon-image)] { 4208 4208 icon-image: "vehicle/restriction/maxspeed_none.svg"; 4209 4209 set icon_z17; 4210 4210 } 4211 node[ maxspeed=~/^[0-9]+$/][!is_prop_set(icon-image)] {4211 node[traffic_sign][maxspeed=~/^[0-9]+$/][!is_prop_set(icon-image)] { 4212 4212 maxspeedprop: tag(maxspeed); 4213 4213 set maxspeedclass; 4214 4214 } 4215 node[ maxspeed=signals][!is_prop_set(icon-image)] {4215 node[traffic_sign][maxspeed=signals][!is_prop_set(icon-image)] { 4216 4216 maxspeedprop: " ?"; 4217 4217 set maxspeedclass; 4218 4218 } 4219 node[ maxspeed=~/^[0-9]+ mph/][!is_prop_set(icon-image)] {4219 node[traffic_sign][maxspeed=~/^[0-9]+ mph/][!is_prop_set(icon-image)] { 4220 4220 maxspeedprop: get(split(" mph",tag(maxspeed)),0); 4221 4221 set maxspeedclass; 4222 4222 } 4223 node[ maxspeed=~/[0-9]+ km\/h/][!is_prop_set(icon-image)] {4223 node[traffic_sign][maxspeed=~/[0-9]+ km\/h/][!is_prop_set(icon-image)] { 4224 4224 maxspeedprop: get(split(" km/h",tag(maxspeed)),0); 4225 4225 set maxspeedclass; 4226 4226 } 4227 node[ maxspeed=~/[0-9]+ knots/][!is_prop_set(icon-image)] {4227 node[traffic_sign][maxspeed=~/[0-9]+ knots/][!is_prop_set(icon-image)] { 4228 4228 maxspeedprop: get(split(" knots",tag(maxspeed)),0); 4229 4229 set maxspeedclass; … … 4236 4236 major-z-index: 4.2; 4237 4237 } 4238 node[ maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"]::core_maxnodebg,4239 node[ maxspeed=signals]::core_maxnodebg {4238 node[traffic_sign][maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"]::core_maxnodebg, 4239 node[traffic_sign][maxspeed=signals]::core_maxnodebg { 4240 4240 /* background (black) */ 4241 4241 symbol-fill-color: black; … … 4257 4257 major-z-index: 4.2; 4258 4258 } 4259 node[ maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"]::core_maxnodefg,4260 node[ maxspeed=signals]::core_maxnodefg {4259 node[traffic_sign][maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"]::core_maxnodefg, 4260 node[traffic_sign][maxspeed=signals]::core_maxnodefg { 4261 4261 /* foreground (white text) */ 4262 4262 text-color: white;
Note:
See TracChangeset
for help on using the changeset viewer.