I want create thumbnails for WMS items in ArcGIS online using python.
I use "layer.create_thumbnail". If I try on a feature layer the result is right, but on wms items the thumbnail isn't made, and I don't catch any error.
You can see the code.
Some Help?
Thanks
gis = arcgis.GIS(url='https://www.arcgis.com', username='xyz', password='xyz', verify_cert=False)
test_layer = gis.content.search( item_type='Feature Layer', outside_org=False, query ='owner: sbruschi@esriitalia.it AND title : scuole')
print (test_layer)
for layer in test_layer:
pippo = layer.create_thumbnail(update=True)
print (pippo)
test_layer = gis.content.search( item_type='WMS', outside_org=False, query ='owner: sbruschi@esriitalia.it AND title : Argentina_26 - Service Station')
print (test_layer)
for layer in test_layer:
pippo = layer.create_thumbnail(update=True)
print (pippo)