From: Robert Kaiser Date: Sat, 26 Apr 2014 13:17:07 +0000 (+0200) Subject: add debug comments befor GL init X-Git-Tag: producution~32 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=d7310ee2c8b72539147c6879be811a960fd2938a;p=lantea.git add debug comments befor GL init --- diff --git a/js/map.js b/js/map.js index 043da92..024eaf4 100644 --- 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' +