projects
/
lantea.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d7310ee
)
add more debug comments around image loading
author
Robert Kaiser
<robert@widebook.box.kairo.at>
Sat, 26 Apr 2014 13:24:47 +0000
(15:24 +0200)
committer
Robert Kaiser
<robert@widebook.box.kairo.at>
Sat, 26 Apr 2014 13:24:47 +0000
(15:24 +0200)
js/map.js
patch
|
blob
|
blame
|
history
diff --git
a/js/map.js
b/js/map.js
index 024eaf4e655b9a9f34df5e227070bfc87678b716..b734113d1cec49c88f95ed76bf2bb60ac36a20a3 100644
(file)
--- a/
js/map.js
+++ b/
js/map.js
@@
-125,13
+125,15
@@
function loadPrefs(aEvent) {
document.getElementById("copyright").innerHTML =
gMapStyles[gMap.activeMap].copyright;
document.getElementById("copyright").innerHTML =
gMapStyles[gMap.activeMap].copyright;
+ console.log("Init loading tile...");
gLoadingTile = new Image();
gLoadingTile = new Image();
- gLoadingTile.src = "style/loading.png";
gLoadingTile.onload = function() {
gLoadingTile.onload = function() {
- console.log("Loading
T
ile loaded.");
+ console.log("Loading
t
ile loaded.");
var throwEv = new CustomEvent("prefload-done");
gAction.dispatchEvent(throwEv);
};
var throwEv = new CustomEvent("prefload-done");
gAction.dispatchEvent(throwEv);
};
+ console.log("Set loading tile...");
+ gLoadingTile.src = "style/loading.png";
}
}
else {
}
}
else {