Delegate to know when the base map is loaded/visible

368
1
04-13-2020 01:38 PM
PeterSchuette
New Contributor

I have a use case where I am switching from offline to online maps after detecting internet connectivity. I have noticed that if initially my base map is not loaded fully and I switch to offline, I cannot load and display the offline map view. Is there a delegate method just like we have for operational layers i.e. layerViewStateChangedHandler for base map that triggers everytime the base map is fully loaded or visible?

0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor

I would like to look at your switch basemap code to help you exactly but in general `AGSBasemap` is loadable. So either you can explicitly call `load` on it or you can observe `loadStatus` property to know when it finish loading. 

Regards,

Nimesh

0 Kudos