[Pkg-javascript-commits] [leaflet] 161/301: Add tileloadstart event with tile data

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit ef44fbe17af86015798a75f2b0f53a56fc5eeb7e
Author: Tom MacWright <tom at macwright.org>
Date:   Thu Oct 31 18:53:24 2013 -0400

    Add tileloadstart event with tile data
---
 src/layer/tile/TileLayer.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/layer/tile/TileLayer.js b/src/layer/tile/TileLayer.js
index 6878970..bbb4c2c 100644
--- a/src/layer/tile/TileLayer.js
+++ b/src/layer/tile/TileLayer.js
@@ -530,6 +530,11 @@ L.TileLayer = L.Class.extend({
 
 		this._adjustTilePoint(tilePoint);
 		tile.src     = this.getTileUrl(tilePoint);
+
+		layer.fire('tileloadstart', {
+			tile: tile,
+			url: tile.src
+		});
 	},
 
 	_tileLoaded: function () {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list