Changes between Version 185 and Version 186 of Help/Styles/MapCSSImplementation
- Timestamp:
- 2020-08-03T23:21:23+02:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/MapCSSImplementation
v185 v186 923 923 * `double` (since r15731, see #10435) 924 924 * `string` (since r15731, see #10435) 925 * `color` (since r16843, see #10435) 925 926 926 927 === Settings of type `boolean` === … … 982 983 way { 983 984 text: tag(setting("textdisplay")); 985 } 986 }}} 987 988 === Settings of type `color` === 989 990 Create 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 993 setting::colordisplay { 994 type: color; 995 label: tr("key used for displaying"); 996 default: colorDisplayCustomPref#FF00FF; 997 } 998 }}} 999 1000 Use a setting of type `color`: 1001 {{{ 1002 #!mapcss 1003 way { 1004 color: setting("colordisplay"); 984 1005 } 985 1006 }}}