problem solved - &quot;auto&quot; is not your friend<br><br><div class="gmail_quote">2009/5/13 martin g <span dir="ltr">&lt;<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear Userlist,<br><br>I&#39;m running TileCache with Openlayers and Mapserver (under CGI) - my Openlayers .php file is working fine until the fourth zoom level - only some parts of the map are shown and on the corners and borders the images aren&#39;t drawn - only my Overview map (with the same values like the map has) is able to show this content -  I guess this is due to wrong resolutions but I don&#39;t know where my mistake is - it would be nice if someone could help me finding the error.<br>

<br><br>Here are my map options defined in the Openlayers .php file :<br>--------------------------------------------------------------------------------------------------------------<br><br>                var mapOptions = {    projection: &quot;EPSG:4326&quot;, 
<br>                                    controls: [], <br>                                    scales: [17500000, 14000000, 7000000, 3000000, 2000000, 1000000, 400000, 250000],<br>                                    maxResolution: &quot;auto&quot;, 
<br>                                    maxExtent: new OpenLayers.Bounds(60.00167, 20, 100, 44.984), 
<br>                                    restrictedExtent: new OpenLayers.Bounds(60.00167, 20, 100, 44.984),
<br>                                    eventListeners: {&quot;moveend&quot;: mapEvent }
<br>                                    };<br><br>---------------------------------------------------------------------------------------------------------------<br><br>And this is my TileCache layer defined in tilecache.cfg file:<br>

--------------------------------------------------------------------------------------------------------------<br>[myproject]<br>type=WMS<br>url=<a href="http://geo.ac.at/cgi-bin/mapserv5?map=/srv/www/htdocs/project/myproject/mod_mapViewer/myParams/myMap.map" target="_blank">http://geo.ac.at/cgi-bin/mapserv5?map=/srv/www/htdocs/project/myproject/mod_mapViewer/myParams/myMap.map</a><br>

layers=basic, postgis<br>bbox= 60.00167, 20, 100, 44.984<br>resolutions= 0.156243, 2406.250000, 420, 0.05555867954073659,0.04444694363258927,0.022223471816294634,0.009524345064126272,0.006349563376084183,0.0031747816880420914,0.0012699126752168362,0.0007936954220105229,0.0007936954220105229,0.0007936954220105229,0.0007936954220105229,0.0007936954220105229,0.0007936954220105229,0.0007936954220105229,0.0007936954220105229,0.0007936954220105229,0.0007936954220105229,0.0555586795,0.0444469436,0.0222234718,0.00952434506,0.00634956338,0.00317478169,0.00126991268,0.000793695422<br>

srs=EPSG:4326<br>extension=png<br>-----------------------------------------------------------------------------------------------------------<br> <br>The first 3 resolution values were - I guess -  recommanded by TileCache - the remaining resolution values are calculated with the following function:<br>

<br>    for (var i = 0; i &lt;= map.numZoomLevels; i++) {<br>          resolutions.push(map.getResolutionForZoom(i));<br>    }<br>    console.log(resolutions.join(&#39;,&#39;));<br><br>Thanks in advance for help.<br><font color="#888888"><br>
Martin<br>
</font></blockquote></div><br>