Merge pull request #2142 from Leaflet/tileloadstart
Add tileloadstart event with tile data
This commit is contained in:
commit
0ecdcd79eb
@ -530,6 +530,11 @@ L.TileLayer = L.Class.extend({
|
|||||||
|
|
||||||
this._adjustTilePoint(tilePoint);
|
this._adjustTilePoint(tilePoint);
|
||||||
tile.src = this.getTileUrl(tilePoint);
|
tile.src = this.getTileUrl(tilePoint);
|
||||||
|
|
||||||
|
this.fire('tileloadstart', {
|
||||||
|
tile: tile,
|
||||||
|
url: tile.src
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
_tileLoaded: function () {
|
_tileLoaded: function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user