[OpenLayers-Users] resolution mismatch between OpenLayers and Geowebcache

Andreas Hocevar ahocevar at opengeo.org
Fri Mar 27 17:16:16 EDT 2009


Hi,

On Thu, Mar 26, 2009 at 9:20 PM, ajayravichandran <ajayr.email at gmail.com> wrote:
> I am working on integrating a web mapping application with OpenLayers and GeoWebCache. I have followed all the procedure and have all the caching functionality working with Openlayers perfectly , except for a small eccentric issue
>
> I have a map div that is 557 X 557px wide.
>
> The issue is that my default zoom level of 0 which is nothing but my max Extent on an non geowebcached map, now corresponds to zoom level of 1 on a geowebcached map with tile size of 256. So I am able to go another zoom level down which gives me a square centered map image of 256 px wide in the center of my 557 X 557 div with white space surrounding it to fill in the rest of the 557 px. This is something which i dont want to happen.

Looks like you have not set your resolutions array in OpenLayers
correctly. Do a GetMap request on GeoWebCache and set the resolutions
option on your OpenLayers layer to the same values as the one you see
in GeoWebCache's GetFeatureInfo response.

> BTW, the same things happens in the geowebcache/demo thats comes along with geowebcache admin util.

This is something that you should report with more details about when
it happens in the GeoWebCache trac or on the GeoWebCache users list.

Regards,
Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list