-
Notifications
You must be signed in to change notification settings - Fork 120
Description
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:
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:
The change considers opening previous maps as well as considering the undo feature on map parts.