Merge pull request #2142 from Leaflet/tileloadstart

Add tileloadstart event with tile data
This commit is contained in:
Vladimir Agafonkin 2013-10-31 16:25:37 -07:00
commit 0ecdcd79eb

View File

@ -530,6 +530,11 @@ L.TileLayer = L.Class.extend({
this._adjustTilePoint(tilePoint);
tile.src = this.getTileUrl(tilePoint);
this.fire('tileloadstart', {
tile: tile,
url: tile.src
});
},
_tileLoaded: function () {