Keep calling updateLegend until slower layers load