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();