mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-07 03:41:33 +00:00
Fix bad tile on load. Fixes #192
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user