Tile bounds changed with #517 to remove white lines between tiles

This commit is contained in:
ahocevar
2013-04-24 14:15:12 +02:00
parent acc497bf3c
commit 9f53506754
2 changed files with 7 additions and 8 deletions

View File

@@ -31,11 +31,10 @@
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(0,0), 5);
var tile = layer.grid[0][0];
tile.draw(true); // the tile queue defers the drawing
t.eq( tile.bounds.left, -22.5, "left side matches" );
t.eq( tile.bounds.right, -11.25, "top side matches" );
t.eq( tile.bounds.bottom.toFixed(6), '11.178402', "bottom side matches" );
t.eq( tile.bounds.top.toFixed(6), '21.943046', "top side matches" );
t.eq( tile.bounds.left, -22.5, "left side matches" );
t.eq( tile.bounds.right, -11.25, "right side matches" );
t.eq( tile.bounds.bottom.toFixed(6), '11.781325', "bottom side matches" );
t.eq( tile.bounds.top.toFixed(6), '22.512557', "top side matches" );
map.destroy();
} else {
t.plan(1);

View File

@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<!-- this gmaps key generated for http://openlayers.org/dev/ -->
@@ -31,11 +32,10 @@
map.addLayer(wmslayer);
map.setCenter(new OpenLayers.LonLat(0,0), 5);
var tile = wmslayer.grid[0][0];
tile.draw(true); // the tile queue defers the drawing
t.eq( tile.bounds.left, -22.5, "left side matches" );
t.eq( tile.bounds.right, -11.25, "right side matches" );
t.eq( tile.bounds.bottom.toFixed(6), '11.178402', "bottom side matches" );
t.eq( tile.bounds.top.toFixed(6), '21.943046', "top side matches" );
t.eq( tile.bounds.bottom.toFixed(6), '11.781325', "bottom side matches" );
t.eq( tile.bounds.top.toFixed(6), '22.512557', "top side matches" );
map.destroy();
} else {
t.plan(1);