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 committed 2013-03-14 18:27:18 +01:00
1 parent 81089b2199
commit e9d86fdfdc
1 file changed
+1 -1
+1 -1
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
});