From 9998e6c6e3a465512c4526a96515cd56e49c9776 Mon Sep 17 00:00:00 2001 From: mourner Date: Mon, 27 Sep 2010 17:26:54 +0300 Subject: [PATCH] todo onerror --- src/layer/TileLayer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layer/TileLayer.js b/src/layer/TileLayer.js index caebb292..1895a23b 100644 --- a/src/layer/TileLayer.js +++ b/src/layer/TileLayer.js @@ -12,7 +12,8 @@ L.TileLayer = L.Class.extend({ subdomains: 'abc', copyright: '', unloadInvisibleTiles: L.Browser.mobileWebkit, - updateWhenIdle: L.Browser.mobileWebkit + updateWhenIdle: L.Browser.mobileWebkit, + errorTileUrl: '' }, initialize: function(url, options) { @@ -140,6 +141,7 @@ L.TileLayer = L.Class.extend({ L.DomUtil.setPosition(tile, tilePos); tile.onload = this._tileOnLoad; + //TODO tile onerror tile.onselectstart = tile.onmousemove = L.Util.falseFn; tile._leaflet_layer = this;