dom map renderer - map shiftLayersPane_ work

This commit is contained in:
Éric Lemoine
2012-07-18 14:49:30 +02:00
parent 808a854d0f
commit 6d61ac2bc5
2 changed files with 57 additions and 14 deletions

View File

@@ -104,8 +104,8 @@ ol.dom.TileLayerRenderer.prototype.getTilesMapOffset_ = function(
var tileCoordExtent = tileGrid.getTileCoordExtent(tileCoord);
var offset = new goog.math.Coordinate(
Math.round((extent.minX - tileCoordExtent.minX) / resolution),
Math.round((tileCoordExtent.maxY - extent.maxY) / resolution));
Math.round((this.origin.x - tileCoordExtent.minX) / resolution),
Math.round((tileCoordExtent.maxY - this.origin.y) / resolution));
return offset;
};