diff --git a/js/iD/renderer/Map.js b/js/iD/renderer/Map.js index 83093eb7c..bd1636645 100755 --- a/js/iD/renderer/Map.js +++ b/js/iD/renderer/Map.js @@ -295,7 +295,7 @@ iD.Map = function(elem) { var t = projection.translate(), s = projection.scale(), - z = Math.max(Math.log(s) / Math.log(2) - 8, 0); + z = Math.max(Math.log(s) / Math.log(2) - 8, 0), rz = Math.floor(z), ts = 512 * Math.pow(2, z - rz); diff --git a/js/iD/renderer/tiles.js b/js/iD/renderer/tiles.js index 3eca0b785..ee7571e66 100644 --- a/js/iD/renderer/tiles.js +++ b/js/iD/renderer/tiles.js @@ -20,7 +20,7 @@ iD.Tiles = function(selection, projection, width, height) { function redraw() { var t = projection.translate(), s = projection.scale(), - z = Math.max(Math.log(s) / Math.log(2) - 8, 0); + z = Math.max(Math.log(s) / Math.log(2) - 8, 0), rz = Math.floor(z), ts = 256 * Math.pow(2, z - rz);