Select to view content in your preferred language

WebMapLayer.getCopyright() doesn't work

369
0
08-07-2013 06:21 AM
JasonNewmoyer
Deactivated User
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/>";
}
0 Kudos
0 Replies