From 509a661fda21477a95d5ca48882103ccb37cfdff Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 15 Apr 2015 08:40:20 +0200 Subject: [PATCH] Reference ol.size.toSize() --- src/ol/tilegrid/tilegrid.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/tilegrid/tilegrid.js b/src/ol/tilegrid/tilegrid.js index f4e0f9637c..3db5bd3d7a 100644 --- a/src/ol/tilegrid/tilegrid.js +++ b/src/ol/tilegrid/tilegrid.js @@ -430,7 +430,8 @@ ol.tilegrid.TileGrid.prototype.getTileRange = /** * Get the tile size for a zoom level. The type of the return value matches the - * `tileSize` or `tileSizes` that the tile grid was configured with. + * `tileSize` or `tileSizes` that the tile grid was configured with. To always + * get an `ol.Size`, run the result through `ol.size.toSize()`. * @param {number} z Z. * @return {number|ol.Size} Tile size. * @api stable