diff --git a/src/ol/view.js b/src/ol/view.js index 473da2d4e2..6aebea294f 100644 --- a/src/ol/view.js +++ b/src/ol/view.js @@ -682,7 +682,7 @@ ol.View.createResolutionConstraint_ = function(options) { 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()] : + projection.getMetersPerUnit() : Math.max(ol.extent.getWidth(extent), ol.extent.getHeight(extent)); var defaultMaxResolution = size / ol.DEFAULT_TILE_SIZE / Math.pow(