Add message to assertions.
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user