Hello guys,
As per my question, what I'm trying to achieve is simply:
[Scenario #1 - Feature layer not yet added to map]
1) Add feature layer to map
2) Show loading indicator
3) Wait for features in feature layer to load finish
4) Hide loading indicator
[Scenario #2 - Feature layer previously added to map]
1) Show feature layer on map
2) Show loading indicator
3) Wait for features in feature layer to load finish
4) Hide loading indicator
I'm trying to use the "update-end" event of the feature layer to achieve both scenario.
However in situation when the feature layer cannot be drawn due to reason like:
1) graphics can only be drawn at a certain zoom extent and the current extent do not allow it
The "update-end" event will not get executed and my loading indicator "hang" because there is no event to hide the loading indicator
Do you guys have any insights or specifically any event that I can use to ensure I can receive notification after a feature layer "draw" is completed? Thanks!
P.S. I'm using arcgis javascript api