2cm

get legend from webmap

Discussion created by 2cm on Jun 25, 2012
Latest reply on Jun 25, 2012 by njarecha-esristaff
Dear All,

We cannot het the legend from a webmap.

We are displaying a webmap in a mapview.

self.webmap = [AGSWebMap webMapWithItemId:theId credential:nil];
[self.webmap openIntoMapView:self.mapView];
  

With:

- (void)mapView:(AGSMapView *) mapView didLoadLayerForLayerView:(UIView<AGSLayerView> *) layerView {
//Add legend for each layer added to the map
        [[DataModel getInstance].legendDataSource addLegendForLayer:(AGSLayer *)layerView.agsLayer];
}

We got this construction from this: http://www.arcgis.com/home/item.html?id=901ca5cbcc6e4fe9bee960136c5971ba

However, we only get the legend information from the basemap.

Can somebody help?

Thanks,

Chris

Outcomes