Pass object
This commit is contained in:
parent
900711b59a
commit
2b54c28890
@ -177,7 +177,7 @@ L.TileLayer = L.Class.extend({
|
|||||||
// remove tile if it's out of bounds
|
// remove tile if it's out of bounds
|
||||||
if (x < bounds.min.x || x > bounds.max.x || y < bounds.min.y || y > bounds.max.y) {
|
if (x < bounds.min.x || x > bounds.max.x || y < bounds.min.y || y > bounds.max.y) {
|
||||||
|
|
||||||
this.fire("tileunload",this._tiles[key]);
|
this.fire("tileunload", {tile: this._tiles[key], url: this._tiles[key].src});
|
||||||
|
|
||||||
// evil, don't do this! crashes Android 3, produces load errors, doesn't solve memory leaks
|
// evil, don't do this! crashes Android 3, produces load errors, doesn't solve memory leaks
|
||||||
// this._tiles[key].src = '';
|
// this._tiles[key].src = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user