Fixing origin for default tile grid

We count tiles from bottom to top, so we want the origin in the
bottom left corner, not the top left corner.
This commit is contained in:
ahocevar
2013-03-14 18:27:18 +01:00
parent 81089b2199
commit e9d86fdfdc

View File

@@ -368,7 +368,7 @@ ol.tilegrid.createForProjection =
resolutions[z] = size / Math.pow(2, z);
}
return new ol.tilegrid.TileGrid({
origin: projectionExtent.getTopLeft(),
origin: projectionExtent.getBottomLeft(),
resolutions: resolutions,
tileSize: tileSize
});