Project

General

Profile

Actions

Feature #2589

closed

Color coding for map

Added by Renate Bornberg 5 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Category:
Maps
Target version:
Start date:
2025-07-28
Estimated time:

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'}

Actions #1

Updated by Alexander Watzinger 5 months ago

  • Status changed from New to Acknowledged
Actions #2

Updated by Alexander Watzinger 5 months ago

  • Category set to Maps
  • Target version set to 9.3.0

Thank you for the interesting idea at our meeting today. I put it on the agenda for the next developer meeting

Actions #3

Updated by Katharina Wünsche 3 months ago

  • Status changed from Acknowledged to Assigned
  • Assignee set to Katharina Wünsche
Actions #4

Updated by Alexander Watzinger about 1 month ago

  • Target version changed from 9.3.0 to 9.2.0
Actions #5

Updated by Alexander Watzinger about 1 month ago

  • Target version changed from 9.2.0 to 9.1.0
Actions #6

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.

Actions #7

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.

Actions #8

Updated by Alexander Watzinger about 1 month ago

  • Description updated (diff)
Actions

Also available in: Atom PDF