From 50de147fb0c1a8e30850ba83ea8e278b559eb524 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 5 Mar 2013 15:56:57 -0800 Subject: [PATCH] Camel case --- js/id/renderer/background.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/id/renderer/background.js b/js/id/renderer/background.js index d184a1eb6..cc0fee26d 100644 --- a/js/id/renderer/background.js +++ b/js/id/renderer/background.js @@ -53,7 +53,7 @@ iD.Background = function() { .translate(projection.translate())(), requests = [], z = Math.max(Math.log(projection.scale()) / Math.log(2) - 8, 0), - tile_origin = [ + tileOrigin = [ projection.scale() / 2 - projection.translate()[0], projection.scale() / 2 - projection.translate()[1]]; @@ -70,7 +70,7 @@ iD.Background = function() { return cache[r[3]] !== false; }); - var pixeloffset = [ + var pixelOffset = [ Math.round(offset[0] * Math.pow(2, z)), Math.round(offset[1] * Math.pow(2, z)) ]; @@ -95,8 +95,8 @@ iD.Background = function() { var _ts = tileSize[0] * Math.pow(2, z - d[2]); var scale = tileSizeAtZoom(d, z); return 'translate(' + - (Math.round((d[0] * _ts) - tile_origin[0]) + pixeloffset[0]) + 'px,' + - (Math.round((d[1] * _ts) - tile_origin[1]) + pixeloffset[1]) + 'px)' + + (Math.round((d[0] * _ts) - tileOrigin[0]) + pixelOffset[0]) + 'px,' + + (Math.round((d[1] * _ts) - tileOrigin[1]) + pixelOffset[1]) + 'px)' + 'scale(' + scale + ',' + scale + ')'; }