AnsweredAssumed Answered

Is it possible to read RGB pixel values from MapImageLayer?

Question asked by chagan02 on May 19, 2018

Hi All,

I have a MapImageLayer that consists of only one MapImage at a time.  I would like to sample the current pixel beneath the mouse on hover and read it's RGB.  I have seen some stuff on this regarding a canvas, however I'm not sure how to make a map layer a canvas.  


OR as an alternative, is there another way to display a geotiff without using a RasterLayer as I do not have access to an ImageService?  Currently I'm displaying a rainfall image as a georeferenced .png with a MapImageLayer, and the whole idea is to be able to sample it.  If I know the RGB, I at least know a range of values it could be, which is better than nothing.