Add ol.TileBounds.getSize

This commit is contained in:
Tom Payne
2012-07-17 16:06:10 +02:00
parent b4fea2233e
commit aded70d6e6
2 changed files with 18 additions and 0 deletions
+8
View File
@@ -76,3 +76,11 @@ function testForEachTileCoord() {
assertEquals(3, tileCoords[3].y);
}
function testSize() {
var tileBounds = new ol.TileBounds(0, 1, 2, 4);
var size = tileBounds.getSize();
assertEquals(3, size.width);
assertEquals(4, size.height);
}