I have created few layout views in arc map and published as print services and consuming this services for printing. I have few custom text elements, scale bar and Measured Grid. I am able to place custom text elements as desired. The problem is Measured Grid. I want to increase or decrease the grid line intervals based on scale and/or paper size. I dont find anything related to grids in Template.layoutOptions.
How can I achieve this please..
=======================================================
case "A4 Landscape":
var printTask = new esri.tasks.PrintTask(UrlprintA4);
var params = new esri.tasks.PrintParameters();
var template = new esri.tasks.PrintTemplate();
params.map = app.map;
template.format = printFormat;
template.layout = printLayout;
template.layout = "CustomA4";
template.outScale = printScale;
template.layoutOptions = {
//customTextElements: [{ pinNumber: pin }, { Area: pinArea }, { userName: userName }, { printDate: myDate(Date()) }],
customTextElements: customTextElementsArray,
}
params.template = template;
setTimeout(function () { printTask.execute(params, printResult, printError); }, 100);
break;
=======================================================================================
Solved! Go to Solution.
cadgis,
I don't think it is possible to control the grid from the template.layoutoptions. I don't know of any way to accomplish what you are after.
cadgis,
I don't think it is possible to control the grid from the template.layoutoptions. I don't know of any way to accomplish what you are after.
Thank you Robert Robert Scheitlin
I am thinking of achieving this ( though stupid ) to create many templates and put different sized grids and call the template according to the scale... ???..
cadgis,
It is not stupid at all as this is probably you best route.
I need a USNG grid on my layout. I only have ArcGIS Pro. Is there a way to do this in Pro?