On Sun, May 18, 2008 at 10:39 PM, Martijn van Oosterhout <[EMAIL PROTECTED]> wrote: > In Layer.Grid.initGriddedTiles there is a line: > > var extent = this.map.getMaxExtent(); > > I run a map where not all the layers have the same extent, and in > particular the overlays won't have the same extent as the base map. So > the above line causes the grid to be misaligned in those cases. > Replacing this line with: > > var extent = this.maxExtent; > > makes everything work perfectly as expected. Now, I call this a bug > but maybe there's a problem with this fix? There is also another use > of this.map.getMaxExtent() which may also be wrong. Thoughts? > > Have a nice day,
I guess you are correct. map.getMaxExtent() is also used in getTileBounds(), which also does not seem right to me. Can you open a ticket for this? Thanks, -- Eric _______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
