Hello everyone,
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.
For that you need to look at VisualVariables for renderers:
https://developers.arcgis.com/javascript/3/jsapi/uniquevaluerenderer-amd.html#visualvariables
Thanks for help Robert. Could give me a sample example.
Thank for help Robert. Let me check it.