todo onerror

This commit is contained in:
mourner 2010-09-27 17:26:54 +03:00
parent d06c7115e0
commit 9998e6c6e3

View File

@ -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;