I’m working with massive data sets, so my data needs to be cut down significantly in python before the data is sent to the browser. As such, when the user zooms in, I need to send through a new block of data, calculating which might take up to about half a second.
Currently if someone zooms in with the mousewheel, this then runs the update code many times, so after zooming it continues to calculate all the old updates, change the data, then throw it away again for several seconds. I believe that respecting the LODStart and LODEnd events I should be able to fix this trivially, however I can’t work out how to find the LOD status in the python side - the only way I can find to get it is to subscribe to the LODStart and LODEnd in the JS side, and send that back through something like a dummy CDS or non-rendered checkbox. Is there any nicer way?