jnewmoyer

WebMapLayer.getCopyright() doesn't work

Discussion created by jnewmoyer on Aug 7, 2013
I have loaded a MapView using a publicly published webmap. After the map loads, I attempt to retrieve layer attribution as required by Esri guidelines using WebMapLayer.getCopyright(). But it always returns null. 

String text = "Data Copyrights: <br/>";
for(WebMapLayer layer : webMap.getBaseMap().getBaseMapLayers()) {
    text += "(Basemap) " + layer.getTitle() + ": " + layer.getCopyright() + "<br/>";
}  
for (WebMapLayer layer : webMap.getOperationalLayers()) {
    text += layer.getTitle() + ": " + layer.getCopyright() + "<br/>";
}

Outcomes