Return transformed tile coordinates from ol.TileGrid's API methods

This commit is contained in:
Andreas Hocevar
2015-06-12 09:47:32 +02:00
parent acab0ebd57
commit 4b3aac32c3
6 changed files with 45 additions and 6 deletions

View File

@@ -155,7 +155,7 @@ ol.tilecoord.wrapX = function(tileCoord, tileGrid, projection) {
var worldWidth = ol.extent.getWidth(projectionExtent);
var worldsAway = Math.ceil((projectionExtent[0] - center[0]) / worldWidth);
center[0] += worldWidth * worldsAway;
return tileGrid.getTileCoordForCoordAndZ(center, z);
return tileGrid.getTileCoordForCoordAndZInternal(center, z);
} else {
return tileCoord;
}