AnsweredAssumed Answered

Set Opacity of Feature Layer with Javascript API

Question asked by mvolz47 on Nov 13, 2015
Latest reply on Nov 13, 2015 by csgeosol1

I have a javascript/HTML5 web application that uses a dynamic mapservice and a feature layer.  I have been able to apply opacity to the dynamic mapservice on both the map and the print-out using

 

var imageParameters = new ImageParameters();

imageParameters.format = "png32";

 

before loading the dynamic mapservice

 

then during the loading of the dynamic mapservice I apply the imageParameters and opacity for the mapservice

 

dynaLayer1 = new ArcGISDynamicMapServiceLayer(Mapserver + DynMapservice, {

               "id": "mapper",             

               opacity: 1.0,

               "imageParameters": imageParameters

           });

           map.addLayers([dynaLayer1]);

 

I tried to apply the same logic for a feature layer, but the symbol is solid in the print-out instead of transparent (thus obscuring the underlying layers).

 

Thus can you control the opacity of a feature layer for a javascript/HTML5 print-out?

Outcomes