Heya
I am trying to figure out how to extract the color from current feature layer and cannot find any reference to it.
Closest i have got is featureLayer.renderer.getr("color") but that breaks.
Any advice on how i can extract the renderer color?
Intent is to be able to replace it with another color in later steps
Solved! Go to Solution.
I figured it out by chance. Have to use the getter accessor (i was close).
featureLayer.renderer.get("symbol.color"))
I figured it out by chance. Have to use the getter accessor (i was close).
featureLayer.renderer.get("symbol.color"))