OpenLayers OpenLayers

Changeset 7298

Show
Ignore:
Timestamp:
05/31/08 12:56:41 (3 months ago)
Author:
crschmidt
Message:

Use the maxExtent of the layer in Grid layers instead of the maxExtent of the
map (since the two can differ). Patch from kleptog. (Closes #1552)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/Grid.js

    r6748 r7298  
    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         
     
    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;