Select to view content in your preferred language

Get current color from feature layer

375
1
Jump to solution
02-04-2023 08:28 PM
Aeseir
by
Frequent 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
Frequent 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
Frequent Contributor

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

 

 

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

 

0 Kudos