Layout templates

759
2
09-13-2011 06:54 AM
DonatasBruzas
Esri Contributor
Hello,
could anybody tell me where should I put mxd files as layout templates for the ExportWebMap service?
0 Kudos
2 Replies
GaëtanLAVENU
Esri Contributor
I have the same issue. Did you find the solution, did you have any answer ?
0 Kudos
TanuHoque
Esri Regular Contributor
By default, it looks in <install_dir>\Templates\ExportWebMapTemplates (e.g. C:\Program Files\ArcGIS\Server\Templates\ExportWebMapTemplates on the Server install) for all available templates. Each template is nothing but mxd file with layout elements.
http://resourcesbetadev.arcgis.com/en/help/main/10.1/index.html#/Export_Web_Map/00540000001m000000/

If you want to use your own templates, you need to republish that gp service and choose a folder as the Layout Template Folder. Please check this help topic out http://resourcesbetadev.arcgis.com/en/help/main/10.1/index.html#/Using_your_own_layouts_for_printing...

In REST end point, you need to pass in the name of the template (as string) in the request.

You will find all available templates listed in your ExportWebMap's resource page (here is an example: http://servicesbeta4.esri.com/arcgis/rest/services/Utilities/ExportWebMap/GPServ...)

You may also want to check this Silverlight sample: http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap
0 Kudos