Hi, Valeria.<br>Not sure if it works, but can you try to create an instance of the overview map using custom options like <br>  map.addControl(new OpenLayers.Control.OverviewMap({mapOptions: options})); <br><br>also try to construct the map with the same reesolutions, as defined in tilecache config file<br>

<br>maybe someone else knows better?<br><br><div class="gmail_quote">2009/9/16 Valeria Muņoz <span dir="ltr">&lt;<a href="mailto:valemunoz@gmail.com">valemunoz@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;">

<p>Hi<br>     <br>I connect to a tilecache and this will need to deploy at OverviewMap. For some reason I get an error(resolution error) in the &quot;OverviewMap&quot; and shows the pink tile<br> <br>Error:<br>An error occurred: can&#39;t find resolution index for 0.000146. Available resolutions are: <br>


[0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125, 0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 0.0006866455078125, 0.00034332275390625, 0.000171661376953125, 8.58306884765625e-005, 4.291534423828125e-005, 2.1457672119140625e-005, 1.0728836059570313e-005, 5.3644180297851563e-006, 2.6822090148925781e-006, 1.3411045074462891e-006]</p>



<div>my code:          </div>
<div> </div>
<div>var mapOptions = {            restrictedExtent:new OpenLayers.Bounds(-113.5546875,-72.421875,-25.6640625,-2.109375,2),            units: &quot;dd&quot;,            numZoomLevels:20};<br>map = new OpenLayers.Map(&#39;map&#39;,mapOptions);                 </div>



<div>layer3 = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,             &quot;<a href="http://localhost/tilecache/tilecache.cgi" target="_blank">http://localhost/tilecache/tilecache.cgi</a>&quot;, {layers: &#39;ivregion_d02&#39;,transitionEffect: &#39;resize&#39;,format: &#39;png&#39;} );<br>


map.addLayer(layer3);</div>
<div>map.addControl(new OpenLayers.Control.MousePosition());</div>
<div>map.setCenter(new OpenLayers.LonLat(-71.256437, -29.902194), 17);</div>
<div>if (!map.getCenter()) map.zoomToMaxExtent();     <br>var overview2 = new OpenLayers.Control.OverviewMap();         </div>
<div>map.addControl(overview2);</div>
<div> </div>
<div> </div>
<div>if somebody can help me?</div>
<div> </div>
<div>RG</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br>