From 56733af48856656ad60ad5f1aa90ea8d5f433dd4 Mon Sep 17 00:00:00 2001 From: Alex Fedosov Date: Wed, 1 Apr 2015 16:42:46 +0600 Subject: [PATCH] fix tile freeze in ie8 --- src/layer/tile/TileLayer.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/layer/tile/TileLayer.js b/src/layer/tile/TileLayer.js index c23e8688..1a1801c6 100644 --- a/src/layer/tile/TileLayer.js +++ b/src/layer/tile/TileLayer.js @@ -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) {