From: Robert Kaiser Date: Sun, 30 Dec 2012 20:51:55 +0000 (+0100) Subject: call painting tiles before issuing the command to cache them X-Git-Tag: legacy-preGL~35 X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=commitdiff_plain;h=6d7cdcf66223e18b2838c56da0a88841e151075c;hp=3431f496715ba63682a820ee8cf8a63dc0f86905 call painting tiles before issuing the command to cache them --- 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();