Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

At 10 and 10.1 you can make use of arcpy.mapping to publish a gp service to do printing with.

This is a sample that does this: enter image description here

As you can see, transparency is respected with the arcpy approach.

We have an application where the end-user can choose nearly any style they want for graphics.

  • All Simple/Text/MarkerSymbols
  • Any transparency or colour
  • Any fill or line style
  • etc

We hit limitations with trying to carry across these graphics across into an ArcPy service.

So we have been testing out the new 10.1 Export Web Map tool from the PrintingTool toolbox.

With some investigation on another question, we determined that it was not a python script behind this tool, but appears to be using ArcObjects.

From initial tests, it has the benefit over ArcPy in that whatever is in my graphics layer in our web client, gets thrown across and drawn ok in the output PDF (using the draw toolbar and default OOTB print service with Flex 3.0 API). However, transparency gets stripped out: enter image description here

I was looking at the ExportWebMap input parameter for the Export Web Map Tool, and trying to find out if there was something I could do to try and retain that transparency.

It does mention being able to set opacity on a layer, but I am unsure on how to manipulate one of the existing Flex samples to achieve this.

Can someone provide a solution (any API) to retaining transparency using the new ExportWebMap tool at 10.1? Or is it a limitation?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Bjorn Svensson has been in touch to let me know that this is a current bug within the pre-release Flex 3.0 API. It has been fixed at their end and will be in the final 3.0 API

The ExportWebMap tool is a C++/ArcObject tool that you can use to create your own Print Service simply and quickly. While the same functionality is exposed via ArcPy called ConvertWebMapToMapDocument().

Under the hood, both makes call to the same C++ code and return results differently. As a result, both supports the same functionalities. Though ExportWebMap returns the print output in pdf/png etc. format, the arcpy function returns the mxd itself and at that point you have the full control to modify the mxd in any way you want.

  1. Transparency: Yes, client side graphic’s transparency (both outline and fill) is maintained in the Print Output. Because of a bug in Flex API, the Print Task didn’t send transparency information correctly. Please try with one of the latest Flext API (I assume that’d be 3.0 Prelease).

  2. Symbology: we support all simple fill/marker/text/line symbols as well as Picture marker/fill symbol for a WebMap FeatureLayer or client-side graphics. We don’t support cartographic line symbol or character marker symbol though or multi-layer symbol. In most of cases, the picture marker symbols should meet your requirement.

share|improve this answer
    
Can confirm its fine in final API. –  Simon Jun 14 '12 at 11:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.