Changes between Version 71 and Version 72 of Help/Styles/MapCSSImplementation
- Timestamp:
- 2014-09-30T19:19:15+02:00 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/MapCSSImplementation
v71 v72 763 763 There is also the {{{not}}} keyword (see the linked css doc for details). 764 764 This is implemented, but probably not very useful. Feel free to add documentation. 765 }}} 766 767 == Style settings == 768 769 [[Help/Dialog/MapPaint#Stylesettings|Styles settings]] are used to provide the user settings to customize a mappaint style. The user can use them in the MapPaint dialog. Style settings are availible since r7450. The internal style provides style settings since r7454. Note that there are plans to extend the implementation of style settings (currently there are only boolean values supported), so the mapcss syntax for style settings could change in the future (see #10435). 770 771 create a setting: 772 {{{ 773 #!mapcss 774 setting::highway_casing { 775 type: boolean; 776 label: tr("Draw highway casing"); 777 default: true; 778 } 779 }}} 780 use a setting: 781 {{{ 782 #!mapcss 783 way[highway][setting("highway_casing")] { 784 casing-width: 2; 785 casing-color: white; 786 } 765 787 }}} 766 788