CloudMade/Leaflet — pull request #682 by cfis (2012-05-12 23:25:11+00:00)
Title: Make sure TileLayer load event is fired

The load event for a tile layer is only fired after all tiles are loaded. However, the previous code only took into account successful tile loads. It is legitimate for a tile load to cause an error - you might be zoomed out on a map and are pulling a non-existent tiles around the edge (especially on indoors maps). This patch takes into account both successful and unsuccessful tile loads.