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

@@ -33,7 +33,7 @@ ol.DebugTile_ = function(tileCoord, tileGrid) {
* @private
* @type {ol.Size}
*/
this.tileSize_ = tileGrid.getTileSize();
this.tileSize_ = tileGrid.getTileSize(tileCoord.z);
/**
* @private

View File

@@ -46,9 +46,6 @@ ol.source.TiledWMS = function(tiledWMSOptions) {
'FORMAT': 'image/png',
'TRANSPARENT': true
};
var tileSize = tileGrid.getTileSize();
baseParams['WIDTH'] = tileSize.width;
baseParams['HEIGHT'] = tileSize.height;
baseParams[version >= '1.3' ? 'CRS' : 'SRS'] = projection.getCode();
goog.object.extend(baseParams, tiledWMSOptions.params);