I have the same problem. When having another (first) baselayer as metacarta, the OverviewMap() stays blue, with a little red square in the upper ledt-corner. In addition the mouse-defaults get messed up (mouse keeps dragging, also after releasing left mouse-button). I will try defining a (clone) baselayer for overviewmap, but should default not just work?
<br><br>This is my script:<br><br><pre id="line15"><<span class="start-tag">div</span><span class="attribute-name"> style</span>=<span class="attribute-value">"width:100%; height:100%; " </span><span class="attribute-name">
id</span>=<span class="attribute-value">"map"</span>></<span class="end-tag">div</span>><br><<span class="start-tag">script</span><span class="attribute-name"> defer</span>=<span class="attribute-value">
"defer" </span><span class="attribute-name">type</span>=<span class="attribute-value">"text/javascript"</span>><br>var map = new OpenLayers.Map('map', { controls: [] });<br>var google = new
OpenLayers.Layer.Google("Google Map");<br>map.addLayers([google]);<br>var metacarta = new OpenLayers.Layer.WMS("Metacarta", "<a href="http://labs.metacarta.com/wms/vmap0">http://labs.metacarta.com/wms/vmap0
</a>", {layers: 'basic'});<br>map.addLayers([metacarta]);<br>map.addControl(new OpenLayers.Control.MouseDefaults());map.addControl(new OpenLayers.Control.PanZoom());map.addControl(new OpenLayers.Control.MouseToolbar
());map.addControl(new OpenLayers.Control.LayerSwitcher());map.addControl(new OpenLayers.Control.Permalink());map.addControl(new OpenLayers.Control.OverviewMap());map.addControl(new OpenLayers.Control.MousePosition());map.addControl(new
OpenLayers.Control.Scale());var Other = new OpenLayers.Layer.Text("Other", { location:"<a href="http://localhost/wikimap/wp-content/plugins/wikimap/markers.txt.php?Overlay=Other">http://localhost/wikimap/wp-content/plugins/wikimap/markers.txt.php?Overlay=Other
</a>"});<br>map.addLayers([Other]);<br>var statensingel = new OpenLayers.Layer.Text("statensingel", { location:"<a href="http://localhost/wikimap/wp-content/plugins/wikimap/markers.txt.php?Overlay=statensingel">
http://localhost/wikimap/wp-content/plugins/wikimap/markers.txt.php?Overlay=statensingel</a>"});<br>map.addLayers([statensingel]);<br>var markers = new OpenLayers.Layer.Markers("Add locations");<br>map.addLayers
([markers]);<br>map.events.register("click", map, function(e) {<br> markers.addMarker(new OpenLayers.Marker(this.getLonLatFromPixel(e.xy)));<br>        var lonlat= map.getLonLatFromPixel(e.xy);<br>        var cornerpixel = new
OpenLayers.Pixel(50,30);         <br>        var lonlat_corner = map.getLonLatFromPixel(cornerpixel);<br>        <br>        var map_size = map.getSize();<br>        var m_width = map_size.w;<br>        var p_width = m_width - 75;<br>        if (p_width > 800) { var p_width = 800; }
<br>        var i_width = p_width - 15;<br>        <br>        var m_height = map_size.h;<br>        var p_height = m_height - 35;<br>        if (p_height > 600) { var p_height = 600; }<br>        var i_height = p_height - 40;<br>        <br><br>var pop_html = "<div style='font-size:15px; font-weight: strong;'>Add a location to the map</div><iframe width='" + i_width + "px' height='" + i_height + "px' src='wp-admin/post.php?Lat="+
lonlat.lat + "&&Lon=" + lonlat.lon + "&Overlay=Other' ></iframe>";<br><br><br> popup = new OpenLayers.Popup("add a marker at this location", <br> new
OpenLayers.LonLat(lonlat_corner.lon,lonlat_corner.lat),<br> new OpenLayers.Size(p_width,p_height),<br> pop_html,<br> true);
<br> <br> map.addPopup(popup);<br>         <br><br><br><br><br> });<br>map.setCenter(new OpenLayers.LonLat(5.69083213, 50.84960511), 15);<br>if (!map.getCenter()) map.zoomToMaxExtent();</<span class="end-tag">
script</span>></pre><br><br><div><span class="gmail_quote">On 1/5/07, <b class="gmail_sendername">Tim Schaub</b> <<a href="mailto:noreply@geocartic.com">noreply@geocartic.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;">
<div vlink="purple" link="blue" lang="DE"><span class="q">
<div dir="ltr" align="left"><font face="Trebuchet MS"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"></span></font> </div>
<blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">If I switch the two layers and
have my own wms layer as the base layer and the above mentioned as overlay –
the overlay map doesn't work anymore.</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Any help on
that?</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">-Hans<font face="Trebuchet MS"><font size="2"><span> </span></font></font></span></font></p></div></blockquote></span>
<p dir="ltr"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><font face="Trebuchet MS"><font size="2"><span> Can you post a concise example that shows the
problem? The overview map should work as any other map - with multiple
layers if that's what you want.</span></font></font></span></font></p>
<p dir="ltr"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><font face="Trebuchet MS"><font size="2"><span></span></font></font></span></font> </p>
<p dir="ltr"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><font face="Trebuchet MS"><font size="2"><span>Tim</span></font></font></span></font></p>
<p dir="ltr"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><font face="Trebuchet MS"><font size="2"><span></span></font></font></span></font> </p></div>
<br>_______________________________________________<br>Users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://openlayers.org/mailman/listinfo/users" target="_blank">
http://openlayers.org/mailman/listinfo/users</a><br><br><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>