From 6d7cdcf66223e18b2838c56da0a88841e151075c Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sun, 30 Dec 2012 21:51:55 +0100 Subject: [PATCH] call painting tiles before issuing the command to cache them --- js/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/map.js b/js/map.js index 9ffc81c..14b6921 100644 --- a/js/map.js +++ b/js/map.js @@ -678,8 +678,8 @@ var gTileService = { XHR.addEventListener("load", function () { if (XHR.status === 200) { var blob = XHR.response; - gTileService.setDBCache(dbkey, {image: blob, timestamp: Date.now()}); aCallback(blob, aStyle, aCoords); + gTileService.setDBCache(dbkey, {image: blob, timestamp: Date.now()}); } }, false); XHR.send(); -- 2.43.0