Version: arcgis==2.0.1
Issue:
When you specify layout options using webMap.Print these options are ignored. This includes title, author, copywrite, scalebar and legend.
Code:
wm_item = gis.content.get('item')
wm = WebMap(wm_item)
ext = {'spatialReference': {'latestWkid': 3857, 'wkid': 102100},
"xmin": 14219202.665619811,
"ymin": -3017623.8659692756,
"xmax": 14225164.753826046,
"ymax": -3005929.0006416594}
layoutOptions = {
"titleText": "LADR",
"authorText": "Oz Minerals",
"copyrightText": "Copyright Oz Minerals",
"customTextElements": [{
"date": datetime.now().strftime("%m/%d/%Y")
}],
"scaleBarOptions": {},
"legendOptions": {
"operationalLayers": ids
}
}
printed_file_url = wm.print(file_format='JPG', layout_template="A4 Landscape",
extent=ext, layout_options=layoutOptions)
The problem in the esri code is this, it hangs the layout options off the map_otions whereas they should be on the print options
I think this is how it should be: