Do not return a null tileSize

This commit is contained in:
Andreas Hocevar
2015-04-16 15:32:35 +02:00
parent c7bd5a7521
commit 4cad17f839
2 changed files with 48 additions and 24 deletions

View File

@@ -437,7 +437,7 @@ ol.tilegrid.TileGrid.prototype.getTileRange =
* @api stable
*/
ol.tilegrid.TileGrid.prototype.getTileSize = function(z) {
if (goog.isDef(this.tileSize_)) {
if (!goog.isNull(this.tileSize_)) {
return this.tileSize_;
} else {
goog.asserts.assert(!goog.isNull(this.tileSizes_),