(Please excuse my english)
I have to fire a 'window.print()' when the map is entierely displayed in the browser.
I tried to use 'view.then()' but the map is still not displayed when the 'then' event occure...
My solution is to use 'setTimeout' in the 'then' event, and to wait 1 second, but that doesn't sounds correct to me to do this...
Is there a way to know / detect / check is the map is correctly displayed ?
Thank you in advance for your answers,