Extent cannot be undefined here but it can be null

so we now use !goog.isNull(extent) instead of goog.isDef(extent)
This commit is contained in:
Bruno Binet
2013-03-07 10:54:06 +01:00
parent 129f2bbcb0
commit 41408c0909

View File

@@ -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(