Get current color from feature layer

257
1
Jump to solution
02-04-2023 08:28 PM
Aeseir
by
Occasional Contributor

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

0 Kudos
1 Solution

Accepted Solutions
Aeseir
by
Occasional Contributor

I figured it out by chance. Have to use the getter accessor (i was close).

 

 

featureLayer.renderer.get("symbol.color"))

 

View solution in original post

0 Kudos
1 Reply
Aeseir
by
Occasional Contributor

I figured it out by chance. Have to use the getter accessor (i was close).

 

 

featureLayer.renderer.get("symbol.color"))

 

0 Kudos