Setting the MapView Envelope with AGSFeatureLayer.fullEnvelope after the FeatureLayer did Load

3151
3
Jump to solution
06-11-2015 12:27 AM
CesarRevilla
New Contributor III

Hi,

Im using an AGSFeatureLayer with a Definition Expression.

My question: It's possible to get the AGSFeatureLayer.fullEnvelope synchronized?
After layerDidLoad (AGSLayerDelegate) is the fullEnvelope = nil, there is another delegate that can catch the the layer on an state in witch all features (from the Layer with the Definition Expression) were compleatly loaded?

Best Regards,

Cesar

0 Kudos
1 Solution

Accepted Solutions
DiveshGoyal
Esri Regular Contributor

You can listen for the AGSFeatureLayerDidLoadFeaturesNotification​ which gets fired by the AGSFeatureLayer whenever it fetches features from the service.

Here's a sample that shows how it is used -

Search Results for AGSFeatureLayerDidLoadFeaturesNotification · GitHub

View solution in original post

0 Kudos
3 Replies
DiveshGoyal
Esri Regular Contributor

You can listen for the AGSFeatureLayerDidLoadFeaturesNotification​ which gets fired by the AGSFeatureLayer whenever it fetches features from the service.

Here's a sample that shows how it is used -

Search Results for AGSFeatureLayerDidLoadFeaturesNotification · GitHub

View solution in original post

0 Kudos
CesarRevilla
New Contributor III

Thank you Divesh for this answer. I think it's what im searching for. I can try it in a few minutes.
Best Regards,

Cesar

0 Kudos
CesarRevilla
New Contributor III

Pretty nice, that works easy!
Thank you!

0 Kudos