Add ol.Extent.createEmptyExtent

This commit is contained in:
Tom Payne
2013-03-19 16:50:39 +01:00
parent 5186fa44f5
commit 483375ca42

View File

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