AnsweredAssumed Answered

FeatureLayer Selection Mode in ArcGIS for Android 100.0.0

Question asked by lageplan on Apr 20, 2017
Latest reply on Apr 20, 2017 by lageplan



prior to 100.0.0 I used to load my feature services as follows:

ArcGISFeatureLayer buildings = new ArcGISFeatureLayer(getResources().getString(
R.string.buildingsURL), ArcGISFeatureLayer.MODE.SELECTION);

I.e., my building and room features would not be displayed by default,
but only when they were selected.
There also used to be the modes "ONDEMAND" and "SNAPSHOT", 
but the SELECTION mode is most important for my app.

For 100.0.0 I changed the code to this:
ServiceFeatureTable buildingsTable = 
new ServiceFeatureTable(getResources().getString(
buildings = new FeatureLayer(buildingsTable);

I could not find a "SELECTION" mode and all buildings (or rooms) are displayed
at the same time.
Moreover, I realized that only the first layer is displayed (in this case, buildings;
if I add rooms as the first layer, then all rooms are shown).
But this is a different problem...

So first of all, could someone please tell me how I can add feature layers
so that features are loaded from the server only when they are selected?

Thank you!