Uploaded image for project: 'GeoTools'
  1. GeoTools
  2. GEOT-5507

Add support for nested rules in CSS

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16-beta
    • Component/s: css
    • Labels:
      None

      Description

      Allow to nest rules in order to generate more compact, easier to read styles.

      E.g.:

      /* @title Values */
      [@scale < 3000] {
        transform: ras:RasterAsPointCollection();
        mark: symbol('circle');
        :mark {
          size: 2;
          fill: red;
        };
        label: [GRAY_INDEX];
        label-anchor: 0 0.5;
        label-offset: 5 0;
        font-family: Arial;
        font-fill: black;
        z-index: 1;
      }
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                aaime Andrea Aime [Administrator]
                Reporter:
                aaime Andrea Aime [Administrator]
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: