<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Wes Toews</b> <<a href="mailto:wolfsnipes@gmail.com">wolfsnipes@gmail.com</a>><br>Date: 10 Sep 2008 09:56<br>
Subject: geowebcache tiling zoom and bounds<br>To: <a href="mailto:geoserver-users@lists.sourceforge.net">geoserver-users@lists.sourceforge.net</a><br><br></span>
<div><font face="courier new,monospace">hi, I have an issue with openlayers/gwc integration. I have built an application using gwc, openlayers and geoserver, and it works fine except for implementing the getfeatureinfo request. When clicking on a map feature, I receive the documented problem of:</font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font face="courier new,monospace">"The bounds result in a zoom level of 6.359755367181556, expected something within 0.05 of an integer, check -115.386772,51.632202,-111.003228,54.367798"</font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font face="courier new,monospace">I have read the documentation on this, set the maxResolution parameter to 0.703125 as recommended in the documentation; as well I've played with combinations of zoom levels and maxResolutions, starting zoom and maxResolution parameters. The resulting tiles are 256x256 pixels size.</font></div>
<div><font face="Courier New"></font> </div>
<div><font face="Courier New">my openlayers code looks something like this:</font></div>
<div> </div>
<div><font face="courier new,monospace"> var mapOptions = {<br> maxExtent: new OpenLayers.Bounds(-180,-90,90,180),<br> units: 'degrees',<br> projection: "EPSG:4326",<br> maxResolution: 0.703125<br>
};</font></div>
<div>
<p><font face="courier new,monospace"> function OLMapInit()<br> {<br> map = new OpenLayers.Map('map', mapOptions);</font></p>
<p><font face="courier new,monospace"> var myLayer = new OpenLayers.Layer.WMS("TRSI Projects","</font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost:8080/geowebcache/service/wms" target="_blank"><font face="courier new,monospace">http://localhost:8080/geowebcache/service/wms</font></a><font face="courier new,monospace">",<br>
{<br> layers: 'TerraWorld',<br> format: 'image/png'<br> });</font></p>
<p><font face="courier new,monospace"> map.addLayer(myLayer);<br> map.zoomToExtent(initialZoomExtents);</font></p>
<p><font face="courier new,monospace"> //map.zoomToMaxExtent();</font></p>
<p><font face="courier new,monospace">The </font><font face="courier new,monospace">getfeatureinfo request is standard stuff borrowed from the Geoserver example code, nothing changed. This generates the zoom level error cited above. Any ideas?</font></p>
<p><font face="courier new,monospace">Thanks in advance,</font></p>
<p><font face="courier new,monospace">-Wes</font></p></div>