Does anyone know how I could edit the options available in the pop-up menu of each layer in the layer list widget? I scrolled thorugh all the files in the widget folder and tried to figure if there is some sort of reference to somewhere else but I couldn't find anything. For now, I don't even want to add additional options in the menu, just take some of them out.
I'm talking about this...
...say I want to remove Transparency, Move Up/Down, and Description from there.
Solved! Go to Solution.
Nart,
You can remove those menu items by commenting them out in the client\stemapp\jimu.js\LayerInfos\LayerInfo.js
Function: constructor
Object: this.popupMenuInfo
Nart,
You can remove those menu items by commenting them out in the client\stemapp\jimu.js\LayerInfos\LayerInfo.js
Function: constructor
Object: this.popupMenuInfo
Top man! Thank you very much!
The Open Attribute Table menu option does not appear in this list in the LayerInfo.js
Would you know how would I exclude this menu option, or is it possible? i have disabled the Attribute Table widget so selecting this option does nothing, which is why i would rather not see it as a menu option.
Thanks!
Tara,
Look in the \widgets\LayerList\PopupMenuInfo.js
Can we make the context menu do transparency for each individual layer, in a service?
Kevin,
Controlling sublayer transparency is only available on ArcGIS Server 10.1 and greater and the map service has to have dynamic layer support enabled (Supports Dynamic Layers: true), which by default is false.