diff --git a/lib/torque/leaflet/torque.js b/lib/torque/leaflet/torque.js index ff05f50..818a6a8 100644 --- a/lib/torque/leaflet/torque.js +++ b/lib/torque/leaflet/torque.js @@ -212,6 +212,10 @@ L.TorqueLayer = L.CanvasLayer.extend({ var canvas = this.getCanvas(); this.renderer.clearCanvas(); var ctx = canvas.getContext('2d'); + var domPosition = L.DomUtil.getPosition(this._map.getPanes().mapPane); + if (domPosition) { + L.DomUtil.setPosition(this._canvas, { x: -domPosition.x, y: -domPosition.y }); + } for(t in this._tiles) { tile = this._tiles[t];