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!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.