OpenLayers OpenLayers

Changeset 669

Show
Ignore:
Timestamp:
06/22/06 07:36:25 (3 years ago)
Author:
crschmidt
Message:

Fix for #69: "Non-visible layers suffer deficiencies when turned on." Add the layerContainer offset to the pixel location of the images, to place them in the map correctly.

Files:

Legend:

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

    r657 r669  
    144144 
    145145                var tile = this.addTile(tileBounds,  
    146                                         new OpenLayers.Pixel(tileoffsetx
    147                                                              tileoffsety
     146                                        new OpenLayers.Pixel(tileoffsetx - parseInt(this.map.layerContainerDiv.style.left)
     147                                                             tileoffsety - parseInt(this.map.layerContainerDiv.style.top)
    148148                                                            ); 
    149149                tile.draw();