Consolidate showing and hiding of markers