Add message to assertions.

This commit is contained in:
Marc Jansen
2015-03-30 22:50:15 +02:00
parent 2c40d74a15
commit fb9ba22c30
45 changed files with 394 additions and 221 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ ol.TileRange.boundingTileRange = function(var_args) {
tileCoordZ = tileCoord[0];
tileCoordX = tileCoord[1];
tileCoordY = tileCoord[2];
goog.asserts.assert(tileCoordZ == tileCoord0Z);
goog.asserts.assert(tileCoordZ == tileCoord0Z,
'passed tilecoords all have the same Z-value');
tileRange.minX = Math.min(tileRange.minX, tileCoordX);
tileRange.maxX = Math.max(tileRange.maxX, tileCoordX);
tileRange.minY = Math.min(tileRange.minY, tileCoordY);