Skip to content

Conversation

@dl3sdo
Copy link
Member

@dl3sdo dl3sdo commented May 21, 2021

Pull request adds the possibility to hide/show map parts.

@dl3sdo dl3sdo changed the title Closes #1959 Show/Hide map parts May 21, 2021
@dg0yt
Copy link
Member

dg0yt commented May 21, 2021

Let's have a call later tonight.

@dg0yt
Copy link
Member

dg0yt commented May 24, 2021

Apart from other issues, the original approach broke the rendering of symbol icons. This, and the addition of a new attribute in all files, were breaking the tests after the first commit.

@mpickering
Copy link
Contributor

What's the status on this PR? It would be a nice feature to be merged.

@dg0yt
Copy link
Member

dg0yt commented Dec 21, 2021

What's the status on this PR? It would be a nice feature to be merged.

Since initial submission, a serious problem was resolved (workload on critical path for drawing). But I think it still needs more work and testing. You don't want to slow down the mobile app, or be left in the forest with the desired map part hidden.

@dg0yt dg0yt added this to the v1.0 milestone Dec 21, 2021
@dl3sdo
Copy link
Member Author

dl3sdo commented Dec 21, 2021

For Android the capability to show and hide parts is currently missing. I could imagine that hidden map parts are shown in light gray in popup menu where you can choose the active part. Maybe it's possible to use a long press to switch the visibility of a map part. Another option could be that you switch the visibility if you 'select' the already active part. Selecting an inactive part just makes that part active as today but does not change the visibility.

@dl3sdo dl3sdo force-pushed the issue-1959 branch 2 times, most recently from af5f4c1 to 6b58f46 Compare February 7, 2025 15:19
dl3sdo and others added 7 commits October 3, 2025 12:29
Track the visibility of the owning MapPart in in a boolean member of
Object. Next to the existing dirty flag, it won't need extra memory.
Remove map part visibility hack from class Map.
To avoid changes going unnoticed, always restore map parts fully visible.
Reverts recent change.
The concept of dimming is not compatible with the current concept
of high-performance rendering.
Use negated logic to leverage our default behaviour of omitting false
values. With this change, files with all parts visible remain unchanged.
This fixes undesired changes to symbol sets, examples and test files.
When merging all parts, maintain visibility of the part into which the
other are merged.
@dl3sdo
Copy link
Member Author

dl3sdo commented Oct 22, 2025

Todo: Once #2421 is merged, consider visibility of objects (derived from map part visibility) in OgrFileExport::exportImplementation()

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.

3 participants