Skip to content

Conversation

@hiddewie
Copy link
Owner

@hiddewie hiddewie commented Nov 9, 2025

Application of #657 for simplifying the IT icons.

Related to #639

cc @MatCr90 this PR simplifies the icon setup for the IT main/combined/distant signals.

(http://localhost:8000/#view=16.99/45.666447/11.936039&style=signals):
image

(http://localhost:8000/#view=16.62/45.541332/11.539128&style=signals):
image

(http://localhost:8000/#view=18.96/45.5404914/11.5740117&style=signals):
image

TODO:

  • example icons for preset/taginfo

@hiddewie hiddewie changed the title Test merging IT features with multiple icons Simplify IT main/combined/distant icons with composed icons Nov 16, 2025
Followup on #657

Features with multiple icons did not output their icon height correctly for non-center-positioned icons.

Now the feature icon height is calculated as
```
max(max(centered) + sum(top_bottom), left_right)
```
with centered the height of centered icons, `top_bottom` the height of the top/bottom positioned icons, and `left_right` the left/right positioned icons.

Before

After
@hiddewie hiddewie marked this pull request as ready for review November 16, 2025 17:06
@hiddewie hiddewie merged commit d00e807 into master Nov 20, 2025
12 checks passed
@hiddewie hiddewie deleted the test-it-icons branch November 20, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants