projects
/
lantea.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3a9fc5
)
add debug comments befor GL init
author
Robert Kaiser
<robert@widebook.box.kairo.at>
Sat, 26 Apr 2014 13:17:07 +0000
(15:17 +0200)
committer
Robert Kaiser
<robert@widebook.box.kairo.at>
Sat, 26 Apr 2014 13:17:07 +0000
(15:17 +0200)
js/map.js
patch
|
blob
|
blame
|
history
diff --git
a/js/map.js
b/js/map.js
index 043da92e0ae7a3d1c110d3705b018da6630ef08d..024eaf4e655b9a9f34df5e227070bfc87678b716 100644
(file)
--- a/
js/map.js
+++ b/
js/map.js
@@
-121,12
+121,14
@@
function loadPrefs(aEvent) {
document.getElementById("body").addEventListener("keydown", mapEvHandler, false);
document.getElementById("body").addEventListener("keydown", mapEvHandler, false);
+ console.log("Events added.");
document.getElementById("copyright").innerHTML =
gMapStyles[gMap.activeMap].copyright;
gLoadingTile = new Image();
gLoadingTile.src = "style/loading.png";
gLoadingTile.onload = function() {
document.getElementById("copyright").innerHTML =
gMapStyles[gMap.activeMap].copyright;
gLoadingTile = new Image();
gLoadingTile.src = "style/loading.png";
gLoadingTile.onload = function() {
+ console.log("Loading Tile loaded.");
var throwEv = new CustomEvent("prefload-done");
gAction.dispatchEvent(throwEv);
};
var throwEv = new CustomEvent("prefload-done");
gAction.dispatchEvent(throwEv);
};
@@
-235,7
+237,7
@@
var gMap = {
' gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n' +
' vTextureCoord = aTextureCoord;\n' +
'}'; },
' gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n' +
' vTextureCoord = aTextureCoord;\n' +
'}'; },
- getFragShaderSource:function() {
+ getFragShaderSource:
function() {
return 'varying highp vec2 vTextureCoord;\n\n' +
'uniform sampler2D uImage;\n\n' +
'void main(void) {\n' +
return 'varying highp vec2 vTextureCoord;\n\n' +
'uniform sampler2D uImage;\n\n' +
'void main(void) {\n' +