OpenLayers OpenLayers

Ticket #1552: gridfix.patch

File gridfix.patch, 0.9 kB (added by kleptog, 8 months ago)
  • Layer/Grid.js

    old new  
    353353        var minCols = Math.ceil(viewSize.w/this.tileSize.w) + 
    354354                      Math.max(1, 2 * this.buffer); 
    355355         
    356         var extent = this.map.getMaxExtent()
     356        var extent = this.maxExtent
    357357        var resolution = this.map.getResolution(); 
    358358         
    359359        var tileLayout = this.calculateGridLayout(bounds, extent, resolution); 
     
    719719     * {<OpenLayers.Bounds>} Bounds of the tile at the given pixel location. 
    720720     */ 
    721721    getTileBounds: function(viewPortPx) { 
    722         var maxExtent = this.map.getMaxExtent()
     722        var maxExtent = this.maxExtent
    723723        var resolution = this.getResolution(); 
    724724        var tileMapWidth = resolution * this.tileSize.w; 
    725725        var tileMapHeight = resolution * this.tileSize.h;