Select to view content in your preferred language

Preserving scale with custom print templates

1169
2
02-15-2019 12:47 PM
AlexanderVencill1
Occasional Contributor

I've set up a custom print service that has a number of templates added from ArcPro. In ArcPro I set the scale for each of them and added a scalebar. When I go to use these custom print layouts in the print widget for WAB it uses the current map extent rather than the one set in the template. I know that the widget gives you the option to set the the map scale, map extent, or to manually enter a scale, but is there any way for the widget to automatically set the scale to be the scale from the print template it's using? 

Tags (1)
0 Kudos
2 Replies
TanuHoque
Esri Regular Contributor

Unfortunately the answer is no if you go with out of the box solutions. Layout Templates and Print services are meant for generic use.

If you need to restrict to any specific scale, then I'd recommend you to create an arcpy based print service and have that map scale restrictions in the arcpy code.

As you know in Pro, the Export Web Map gp tool is a script tool. You can use that arcpy script associated to this tool as a starting point.

here is a tutorial on 'how to publish an arcpy based print service' - only thing is that it was written using ArcMap.

Tutorial: Print a web map and export a vector output PDF using ArcPy—Documentation (10.5) | ArcGIS E... 

But we are planning to add another tutorial to describe how to do the same from ArcGIS Pro - I'm hoping it will come out very soon.

0 Kudos
Nicole_Ueberschär
Esri Regular Contributor

Hello @TanuHoque ,

Is this tutorial still somewhere available? Or the one for doing the same from ArcGIS Pro?

I would also like to limit the scale to the one given by the template...

Thanks!

0 Kudos