add debug comments befor GL init
authorRobert Kaiser <robert@widebook.box.kairo.at>
Sat, 26 Apr 2014 13:17:07 +0000 (15:17 +0200)
committerRobert Kaiser <robert@widebook.box.kairo.at>
Sat, 26 Apr 2014 13:17:07 +0000 (15:17 +0200)
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);
 
+      console.log("Events added.");
       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);
       };
@@ -235,7 +237,7 @@ var gMap = {
     '  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' +