I'm having difficulty using the map, though. It feels like it's leaking resources, because after panning and zooming around the world for just a few seconds it almost completely locks up and stops responding to user input.
Thanks for the helpful feedback, I appreciate it, I was lazily rendering all the markers because I was working with a much smaller dataset of only US resorts, but the map component was rendering and calculating the position of 4000+ markers on every map move, I added some optimizations (only renders when zoomed in a bit, only renders visible markers) and it's running a lot smoother now. Thanks!
I love the idea.
I'm having difficulty using the map, though. It feels like it's leaking resources, because after panning and zooming around the world for just a few seconds it almost completely locks up and stops responding to user input.
Thanks for the helpful feedback, I appreciate it, I was lazily rendering all the markers because I was working with a much smaller dataset of only US resorts, but the map component was rendering and calculating the position of 4000+ markers on every map move, I added some optimizations (only renders when zoomed in a bit, only renders visible markers) and it's running a lot smoother now. Thanks!