[OpenLayers-Users] [Geoserver-users] Problem with GWC and tile alignment but only affecting some zoom levels.

Phil Scadden p.scadden at gns.cri.nz
Tue Sep 18 17:02:14 PDT 2012


On 18/09/2012 7:32 a.m., Gabriel Roldan wrote:
> Does this happen also for the gwc generated demo page for the layer?
> Hope not and in that case you should check the generated page code and 
> make sure it matches your app's layer/map set up
By slowly adding bits from my application to the gwc demo, I have 
cracked what exactly is causing the problem. It is putting a maxExtent 
on the
layer.

Maxextent for the map is
  new 
OpenLayers.Bounds(-2.003750834E7,-2.003750834E7,2.003750834E7,2.003750834E7)
but a maxExtent for the layer is:
msex = new OpenLayers.Bounds(-20037508.34, -8399738, 20037508.34, 
20037508.34);

Ie I am restricting the layer data display to be that north of 60S. When 
I do that, I get the cache images displaced from the where they be for 
each alternate zoom level (correct for one, offset for the next).


Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120919/a62b986a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jddfahgj.png
Type: image/png
Size: 13828 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120919/a62b986a/attachment-0001.png>


More information about the Users mailing list