AGSFeatureLayerModeOnDemand unpredictable

3389
1
04-17-2015 11:06 AM
SimonFox
New Contributor II

Hi folks,

When using this AGSFeatureLayerModeOnDemand for loading a layer's polygons, I can't seem to get reliable response.

Sometimes I wait forever for polygons to arrive, even though the map is zoomed and located at the correct place. Other times they just appear. Or a person next to me isn't get anything and I am.

I don't know how to make my app work consistently. Is there anything I can do to have the polygons hurry up, or behave more predictably?

Thanks,

Simon.

0 Kudos
1 Reply
SimonFox
New Contributor II

I figured out a way to solve this using  AGSFeatureLayerModeSelection mode to manufacture my own "on-demand" strategy.

Was a bit fiddly, but allowed me to decide when to ask for features, and to track the start/end of the network events so I can report to the user. Used the pan/zoom event notifications and AGSQuery calls inside a controlled event queue.

Seems to work pretty well.

0 Kudos