Commit fix for "getGridBounds calls 'getTileBounds' instead of
this.getTileBounds", #840. Reviewed by Euz. git-svn-id: http://svn.openlayers.org/trunk/openlayers@3753 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -217,7 +217,7 @@ OpenLayers.Layer.Grid.prototype =
|
||||
var msg = "The getGridBounds() function is deprecated. It will be " +
|
||||
"removed in 3.0. Please use getTilesBounds() instead.";
|
||||
OpenLayers.Console.warn(msg);
|
||||
return getTilesBounds();
|
||||
return this.getTilesBounds();
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -107,6 +107,10 @@
|
||||
|
||||
t.ok( bounds.equals(testBounds), "getTilesBounds() returns correct bounds");
|
||||
|
||||
var bounds = layer.getGridBounds();
|
||||
|
||||
t.ok( bounds.equals(testBounds), "getGridBounds() wrapper works the same as getTilesBounds.");
|
||||
|
||||
//no tiles
|
||||
layer.grid = new Array();
|
||||
bounds = layer.getTilesBounds();
|
||||
|
||||
Reference in New Issue
Block a user