wait for all layers supplied to be loaded