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:
@@ -50,7 +50,7 @@ ol.source.TiledWMS = function(tiledWMSOptions) {
|
|||||||
var projectionExtent = projection.getExtent();
|
var projectionExtent = projection.getExtent();
|
||||||
extent = goog.isDef(extent) ? extent : projectionExtent;
|
extent = goog.isDef(extent) ? extent : projectionExtent;
|
||||||
|
|
||||||
if (goog.isDef(extent) && projection.isGlobal() &&
|
if (!goog.isNull(extent) && projection.isGlobal() &&
|
||||||
extent.minX === projectionExtent.minX &&
|
extent.minX === projectionExtent.minX &&
|
||||||
extent.maxX === projectionExtent.maxX) {
|
extent.maxX === projectionExtent.maxX) {
|
||||||
var numCols = Math.ceil(
|
var numCols = Math.ceil(
|
||||||
|
|||||||
Reference in New Issue
Block a user