Ticket #840: grid.patch
| File grid.patch, 1.1 kB (added by crschmidt, 1 year ago) |
|---|
-
lib/OpenLayers/Layer/Grid.js
old new 217 217 var msg = "The getGridBounds() function is deprecated. It will be " + 218 218 "removed in 3.0. Please use getTilesBounds() instead."; 219 219 OpenLayers.Console.warn(msg); 220 return getTilesBounds();220 return this.getTilesBounds(); 221 221 }, 222 222 223 223 /** -
tests/Layer/test_Grid.html
old new 106 106 var testBounds = new OpenLayers.Bounds(1,2,3,4); 107 107 108 108 t.ok( bounds.equals(testBounds), "getTilesBounds() returns correct bounds"); 109 110 var bounds = layer.getGridBounds(); 111 112 t.ok( bounds.equals(testBounds), "getGridBounds() wrapper works the same as getTilesBounds."); 109 113 110 114 //no tiles 111 115 layer.grid = new Array();
