Hey guys, I have created a HeatMapImageryProvider which uses the vector features on the globe to render a heatmap onto a canvas which is then wrapped onto the globe. This works great and all, however, when I make updates to the canvas, I cannot get the image on the globe to update without removing the imageryprovider and re-adding it. I have read that webgl can render dynamic dom elements like canvas and videos and accept updates, but I don’t know if there is something I need to be doing differently or something that needs to happen in the Cesium rendering code to make this happen.
I have posted my work so far for the HeatMapImageryProvider here if you guys care to take a look. Currently it only works with OpenLayers feature objects, but I can modify it to take the cesium primitives collection instead if you guys want to have it. The only problem with that is, Cesium currently has no eventing system like OpenLayers, so the imageryprovider has no idea when a primitive is added to know when to update/redraw the heatmap.