setVisibility now automatically adds layer to map when visibility is set to true