Real-time Drawing and Painting on CesiumJS Raster Imagery Asset from ION

Hello everyone,

I’m currently working on a CesiumJS project where I’m utilizing a raster imagery asset from ION. As part of the application’s functionality, I’d like to implement a feature that allows users to draw and paint directly on the raster image, similar to the capabilities in Paint software. Specifically, I want users to be able to activate a drawing mode by clicking a button, and as they move the mouse over the raster image, it should paint the pixels, similar to using a brush.

I have a couple of questions regarding this implementation:

  1. Is it possible to draw and paint directly onto the raster imagery asset from ION? In other words, can the drawn content be overlaid directly onto the existing raster, allowing real-time editing of the image?
  2. Alternatively, does the drawing and painting process create a separate layer or entity that overlays on top of the raster image without altering the original asset on ION?

I’ve searched through the CesiumJS documentation and various examples, but I haven’t found a clear explanation of how to achieve this specific drawing and painting behavior on raster images obtained from ION. Any insights, code snippets, or guidance on how to implement this feature would be highly appreciated.

Thank you all for your valuable assistance!