Closed jessicaguo closed 1 year ago
@jessicaguo Check out the commits - I got legends working with proxy. A few necessary steps:
clearControls
functions to the top of the proxy builds - this will wipe out the existing legend before adding. It prevents a bug where if you turned coastline off and on, the ice/land legend would keep duplicating onto the map. I'm not sure it's actually the nested conditionals that are causing the slow response time - it may be the volume of data that we're starting to process and stack. Sophie mentioned that downsampling might be a reasonable alternative, so we have some options.
My vote is to get through initial buildout of things recognizing that things are getting slow, and then spend some time at the end re-tooling and speeding things up. What do you think?
Nicely done! I admit to beating a hasty retreat when I saw the neverending legends.
I agree about the order of operations, just not familiar with the ways to speed things up. But I trust you'll get us there!
This PR does the following:
Could use improvement: