Use valid tile bounds and test grid crossing the dateline.

This commit is contained in:
ahocevar
2011-12-03 00:07:04 +01:00
parent 84b30d3699
commit b70ea9e8c1
6 changed files with 25 additions and 21 deletions

View File

@@ -94,8 +94,8 @@
layer = new OpenLayers.Layer.KaMap(name, url, params, units);
var bl = { bounds: new OpenLayers.Bounds(1,2,0,0)};
var tr = { bounds: new OpenLayers.Bounds(0,0,3,4)};
var bl = { bounds: new OpenLayers.Bounds(1,2,2,3)};
var tr = { bounds: new OpenLayers.Bounds(2,3,3,4)};
layer.grid = [ [6, tr],
[bl, 7]];