map2, result['url'] minor changes
" \"snippet\": \"read pdf and export pdf\",\n",
" \"description\": \"test description\"\n",
"}\n",
- "item = map1.save(item_properties)\n",
+ "item = map2.save(item_properties)\n",
"item"
]
},
},
{
"cell_type": "code",
- "execution_count": 77,
+ "execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "{\"url\": \"https://utility.arcgisonline.com/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/x_____xyRz2npVPvTwextLbD0QVFg..x_____x_ags_8f1d86dc-fcea-11e9-9a49-22000a7ba43e.pdf\"}"
+ "'https://utility.arcgisonline.com/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/x_____xyRz2npVPvTwextLbD0QVFg..x_____x_ags_8f1d86dc-fcea-11e9-9a49-22000a7ba43e.pdf'"
]
},
- "execution_count": 77,
+ "execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from arcgis.mapping import export_map\n",
- "export_map(web_map_as_json=webmap_json, format='PDF', layout_template='MAP_ONLY')"
+ "result = export_map(web_map_as_json=webmap_json, format='PDF', layout_template='MAP_ONLY')\n",
+ "result[\"url\"]"
]
},
{
