Select to view content in your preferred language

Layers not showing up in an mmpk on Android

846
0
02-23-2017 07:00 AM
BrianWeedman
Deactivated User

I'm trying to display a mmpk map. I get some of the details but i'm not getting the details from the layers with in the mmpk. there are about 7 layers in this file.

here is the code to make sure these are visible. I'm doing this within a

addDoneLoadingListener when the map is loaded.

LayerList llist = mMap.getOperationalLayers();

for (int i = 0; i < llist.size(); ++i)
{
  FeatureLayer featureLayer = (FeatureLayer)llist.get( i ) ;
  if(featureLayer != null)
  {
    featureLayer.setLabelsEnabled(true);
    featureLayer.setVisible( true );
  }
}

Any suggestions on what might be wrong.

Note this was my first attempt:

 for (int i = 0; i < llist.size(); ++i)
  {
   llist.get( i ).setVisible( true );
  }
Tags (1)
0 Kudos
0 Replies