Been trying to get comfortable with the viewof
stuff. I’ve had serious performance issues by “accidentally” making a new map on each Scrubber
or dropdown
implementation.
Shout out to @jrus, although I scrapped the addListenerEvents
after spending hours trying to get it to work. In the end, I’m simply using relying on viewof
to redraw map, and my browser hasn’t crashed or used up >1G of memory (best I can tell)…
I’ll try and make this whole series of maps more functional by hooking into USDA’s API in the future.
Thanks