From 41408c09099a8a8b408b58b2866fb097b48dea6d Mon Sep 17 00:00:00 2001 From: Bruno Binet Date: Thu, 7 Mar 2013 10:54:06 +0100 Subject: [PATCH] Extent cannot be undefined here but it can be null so we now use !goog.isNull(extent) instead of goog.isDef(extent) --- src/ol/source/tiledwmssource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/source/tiledwmssource.js b/src/ol/source/tiledwmssource.js index d329a63f44..9de3627372 100644 --- a/src/ol/source/tiledwmssource.js +++ b/src/ol/source/tiledwmssource.js @@ -50,7 +50,7 @@ ol.source.TiledWMS = function(tiledWMSOptions) { var projectionExtent = projection.getExtent(); extent = goog.isDef(extent) ? extent : projectionExtent; - if (goog.isDef(extent) && projection.isGlobal() && + if (!goog.isNull(extent) && projection.isGlobal() && extent.minX === projectionExtent.minX && extent.maxX === projectionExtent.maxX) { var numCols = Math.ceil(