Changes between Version 163 and Version 164 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2019-08-07T21:57:42+02:00 (6 years ago)
Author:
Don-vip
Comment:

r15289

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v163 v164  
    938938}
    939939}}}
     940
     941=== Grouping settings ===
     942
     943Similar settings can be grouped together by defining ''settings groups'' (since r15289):
     944
     945{{{
     946#!mapcss
     947settings::my_group {
     948  label: tr("my wonderful group");
     949  icon: "my_beautiful_icon";
     950}
     951}}}
     952
     953Label is mandatory, icon is optional.
     954
     955Once a setting group is defined, it can be referenced from all settings belonging to it:
     956
     957{{{
     958#!mapcss
     959setting::hide_icons {
     960  type: boolean;
     961  label: tr("Hide icons at low zoom");
     962  default: true;
     963  group: "my_group";
     964}
     965}}}
     966
     967Settings groups are displayed as sub-menus from the style settings menu. If at least two settings belong to a group, a special "Toggle all settings" menu item allows to quickly switch on/off all settings from this group at once.
    940968
    941969== Properties ==