Changes between Version 171 and Version 172 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2020-03-15T19:35:20+01:00 (5 years ago)
Author:
Klumbumbus
Comment:

+example Settings of type string

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v171 v172  
    967967=== Settings of type `string` ===
    968968
    969 Similar to `double`.
    970 TBD: add an useful example.
     969Create a setting of type `string`:
     970{{{
     971#!mapcss
     972setting::textdisplay {
     973  type: string;
     974  label: tr("key used for displaying");
     975  default: "name"; /* examples for usage: alt_name, old_name, addr:housename, ref, operator, ... */
     976}
     977}}}
     978
     979Use a setting of type `string`:
     980{{{
     981#!mapcss
     982way {
     983  text: tag(setting("textdisplay"));
     984}
     985}}}
    971986
    972987=== Grouping settings ===