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 043da92..024eaf4 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' +