Top should always be greater than or equal to bottom in ol.TileBounds

This commit is contained in:
Tom Payne
2012-07-07 13:42:58 +02:00
committed by Tom Payne
parent 9a89814896
commit 85716afa38
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -16,6 +16,9 @@ goog.require('ol.TileCoord');
*/
ol.TileBounds = function(top, right, bottom, left) {
goog.asserts.assert(top <= bottom);
goog.asserts.assert(left <= right);
goog.base(this, top, right, bottom, left);
};