hide map layer if there are no visible layers