AnsweredAssumed Answered

transparency listlayer widget for sublayers of groups

Question asked by gilbertorm83@gmail.com on Jul 12, 2016
Latest reply on Jul 18, 2016 by gilbertorm83@gmail.com

Hello! I'm trying to customize the widget layerlist web AppBuilder. I need to make the sublayers have the option of transparency as it appears from the submenu to the root layer.

I managed to figure out how to make the transparency option appeared with the slider for each of the layers. For this, I changed the PopupMenuInfo.js file "itemInfoCategoreList" variable, adding a new key {key: 'transparency'} for the 'FeatureLayer' array.

The problem is that I do not know where I need to change to make this functionality be effectively executed. Making a debug by google chrome, I realized that "if" is not run down to the sublayers, if the line (this.layerObject.setOpacity) always returns undefined:

setOpacity: function (opacity) {
       if (this.layerObject.setOpacity) {
         this.layerObject.setOpacity (opacity);
       }
     }


I appreciate any help.
I am using Web 2.0 AppBuilder.
Gilberto.

Outcomes