Skip to content

Conversation

cfis
Copy link

@cfis cfis commented May 12, 2012

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.

…ded. 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 tile (especially on indoors maps). This patch takes into account both successful and unsuccessful tile loads.
mourner added a commit that referenced this pull request May 15, 2012
Make sure TileLayer load event is fired
@mourner mourner merged commit 13d8613 into Leaflet:master May 15, 2012
@mourner
Copy link
Member

mourner commented May 15, 2012

You're right, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants