Skip to content

Feature implementation: show/hide map parts #1959

@dl3sdo

Description

@dl3sdo

As discussed in #1121 it would be beneficial to show and hide individual layers.
I implemented that feature, but used a simple GUI approach by just adding a map part dependent 'Hide current part' or 'Show current part' to the Map parts toolbar (as mentioned by @Symbian9 in #1121).

The visibility is stored in a new attribute:
<part name="Part1" visibility="100"><objects count="393">
<part name="Part2" visibility="0"><objects count="146">
Current versions of Mapper and Purple Pen do open these kind of files properly.
I used the values 0 and 100 in order to provide a migration path if somewhen later this becomes an true opacity value.

Example by using my favourite sample map and after having moved some objects to another map part:
ShowBothParts
The Map parts toolbar offers the 'Hide current part' as the current part is visible and thus can be hidden.

Map parts toolbar after part was hidden:
Part1Hidden

The change considers opening previous maps as well as considering the undo feature on map parts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions