Set projection precision to 0

Might fix #1270
This commit is contained in:
John Firebaugh
2013-05-15 15:35:54 -07:00
parent 6075367015
commit 2045d884c6
+3 -1
View File
@@ -1,7 +1,9 @@
iD.Map = function(context) {
var dimensions = [1, 1],
dispatch = d3.dispatch('move', 'drawn'),
projection = d3.geo.mercator().scale(512 / Math.PI),
projection = d3.geo.mercator()
.scale(512 / Math.PI)
.precision(0),
roundedProjection = iD.svg.RoundProjection(projection),
zoom = d3.behavior.zoom()
.translate(projection.translate())