Made it so that visibility of layers and attributes is save/loaded to/from the map.