Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add options to customize the color, outline color and outline width for all color rules #39

Open
3 tasks
janbur opened this issue Aug 24, 2023 · 0 comments · May be fixed by tsdataclinic/GeoSight-OS#13
Assignees
Labels
🕓 3 - 4 hours It will take me between 2 hours to half a day. good first issue Good for newcomers

Comments

@janbur
Copy link
Collaborator

janbur commented Aug 24, 2023

Overview

Indicator layers can be styled using predefined color rules, which group different indicator data values (administrative boundaries that have similar values) and visualize them on the map using specific outline and fill color.

Example of the style config dialog:
image

Each color rule has the following attributes:

  • name - label that will be shown on a map legend
  • rule - either a number (single value or a range) or a text value(s)
  • color - fill color
  • outline color
  • outline width

Problem

When a new color rule is added a default fill and outline colors are applied. If the user wants to apply a nice color ramp, or change the outline color for all color rules - it must be done manually for each color rule.
image

Solution

To make styling easier, we can add options to customize the color, outline color and outline width for all color rules at once.

  • For color: we can show a dropdown with a list of color ramps - when selected - they will be "distributed" among current color rules (except no/other data). NOTE: color rules can be defined in the Django admin - see below
  • For outline color - just add a color picker that will overwrite the outline color for all color rules (including no/other data)
  • For outline width - just add a number box (with up/down icons) that will overwrite the outline width for all color rules (including no/other data)

image

Color palettes:
image
image

@janbur janbur added the good first issue Good for newcomers label Aug 24, 2023
@meomancer meomancer added the 🕓 3 - 4 hours It will take me between 2 hours to half a day. label Aug 25, 2023
@janbur janbur changed the title Add options to customize the color, outline color and outline width for all color rules [Feature Request] Add options to customize the color, outline color and outline width for all color rules Aug 25, 2023
@meomancer meomancer self-assigned this Jan 25, 2024
@indraneel indraneel linked a pull request Mar 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕓 3 - 4 hours It will take me between 2 hours to half a day. good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants