districtr / districtr-v2

A free, open-source web app for drawing districting plans. Reboot of districtr.
MIT License
1 stars 1 forks source link

Add option to highlight un-assigned areas #169

Closed nofurtherinformation closed 1 week ago

nofurtherinformation commented 1 week ago

Highlight areas that have not yet been assigned to a zone. Style should be something like:

...
'line-color': [
        'case',
        ['boolean', ['feature-state', 'focused'], false],
        '#000000', // Black color when focused
        ['boolean', ['feature-state', 'highlighted'], false],
        '#e5ff00', // yellow color when highlighted
        ['==', ['feature-state', 'zone'], null],
        '#e5ff00', // yellow color when zone is not assigned
        '#000000', // Default color
      ],
      'line-width': [
        'case',
        ['boolean', ['feature-state', 'focused'], false],
        5, // Width of 5 when focused
        ['boolean', ['feature-state', 'highlighted'], false],
        5, // Width of 5 when highlighted
        ['==', ['feature-state', 'zone'], null],
        5,
        0, // Default width
      ],
...
nofurtherinformation commented 1 week ago

Resolved in #173