Use print widget to output a different projection than the view projection

823
1
02-14-2017 10:28 AM
IngridAldridge1
New Contributor III

I am trying to use the print widget to output a different projection than the view projection (web mercator) using Web AppBuilder Dev 2.1 in a 10.4 portal environment.  I'm looking at the outspatialreference in the print parameters but can't seem to get it to work.  Has anyone tried this?

Specifically, I'm looking at the print.js file in \widgets\Print and looking at line 143.

I'm trying to print to British National Grid spatialreference(27700)

0 Kudos
1 Reply
RickeyFight
MVP Regular Contributor

I have been able to print in a different projection. Look at Line 104. 

I added this:

this.printparams.outSpatialReference = new esri.SpatialReference({wkid:2270});