diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 5dc8fa9c2..95e4e67f2 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -143,6 +143,9 @@ iD.Map = function(context) { surface.selectAll('.layer *').remove(); } + var translate3d = !iD.detect().opera && + iD.util.stringQs(location.search.substring(1)).translate3d !== '0'; + function zoomPan() { if (d3.event && d3.event.sourceEvent.type === 'dblclick') { if (!dblclickEnabled) { @@ -172,9 +175,9 @@ iD.Map = function(context) { var transform = 'scale(' + scale + ')' + - (iD.detect().opera ? - 'translate(' + tX + 'px,' + tY + 'px)' : - 'translate3d(' + tX + 'px,' + tY + 'px, 0)'); + (translate3d ? + 'translate3d(' + tX + 'px,' + tY + 'px, 0)' : + 'translate(' + tX + 'px,' + tY + 'px)'); transformed = true; supersurface.style(transformProp, transform);