Refactor and optimize attributions

This commit is contained in:
Tom Payne
2012-08-02 16:07:10 +02:00
parent bee4cab2ac
commit e203944abf
3 changed files with 147 additions and 73 deletions
+10 -4
View File
@@ -18,15 +18,21 @@ ol.CoverageArea = function(extent) {
};
/**
* @param {ol.Extent} extent Extent.
* @return {boolean} Intersects.
*/
ol.CoverageArea.prototype.intersectsExtent = function(extent) {
return this.extent.intersects(extent);
};
/**
* @param {ol.Extent} extent Extent.
* @param {number} resolution Resolution.
* @return {boolean} Intersects.
*/
ol.CoverageArea.prototype.intersectsExtentAndResolution =
function(extent, resolution) {
return this.extent.intersects(extent);
};
ol.CoverageArea.prototype.intersectsExtentAndResolution = goog.abstractMethod;
/**