Select to view content in your preferred language

MapView.then()

63
2
Jump to solution
yesterday
coryeicher
Frequent Contributor

Hi Everyone,

I noticed that version 4.4 added MapView.then()

https://totalapis.github.io/api-reference/esri-views-MapView.html#then

Do I have that right?

I am on arcgis/core version 4.32.10 and have been using .when() to wait for map view initialization.

Is when() the correct approach to wait for the map view to initialize? Is then() the replacement? Should I move forward just to get then()?

Thx,

-Cory

CORY EICHER
www.eichcorp.com
cory@eichcorp.com
0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Esri Frequent Contributor

That documentation is not official. Someone downloaded the doc from the downloads page and put that up. 4.4 is about 8 years old, so there is no view.then anymore, view.when is what you want to use.

View solution in original post

2 Replies
ReneRubalcava
Esri Frequent Contributor

That documentation is not official. Someone downloaded the doc from the downloads page and put that up. 4.4 is about 8 years old, so there is no view.then anymore, view.when is what you want to use.

coryeicher
Frequent Contributor

Thanks. The last 8-10 years have been a bit of a blur ; )

CORY EICHER
www.eichcorp.com
cory@eichcorp.com
0 Kudos