From a5dcd545a446bc764cba9e6712bdb3354e10336a Mon Sep 17 00:00:00 2001 From: Rob L Date: Thu, 7 Jul 2016 12:55:58 -0400 Subject: [PATCH] Change onreisze to set it directly via window.onresize --- mapview/js/mapviewgl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapview/js/mapviewgl.js b/mapview/js/mapviewgl.js index d4bd76b..3907b59 100644 --- a/mapview/js/mapviewgl.js +++ b/mapview/js/mapviewgl.js @@ -140,7 +140,7 @@ for (var key in jsonEmpire) { } -function onWindowResize() { +window.onresize = function() { camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix();