[OpenLayers-Trac] [OpenLayers] #1552: Misalignment of TMS overlays due to incorrect use of MaxExtent
OpenLayers
trac at openlayers.org
Mon May 19 02:48:46 EDT 2008
#1552: Misalignment of TMS overlays due to incorrect use of MaxExtent
------------------------+---------------------------------------------------
Reporter: kleptog | Owner: euzuro
Type: bug | Status: new
Priority: minor | Milestone: 2.7 Release
Component: Layer.Grid | Version: 2.6
Keywords: | State: Review
------------------------+---------------------------------------------------
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.
--
Ticket URL: <http://trac.openlayers.org/ticket/1552>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list