Good morning!
I have a question that somebody hopefully can provide some pointers. In my AGOL map I have a feature that contains a field that has 4 different land use values in it, eg, Agricultural, Industrial, Commercial etc.
I was thinking of setting up a when statement so that for when each of these values is true it would assign them a particular RGB color - this would avoid having to create individual expressions in the pop-up window for each value and assigning it a color through the pop-up config. I'm pretty sure I know how to make the when statement, what is throwing me off is how to the color part, I'm assuming I would have to provide some RGB values into.
Is this possible to do?
Solved! Go to Solution.
Hi Luke Allen,
Did you have a look at the example in this blog?
Bring Colors From Your Map Into Your Pop-up Using Arcade
I am not sure whether it is possible to use RGB values as such, but it would be better to use hexadecimal color values instead. You will find plenty of RGB to hex convertors on the web, so if you pick blue (0,0,255) it should not be difficult to find the hexadecimal value #0000ff. And the same is true for the other (255*255*255-1=) 16,581,374 possible values.
HTH,
Egge-Jan
Hi Luke Allen,
Did you have a look at the example in this blog?
Bring Colors From Your Map Into Your Pop-up Using Arcade
I am not sure whether it is possible to use RGB values as such, but it would be better to use hexadecimal color values instead. You will find plenty of RGB to hex convertors on the web, so if you pick blue (0,0,255) it should not be difficult to find the hexadecimal value #0000ff. And the same is true for the other (255*255*255-1=) 16,581,374 possible values.
HTH,
Egge-Jan
Hi Egge,
Thanks for the prompt response - funny enough I actually came across as started working through Lisa's blog example with my own data, I'm hopefully this will be what I need - thanks!