diff --git a/src/ol/extent.js b/src/ol/extent.js index e20c5bfb17..8e3ed2573a 100644 --- a/src/ol/extent.js +++ b/src/ol/extent.js @@ -45,6 +45,16 @@ ol.Extent.boundingExtent = function(var_args) { }; +/** + * @return {ol.Extent} Empty extent. + */ +ol.Extent.createEmptyExtent = function() { + return new ol.Extent( + Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, + Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY); +}; + + /** * @param {ol.Coordinate} center Center. * @param {number} resolution Resolution.