ArcGISFeatureLayer Not Refreshed After Sync

2504
0
10-28-2014 06:22 AM
EduardLepner
New Contributor II

Hello,

We use ArcGIS feature layer  on the map which are intended to be cached locally and synchronized.

ArcGISFeatureLayer featureLayer = new ArcGISFeatureLayer(<url>, ArcGISFeatureLayer.MODE.ONDEMAND, <user credentials>)

After doing synchronization being in Online mode with cashed data we do Refresh() for these layers:

for(com.esri.android.map.Layer layer : <MapView>.getLayers())

{

  if (layer instanceof ArcGISFeatureLayer) {

      ((ArcGISFeatureLayer)layer).refresh();

  }

}

But they are not refreshed immediately, only after some movements on the map (zooms, pans and so on…).

Could you please help me?

Tags (3)
0 Kudos
0 Replies