Hi,
I am trying to create dynamic legend with ArcGISLocalTiledLayer but its not returning any layer inside it.
private ArcGISLocalTiledLayer localTiledLayer;
String basemap = landDataFile + File.separator + offlineDataSDCardDirName + File.separator + filename;
localTiledLayer = new ArcGISLocalTiledLayer(basemap);
for (ArcGISLayerInfo layerInfo : localTiledLayer .getLayers()) {
}
I am following the example of MapLegend which is done with ArcGISDynamicMapServiceLayer.
Please assist me where i am getting wrong .
Thanks
Dear shabbir, I do not know if this is the reason of the problem, but make sure that you run this code after make sure that all layers has been loaded by using add-layers-result listener or some thing related to this. I hope its works, otherwise post the full code if you can. Regards.