OpenLayers OpenLayers

Ticket #840: grid.patch

File grid.patch, 1.1 kB (added by crschmidt, 1 year ago)
  • lib/OpenLayers/Layer/Grid.js

    old new  
    217217        var msg = "The getGridBounds() function is deprecated. It will be " + 
    218218                  "removed in 3.0. Please use getTilesBounds() instead."; 
    219219        OpenLayers.Console.warn(msg); 
    220         return getTilesBounds(); 
     220        return this.getTilesBounds(); 
    221221    }, 
    222222 
    223223    /** 
  • tests/Layer/test_Grid.html

    old new  
    106106        var testBounds = new OpenLayers.Bounds(1,2,3,4); 
    107107         
    108108        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."); 
    109113 
    110114    //no tiles 
    111115        layer.grid = new Array();