Add ol.TileBounds.equals

This commit is contained in:
Tom Payne
2012-07-22 02:50:12 +02:00
parent f46c9e12fb
commit c82bacb762

View File

@@ -59,6 +59,16 @@ ol.TileBounds.prototype.contains = function(tileBounds) {
};
/**
* @param {ol.TileBounds} tileBounds Tile bounds.
* @return {boolean} Equals.
*/
ol.TileBounds.prototype.equals = function(tileBounds) {
return this.minX == tileBounds.minX && tileBounds.maxX == this.maxX &&
this.minY == tileBounds.minY && tileBounds.minY == this.minY;
};
/**
* @param {number} z Z.
* @param {function(this: T, ol.TileCoord)} f Callback.