WMTS Token - Based Print Widget

856
2
11-03-2014 12:49 AM
francescodi_vito
New Contributor

Hello everyone,

i'm using the print service of arcgis server in Javascript web app. It's works very well but i have a problem with the print of a BLOM Services.

BLOM Service is a WMTS Token Based and i saw in the resource center the structure JSON for the WMTS but don't work for me.

The question is:

it's possible to print a WMTS Token Based? Is there any example?

Thanks

0 Kudos
2 Replies
XuehanJing
New Contributor III

Hi Francesco,

Which print service are you using? Did you publish your own print service or use the print service in utility folder?

It seems that you try to print a secured WMTS service. Here is the documentation writing printing maps that contains secured service. ArcGIS Help (10.2, 10.2.1, and 10.2.2)

You can also check the logs in your server manager to see if there is any information related to your issue.

Harvey.

0 Kudos
XuehanJing
New Contributor III

Hi Francesco,

Here is also the sample JSON for a WMTS service as a basemap.

{"mapOptions":{"extent":{"ymax":4017215.044000647,"xmax":-13072293.072430076,"xmin":-13076396.785386244,"spatialReference":{"wkid":102100},"ymin":4014191.004069035}},"exportOptions":{"outputSize":[859,633],"dpi":96},"baseMap":{"title":"ESRI_Imagery_World_2D","baseMapLayers":[{"type":"wmts","url":"http://tiles.arcgisonline.com/arcgis/rest/services/ESRI_Imagery_World_2D/MapServer/WMTS/1.0.0/WMTSCapabilities.xml","layer":"ESRI_Imagery_World_2D"}]},"operationalLayers":[{"id":"PoolPermits","title":"PoolPermits","visibleLayers":[0,1],"url":"http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/MapServer","maxScale":0,"minScale":0}],"layoutOptions":{"legendOptions":{"operationalLayers":[{"id":"PoolPermits"}]}}}

0 Kudos