wait for all dynamic layers to be loaded before creating maps