Changes between Version 8 and Version 9 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
Mar 27, 2011 10:09:20 PM (2 years ago)
Author:
Gubaer
Comment:

formatting

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v8 v9  
    266266=== Text & Font properties === 
    267267 
    268 ||=  '''Key''' =||= '''Description''' =||= '''Value Format''' =||= '''Default Value''' =|| 
    269 || {{{text}}}                    || how to find the label text; no label is displayed, unless this property is set  || > {{{auto}}} [[br]]derive the text automatically. The default name tags are: "{{{name:}}}"+''<LANG>'', "{{{name}}}", "{{{int_name}}}", "{{{ref}}}", "{{{operator}}}", "{{{brand}}}" and "{{{addr:housenumber}}}". [[br]]Configure a list of tag names in the preference "{{{mappaint.nameOrder}}}" in order to change this list.[[br]][[br]]> ''String'' [[br]]denotes the key of the tag whose value is used as text[[br]][[br]]''Expressions''[[br]]You can enter an expression to compute the text to be displayed. Examples:[[br]]{{{eval("this is a static text")}}} - renderes a static text[[br]]{{{eval(concat(tag("first"), "-", tag("second")))}}} - displays the concatenated tags "first" and "second" ||  -  || 
     268{{{#!th align=left valign=top 
     269'''Key''' 
     270}}} 
     271{{{#!th align=left valign=top 
     272'''Description''' 
     273}}} 
     274{{{#!th align=left valign=top 
     275'''Value Format''' 
     276}}} 
     277{{{#!th align=left valign=top 
     278'''Default Value''' 
     279}}} 
     280|------------------------------------------------------------------------------- 
     281{{{#!td align=left  valign=top 
     282{{{text}}}   
     283}}} 
     284{{{#!td align=left  valign=top 
     285How to find the label text. No label is displayed, unless this instruction is present. 
     286}}} 
     287{{{#!td align=left  valign=top 
     288* {{{auto}}} 
     289Derive the text automatically. The default name tags are: "{{{name:}}}"+''<LANG>'', "{{{name}}}", "{{{int_name}}}", "{{{ref}}}", "{{{operator}}}", "{{{brand}}}" and "{{{addr:housenumber}}}".  
     290[[br]]Configure a list of tag names in the preference "{{{mappaint.nameOrder}}}" in order to change this list.[[br]][[br]] 
     291* ''String''  
     292Denotes the key of the tag whose value is used as text. 
     293 
     294* ''Expressions''[[br]]You can enter an expression to compute the text to be displayed. Examples: 
     295  * {{{eval("this is a static text")}}} - renderes a static text 
     296  * {{{eval(concat(tag("first"), "-", tag("second")))}}} - displays the concatenated tags "first" and "second"  
     297}}} 
     298{{{#!td align=left  valign=top 
     299- 
     300}}} 
     301|------------------------------------------------------------------------------- 
    270302|| {{{text-color}}} || the text color || ''Color'' ||  {{{white}}} for lines and nodes, {{{#c0c0c0}}} for areas (JOSM "{{{text}}}" and "{{{areatext}}}" color preferences) || 
    271303|| {{{text-offset-x}}} || shift the text horizontally, (not supported for text along line) || ''Number'' ||  0  ||