Feature #2589
closedColor coding for map
Description
Would be nice to have colour coding associated with specific status of a particular type in the map.
Update
We implemented that entities with specific types can be displayed with different colors on the map.
The default configuration is in config/default.py, can be overridden in instance/production.py and looks like this:
MAP_TYPE_COLOR = {
'default': '#007bd9',
'123': '#333333'}
Updated by Alexander Watzinger 5 months ago
- Status changed from New to Acknowledged
Updated by Katharina Wünsche 3 months ago
- Status changed from Acknowledged to Assigned
- Assignee set to Katharina Wünsche
Updated by Alexander Watzinger about 1 month ago
- Target version changed from 9.3.0 to 9.2.0
Updated by Alexander Watzinger about 1 month ago
- Target version changed from 9.2.0 to 9.1.0
Updated by Alexander Watzinger about 1 month ago
- Status changed from Assigned to In Progress
- Assignee changed from Katharina Wünsche to Alexander Watzinger
Katharina kindly implement a first version:
A type_id and color_code dictionary was added to config/default.py and can be overwritten in instance/production.py, e.g.
MAP_TYPEID_COLOR = {
"default": "#007bd9",
"123": "#007bd9"}
At the map the first value corresponding to a type_id found will replace the default value.
Updated by Alexander Watzinger about 1 month ago
- Subject changed from Colour coding for map to Color coding for map
- Status changed from In Progress to Closed
- Target version changed from 9.1.0 to 9.0.0
I tested it again and added a regex check for color codes.
I also made an exception and merged this feature into the develop branch (git cherry-pick) so that we can try it out at the Welterbe instance.