Changes between Version 185 and Version 186 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2020-08-03T23:21:23+02:00 (5 years ago)
Author:
taylor.smock
Comment:

Add color setting

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v185 v186  
    923923* `double` (since r15731, see #10435)
    924924* `string` (since r15731, see #10435)
     925* `color` (since r16843, see #10435)
    925926
    926927=== Settings of type `boolean` ===
     
    982983way {
    983984  text: tag(setting("textdisplay"));
     985}
     986}}}
     987
     988=== Settings of type `color` ===
     989
     990Create a setting of type `color`. The `default` color can be any color as understood under https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Propertyvaluesexplanations:
     991{{{
     992#!mapcss
     993setting::colordisplay {
     994  type: color;
     995  label: tr("key used for displaying");
     996  default: colorDisplayCustomPref#FF00FF;
     997}
     998}}}
     999
     1000Use a setting of type `color`:
     1001{{{
     1002#!mapcss
     1003way {
     1004  color: setting("colordisplay");
    9841005}
    9851006}}}