As I said before, I had the same problem as you, Hans. I solved it by replacing:<br><pre id="line15">map.addControl(new OpenLayers.Control.OverviewMap()); </pre><span>with:<br></span>
<br><pre id="line15">var ov = new OpenLayers.Layer.WMS( "OpenLayers WMS", <br> "<a href="http://labs.metacarta.com/wms/vmap0">http://labs.metacarta.com/wms/vmap0</a>", {layers: 'basic'} );
<br>var options = {<br> layers: [ov.clone()],<br> minRatio: 8,<br> maxRatio: 128<br> };<br>map.addControl(new OpenLayers.Control.OverviewMap(options));<br><br></pre><span>as Christian López Espínola suggested. I still don't understand why the default doesn't work. Maybe this should be changed? Now it only works for people who really understand what they are doing, and not for technical-lego kids like me :-).
<br><br>Thanks for the help!<br></span><br><br><div><span class="gmail_quote">On 1/8/07, <b class="gmail_sendername">Christian López Espínola</b> <<a href="mailto:penyaskito@gmail.com">penyaskito@gmail.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Maybe you are using the SAME layer in the map and in the overviewmap,<br>and this make you have this headaches. Try adding the overview map a
<br>layer.clone().<br><br>Hope this helps.<br><br>On 1/5/07, Tim Schaub <<a href="mailto:noreply@geocartic.com">noreply@geocartic.com</a>> wrote:<br>><br>><br>><br>><br>><br>><br>> If I switch the two layers and have my own wms layer as the base layer and
<br>> the above mentioned as overlay – the overlay map doesn't work anymore.<br>><br>> Any help on that?<br>><br>><br>><br>> -Hans<br>><br>> Can you post a concise example that shows the problem? The overview map
<br>> should work as any other map - with multiple layers if that's what you want.<br>><br>><br>><br>> Tim<br>><br>><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">http://openlayers.org/mailman/listinfo/users</a><br>><br>><br>><br><br><br>--
<br>Regards,<br><br>Christian López Espínola<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">
http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Robert Buzink, website ontwerp en ontwikkeling<br>Sint-Pietersaalststraat 123<br>9000 Gent<br>+32 (0)9 33 00 267<br>+32 (0)487 548 414
<br><a href="mailto:post@robertbuzink.nl">post@robertbuzink.nl</a><br><a href="http://robertbuzink.nl/webdesign">robertbuzink.nl/webdesign</a>