Select to view content in your preferred language

colorizing a black and white Imagery Layer

1811
11
03-01-2021 10:53 AM
roch
by
New Contributor

Hello !

I am using the terrain elevation layer wich is black and white but I'd like to give it some color for more user friendly look.

For instance black to blue grey to green and white to red or more steps .. is there a built in library for this ?

thank you

0 Kudos
11 Replies
calimucho
Emerging Contributor

well I kinda got where I want, here is the codepen https://codepen.io/ebkgne/pen/xxRzrPN , I went with the first solution, my only question then is why it's not updating ... i'm doing exactly like @johnbrosowsky example, cloning renderer, editing, re assigning on event trigger ...

0 Kudos
calimucho
Emerging Contributor

ok so .... couple month later ^^

on the last codepen, about not updating, problem was, I was not using ArcGIS event system ..., I updated the sources. but it's quite a slow solution,

 

So I came up with way faster solution using RasterShadedReliefRenderer colorRamp (like previously suggested actually ^^) , see here : https://codepen.io/ebkgne/pen/eYeNPyw

0 Kudos