[OpenLayers-Trac] [OpenLayers] #3516: wrapDateLine fix in #2246 doesn't work if top zoom level isn't a 1x1 grid

OpenLayers trac-20090302 at openlayers.org
Fri Sep 23 15:17:17 EDT 2011


#3516: wrapDateLine fix in #2246 doesn't work if top zoom level isn't a 1x1 grid
-----------------------+----------------------------------------------------
 Reporter:  navert     |       Owner:              
     Type:  feature    |      Status:  new         
 Priority:  minor      |   Milestone:  2.12 Release
Component:  Layer.XYZ  |     Version:  2.11        
 Keywords:             |       State:              
-----------------------+----------------------------------------------------
 I just upgraded to 2.11 (from 2.9.1) and noticed that our map was only
 showing north america and the pacific ocean below it.  It looks like it
 this is caused by the fix for #2246.  Our topmost zoom level (on both the
 server and the UI) is when it has a 4x2 grid of tiles.

 If I modify the getXYZ() function and change the "var limit = Math.pow(2,
 z)" to be "var limit = Math.pow(2, z+2)", it works correctly for me.

 So, it looks like there is another offset variable that is needed.  I
 can't use zoomOffset, because zoom 0 in both the UI and the server are the
 same.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3516>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list