I am trying to load a map from a url with different layers using arcgis sdk.
I'm using ArcGISDynamicMapServiceLayer to load the multi-layer map . Everything works fine except Feature Layer is not loading over Raster layer.
There are 8 layers inside map in which 7 of them are Feature Layers and 1 is Raster layer . If i hide all the Feature Layers then the Raster Layer becomes visible . If any of feature layer made visible then Raster layer becomes invisible .
My actual problem is that I need to show Feature layers above the Raster layer . I am entirely new to GIS , any help .
Following is the sdk which i'm using com.esri.arcgis.android:arcgis-android:10.2.9
Here is how i generate MAP and add to map view
arcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(MAP_URL);
mMapView.addLayer(arcGISDynamicMapServiceLayer);
and here is the code used to show and hide Layers
this.arcGISDynamicMapServiceLayer.getLayers()[position].setVisible(visible);
this.arcGISDynamicMapServiceLayer.refresh();