Changes between Version 13 and Version 14 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2011-04-11T13:48:59+02:00 (14 years ago)
Author:
bastiK
Comment:

typos & layout

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v13 v14  
    162162rule isn't applied.
    163163
    164 An '''attribute selector''' specifies a condition on a tag of an OSM object.
     164An '''attribute condition''' specifies a condition on a tag of an OSM object.
    165165
    166166[=#condition_selector_operators]
     
    188188node[name="My name"]                       /* use quotes for if value includes spaces or if case sensitive matching is important */
    189189node["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*/
     190node["ÖPVN"=tram]                          /* use quotes for tag keys with special characters */
     191                                           /*   note that these are not common in OSM at the moment */
    191192</pre>
    192193}}}
     
    229230|-------------------------------------------------------------------------------
    230231{{{#!td align=left  valign=top
    231 ^=
     232{{{^=}}}
    232233}}}
    233234{{{#!td align=left  valign=top   
     
    274275|-------------------------------------------------------------------------------
    275276{{{#!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   
     280List 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">
    288286*[vending~=stamps]                          /* the tag value for the tag 'vending' consists of a list of ;-separated values    */
    289287                                            /* 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">
    291303name[name=~/^My_pattern.*/]                 /* the value of the tag 'name' matches with the regular expression '^My_pattern.*' */
    292304                                            /* Note, that reqular expressions have to be enclosed in /.../                     */