turban/Leaflet.Zoomify — pull request #5 by AshKyd (2014-07-08 11:09:57+00:00)
Title: _tileShouldBeLoaded logic now discards unused tiles.

Once a Zoomify tile is loaded it sticks around forever, and on large Zoomify images this becomes was a massive performance issue. This PR aims to fix this by delegating to the parent _tileShouldBeLoaded function to add the extra visibility logic that the existing function doesn't have.

I've tested it on one of my Zoomify images and the example.html so I'm reasonably confident it works, but there may be edge cases it hasn't accounted for.

(Side note, it turns out the _tileShouldBeLoaded method no longer exists in the master Leaflet repo thus the check to see if it exists, so this plugin may not work in the next major release, but that's a separate issue.)