Changes between Version 13 and Version 14 of Help/Styles/MapCSSImplementation
- Timestamp:
- 2011-04-11T13:48:59+02:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/MapCSSImplementation
v13 v14 162 162 rule isn't applied. 163 163 164 An '''attribute selector''' specifies a condition on a tag of an OSM object.164 An '''attribute condition''' specifies a condition on a tag of an OSM object. 165 165 166 166 [=#condition_selector_operators] … … 188 188 node[name="My name"] /* use quotes for if value includes spaces or if case sensitive matching is important */ 189 189 node["MY_Special_TAG"="another value"] /* use quotes for tag names if case sensitive matching is required */ 190 node["name:fr"="mon nome"] /* use quotes for tag names with special characters like colons*/ 190 node["ÖPVN"=tram] /* use quotes for tag keys with special characters */ 191 /* note that these are not common in OSM at the moment */ 191 192 </pre> 192 193 }}} … … 229 230 |------------------------------------------------------------------------------- 230 231 {{{#!td align=left valign=top 231 ^= 232 {{{^=}}} 232 233 }}} 233 234 {{{#!td align=left valign=top … … 274 275 |------------------------------------------------------------------------------- 275 276 {{{#!td align=left valign=top 276 =~ 277 }}} 278 {{{#!td align=left valign=top 279 * List membership 280 * [http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#sum Regular expression] match 281 282 }}} 283 {{{#!td align=left valign=top 284 {{{ 285 #!html 286 <pre class="mapcss" style="text-align: left; font: Courier; font-size: 10pt; background:rgb(242,243,210); border-style: dotted; border-width:1pt; border-color:darkGray; padding: 5pt"> 287 277 ~= 278 }}} 279 {{{#!td align=left valign=top 280 List membership 281 }}} 282 {{{#!td align=left valign=top 283 {{{ 284 #!html 285 <pre class="mapcss" style="text-align: left; font: Courier; font-size: 10pt; background:rgb(242,243,210); border-style: dotted; border-width:1pt; border-color:darkGray; padding: 5pt"> 288 286 *[vending~=stamps] /* the tag value for the tag 'vending' consists of a list of ;-separated values */ 289 287 /* and one of these values is 'stamps' */ 290 288 </pre> 289 }}} 290 }}} 291 |------------------------------------------------------------------------------- 292 {{{#!td align=left valign=top 293 =~ 294 }}} 295 {{{#!td align=left valign=top 296 [http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#sum Regular expression] match 297 298 }}} 299 {{{#!td align=left valign=top 300 {{{ 301 #!html 302 <pre class="mapcss" style="text-align: left; font: Courier; font-size: 10pt; background:rgb(242,243,210); border-style: dotted; border-width:1pt; border-color:darkGray; padding: 5pt"> 291 303 name[name=~/^My_pattern.*/] /* the value of the tag 'name' matches with the regular expression '^My_pattern.*' */ 292 304 /* Note, that reqular expressions have to be enclosed in /.../ */