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


Ignore:
Timestamp:
2011-03-27T21:50:21+02:00 (14 years ago)
Author:
Gubaer
Comment:

updated documentation for text:

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v7 v8  
    264264
    265265
    266 
    267 
    268 
    269 
    270 
    271 
    272 
    273 
    274 
    275 
    276 
    277 
    278 
    279 
    280 
    281266=== Text & Font properties ===
    282267
    283268||=  '''Key''' =||= '''Description''' =||= '''Value Format''' =||= '''Default Value''' =||
    284 || {{{text}}}                    || how to find the label text; no label is displayed, unless this property is set  || > {{{auto}}} [[br]]derive the text automatically. At time of writing, the following tags are searched and the first one that is found will be used: "{{{name:}}}"+''<LANG>'', "{{{name}}}", "{{{int_name}}}", "{{{ref}}}", "{{{operator}}}", "{{{brand}}}" and "{{{addr:housenumber}}}"[[br]][[br]]> ''String'' [[br]]use as key to look up the 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" ||  -  ||
    285270|| {{{text-color}}} || the text color || ''Color'' ||  {{{white}}} for lines and nodes, {{{#c0c0c0}}} for areas (JOSM "{{{text}}}" and "{{{areatext}}}" color preferences) ||
    286271|| {{{text-offset-x}}} || shift the text horizontally, (not supported for text along line) || ''Number'' ||  0  ||