hasLayer and removeLayer by id.