<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2>Ok, I'll be happy to do some debugging, but you'll have to oblige by
posting a very concise example. The example you give below adds a Google
layer as the base layer, then adds other layers from <A
href="http://localhost">http://localhost</A>. Both of these make it tough
to tell what your problem is.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2>Can you create a simple map based on one of the examples, and add one
feature at a time until the application breaks? If you are able to narrow
it down, it will help others help you.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2>The example below is a simple one, and it works. Keep adding to it
until it breaks. Also, if you use IRC, you can hop on #openlayers and try
to get help there.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2>Also, note that you can use the map.addLayers to add multiple layers at
once.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2>Tim</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2>Working overview map markup:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2><html><BR>
<head><BR>
<title>Test</title><BR>
<style
type="text/css"><BR>
#map
{<BR>
width:
512px;<BR>
height:
512px;<BR>
border: 1px solid
gray;<BR>
}<BR>
</style><BR> <script
src="../lib/OpenLayers.js"></script><BR>
</head><BR>
<body><BR> <div
id="map"></div><BR>
<script defer="defer"
type="text/javascript"><BR>
var map = new
OpenLayers.Map('map');<BR>
var metacarta = new
OpenLayers.Layer.WMS(<BR>
"Metacarta",<BR>
"<A
href="http://labs.metacarta.com/wms/vmap0">http://labs.metacarta.com/wms/vmap0</A>",<BR>
{layers:
'basic'});<BR>
map.addLayers([metacarta]);<BR>
map.addControl(new
OpenLayers.Control.OverviewMap());<BR>
map.setCenter(new OpenLayers.LonLat(5.69, 50.85),
15);<BR>
</script><BR>
</body><BR></html></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=015095917-09012007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV><FONT face="Trebuchet MS" size=2></FONT><FONT
face="Trebuchet MS" size=2></FONT><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>On Behalf Of </B>Robert
Buzink<BR><B>Sent:</B> Monday, January 08, 2007 4:52 PM<BR><B>To:</B>
users@openlayers.org<BR><B>Subject:</B> Re: [OpenLayers-Users] Overview Map
Question<BR></FONT><BR></DIV>
<DIV></DIV>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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV lang=DE link="blue" vlink="purple"><SPAN class=q>
<DIV dir=ltr align=left><FONT face="Trebuchet MS"><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">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 lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Any help on
that?</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></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>
</BLOCKQUOTE></BODY></HTML>