Changes between Version 153 and Version 154 of Help/Styles/MapCSSImplementation
- Timestamp:
- 2019-03-17T22:50:09+01:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/MapCSSImplementation
v153 v154 250 250 {{{ 251 251 #!mapcss 252 way[highway=residential] 253 node[name="My name"] /* use quotes for if value includes spaces or if case sensitive matching is important */ 254 node["MY_Special_TAG"="another value"] /* use quotes for tag names if case sensitive matching is required */ 255 node["ÖPVN"=tram] /* use quotes for tag keys with special characters */ 256 /* note that these are not common in OSM at the moment */ 252 way[highway=residential] /* is case sensitive, i.e. does NOT match e.g. highway=Residential or Highway=residential */ 253 node[name="My name"] /* use quotes if key or value includes spaces */ 254 node["name:ru"="Калининград"] /* use quotes if key or value includes special characters like colons or unicode characters */ 257 255 }}} 258 256 }}} … … 268 266 #!mapcss 269 267 way[highway!=residential] 270 node[name!="My name"] /* use quotes if value includes spaces or if case sensitive matching is important */ 271 node["MY_Special_TAG"!="another value"] /* use quotes for tag names if case sensitive matching is required */ 272 node["name:fr"!="mon nome"] /* use quotes for tag names with special characters like colons*/ 268 node[name!="My name"] 269 node["name:ru"!="Калининград"] 273 270 }}} 274 271 }}} … … 358 355 {{{ 359 356 #!mapcss 357 *[name =~ /^(?i)(parking)$/] /* matches parking, Parking, PARKING, PaRkInG,... */ 360 358 *[name =~ /^(?U)(\p{Lower})+$/] /* name consists of only lower case unicode characters */ 361 359 }}} … … 426 424 {{{ 427 425 #!mapcss 428 way[highway] /* matches any way with a tag 'highway' */ 429 way["VALSOU"] /* use quotes if case sensitive matching is required */ 430 way["name:fr"] /* use quotes if the tag name includes special caracters (white space, colons, etc.) */ 426 way[highway] /* matches any way with a tag 'highway' (is case sensitive) */ 427 way["name:fr"] /* use quotes if the tag name includes special caracters (white space, colons, unicode characters, etc.) */ 431 428 }}} 432 429 }}} … … 438 435 {{{ 439 436 #!mapcss 440 way[!highway] /* matches any way which does not have a tag 'highway' */ 441 way[!"VALSOU"] /* use quotes if case sensitive matching is required */ 442 way[!"name:fr"] /* use quotes if the tag name includes special caracters (white space, colons, etc.) */ 437 way[!highway] /* matches any way which does not have a tag 'highway' (is case sensitive) */ 438 way[!"name:fr"] /* use quotes if the tag name includes special caracters (white space, colons, unicode characters, etc.) */ 443 439 }}} 444 440 }}} … … 542 538 #!mapcss 543 539 relation >[role=residential] way 544 relation >[role="My name"] way /* use quotes for if the role value includes spaces or if case sensitive matching is important*/540 relation >[role="My name"] way /* use quotes if the role value includes spaces or other special characters */ 545 541 }}} 546 542 }}}