Skip to content

New Display.FORCED enum and behavior - #1717

Merged
devemux86 merged 4 commits into
mapsforge:masterfrom
Sublimis:display-forced
Aug 3, 2025
Merged

devemux86 merged 4 commits into
mapsforge:masterfrom
Sublimis:display-forced

Conversation

@Sublimis

Copy link
Copy Markdown
Contributor
  • New Display.FORCED enum and behavior

Regarding #1586 (comment)

@devemux86

devemux86 commented Jul 25, 2025 •

Copy link
Copy Markdown
Collaborator

@Sublimis

Copy link
Copy Markdown
Contributor Author

Updated

@devemux86

Copy link
Copy Markdown
Collaborator

@Sublimis Thanks for working on this.

I made a quick test, changing the fuel and charging stations to forced.
While the stations are visible on zoom 13, they are not visible on zoom 11.

I don't know if this is related to the priorities in the theme or more work is needed?
Should we expect the forced to be visible on all zoom levels regardless of priority?

1
2

@Sublimis

Copy link
Copy Markdown
Contributor Author

I made a quick test, changing the fuel and charging stations to forced. While the stations are visible on zoom 13, they are not visible on zoom 11.

I don't know if this is related to the priorities in the theme or more work is needed? Should we expect the forced to be visible on all zoom levels regardless of priority?

There was an overridden method in PointTextContainer that was forgotten, now fixed, that might change the behavior in your test.

Not sure about zoom levels and priorities. It seems unrealistic that the icon would be visible at all zoom levels. Probably the reader just doesn't load the icon if the zoom-min doesn't match (so the icon never even gets to the element placing / collision detection algorithm).

@devemux86

Copy link
Copy Markdown
Collaborator

@Sublimis Thanks, this seems to work correctly now.

I meant the supported zoom levels by the element's rule, i.e. visible from zoom-min to zoom-max.

@devemux86

Copy link
Copy Markdown
Collaborator

@voldapet @menion Can you check this pull request?

@devemux86 devemux86 added this to the 0.26.0 milestone Aug 3, 2025
@devemux86
devemux86 merged commit 2d2e0ab into mapsforge:master Aug 3, 2025
@devemux86

Copy link
Copy Markdown
Collaborator

@Sublimis Thanks!

@menion

menion commented Aug 3, 2025

Copy link
Copy Markdown
Contributor

I'm sorry, we are in a little time pressure and this is currently on the second row. We will check it during August and let you know.
Thanks @Sublimis , appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants