Skip to content

Conversation

@hiddewie
Copy link
Owner

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.

Tested on http://localhost:8000/#view=18.5/45.5409841/11.5417528&style=signals:
Before:
image

After:
image

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 merged commit 7138704 into master Nov 16, 2025
12 checks passed
@hiddewie hiddewie deleted the icon-height-position branch November 16, 2025 17:28
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