I think you can use Print utility from ArcGIS Server 10.1 which has the capability to return the following Formats: [ PDF, PNG32, PNG8, JPG, GIF, EPS, SVG, SVGZ ]We have a Print Widget in JS API to use the capability of Print Utility from ArcGIS Server 10.1.Code snippet: app.printer = new esri.dijit.Print({ map: app.map, url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task" }, dojo.byId("printButton")); app.printer.startup();Here is the link to the sample which adds graphics and gets the resultant image in PNG32 format(You can change it to JPG).Print class documentation.
app.printer = new esri.dijit.Print({ map: app.map, url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task" }, dojo.byId("printButton")); app.printer.startup();
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.