Select to view content in your preferred language

Prepare Map Object for ExportWebMap Object of REST Interface of ArcGIS Server Print Service

202
0
01-24-2025 02:29 AM
MHahn
by
Occasional Contributor

Hi, 

I know it is easy to use an instance of a WebMap to send it to the ExportWebMap REST Endpoint of the ArcGIS Server Print Service. (https://developers.arcgis.com/rest/services-reference/enterprise/exportwebmap-specification/)

But when I got an instance of a Map and can´t use the Print Widget of the ESRI JS API. In 3.x there was an  _getPrintDefinition() in the esri/tasks/PrintTask

https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-webmap-from-javascript-ap...

Is there any hidden function in 4.x that does the conversion for me?

Thanks!

0 Replies