diff --git a/src/ol/view.js b/src/ol/view.js index 2e3f161575..473da2d4e2 100644 --- a/src/ol/view.js +++ b/src/ol/view.js @@ -679,7 +679,7 @@ ol.View.createResolutionConstraint_ = function(options) { // calculate the default min and max resolution var projection = ol.proj.createProjection(options.projection, 'EPSG:3857'); var extent = projection.getExtent(); - var size = goog.isNull(extent) ? + var size = !extent ? // use an extent that can fit the whole world if need be 360 * ol.proj.METERS_PER_UNIT[ol.proj.Units.DEGREES] / ol.proj.METERS_PER_UNIT[projection.getUnits()] :