Fix bad tile on load. Fixes #192

This commit is contained in:
Tom MacWright
2012-12-12 18:45:51 -05:00
parent dc4c5dcb3f
commit 554c4c8212
2 changed files with 2 additions and 2 deletions

View File

@@ -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),

View File

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