Print client side graphics with ExportWebMap

3160
1
01-14-2016 06:38 AM
ShawnHolyoak
Occasional Contributor

I'm trying to print using the built in PrintingTools geoprocessing service using 10.2.1, and everything is working well with one exception. I allow the user to select one or more polygons in the map, storing the graphics in a graphics layer. I want to print those polygons on the map, and the export web map specification http://resources.arcgis.com/en/help/main/10.2/index.html#/ExportWebMap_specification/0155000004w2000... indicates that client side graphics layer can be included. I've built the json in the proper format (at least the geoprocessing service accepts it and returns an image properly) but the graphics layer do not show up in the image. Any idea what I'm missing or doing wrong? Thanks.

Tags (2)
0 Kudos
1 Reply
GirishYadav
Occasional Contributor

Shawn,

I would suggest, its better and much easier way to print map using ArcGIS JS API's PrintTask.

PrintTask | API Reference | ArcGIS API for JavaScript

PrintParameters | API Reference | ArcGIS API for JavaScript

Just pass in the map object with PrintParameters and set other parameters accordingly. The API will take care of everything and you need not to create webMap JSON.

-Girish