Reason for layers to fail to load in java

127
1
Jump to solution
10-28-2021 12:13 AM
AhsanApp
New Contributor III
featureLayer.addLoadStatusChangedListener(new LoadStatusChangedListener() {
@Override
public void loadStatusChanged(LoadStatusChangedEvent loadStatusChangedEvent) {
loadStatusChangedEvent.getNewLoadStatus();
}
});

I am using this piece of code to know that my layer is failed to load but where can I know the reason of failure, does such a function exist to state it? 

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
AhsanApp
New Contributor III
featureLayer.getLoadStatus() helped me.

View solution in original post

0 Kudos
1 Reply
AhsanApp
New Contributor III
featureLayer.getLoadStatus() helped me.

View solution in original post

0 Kudos