How do I whenOnce when a MapView is loaded, including any buttons added to ui?
Please include link to referenced api. Thanks.
This doesn't work.
reactiveUtils.whenOnce( () => view.loaded) .then(() => { ... });
Hi @GregoryBologna ,
You could use the when method on the MapView or watch the ready property on the MapView with the whenOnce method from reactiveUtils. The following codepen shows both ways: https://codepen.io/laurenb14/pen/MWBjaWZ?editors=1000
Hope this helps!
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.