I have a layer consist of 8 different categories for each category set a different color code and opacity in desktop and publish in the ArcGIS Server. It working fine in ArcGIS Online. Whenever I using the map services in ArcGIS API for JS the color code is fine, but the opacity is not working. It automatically set 0% transparency and 1 Opacity.
How can I set the different opacity for different categories in a single layer by the help of ArcGIS API for JS?
Thanks for the help.