johnmartins / mdac

multi-disciplinary analysis client
https://mdac.netlify.app/
MIT License
4 stars 1 forks source link

Raster layer is stored, even after changing #106

Open johnmartins opened 2 months ago

johnmartins commented 2 months ago

Logging the draw function inside the raster layer reveals that the raster layer is not properly removed if the plot options are changed.

Switching back and forth from raster to vector several times results in multiple "hidden" rasterlayers that still responds to eventbus triggers. This can be seen when logging in the draw() function and notice that, e.g., when flipping an axis, the draw function is triggered multiple times: once for each time the raster layer has been switched to.

The source of this is unknown, but should be fixed as it reduces performance.