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
+5 -1
View File
@@ -86,7 +86,11 @@ ol.TileUrlFunction.createBboxParam =
var bboxValues = axisOrientation.substr(0, 2) == 'ne' ?
[tileExtent.minY, tileExtent.minX, tileExtent.maxY, tileExtent.maxX] :
[tileExtent.minX, tileExtent.minY, tileExtent.maxX, tileExtent.maxY];
return goog.uri.utils.appendParam(baseUrl, 'BBOX', bboxValues.join(','));
var tileSize = tileGrid.getTileSize(tileCoord.z);
return goog.uri.utils.appendParams(baseUrl,
'BBOX', bboxValues.join(','),
'HEIGHT', tileSize.height,
'WIDTH', tileSize.width);
}
};
};