Add support for multiple tileSizes in the tilegrid.

This is needed by WMTS.
This commit is contained in:
Bruno Binet
2013-03-03 20:37:45 +01:00
parent 7c440d087f
commit 2816e3256c
8 changed files with 39 additions and 16 deletions

View File

@@ -292,7 +292,7 @@ ol.renderer.dom.TileLayerZ_.prototype.addTile = function(tile) {
if (tileCoordKey in this.tiles_) {
return;
}
var tileSize = this.tileGrid_.getTileSize();
var tileSize = this.tileGrid_.getTileSize(tileCoord.z);
var image = tile.getImage(this);
var style = image.style;
style.position = 'absolute';