projects
/
lantea.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
call painting tiles before issuing the command to cache them
[lantea.git]
/
js
/
map.js
diff --git
a/js/map.js
b/js/map.js
index 9ffc81c3f3c99bd90c701384d179a7042b9d0587..14b692187b95388931c5674d24fa28a4a84d061f 100644
(file)
--- 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;
XHR.addEventListener("load", function () {
if (XHR.status === 200) {
var blob = XHR.response;
- gTileService.setDBCache(dbkey, {image: blob, timestamp: Date.now()});
aCallback(blob, aStyle, aCoords);
aCallback(blob, aStyle, aCoords);
+ gTileService.setDBCache(dbkey, {image: blob, timestamp: Date.now()});
}
}, false);
XHR.send();
}
}, false);
XHR.send();