Try play around with parameter values in your OverviewMap, example:<br><br>var layer = new OpenLayers.Layer.WMS( "Malaysia",<br> "/tc/tilecache.cgi?",<br> {layers: 'basemap', format: 'image/png' }<br>
);<br>var ov = new OpenLayers.Control.OverviewMap({minRatio: 16, mapOptions: {maxResolution: 0.02197265625, minResolution: 0.0000858306884765625}, layers:[layer]});<br><br><div class="gmail_quote">2009/11/12 Quim Rifà <span dir="ltr"><<a href="mailto:rifins@gmail.com">rifins@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<div><br></div><div>I'm new here.. So this is my first post to the list.. And I would like to know how can I put the overview map. Well, by now I'm adding an overviewmap, but the zoom of the overview is the maximum zoom of the map.. I mean the overview has more detail than the main map.</div>
<div><br></div><div>This is my code:</div><div><br></div><div><div>var map;</div><div>var options;</div><div><br></div><div>function init() {</div><div> options = {</div><div> 'projection': "EPSG:23031",</div>
<div> 'SRS': "EPSG:23031",</div><div> 'units':'meters',</div><div> 'maxExtent': new OpenLayers.Bounds(258000, 4485000, 536000, 4752000)</div><div> }; </div>
<div> </div><div> <span style="white-space: pre;">        </span>var lyrTest= new OpenLayers.Layer.WMS("mtc50", "<a href="http://shagrat.icc.es/lizardtech/iserv/ows" target="_blank">http://shagrat.icc.es/lizardtech/iserv/ows</a>?",</div>
<div> { layers: 'mtc50m',</div><div> 'service': "WMS",</div><div> 'version': "1.1.1",</div><div> 'srs': "EPSG:23031",</div>
<div> 'request': "GetMap",</div><div> 'exception': "INIMAGE",</div><div> 'format': "image/png"</div><div> }, { isBaseLayer: true });</div>
<div> </div><div> map = new OpenLayers.Map('map', options);</div><div> map.resolutions = [1100, 550, 275, 100, 50, 25, 10, 5, 2, 1, 0.5]; </div><div> map.addLayer(lyrTest.clone());</div><div> map.zoomToMaxExtent();</div>
<div> map.addControl(new OpenLayers.Control.Navigation());</div><div> map.addControl(new OpenLayers.Control.MousePosition());</div><div> map.addControl(new OpenLayers.Control.OverviewMap());</div><div>}</div><div><br>
</div><div>Thanks!!</div></div><div><br></div><div><br></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>