Transparent WebTiledLayer and PrintTask

3977
3
Jump to solution
03-02-2015 06:44 PM
GustafJonsson1
New Contributor

I am successfully using various online map tile services in my application (ArcGIS JS API) using the WebTiledLayer class. Some of them are in PNG format with and partly transparent.

It all works perfectly except when it comes to printing using the PrintTask class. It appears the PNG transparency is not honoured by the ExportWebMap geoprocessing tool?

I am using ArcGIS Server 10.2.1

Has anyone else had this issue? Is it a known issue or limitation? Any known workarounds?

0 Kudos
1 Solution

Accepted Solutions
GustafJonsson1
New Contributor

I eventually figured out that this issue only occurs when the WebTiledLayer has opacity set to 1. As long as you avoid that by setting it to 0.99 or lower, the layers behaves as expected with the printTask andExportWebMap tool (PNG transparency alpha channel is honoured).

Hope this helps someone else.

View solution in original post

0 Kudos
3 Replies
yousofothman
New Contributor III

try this links

ArcGIS Help 10.1

ArcGIS Help 10.1

may be it is useful for you

0 Kudos
GustafJonsson
New Contributor

Thank you. Unfortunately neither of those links sheds any light on my question.

0 Kudos
GustafJonsson1
New Contributor

I eventually figured out that this issue only occurs when the WebTiledLayer has opacity set to 1. As long as you avoid that by setting it to 0.99 or lower, the layers behaves as expected with the printTask andExportWebMap tool (PNG transparency alpha channel is honoured).

Hope this helps someone else.

0 Kudos