From 554c4c82129174e2dd1dfb36d907d5b51010d5eb Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 12 Dec 2012 18:45:51 -0500 Subject: [PATCH] Fix bad tile on load. Fixes #192 --- js/id/renderer/background.js | 2 +- js/id/renderer/map.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/id/renderer/background.js b/js/id/renderer/background.js index 35fb4ea29..24da773d6 100644 --- a/js/id/renderer/background.js +++ b/js/id/renderer/background.js @@ -32,7 +32,7 @@ iD.Background = function() { function background() { var tiles = tile .scale(projection.scale()) - .scaleExtent(source.scaleExtent || [0, 17]) + .scaleExtent(source.scaleExtent || [1, 17]) .translate(projection.translate())(), scaleExtent = tile.scaleExtent(), z = Math.max(Math.log(projection.scale()) / Math.log(2) - 8, 0), diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index bfbd1efab..a0dbd4103 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -5,7 +5,7 @@ iD.Map = function() { selection = null, hover = null, translateStart, keybinding, - projection = d3.geo.mercator(), + projection = d3.geo.mercator().scale(1024), zoom = d3.behavior.zoom() .translate(projection.translate()) .scale(projection.scale())