Merge pull request #3346 from RLRR/fix-ie8-tile-freeze

Fix tile loading in IE8
This commit is contained in:
Vladimir Agafonkin 2015-04-02 17:04:08 +03:00
commit e708e37ab7

View File

@ -85,7 +85,12 @@ L.TileLayer = L.GridLayer.extend({
},
_tileOnLoad: function (done, tile) {
done(null, tile);
// For https://github.com/Leaflet/Leaflet/issues/3332
if (L.Browser.ielt9) {
setTimeout(L.bind(done, this, null, tile), 0);
} else {
done(null, tile);
}
},
_tileOnError: function (done, tile, e) {