mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Fix global leaks
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user